· Reported 11:05 p.m. Pacific time, November 25, 2026; updated November 25, 11:30 p.m.
A 76,000-line Lean proof of the Riemann hypothesis: what changed and what is checked
Five days after Levent Alpöge released a 17-million-line Lean proof of the Riemann hypothesis, a much shorter rewrite appeared on GitHub on November 25, 2026: a compact edition of about 76,000 lines of code and a readable edition of about 300,000, both proving the same five theorems. Its README says it was produced with colleagues at Anthropic and with Claude. Andrew Sutherland of MIT reports that independent Lean checkers accept both editions. The proof is machine-checked by independent kernels, per Sutherland, and not yet read or refereed by mathematicians.
What happened
- What was posted. The repository github.com/lsernau/grh-lean went up at 12:42 p.m. Pacific time on November 25, with one commit (72fead10) by Luke Sernau. Its README calls it a shorter version of Alpöge's proof, "produced in collaboration with my colleagues at Anthropic, and Claude", and the copyright line names Anthropic, PBC. Each edition's own README says the Lean text and its documents were written by Claude. It is marked as a research artifact that is not maintained and not accepting contributions.
- Two sizes. The readable edition (folder grh/) is about 300,000 lines of code and starts with a reading guide, GUIDE.md. The compact edition (grh-compact/) is about 76,000 lines of code, and its README says its proofs "are written to be short, not to be easy to read". Counting comments and blank lines, the compact edition is about 113,000 lines. Against the roughly 17 million lines of Alpöge's original, that is more than 200 times smaller, though the two counts were not made the same way. Both editions follow Alpöge's method; the READMEs say many steps are proved by other arguments and that background parts were ported from the original and rewritten.
- The same theorems. Both editions prove five statements: Mathlib's own RiemannHypothesis, the same fact spelled out for the zeta function's zeros, and three statements about Dirichlet L-functions, which is the generalized Riemann hypothesis for that family. They use only the three axioms that ordinary Lean mathematics assumes (propext, Classical.choice and Quot.sound). Sutherland's page says the statement file is byte for byte the same in the two editions, and that its four definitions are textually identical to those in the original proof's statement file. So the shortening changed the proof, not what it claims to prove.
- Who checked it, and how. Sutherland ran the checks with Claude Code and posted them on a separate MIT page for the shorter proof. As of 6:50 p.m. Pacific time on November 25 it reports, for both editions: a sandboxed build with no errors; "Every module of both editions has been replayed through the Lean kernel"; the separately written checkers nanoda, con-leche and con-ron accept exports of the five theorems; and the comparison tool lake comparator, run in its strictest --paranoid mode with every external checker that ships with Lean, reports "Your solution is okay!" for both. For the compact edition that strict run passed on two separate machines. For the readable edition it passed on a large cloud machine; on the big machine one checker, lean4lean, peaked at 332 GB and spent over two hours on a single definition, so Sutherland stopped a second run on a 128 GB machine as a precaution, and that run has no verdict.
- A reaction from Lean's creator. Leonardo de Moura, who created Lean and is chief architect of the Lean FRO, wrote on LinkedIn on November 25 that the 76,000 lines are a 200-fold reduction from the 17-million-line proof, and that he had checked it with con-leche, a checker that has itself been proved correct in Lean.
- Why shrinking is safe to try. A kernel check is what makes this kind of rewrite possible. Anyone can change a Lean proof, cut a lemma or swap in a shorter argument, and the kernel either accepts the new version of the same statement or rejects it. A rewrite cannot quietly lose correctness, because the theorem it ends with is checked again from scratch. That is why a proof nobody understands can still be edited and compressed by people and machines that do not yet understand it.
- Why size matters to readers. A human cannot start reading 17 million lines. A readable edition with a guide, a file of contents and a list of references is something a number theorist can open.
- How fast it got easier to check. On November 20 the Lean community expected a build of the original to take 7 to 10 hours on a 48-core server with 503 GB of memory. The community then began merging and trimming it: an unofficial dashboard, rh-shrink.github.io, which counts the lines of the community repository at every commit, shows it going from 175,187 files and about 14.6 million lines of code to about 59,000 files and 11 million lines by November 25, over a couple of hundred merged changes. A build profile posted in the repository on November 24 put a from-scratch build at about 57 CPU-hours, down from about 103 two days earlier. Sebastian Ullrich of the Lean FRO wrote on LinkedIn that this version now compiles in about 35 minutes on a single large, off-the-shelf AWS machine with 192 cores, and credited community members including Kim Morrison. The 76,000-line rewrite is a separate step: its README says a build takes one to two hours on 12 cores with 24 GB of memory, which is within reach of a well-equipped home computer, and Sutherland's sandboxed build of the compact edition took about 33 minutes on a 16-core machine with 128 GB.
- What a machine check does not settle. The kernel confirms that the Lean code proves the statements as written. It does not say that the argument is understood, and it is not peer review. The README is direct: "No mathematician has read it through, and no paper comes with it." The human question left on the Lean side is statement alignment: do the 16 lines of Statements.lean, and Mathlib's definitions of the zeta function, Dirichlet characters and their L-functions, say exactly what mathematicians mean? The repository's advice is to read that file, the five statements in Main.lean and the axiom list, and to build or replay the rest.
- The community copy follows. The Lean community's cleanup project, leanprover-community/riemann-hypothesis, was set up on November 20 to tidy Alpöge's original. On November 25 its README says it moved to a "highly condensed version", a copy of the readable edition at the same commit, keeping its earlier work on a separate branch. I found no other shortened proof on GitHub from November 21 to 25 with independent checks posted.
- Status, in exact words. Riemann hypothesis and GRH for Dirichlet L-functions, shorter Lean proof: machine-checked by independent kernels (per Sutherland), not yet read or refereed by mathematicians. The Clay Mathematics Institute lists the problem as unsolved; its rules require publication, two years and general acceptance.
What people said
“No mathematician has read it through, and no paper comes with it.”
“Every module of both editions has been replayed through the Lean kernel.”
Andrew Sutherland, MIT, verification page for the shorter proof, November 25, 2026
Did this make sense?
Was this helpful?
Get updates by email
Occasional email, only on the topics you pick. Confirm by email; unsubscribe anytime.