One-line takeaway
A machine can tell you that a derivation from this statement has no gaps. It cannot tell you that this statement is the theorem you meant, and it cannot replace peers judging whether the proof matters.
One codebase, three separate questions
On November 21, 2026, a joint statement from Lean FRO and the Mathlib Initiative confirmed that Levent Alpöge's formal proof of the Riemann Hypothesis and its statement of the theorem are both correct: about 17 million lines of Lean, checked by the community within a day.
The conclusion sounds clean, but it answers three questions at different levels, each resting on a different kind of trust.
| Level | Question | What guarantees it |
|---|---|---|
| Statement | Is the proposition in the code the Riemann Hypothesis | Human checking plus community consensus |
| Derivation | Is every step from statement to conclusion valid | Mechanical checking by the Lean kernel |
| Dependencies | Are the lemmas and definitions used sound | Long-term Mathlib maintenance plus independent tools |
The statement names three specifics: the codebase depends only on Mathlib; teams checked the theorem definition, compilation results and proof logic; and the official Lean kernel was used alongside multiple independent verification tools for cross-checking. These map onto the three levels above.
The statement layer is the one most often skipped
Formal verification has a frequently misunderstood property: it guarantees "under this statement, the derivation holds." If the statement is wrong, or is a different proposition, rigor proves something irrelevant.
There is precedent. Formal-methods communities have seen cases where a proof established something that looked like the target theorem but had quietly strengthened conditions, discovered only when someone compared word by word. That is why "we confirm the statement of the Riemann Hypothesis" is worth as much as "the proof is correct."
It also explains why mathematicians reacted more cautiously than headlines: the press wrote "Riemann Hypothesis proved," while mathematicians first asked "did you prove the Riemann Hypothesis?"
The derivation layer: where machines are strong and weak
Lean encodes proofs as programs and checks each step's type. This does not depend on a reviewer's patience or intuition; in principle, given a trustworthy kernel and compilable code, the derivation has no gaps.
Its strength is eliminating ordinary errors: wrong symbols, missed boundary conditions, citations to lemmas that do not hold. These are common in human review and nearly impossible for a machine to miss.
Its weakness is that it does not understand intent. The machine does not judge elegance, whether the proof reveals new structure, or whether it generalizes. It can say "correct," not "good."
The dependency layer: the root of trust
Formal proofs do not rebuild mathematics from axioms. They stand on libraries like Mathlib, which contains tens of thousands of formalized definitions and lemmas. If one lemma in the library is wrong, proofs above it collapse.
Two things follow. First, why the statement emphasizes "depends only on Mathlib": the narrower the dependency set, the clearer the audit scope. Second, why verification uses multiple independent tools: a single tool's output can also fail, and cross-checking adds redundancy at the root.
The cost is that the chain's credibility bottoms out at its most basic layer. This is not unique to formal methods; any human proof that reuses prior results has the same structure.
What 17 million lines means
The number is often treated as the shock value, but its real meaning is on the engineering side: formalizing costs far more than writing the human equivalent.
The reason is simple. Human proofs can say "obviously" or "by symmetry." Formal proofs must expand those jumps into checkable steps. An argument of three lines on paper can become hundreds of lines in code.
Two consequences follow. First, formalization will remain a choice for a minority of projects and cannot cover everyday mathematics. Second, once written, its reuse value is high: intermediate lemmas enter Mathlib, later projects call them directly, and subsequent proofs get cheaper.
That 17 million lines were checked in a day shows the infrastructure's throughput is sufficient. It also shows that producing such a proof is nothing like "asking a model to write one."
Where AI actually sat
Alpöge's public account is that near the end of the proof, Claude's mathematical reasoning exceeded his expectations.
That is the most specific statement available. Beyond it, public materials do not describe the division of labor: which steps the model proposed, which the human filtered, how many attempts failed, what proportion the model contributed.
From what can be checked, the fair description is intensive collaboration: the model supplies candidate steps in a long derivation, the human judges and selects, and the final artifact goes to a machine for checking. That differs from "AI proved it independently," a distinction headlines often blur.
The difference matters: the former shows AI can carry real work in mathematical research; the latter would mean a change in the research paradigm itself. Public information supports only the former.
What this suggests for AI evaluation
The mechanism worth borrowing is that it decomposes credibility into checkable parts.
In fields that can be formalized, correctness is machine-verifiable, so "the model says it finished" and "the model actually finished" can be separated. In most fields — writing, diagnosis, legal advice, code architecture — correctness has no formal standard, so evaluation relies on human scoring or benchmarks, and benchmark credibility loops back to whether the evaluator is sound.
That is why some researchers argue for building trustworthy evaluation in verifiable domains first: not to prove models are strong, but to have a scale that does not depend on vendor self-report.
Three cautions
First, statement alignment. Any formal result must first establish that its statement is equivalent to the target proposition. This community did that check; many similar events skip it.
Second, credibility transfer. Once a machine says "correct," it is easy to conclude the academic dispute is settled. Acceptance also involves understanding, generalization and testing edge cases, none of which formal verification covers.
Third, tool dependence. Kernel, library and verifier versions and configurations affect conclusions. Reproducible verification requires publishing version information; otherwise "passed verification" is itself hard to re-check.
Boundaries
- The statement's timing and content, the verification method, code size, volume count and page conversion come from the Lean FRO and Mathlib Initiative statement and multiple reports;
- "Both the statement and the proof are correct" is the statement's wording, quoted here; it does not mean mathematicians broadly accept the proof;
- The three-dependency framing is this article's analysis, not an official taxonomy;
- Alpöge's remarks on Claude's contribution are his own; the division of labor is not public;
- This article does not judge the mathematical value of the proof or forecast its effect on number theory;
- It contains no tutorial for formal tools and no assessment of specific kernel implementations.
