Riemann Hypothesis Proof Code Reduced from Tens of Millions of Lines to 76,000

Anthropic used Claude to compress the formal Riemann Hypothesis proof from over ten million lines to 76,000, but human understanding still faces a gap.
The article reports an AI-assisted formal math proof milestone: Anthropic researchers used Claude to simplify Riemann Hypothesis-related Lean proof code from over ten million lines to a readable version of ~300,000 lines and a condensed version of ~76,000 lines—a reduction of over 99%. Still, 76,000 lines equate to over a thousand PDF pages, which mathematicians cannot directly read, highlighting the gap between formal verification and natural-language understanding. AI excels at volume compression, while distilling insights and writing readable papers remains human work. Since the simplification took only days, the creator optimistically expects a ~100-page readable proof within a year, with mathematicians already joining a community effort.
From Tens of Millions of Lines to 76,000: A Code Slimming Movement
If you follow the intersection of the mathematics world and the AI community, you've surely seen one number everywhere lately—ten million lines. That's the size of the Riemann Hypothesis-related proof code produced by Levent (as mentioned in the original text). What does ten million lines of code mean? Even at a conversion rate of 40 to 60 lines of Lean code per page of PDF, this volume is enough to build a daunting wall of literature.
The good news is that this number is shrinking at an astonishing rate. According to Bilibili creator "Yuzi" in a video, researchers at Anthropic, with the help of Claude, have already greatly simplified this proof, producing two new versions: a readable version of about 300,000 lines, and a condensed version of about 76,000 lines. From ten million to 76,000—a reduction of over 99%.

This is a milestone worth marking. It means that machine-assisted formal proofs have, for the first time, taken a substantive step from "an unreadable behemoth" toward "a project that humans might actually digest." Although 76,000 lines is still enormous, the sheer change in quantity is itself paving the way for qualitative change.
Lean is an interactive theorem prover based on dependent type theory, and also a companion programming language. Its core idea is "propositions as types, proofs as programs" (the Curry-Howard isomorphism): a mathematical proposition is encoded as a type, and a proof of that proposition is a term of that type. Lean's compiler mechanically verifies every step of a proof line by line, just as it checks program types. As long as it passes the check, the proof is logically rigorous—no need for human line-by-line review.
Lean was initiated by Leonardo de Moura at Microsoft Research in 2013 and is currently maintained by the Lean FRO (Lean Focused Research Organization). Its mathematical library Mathlib has become one of the largest formalized mathematics libraries in the world, with hundreds of community contributors. Typical uses of Lean include formalizing classical theorems (such as partial progress on Fermat's Last Theorem and the sphere packing problem) and verifying the correctness of complex algorithms.
Precisely because Lean code is meant for machines rather than humans, it tends to be extremely verbose: a lemma that takes one sentence in natural language may require explicitly unfolding all intermediate steps, type conversions, and preconditions in Lean. This explains why a formal proof can balloon to the scale of tens of millions of lines.
Why Is 76,000 Lines Still "Too Long"?
Let's do a simple conversion. According to the estimation method in the video, 300,000 lines of Lean code translate to roughly five to six thousand pages of PDF, and 76,000 lines correspond to over a thousand pages. Even the condensed version is still over a thousand pages long. For any mathematician, reading and verifying such a formal proof page by page is unrealistic.
So the current situation is somewhat delicate: AI has helped humans move the proof from "completely untouchable" to "difficult but still imaginable." It solves the engineering volume problem, not the comprehensibility problem. What humans can ultimately understand is a paper written in natural language, not tens of thousands of lines of formal code.

This also explains why the creator repeatedly emphasized in the video that "humans still can't understand it." The 76,000 lines are an intermediate state—scaffolding toward the final readable proof, not the destination.
Formal proofs are fundamentally different from the natural-language proofs mathematicians write every day. Natural-language proofs rely on the reader's mathematical intuition and background knowledge and can reasonably omit steps like "obviously," "similarly," and "without loss of generality"; readers automatically fill in these gaps when understanding. Formal proofs allow no such gaps—every step of reasoning must be decomposed into applications of basic rules that the proof assistant can mechanically verify, including type checking, term reduction, and induction unfolding.
This rigor has two consequences: first, extremely high reliability—if a proof passes verification, there are no hidden gaps; second, extremely low readability—the code is filled with large amounts of "bookkeeping" steps that contribute nothing to human understanding. Formal proofs are typically two to three orders of magnitude longer than natural-language proofs of the same theorem.
Therefore, "transcribing a formal proof into a human-readable paper" is not a simple translation task but a substantive mathematical reconstruction: it requires distilling the true proof ideas, identifying key lemmas, and rebuilding the narrative logic. This process still relies heavily on the judgment of human mathematicians, and it is a concrete manifestation of the gap between formal verification and human understanding.
The Optimism Brought by AI's Compression Speed
What's truly exciting is the speed of simplification. The video mentions that Anthropic researchers reached this point in just a few days. If a few days of AI assistance can cut over 99% of the redundancy, the remaining room for compression is equally worth anticipating.
The creator offered a rather optimistic judgment in the video: many originally estimated that turning this proof into a human-readable natural-language paper might take two or three years; but with AI, he personally believes a human-readable proof version could emerge within a year. He even hopes that eventually a paper of one or two hundred pages—or even under a hundred pages—could be produced.

The underlying logic of this judgment is not complicated: the code has already been greatly simplified, and the barrier for human mathematicians to read, reconstruct, and transcribe it into natural language on this basis is significantly lowered. AI handles volume compression, humans handle distilling insights—the division of labor between the two is becoming clear.
Mathematicians Have Already Springed into Action
The video reveals that many mathematicians have begun participating in this project, with the goal of producing a genuinely readable paper. This is no longer just the solo work of Levent or Extropic researchers—it is evolving into a community collaboration project.

From the initial proof generation, to AI-assisted simplification, to human mathematicians taking over and transcribing it into natural language, every link in this chain brings together the wisdom of different groups. The creator's reflection at the end of the video is apt: whether it's Levent initially, the Extropic researchers, or the mathematicians who later joined the organization effort, they are all part of this great undertaking.
The Gap Between Formal Proofs and Human Understanding
The reason this has sparked widespread discussion is essentially that it touches on a deeper question: there is a gap between formal verification and human understanding that needs to be bridged.
Proof assistants like Lean can ensure that every step of a proof is strictly correct, but correct code does not equal an understandable argument. The value of mathematics lies not only in "it is true" but also in "why it is true"—the latter requires natural-language narration, intuitive guidance, and a thread of thought. AI is currently good at the former, while the latter remains the territory of human mathematicians.
This recent simplification progress provides an optimistic signal: AI can take on the heavy engineering work of compression, freeing mathematicians from the swamp of tens of millions of lines of code so they can focus on the parts that truly require human judgment. If a readable proof of around a hundred pages really emerges within a year, it will be a landmark case of AI-assisted mathematical research.
At least for now, the direction is clear, the speed is astonishing, and the rest is up to time.
One-line Summary
Anthropic used Claude to compress the formal Riemann Hypothesis proof from tens of millions of lines to 76,000, but human understanding still faces a gap.
Paragraph Summary
The article reports a development in AI-assisted formal mathematical proofs: Anthropic researchers, using Claude, simplified the Lean proof code related to the Riemann Hypothesis from over ten million lines to a readable version of about 300,000 lines and a condensed version of about 76,000 lines—a reduction of over 99%. Nevertheless, 76,000 lines of code still correspond to over a thousand pages of PDF, which human mathematicians cannot directly read, highlighting the gap between formal verification and natural-language understanding. The article notes that AI excels at engineering-level volume compression, while distilling mathematical insights and transcribing them into readable papers remains human territory. Because the simplification took only a few days, the creator optimistically predicts that a readable proof of around a hundred pages could emerge within a year, and mathematicians have already begun participating in community collaboration.
Related articles

AI Joins Forces with Mathematicians to Crack the Riemann Hypothesis? A 167-Year-Old Puzzle Reaches a Critical Turning Point
Anthropic mathematician Levent Alpoge collaborated with Claude for about six weeks to produce an AI-assisted proof of the Riemann Hypothesis, verified by the Lean formalization community. This article analyzes the relationship between the Riemann zeta function and prime distribution, the significance of formal verification, and the mathematical community's excitement and anxiety over machine-generated proofs.

AI Proved the Riemann Hypothesis, Yet No One Understands It: The Gap Between Machine Verification and Human Understanding
An AI and a mathematician produced a 17-million-line Riemann Hypothesis proof that passes computer verification yet no one understands. This article explores the gap between machine verification and human understanding, and the division of knowledge work in the AI era.

Can AI Crack the Riemann Hypothesis? New Hope for the Million-Dollar Math Puzzle
The Riemann Hypothesis carries a million-dollar bounty. Can AI help crack this math puzzle? This article examines the conjecture's origins, the difference between verification and proof, and AI's real role and limits in mathematical research.