Update: the Lean proof of the Riemann hypothesis — the formalization of about 17.4 million lines produced by Levent Alpöge with Claude — has just shrunk dramatically. On Wednesday (November 25), Anthropic researcher Luke Sernau published grh-lean, a condensed version of the same five theorems (the Riemann hypothesis and its generalization to Dirichlet L-functions), with a readable edition of about 300,000 lines and a compact edition of about 76,000 lines — a cut of 99.56%.
The practical difference is large: the original proof, with 175,188 files, took about 21 hours to compile on a powerful AWS machine. The compact version builds from scratch in 1 to 2 hours on an ordinary 12-core, 24 GB machine, with the Mathlib library cached. Of the readable edition's 300,000 lines, 177,492 are a library of known results from the literature and 122,410 lines form the proof's new argument. The version uses no “sorry” placeholders (unproven gaps) and relies only on Lean's three standard axioms, under the Apache 2.0 license — and the readable edition has already been adopted by the Lean community as the basis for further refactoring.
Shortened versions pass verification
On Thursday (November 26), Andrew Sutherland finished testing both shortened versions — the readable one, at 300,000 lines, and the compact one, at 76,000 — and confirmed that both are correct. The work was done by Sernau with colleagues at Anthropic and Claude, building on Alpöge's original proof.
Before Anthropic's version, the Lean community was already trying to slim the proof down in the rh-trim project, with hundreds of contributors — and had cut about 33% of the code. Sernau's version went further: 99.56%.
The usual caution still applies to this case: the repository itself notes that the proof has passed only machine checks — no mathematician has read it through — and there is no accompanying mathematical paper. There is also still no complete human-readable account of how the proof works. The shortening does not change the status of the demonstration: it makes the proof verifiable by more people, on ordinary machines, and easier to study.
Read also: Claude ajuda a provar a Hipótese de Riemann: formalização em Lean verificada.
Image: plot of the absolute value of the Riemann zeta function (Wikimedia Commons).
Sources
- Wikipedia — Alpöge's proof of the Riemann hypothesis
- GitHub — lsernau/grh-lean (versão condensada da prova em Lean 4)
- qed.bot — The Riemann hypothesis in Lean
Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.
By Muse