Riemann Hypothesis Proof Shrinks to 76,000 Lines
The 17-million-line Lean proof of the Riemann Hypothesis now has a version about 220 times shorter: 76,000 lines, posted by Anthropic’s Luke Sernau with colleagues and Claude, plus a 300,000-line edition written to be read. An independent check at the University of Waterloo passed every test on November 26. The authors’ own caveat stands: no mathematician has read the proof through, and no paper comes with it.
The machine-checked proof of the Riemann Hypothesis that Levent Alpöge released with Claude on November 20 was 175,187 files and about 17 million lines of Lean, far too much for any person to read. On November 25 a rewrite appeared that is roughly 220 times shorter. The repository lsernau/grh-lean, posted by Anthropic’s Luke Sernau, proves the same five theorems in about 76,000 lines of code. Its README calls it “a shorter version, produced in collaboration with my colleagues at Anthropic, and Claude,” and the project folders state plainly that the Lean text and the documents were written by Claude.
The rewrite comes in two editions, each its own Lean project. The compact edition is the 76,000-line one, in fewer than 800 files, and its own README warns that the proofs “are written to be short, not to be easy to read.” The readable edition runs to about 300,000 lines and opens with a reading guide that gives the order in which to read the files, a glossary and a map of the argument, from its reduction to a main inequality through theta lifts, a second-moment estimate and the Galois-representation congruences behind the lower bound. Both follow the method of Alpöge’s proof, but many steps are proved by different arguments, and the background material that was carried over was rewritten.
Same theorems, checked again
What the rewrite proves has not changed. The five theorems are the Riemann Hypothesis in Mathlib’s own wording, the statement that every non-trivial zero of the zeta function has real part one half, and three statements of the Generalized Riemann Hypothesis for Dirichlet L-functions, covering every modulus and every character. All five rest only on Lean’s three standard axioms. The repository says the compact edition compiles and replays through Lean’s kernel, that the readable edition was also accepted by the independent checkers nanoda, con-leche and con-ron, and that the Comparator tool, which tests the proofs against a separate file holding only the five statements, accepted both. A build needs Lean v4.35.0, a pinned Mathlib and one to two hours on a 12-core machine with 24 GB of memory.
Outside checks followed within hours. Michael Rubinstein of the University of Waterloo, who had audited the original 17-million-line release, ran the compact edition through the same treatment and posted the results on November 26: all 794 modules compiled, Lean’s kernel accepted every one on replay, and Comparator in its paranoid mode confirmed that the theorems prove exactly the five challenge statements, with all six kernels it runs accepting the proof. He also confirmed that the statements are identical to those of the original. One limitation is spelled out on the page: his cluster blocks the tool’s sandbox, so that run lacks the sandbox’s guarantee against the project’s own build code.
Readable is not yet read
The point of the exercise is length. When the proof first appeared, the objection from number theorists was not that the code might fail to compile but that nobody could follow it, and the certification by the Lean FRO and the Mathlib Initiative answered the first question without touching the second. A 300,000-line project with a guide is the first version of this proof that a determined specialist could plausibly work through. Nothing in the repository claims more than that. Its status section reads: “The proof has passed machine checks only. No mathematician has read it through, and no paper comes with it.” It is also marked as a research artifact that is not maintained and accepts no contributions.
The human-language account is still incomplete. On his page about the proof, Rubinstein keeps a working guide to the argument specialised to the zeta function, written with Claude, Codex and Gemini as a study aid. Its second version, dated November 22, runs to 265 pages and reduces the key inequality, and with it the Riemann Hypothesis, to thirteen numbered hypotheses stated in classical terms, none of which it proves outright. A week after the claim first surfaced, the formal side is now checked about as thoroughly as software allows and has been cut down to a size people can open. Whether mathematicians accept the proof will be settled on the other side, by someone reading it.
Want AI news before everyone else?
The morning's most important AI stories, straight to your inbox. No fluff.