The Lean community confirms the Riemann Hypothesis proof made with Claude
In a joint statement of 21 November, endorsed by the Lean FRO and the Mathlib Initiative, the Lean and Mathlib communities certify that both the statement and the proof of the Riemann Hypothesis in Levent Alpöge's Lean library of 17 million lines are correct. The checking took about a day. The statement looks ahead to the work of explaining the new ideas in the proof.
On 20 November Levent Alpöge, a mathematician who works at Anthropic, released a note saying that he had, working with Claude, discovered a proof of the Riemann Hypothesis. He published the argument only as code for Lean, a program that accepts a proof only if every step follows from the ones before. That left a question open: how far can a proof be trusted when no person can read it and an AI model wrote much of it?
The Xena blog, which is written for mathematicians learning Lean, had set out the test a week earlier, on 12 November, in a post about AI-generated Lean code. It asks four questions. Does the statement in the Lean code match the theorem as mathematicians state it? Does the code compile? Does the code prove that statement, and not a different one? Does the code exploit a bug in Lean's official kernel, the small core that does the checking? The joint statement of the Lean and Mathlib communities says that all four criteria are satisfied.
On the first, the statement proved is the one already in Mathlib, Lean's mathematics library, which the communities say has been carefully vetted by experts in Lean and number theory. On the second, dozens of people have reported that the library compiles without errors, each reproducing the same raw export of the proof. On the third, the community added a file that isolates the statement and imports only Mathlib, and two independent tools confirmed that the theorem proved in Alpöge's library is exactly that statement.
On the fourth, the exported proof was run through several proof checkers, among them independent ones written by third parties in different programming languages. Two of them, con-leche and con-ron, come with a formal proof, relative to set theory, that they cannot accept a false proof, which the statement says addresses the worry that Lean's own logic might have a flaw the proof could exploit. The checks ran on an inert export of the proof, out of reach of any malicious code that might hide in the sources.
The statement points to a page by Andrew Sutherland of MIT, who ran the checks with Claude Code, for the detail. All 175,187 modules compile with zero errors. The five headline theorems depend only on the three standard axioms. A second build on a separate machine, in a sandbox with no network, produced an export identical byte for byte to the published one, a file of 61,570,595,788 bytes. An independent kernel written in Rust, nanoda, accepted the full export in 27 minutes 42 seconds on 80 threads, and con-leche accepted its 1,468,418 declarations in 3 minutes 15 seconds on 64 threads. When the page was last updated, at 03:50 UTC on 22 November, Lean's own kernel had replayed every module, and its single-threaded run over the full export was still in progress.
The page is exact about scope. Five theorems were checked: the Riemann Hypothesis in Mathlib's definition, the same written out in the library's own words, and three statements about Dirichlet L-functions, which is what the Generalized Riemann Hypothesis means here. Other families, such as Dedekind zeta functions and automorphic L-functions in general, are not among the statements checked. As a test that does not rest on Mathlib's definition of the zeta function, the proof was also combined with an independent formalization of two classical criteria, Robin's and Lagarias's, which yields two inequalities about sums of divisors that do not mention zeta at all.
Sutherland also says what a passing check means: the formal statements follow from the three standard axioms according to the kernels used, and that relies on those kernels and on Mathlib's definitions being what they are intended to be. The communities close by looking forward to the work in mathematics that will help explain the new ideas in the proof.
We have full confidence that Alpöge's proof of the Riemann Hypothesis is correct.
