How Lean checked a Riemann proof—and what the checks cannot explain
Separately written checkers accepted the AI-assisted proof, while mathematicians are still turning its formal argument into an explanation people can follow.
Ken Richardson · Source · CC BY-SA 4.0
A mathematical discovery can earn strong confidence before people have a satisfying explanation of why it works. On November 21, the Lean FRO and Mathlib Initiative certified both the statement and the proof of the Riemann hypothesis, following Levent Alpöge’s release the previous day. Their joint statement describes checks that let others scrutinize the result independently of its creators.
Alpöge developed the proof with Anthropic’s Claude. The original release ran to about 17 million lines of Lean, a programming language and proof assistant. Quanta’s reporting describes mathematicians accepting the formal verification while working to reconstruct an understandable mathematical argument.
The result concerns prime numbers: 2, 3, 5, 7 and their increasingly distant companions. Mathematicians know their average distribution; the Riemann hypothesis controls how far their distribution can stray from that average. Its formal statement concerns where a mathematical function called the zeta function equals zero. Those apparently abstract locations constrain the irregularities among primes, as the Clay Mathematics Institute explains.
How can anyone check an argument of such enormous size? Finding a route through mathematics and checking its individual steps are different jobs. Lean expresses an argument in precise terms that its checking engine, called a kernel, can inspect. Explaining why that route is illuminating is another job again. Lean’s validation manual makes a crucial distinction: a valid proof still needs to prove the intended statement.
A flawless answer to the wrong question would settle nothing. For this proof, the community isolated the Riemann hypothesis in a separate file drawing only on Mathlib, Lean’s mathematical library. Experts had vetted that library’s statement. Comparison tools then confirmed that Alpöge’s development proved exactly that statement. The certification therefore addresses meaning as well as successful compilation.
Next comes a less obvious question: what did the argument assume?
Andrew Sutherland’s recorded axiom audit supplies a compact example. An axiom is a starting assumption of a logical system. For each of the five headline theorems, the audit lists only three: propext, Classical.choice and Quot.sound, Lean’s standard foundations.
The useful finding is the absence of an extra assumption standing in for the desired conclusion. Lean has a facility for leaving proofs unfinished; the audit lists that facility among the things available in the wider environment. But none of the five headline results depends on it. Available shortcuts and shortcuts actually used are different things. The manual explains why inspecting a theorem’s dependencies catches gaps that a superficial glance can miss.
Then comes the checker itself. Software can contain bugs, so running the same program repeatedly is weaker evidence than agreement among separately implemented checkers. Sutherland’s verification record reports acceptance by Lean’s kernel and independently written checking engines, including nanoda and con-leche.
His record also documents a rebuild on a separate machine inside a restricted environment, with no network access and read-only source files. It produced an exported proof identical byte for byte to the published export. Checking that inert export keeps the logical examination outside the reach of code that might run while building the project. These are Sutherland’s recorded checks, conducted with Claude Code assistance; this article does not report a rerun.
Agreement still rests on foundations: the logic must be sound, the trusted definitions must express the intended mathematics, and the checking tools must work correctly. Lean’s documentation explicitly preserves those qualifications.
The original mountain of code has also shrunk. Luke Sernau, colleagues at Anthropic and Claude released shorter editions on November 25. Sutherland records successful checks of both, including a compact edition with roughly 76,000 nonblank, noncomment code lines. The checked generalization concerns Dirichlet L-functions, a particular family of mathematical functions—not every broader formulation called the generalized Riemann hypothesis.
Explanation is progressing, too. Michael Rubinstein’s 45-page study guide, written with AI assistance, develops parts of the shortened argument. Its description identifies three central theorems whose proofs are outlined rather than supplied there: those still rest on the formal development. A guide can explain connections without yet replacing the machine-readable proof.
Formal verification also has its own status, separate from publication and prizes. The shorter proof’s repository says it has passed machine checks only, that no mathematician has read it through, and that no paper accompanies it. Clay still labels the problem “Active”. Its prize rules require qualifying publication, at least two years afterward and general mathematical acceptance before consideration. A successful proof check does not perform those institutional steps—or supply the mathematical explanation people are now building.
Different checks answer different questions
Statement comparison connects the submitted theorem to a human-vetted statement using Mathlib’s definitions. The axiom audit identifies the assumptions actually used: the five headline results depend only on Lean’s three standard axioms. Separate checking engines accepted the exported proof. Those checks support confidence in formal validity, subject to the logic, trusted definitions and checking tools. They do not automatically produce a mathematical explanation people can follow.
Sources
- Lean verification of the Riemann Hypothesis
- Quanta Magazine: Transformation
- Clay Mathematics Institute: Riemann Hypothesis
- The Lean Language Reference: Validating a Lean Proof
- Sutherland’s recorded axiom audit
- Andrew Sutherland: Verification files for the Lean proof of the Riemann Hypothesis
- Sutherland: Verification files for the shorter Lean proof
- Michael Rubinstein: Alpöge/Claude proof of the Generalized Riemann Hypothesis
- Luke Sernau: GRH for Dirichlet L-functions, in Lean 4
- Rules for the Millennium Prize Problems
Discussion
Kind, curious discussion is welcome. Comments are checked before appearing. Requests to direct the newsroom are discarded.