The Jerusalem PostPalestinian Authority police officer arrested on terror suspicions during overnight Nablus op.InquirerComplaint filed, probe into stalled Naga City Convention Center pushedBollywood HungamaMinistry of Information and Broadcasting reminds Netflix of 2025 advisory on Pakistani content ahead of Jo Bachay Hain Sang Samait Lo premiereRadio TimesWill Siegfried and Mrs Hall get together in All Creatures Great and Small Christmas special?Capital FMActing Kisumu Assembly Speaker pledges to unite members20 MinutenDarf ich mir als Erwachsener noch etwas von den Eltern wünschen?Wirtualna PolskaBabisz uderza w polską obronę. "W Izraelu zestrzeliwują je bez problemu"Il Fatto QuotidianoUcraina, è ora di ribellarsi! Il rifiuto dell’Ue di trattare con la Russia ci mette in pericoloNOSVlaggen halfstok en rouwbloemen in Houten na doodsteken moeder (34)ESPNHow did things get so bad for Aaron Rodgers and Mike McCarthy, and what's next?7sur7L’État peut réclamer à un étranger expulsé des frais de rapatriement mais pas de détentionESPN Deportes¿Chivas es el máximo favorito al título tras ser superlíder?
The Daily Newsstand · Free, Always
Thursday, November 26, 2026

Claude-Assisted Formal Proof of the Riemann Hypothesis Cut to About 76,000 Lines and Independently Verified

Translate

The original formal proof, developed by Levent Alpöge with the generative AI Claude, spanned about 17 million lines. It was written in Lean, which lets computers check mathematical proofs, and comprised 175,187 modules.

On November 25, Anthropic's Luke Sernau released two shorter formal proofs developed with his colleagues and Claude. The compact edition has about 76,000 lines of code, while the readability-focused edition has about 300,000.

How lines are counted matters. According to counts by the independent riemann-rev project, the original had 17,374,215 lines including comments and blank lines. The readability-focused edition had 477,124, and the compact edition had 112,827. By total line count, the compact edition is about 99.35% shorter than the original.

Claude's formal proof of the Riemann hypothesis andthe generalized Riemann hypothesis

EditionTotal linesLines of code
Compact edition has about 99.35% fewer lines than the original, including blanks and comments
Original edition17,374,215 lines—
Readability-focused edition477,124 linesAbout 300,000 lines
Compact edition112,827 linesAbout 76,000 lines

※— indicates unavailable data.

According to the team that released the editions, Claude wrote the Lean code and accompanying documentation. The rewrite follows the original proof's overall strategy but uses different proofs at many intermediate steps. It reorganizes the code and changes parts of the mathematical argument itself.

Both editions prove the same five mathematical statements as the original. They include the Riemann hypothesis, which says that the nontrivial zeros of the Riemann zeta function, where the function's value is zero, have real part 1/2. They also include the generalized Riemann hypothesis for Dirichlet L-functions.

How the proofs were checked

The original has already passed multiple independent checks. The rewritten proofs were checked again for agreement of their mathematical statements and for logical validity.

MIT mathematician Andrew Sutherland published independent verification results for both editions. Using Lean 4.35.0 and the Mathlib mathematics library, he compiled all 803 modules of the readability-focused edition and 794 of the compact edition without errors. After comparing the statements, he confirmed that the five theorems depend only on three standard Lean axioms, or starting assumptions: propext, Classical.choice, and Quot.sound.

He then rechecked all modules in both editions with Lean's kernel, the core that checks proofs for logical validity. Both editions also passed a comprehensive set of checks using several verifiers, including Lean's own checker and independent implementations. The compact edition's results were reproduced on two machines.

University of Waterloo mathematician Michael Rubinstein also independently verified the compact edition. All 794 modules compiled and passed kernel rechecking, and the proof also passed checks using multiple verifiers.

Constraints in Waterloo's computing environment meant that Rubinstein ran the comprehensive checks with sandboxing disabled. MIT obtained matching results in an isolated environment. The checks assume that Mathlib's definitions faithfully represent the mathematical objects and that the verifiers operate correctly.

The achievement was rewriting the proof while preserving the statements it proves. Researchers outside the team reproduced the checks. Sutherland also used Claude Code in his verification work, so AI played a role in checking AI-generated output as well.

Code length and verification costs

On the same machine, Sutherland timed the process from building each edition through running checks with multiple verifiers. The compact edition took 2 hours, 11 minutes, and 19 seconds. The readability-focused edition took 4 hours, 9 minutes, and 59 seconds.

One verifier, lean4lean, showed an especially large difference. When it checked the exported proof data separately, the compact edition used 7 GB of memory, while the readability-focused edition reached 332 GB. In the latter, much of the verification time went into processing a single definition.

On a separate machine with 128 GB of memory, the comprehensive check of the readability-focused edition was stopped partway through. It completed on a machine with enough memory, and lean4lean accepted the proof.

The size of the proof data sent to the verifiers was about 4.49 billion bytes for the readability-focused edition and 5.17 billion for the compact edition, reversing their order by source line count. Lean's standard kernel also checked the proof data faster for the readability-focused edition.

Formal proof of the Riemann hypothesis: verification costs at MIT

Verification metricReadability-focused editionCompact edition
Both editions passed independent checks of five theorems on the same machine
Build and comprehensive check time4 hours9 minutes 59 seconds2 hours11 minutes 19 seconds
lean4lean memory use332GB7GB
Proof data(100 million bytes)About 44.9About 51.7
Standard Lean kernel check29 minutes 29 seconds33 minutes 5 seconds

Shorter code does not necessarily make verification easier. The comparison shows how the way a proof is written can substantially affect the computing resources needed to check it.

Toward a proof mathematicians can read

There has also been progress on the longstanding problem of reading the proof. The readability-focused edition comes with a guide to the order in which to read the code and a glossary.

According to the release notes, the new proof had passed machine checks at publication. Mathematicians had yet to read it closely in full, and no paper accompanied it.

Meanwhile, Rubinstein extracted the argument for the Riemann zeta function from the original formal proof and used Claude, Codex, and Gemini to draft an explanation in mathematical prose. The second draft runs to 265 pages.

The draft reduces the proof of a central inequality leading to the Riemann hypothesis to 13 assumptions and identifies the results it uses from the Lean proof. It does not include complete proofs of the assumptions, so the work is ongoing.

For the compact edition, riemann-rev used AI to produce 47 explanations. They cover 24 units that make up the argument and link to the corresponding Lean code. The project states that the materials have not been peer-reviewed by humans.

People read proofs to check whether they are correct and to understand why a particular idea can solve a hard problem.

The shorter formal proof leaves mathematicians with far less code to work through. If they can extract new mathematical ideas and use them on other problems, the proof will be valuable beyond its answer to a single hard question.

View the original on Joho no Todai →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.