Lean community certifies Claude-assisted proof of the Riemann hypothesis
Unicorn News Desk ·
Key facts
- Proof released
- November 20, 2026, by Levent Alpöge
- Size
- Lean library of 17 million lines of code
- Dependencies
- Only Mathlib
- Statement proved
- Mathlib's RiemannHypothesis, confirmed with two independent comparison tools
- Proof checkers
- Lean's kernel, con-leche, con-ron and several third-party checkers
The story so far: Claude-assisted Riemann hypothesis proof claim
- 2026-11-20: Anthropic mathematician claims Riemann proof with Claude
- 2026-11-21: Lean community certifies the claimed Riemann proof (this article)
One day after Anthropic mathematician Levent Alpöge said he and Claude had proved the Riemann hypothesis (covered here yesterday), the Lean and Mathlib communities have published a joint statement certifying the proof. They say they have “full confidence” that the 17-million-line Lean proof is correct, and the statement is endorsed by the Lean FRO and the Mathlib Initiative.
Yesterday’s article reported a claim with no independent check. That has now changed. The communities that maintain Lean, a formal proof language, and Mathlib, its shared mathematics library, say they spent the past day verifying the proof and “hereby certify that both the statement and the proof of the Riemann Hypothesis are correct”. Scientific American, summarising the reaction, writes that mathematicians are “now almost certain” the AI-created proof is real.
What changed since Alpöge posted the Lean proof
Alpöge released the proof on November 20, 2026, as a Lean library of 17 million lines of code. In his accompanying statement he wrote: “I believe I have, working with Claude, discovered a proof of the Riemann hypothesis”. Early coverage stressed that posting a Lean file was not enough on its own. SSBCrack News noted that experts would need to check that the formal argument is sound, that it proves the intended statement, and that no unsupported assumptions or gaps remain.
The Lean community’s statement answers those three points directly. It says the four criteria set out in a Xena Project post on checking proofs in Lean are all satisfied:
- The statement is correct. The theorem is Mathlib’s existing RiemannHypothesis definition, which the statement says “has been carefully vetted by experts in Lean and number theory”.
- The library compiles. Dozens of people have reported correct compilation, reproducing the same raw proof export file, with no errors or build failures.
- The code proves the correct statement. The community added a file that isolates the Riemann hypothesis statement and imports only Mathlib, then compared it with Alpöge’s theorem using two independent tools.
- The proof is valid. The exported proof was checked by several separate proof checkers.
The statement closes by congratulating Alpöge “on this achievement”.
How the Lean and Mathlib communities checked 17 million lines
No human can read 17 million lines of code line by line in a day, and the verification does not rely on anyone doing so. A Lean proof is accepted when a small, trusted program called a kernel checks every logical step. Scientific American explains the usual reading: if a Lean-coded proof compiles error-free, that is generally taken as confirmation that the logic and maths in each step are correct.
| Item | What the Lean community reports |
|---|---|
| Release date | November 20, 2026 |
| Size | 17 million lines of Lean code |
| Direct dependencies | Mathlib only |
| Theorem proved | Exactly Mathlib’s statement of the Riemann Hypothesis |
| Statement comparison tools | comparator and con-leche --compare |
| Proof checkers | Lean’s official kernel, con-leche, con-ron, plus several third-party checkers in different programming languages |
| Build reproduction | Dozens of people, same raw proof export file |
Two parts of the process address the most common ways a large formal proof can look valid and still be wrong.
Proving the right thing. A proof can compile and still prove a subtly different statement from the one claimed, for example because a definition was altered somewhere in the library. To rule this out, the community wrote its own file containing only the Riemann hypothesis statement, built on Mathlib alone, and confirmed with two independent tools that Alpöge’s theorem matches it exactly.

Trusting the checker. A large proof could, in principle, exploit a flaw in Lean itself. A commenter in one online discussion said that many big Lean proofs they had seen “end up proving there are gaps or bugs in the Lean compiler, rather than what they set out to prove”. The Lean statement addresses this concern. It says the con-leche and con-ron checkers come with a formal proof, relative to set theory, that they cannot accept a false proof, “thus addressing concerns that Lean’s logic itself might have flaws that the proof could exploit”. Further checkers contributed by third parties, written in different programming languages, also checked the export.
Why the inert export matters for AI-written code
One detail is directly relevant to anyone who runs model-generated code. The Lean community says its checks “ran on an inert export of the proof, out of reach of hypothetical malicious code in the Lean proof sources”. Lean source files can contain code that executes at build time. Checking an exported, data-only form of the proof means that nothing in the 17 million lines could tamper with the checkers.

The statement does not suggest the proof contained anything malicious. The precaution treats a very large, machine-produced artefact as untrusted until it has been checked by tools outside its own reach. That is a reasonable default for any AI-generated output at this scale.
Riemann hypothesis or Generalized Riemann Hypothesis
The sources describe the scope of the result differently. SSBCrack News reported that Alpöge claimed a proof of the Generalized Riemann Hypothesis, which extends the original conjecture to a wider family of related functions and is “a substantially broader claim”. The Lean community’s certification is narrower. It says the theorem in Alpöge’s library is “exactly Mathlib’s statement of the Riemann Hypothesis”. Scientific American also refers to the Riemann problem.
The Lean statement points readers to an extensive overview hosted on an MIT mathematics web page whose address refers to “grh”. It does not say in its own text whether the generalized version is also formally proved. Until that is clarified, the certified result is the Riemann hypothesis as stated in Mathlib. Yesterday’s article reported Alpöge’s claim that the method extends further. That wider claim is not what the community certified.
The Riemann hypothesis was proposed by Bernhard Riemann in 1859. It concerns the distribution of prime numbers and connects them to the zeros of the zeta function. New Scientist, in a report quoted in an online discussion, said the problem had stood for 167 years. SSBCrack News notes that many results in mathematics depend on it, so a proof could settle or sharpen a range of longstanding questions about primes.
Do experts accept it? What the sources show
The sources show acceptance of the formal verification. They do not yet show a full human understanding of the mathematics.
- The Lean and Mathlib communities, with endorsement from the Lean FRO and the Mathlib Initiative, state “full confidence” and formally certify the statement and the proof.
- Scientific American reports that researchers “have verified that the proof does seem to do what Alpöge claims” and that mathematicians are “almost certain” it is real.
- The Lean statement ends by looking forward to activity across the mathematical community “that will help explain the new ideas in this proof”. That wording implies the ideas have not yet been explained in human terms.
Public reaction is mixed. Under Scientific American’s post, one commenter asked for “the peer reviewed published paper”, and another wrote that in mission-critical systems “almost certain” is not admissible. In a forum discussion of the New Scientist report, commenters were openly sceptical. One compared the claim to an earlier AI claim about Navier–Stokes. Another noted that such proofs can be machine-verified yet be “too complicated and voluminous for humans to keep up with”. These are reader comments, not expert assessments, but they show the questions the result now faces.
None of the sources includes a statement from Anthropic about the certification. New Scientist reported that Anthropic announced earlier work on the Riemann hypothesis in August, which stopped short of a full proof. SSBCrack News adds that Alpöge previously drew notice for sharing a Claude-generated solution to the Jacobian conjecture. It also reports that a separate collection of results produced with an OpenAI system was said to include progress on questions related to prime numbers.
In his statement, Alpöge reflected on what the result means for the field: “It is natural to feel that this is an end, in my case a loss of a principal guiding light, but what I saw during the course of progress so amazed me that I believe it is one dawn across science of something far greater”.
What it means for builders
For developers building with models, the most useful lesson is about verification more than mathematics. The proof is trusted because a stack of deterministic checkers accepted it, not because anyone trusts the model that helped write it. The process the Lean community used is a pattern that carries over to other work:
- Pin the specification separately. The community wrote its own statement file and compared it with the output, rather than trusting the statement inside the generated library. In software terms, keep tests and specifications outside the code the model writes.
- Use more than one independent checker. Several checkers, some written in different languages and two with their own soundness proofs, checked the same export.
- Require reproducible builds. Dozens of people reproduced the same raw export file.
- Isolate untrusted artefacts. Checks ran on an inert export, out of reach of any code in the sources.
There is also a limit. A machine-checked proof of 17 million lines can be correct without being understood. The forum commenter’s point about results “too complicated and voluminous for humans to keep up with” applies to AI-generated software too. Formal verification can show that an output meets its specification. It does not explain how the output works.
What to watch next
- A human-readable account. The Lean community expects mathematicians to work on explaining the proof’s new ideas. Watch for papers, talks or expositions from Alpöge or others.
- The generalized claim. Whether the Generalized Riemann Hypothesis, as SSBCrack News described the claim, is also formally certified, beyond Mathlib’s Riemann hypothesis statement.
- Anthropic’s response. No source carries an Anthropic statement on the certification, or details on which Claude model or setup was used.
- Peer review. Some readers are already asking for a peer-reviewed paper. How journals handle a result whose main evidence is a formal proof will be closely followed.
Frequently asked questions
Has the Claude-assisted Riemann hypothesis proof been verified?
The Lean and Mathlib communities, endorsed by the Lean FRO and the Mathlib Initiative, say they have full confidence the proof is correct and certify both the statement and the proof. Scientific American reports mathematicians are now almost certain it is real.
How long is the Lean proof of the Riemann hypothesis?
According to the Lean community, Levent Alpöge released the proof as a Lean library of 17 million lines of code that depends directly only on Mathlib.
Does the proof cover the Generalized Riemann Hypothesis?
Sources differ. SSBCrack News described the claim as a proof of the Generalized Riemann Hypothesis. The Lean community's certification says the library proves exactly Mathlib's statement of the Riemann Hypothesis.
How did checkers rule out a bug in Lean itself?
The Lean community says the exported proof was checked by Lean's kernel and by other checkers, including con-leche and con-ron, which come with a formal proof, relative to set theory, that they cannot accept a false proof.
Do mathematicians understand the proof yet?
Not fully, based on the sources. The Lean community says it looks forward to work across the mathematical community that will help explain the new ideas in the proof.