Claude's 17-Million-Line Lean Proof of Riemann Hypothesis Passes Machine Check. Mathematicians Want More
Did Claude Prove the Riemann Hypothesis? 17 Million Lines of Lean Code, Community Verification, and Mathematics' Reserve
TUARAN · Frontend and AI Agent Engineer · Technical Author · 2aran.com →
1. What Happened
On November 20, 2026, Anthropic mathematician Levent Alpöge published a four-page statement on his personal website claiming that he and Claude had found a proof of the Riemann Hypothesis, and had extended the method to the generalized Riemann Hypothesis. That same day, the "Riemann Bicentennial Academic Symposium" opened in Shenzhen.
No traditional paper was released; instead, about 17 million lines of Lean formalization code were published in 14 compressed volumes. The next day, the Lean and Mathlib community issued a joint statement confirming that the formalized statements and proofs in the code were correct.
The conclusion: machine verification has passed, but general acceptance by the mathematical community has not yet begun. Between these two stages lie a human-readable paper that has not been written, a formal publication, and the at least two-year verification period required by the Clay Mathematics Institute (CMI).
2. What Is the Riemann Hypothesis and Why Has It Confounded Mathematics for 167 Years?
The Riemann Hypothesis was posed by the German mathematician Bernhard Riemann in 1859 in "On the Number of Primes Less Than a Given Magnitude." Primes (natural numbers greater than 1 that are divisible only by 1 and themselves, e.g., 2, 3, 5, 7) appear scattered, and Riemann discovered that their distribution is closely tied to the zero locations of a complex function, the Riemann zeta function.
The hypothesis states that all nontrivial zeros of the zeta function have real part equal to 1/2, i.e., they all lie on a vertical line in the complex plane (the critical line). If true, the error between prime counting and the actual number of primes can be precisely controlled.
Its importance can be measured by three numbers: 167 years without a proof; it is one of the seven Millennium Prize Problems with a $1 million reward from CMI; and a large number of mathematical statements are conditional on "assuming the Riemann Hypothesis." The generalized Riemann Hypothesis extends the same assertion to a family of functions such as Dirichlet L-functions.
Numerically, mathematicians have previously checked many zeros. But checking any finite number of zeros cannot cover an infinite set; that is the gap formal proof must cross. MIT's verification record notes that past computation only verified zeros one by one, while this Lean check verifies logical inferences that cover infinitely many zeros.
There is also an article on this site that breaks down the Millennium Problems: Millennium Problems in Plain Language. That piece, written in August 2026, noted that only the Poincaré Conjecture had been solved among the seven.
3. What Was Released: A 4-Page Statement and 17 Million Lines of Code
Alpöge published a 4-page explanation plus 14 compressed volumes of Lean code. Key numbers:
| Item | Number | Explanation |
|---|---|---|
| Lines of code | Approximately 17 million (some reports say 17.4 million) | Lean 4 formalization code |
| Modules | 175,187 | All compile |
| Declarations | 818,755 theorem/lemma statements | Code has no comments |
| Exported files | Approximately 61.6 GB | For independent kernel rechecking |
| Dependency axioms | 3 | propext, Classical.choice, Quot.sound |
| Human-readable manuscript | Over 250,000 pages | Not released |
Why is the written manuscript so long? Artan Sheshmani, a researcher at the Beijing Yanqi Lake Applied Mathematics Institute, gave an example: the manuscript's beginning explains in detail that "a real number that is not equal to 1/2 must be greater or less than 1/2," a step a mathematician sees at a glance. Many reasoning steps do not mean the core mathematical idea is equally complex.
Methodologically, Alpöge's statement gives a rough outline: a Stepanov method from the Riemann Hypothesis over function fields, using a sequence of theta lifts (a mathematical transformation) on the integers to simulate "multiplicity," with chain length about sqrt(X). This length was suggested by Claude. Other ingredients include Gan-Gross-Prasad periods, relative trace formula, Iwasawa towers, Bost slope inequality, and a weakened version of the Vandiver conjecture.
4. Timeline: Six Weeks to Start, One Day to Verify
- October 6, 2026: Start of the timeline organized by Claude, with a Stepanov-type determinant. In the same month, OpenAI released 722 AI-generated mathematical manuscripts on GitHub involving 372 result groups, about 45% with Lean code, 3 of which were later retracted due to symbol errors.
- November 12: Imperial College mathematician Kevin Buzzard posted a blog asking four questions that AI-generated Lean proofs must answer to be credible: Were the statements written correctly? Does the code compile? Were definitions or axioms surreptitiously changed? Is the Lean kernel itself reliable?
- November 15: According to Alpöge's timeline, most of the proof was assembled.
- November 16: The final timeline entry, only three letters: "GRH".
- November 20: Four-page statement and ~17 million lines of code released.
- November 21: Lean FRO and Mathlib Initiative issued a joint statement, checking against the four questions above and certifying the statements and proofs as correct.
5. How the Community Verified Within a Day
(The article includes a diagram; text follows.)
Verification followed two tracks: checking the statement and checking the proof.
Checking the statement. Lean only checks inference; a wrongly stated problem can still compile. The community wrote a separate file that imports only Mathlib, restates the Riemann Hypothesis verbatim, and used two independent tools, comparator and con-leche, to compare. Both confirmed that the proven statement matches the RiemannHypothesis definition already in Mathlib.
Checking the proof. MIT mathematician Andrew Sutherland's verification page shows all 175,187 modules compiled with zero errors, and each was replayed through the kernel with zero rejections; the exported files rebuilt in a sandbox matched the published bytes exactly (61,570,595,788 bytes). These checks were run with Claude Code. The independent Rust kernel natoda accepted the full export, and con-leche accepted 1.468 million declarations. The five main theorems depend only on three standard axioms, with no smuggled extra assumptions.
Scope boundaries also matter: what is verified is the Riemann Hypothesis itself and the generalized Riemann Hypothesis for Dirichlet L-functions; Dedekind zeta, Hecke L, and general automorphic L-functions are not in the scope. As of the Sutherland page update at 16:20 UTC on November 22, some internal kernel checks and the lake comparator stage on the main export still showed as running.
6. What Claude Specifically Did
Alpöge wrote that he set the research direction, and near the end Claude went further than he did: "Claude far exceeded me near the finish line. No, Claude is flying, dancing, shining near the finish line." He conceded that parts of the proof involve automorphic forms on high-rank groups, which he is not familiar with.
Two specific contributions are repeatedly mentioned: one, suggesting the length of the theta-lift chain (about sqrt(X)), a key choice in the proof; two, assembling the 20-step timeline from October 6 to November 16.
Sheshmani's assessment: Claude proposes ideas that surprise experts and explores their consequences; Lean checks the logic; the human mathematician decides what is worth studying and takes responsibility for public conclusions. He called the chain-length choice a creative contribution.
There is also an easily overlooked layer: Claude is present in the verification phase too. Sutherland's verification page states the checks were run with Claude Code; the independent kernel con-leche itself was written by Claude, previously introduced by Lean founder Leonardo de Moura, with Lean FRO's Joachim Breitner involved. con-leche carries a formal proof, so its correctness does not depend on who wrote the code.
7. What Mathematicians Say: A Milestone, and "Reading" Has Not Begun
| Mathematician | Status | Statement |
|---|---|---|
| Shing-Tung Yau | Fields Medal winner, Dean of Tsinghua's Qiuzhen College | Great contribution, shakes the world, mathematics has entered a new epoch; the machine's line-by-line verification standard exceeds the experimental verification of many major physics discoveries; it is a weak point of AI to propose major scientific questions; a few US companies control high-performance AI research compute, and some resources are restricted for Chinese scholars |
| James Maynard | 2022 Fields Medal, Oxford professor | 98 or 99 percent confident the proof is correct; "I believed it true yesterday, and I still believe it today"; in the race metaphor, AI ran the final stretch |
| Terence Tao | Fields Medal winner | Needs time to digest; the proof seems to use the full power of the Langlands program and modern arithmetic geometry; "there is at least one human author to communicate with" |
| Yu Deng | 2026 Fields Medal, University of Chicago professor | The number of pages doesn't matter; readability does; 250,000 pages cannot be readable; will not evaluate until the proof is simplified |
| Artan Sheshmani | Researcher at Beijing Yanqi Lake | A formally verified proof is a valid mathematical proof; hopes one day to explain the mathematics in these ~17.4 million lines on a blackboard |
| Xu Wenqiang | Tsinghua Yau Mathematical Sciences Center, Yanqi Lake | AI can integrate existing knowledge but currently cannot propose original ideas like Riemann's introduction of complex analysis; evaluation criteria will shift from overemphasis on "first proof" to pluralism |
Yau spelled out the change in research style more concretely: traditional mathematics proceeds step by step to a conclusion, while physics and chemistry often obtain results first and then trace back the mechanism; AI is pushing mathematics toward the latter mode. He also warned that understanding proofs, extending theory, and posing questions will become increasingly important.
Maynard's confidence has sources and limits. His judgment rests both on Lean's checking of logical steps and on his knowledge of Alpöge's previous work; beyond formal verification, several additional checks cannot be omitted. He noted that after AI enters mathematical research, there is no settled answer on how results should be published or how young scholars should be evaluated.
Tao had judged last month that the problem would be solved by around 2050 by human-AI collaboration; prediction platform Metaculus expected May 2035. Six weeks to a result is far ahead of both projections.
8. The Same Day, Another Proof Had Errors Found by AI Within 8 Hours
On November 20, Ravi Vakil, president of the American Mathematical Society and Stanford professor, posted on his personal blog a roughly 940-page manuscript of a proof of the generalized Riemann Hypothesis. The author is Alexander Masullo, a Stanford math PhD, who reportedly spent 12 years on it, entirely without AI.
About 8 hours after publication, Vakil updated the blog saying several people had used different AI models to find flaws in the proof and reported them to him.
The two manuscripts appeared on the same day: one human-machine collaborative and machine-verified; one purely human-written, with readers using AI to find errors. AI has entered both the production and verification ends of proofs. Yau's comment: many people research the Riemann Hypothesis; Maynard reminded that beyond formal verification, several extra checks cannot be ignored.
9. Is This Solved? Paper, Peer Review, and the $1 Million
The CMI's prize rules, revised in September 2018, require three conditions simultaneously: published in a qualified journal; at least two years have passed since publication; and general acceptance by the global mathematical community. CMI does not accept solutions submitted directly.
Current status: no paper, no submission, no peer review, and the 250,000-page manuscript is not public. Sheshmani said "a formally verified proof is a valid mathematical proof"; Yau said there is no need to over-question credibility. Yu Deng and Tao will evaluate after a readable version appears.
Beyond the prize, there is a more practical question. Knowing that a theorem is true lets you use the conclusion; understanding why it is true lets you use the same method to solve other problems. Maynard predicts that within a few years an AI-compressed, human-graspable complete version may appear.
For the general public, this result does not directly shake RSA encryption. A more precise tool for prime distribution does not provide a shortcut to factor large integers. One understandable corollary comes from Sutherland: combining this proof with Guy Robin's 1984 criterion formalizes and proves that for any integer n > 5040, the sum of all divisors of n is less than e^gamma * n * ln ln n. This inequality, whose statement a primary school student can read, had gone unproved until now.
10. Frequently Asked Questions
Did Claude really prove the Riemann Hypothesis?
Claude is a participant in a formally verified Lean proof that has been community-checked, and contributed key step suggestions. The result was released under the name of Anthropic mathematician Levent Alpöge, with no traditional paper. There is no basis to say Claude proved it independently.
What does 17 million lines of Lean code mean?
Lean is an interactive theorem prover that lets every step of reasoning be checked by a computer. This code writes the proof of the Riemann Hypothesis into 175,187 modules, and both compilation and kernel replay have zero errors. The code can be downloaded and rechecked at a cost of about 100 GB of memory and 70 GB of disk.
Does formal verification passing mean the Riemann Hypothesis is proven?
For the Lean community and multiple independent verifiers, the statements and proofs are correct. General acceptance by the mathematics community is a separate procedure, usually requiring paper publication and peer review. CMI's $1 million prize requires two years after publication.
Was the generalized Riemann Hypothesis also solved?
The statement says the method extends to the generalized Riemann Hypothesis; the five main theorems checked include the generalized Riemann Hypothesis for Dirichlet L-functions. Dedekind zeta, Hecke L, and general automorphic L-functions are not in scope, and the broader extended Riemann Hypothesis is not complete.
Can a human read this proof?
Currently not. The human-readable manuscript is over 250,000 pages and has not been released. Maynard expects a readable version may be produced within a few years; Yu Deng will not evaluate until then.
11. Sources and Ongoing Verification
Primary sources
- Alpöge's 4-page statement: alpo.ge/remark.pdf (2026-11-20).
- Joint statement by Lean FRO and Mathlib Initiative: leanprover-community.github.io/blog/posts/riemann-hypothesis/ (2026-11-21).
- Andrew Sutherland's verification page: math.mit.edu/~drew/grh/ (updated to 2026-11-22 16:20 UTC).
- Kevin Buzzard's blog (xenaproject, 2026-11-12): four questions for AI-generated Lean proofs.
- Ravi Vakil's blog (2026-11-20): 940-page human proof manuscript and its later correction.
Media reports
- Science and Technology Daily "Mathematical Research 'Enters a New Epoch'" (2026-11-22).
- Xinhua News client "The Riemann Hypothesis, which has puzzled mathematics for 167 years, has really been proven by AI?" (2026-11-22).
- China Youth Daily and China Youth Net (2026-11-23); China Economic Net (2026-11-23); China News Weekly (2026-11-22).
Data as of 2026-11-23. Line counts, module counts, and volume counts differ slightly across reports (17 million vs 17.4 million), and are reported according to the original statement and verification page.
Ongoing verification (items that would change conclusions)
- Whether Alpöge writes and submits a human-readable paper, and the journal submission and peer review results.
- The final result of the kernel checks still shown as running on Sutherland's verification page.
- Whether any mathematician points out a deviation between the formalized statement and the natural-language statement.
- Whether CMI considers this result for the Millennium Prize review process (currently it has not).