Lean FRO and Mathlib Initiative issue joint statement

The official X account of the theorem prover "Lean" (@leanprover) said on Nov. 21 (12:12 a.m. Nov. 22 Japan time) that the Lean FRO and the Mathlib Initiative had released a joint statement on the Lean verification of the Riemann Hypothesis. The statement concerns the proof of the Riemann Hypothesis that mathematician Levent Alpöge released on Nov. 20 as a Lean library of 17 million lines, and says, "We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct." In a document he released, Alpöge wrote that he found the proof "working with Claude."

The Lean FRO and Mathlib Initiative have released a joint statement on the Lean verification of the Riemann Hypothesis. On November 20, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines of code. Over the past day, the Lean and Mathlib communities worked together to verify it. The statement certifies the proof as correct and describes how it meets all necessary verification criteria. Congratulations to Levent on this achievement, and thank you to everyone in the community who contributed to the verification. Full statement: https://t.co/edxEbkodw7

Lean is a programming language for writing mathematical proofs in a form a computer can check step by step, and Mathlib is the mathematics library built on top of it. The Riemann Hypothesis is a classic problem in number theory that asks for the most precise possible count of prime numbers up to a given size, and Alpöge wrote that it has guided mathematicians for 150 years. The statement was published on Nov. 21 (10:55 p.m. Nov. 21 Japan time) in the name of the "Lean and Mathlib communities," and is endorsed by the Lean FRO and the Mathlib Initiative.

Statement says all four criteria are met

According to the statement, Alpöge's codebase depends directly only on Mathlib. The Lean and Mathlib communities worked on verification over roughly the day after its release, and said all four criteria for checking AI-generated Lean code that the Xena Project blog set out on Nov. 12 were satisfied.

The first is that the statement of the Riemann Hypothesis itself is correct. The statement explains that the proof targets the "RiemannHypothesis" definition in Mathlib, which has been carefully vetted by experts in Lean and number theory. The second is that the library compiles correctly; dozens of people reproduced the same exported proof file, with no errors or build failures.

The third is that the code proves the correct statement. The community added a separate file that imports only Mathlib and contains only the statement of the Riemann Hypothesis. It then compared it using two independent tools, "comparator" and the comparison mode of "con-leche," confirming that the theorem proved in Alpöge's library is exactly Mathlib's statement of the Riemann Hypothesis. This step checks that nothing hidden in the long codebase changes the meaning of the statement.

The fourth is that the Lean proof itself is valid. The exported proof was checked by Lean's official kernel (the core component that makes the final judgment on a proof), by "con-leche" and "con-ron," and by several checkers contributed by third parties and written in other programming languages. The statement explains that con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof, addressing concerns that flaws in Lean's logic itself could be exploited. The checks ran on an inert export file, out of reach of any malicious code that might be in the proof sources.

Checker says proof relies only on three standard axioms

The page by Andrew Sutherland of the Massachusetts Institute of Technology (MIT), which the statement links as an overview of the verification, states that the checks were run with Claude Code. According to that page, the five headline theorems depend only on Lean's three standard axioms, "propext," "Classical.choice" and "Quot.sound," and no axioms were declared outside Lean's core. The statement itself does not explicitly address additional axioms or the presence of "sorry," a placeholder that temporarily fills a gap in a proof.

As of 9:55 p.m. Nov. 21 Japan time, the page said all 175,187 modules compiled without errors, and the independently written kernels "nanoda" and "con-leche" accepted the full exported proof. Checks of the full export by Lean's default kernel and the more cautious "paranoid" kernel, and the end-to-end "lake comparator" run, were still in progress at that time. The unpacked proof export is about 61.6 billion bytes, and checking it yourself requires roughly 100 gigabytes of memory, according to the page.

Main checks and results on MIT's Sutherland's verification page (as of 9:55 p.m. Nov. 21 Japan time)
CheckResult
Compiling 175,187 modulesPass (zero errors)
Axioms used by the five theoremsPass (only the three standard ones)
Kernel replay of every module (leanchecker)Pass
nanoda (independent kernel) on the full exportAccepted
con-leche on the full exportAccepted
con-leche comparison mode on the five theoremsAccepted
Lean default and paranoid kernels on the full exportRunning
lake comparator (end to end)Running

The statement was published at 10:55 p.m. the same day (Japan time) and says the proof was also checked by Lean's official kernel. The "running" entries on the MIT page reflect its update an hour earlier.

Caveat: kernels and Mathlib's definitions are assumed

As a caveat, Sutherland wrote that a passing check shows that the formal statements, as written in Lean against Mathlib's definitions, follow from the three standard axioms according to the kernels used. It relies on those kernels and on Mathlib's definitions being what they are intended to be. The page also states that the build ran on cloud machines without a sandbox (an isolated execution environment), and that its authors have not themselves compared that export with one made in a sandbox.

The five verified theorems include, in addition to the Riemann Hypothesis, the Generalized Riemann Hypothesis (GRH) for Dirichlet L-functions. However, the page says GRH here means Dirichlet L-functions only, and that Dedekind zeta functions, Hecke L-functions and automorphic L-functions in general are not among the statements that were checked. Alpöge wrote in his document that the method extends to the Generalized Riemann Hypothesis, and that he expects, with more time, to reach the Extended Riemann Hypothesis too.

Alpöge says he found it "working with Claude"; no paper yet

In his document, Alpöge wrote that he believes he discovered a proof of the Riemann Hypothesis "working with Claude," and that he and Claude also formalized the arguments without assumptions. He wrote that near the finish Claude far outpaced him, and described one specific idea in the proof as Claude's suggestion.

The argument is currently very long, and no human-readable paper exists yet. Alpöge explained that he considered it inappropriate to post a massive unreadable document and decided to present only the Lean code. He said he intends to understand the argument and its simplifications and to write it up properly. The statement closes by saying it looks forward to the mathematical community's work to explain the new ideas in the proof.

Certification comes from Lean side, separate from Anthropic or peer review

The parties that certified the proof as correct are the Lean and Mathlib communities, together with the Lean FRO and the Mathlib Initiative, which endorsed the statement. The materials ORIENS checked include no announcement from Anthropic, the developer of Claude. ORIENS has also not confirmed any peer-reviewed paper or reactions from other institutions such as the Clay Mathematics Institute. Alpöge's affiliation is not stated in his document.

Procedures for checking AI-generated mathematics with Lean had been under discussion in November. On Nov. 12, the Xena Project blog argued that for AI-generated Lean code one must check whether the statement matches the original claim, whether the code compiles, whether it proves the correct statement and whether it exploits a kernel bug. According to the blog, about 45% of the 722 mathematics papers OpenAI released in October came with Lean code, and in about 38 of those the code did not even state the paper's main theorem. Anthropic announced in November that many Claude agents completed a formalization of Fermat's Last Theorem in 30 hours. Verification of the Navier-Stokes paper produced by OpenAI's AI was also still under way.

Developments around the Lean proof of the Riemann Hypothesis (times are Japan time)
  1. Xena Project blog sets out four criteria for checking AI-generated Lean codeThird party
  2. Alpöge releases the Riemann Hypothesis Lean library and documentInvolved party
  3. MIT's Sutherland updates the verification pageThird party
  4. Lean and Mathlib communities publish the statementOfficial
  5. Lean's official X account announces the joint statementOfficial