News · · Reported 11:05 p.m. Pacific time, November 25, 2026; updated November 27, 2:35 p.m.
A 76,000-line Lean proof of the Riemann hypothesis: what changed and what is checked
Update, November 27: a second independent machine check, by Michael Rubinstein of the University of Waterloo, also accepts the compact edition; posts calling it a check "at Waterloo and MIT" merged two separate checks (details below). 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. Status: machine-checked, not yet refereed; no mathematician has read it through.
The rewrite, step by step
- 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. Counted the same way, lines of code against lines of code, the original had about 14.6 million, so the compact edition has about 190 times fewer lines of code; counting all lines, about 17.4 million against 113,000, it is about 154 times shorter. (The original's counts are rh-shrink's text search; the rewrite's are its README's.) 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 kernel is the small core of Lean that has the final say, and replaying means it re-checks every step); the separately written checkers nanoda, con-leche and con-ron, programs written by other people that check a Lean proof again from scratch, 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.
- Update, November 26: Sutherland's page for the shorter proof, last updated at 12:46 p.m. Pacific time that day, says all of its checks have finished; the strictest run for the readable edition passed on his larger machine. The Lean community's repository switched on November 25 to the readable edition and had about 298,000 lines of code on November 26, and mathematicians opened a public Polymath project to write a readable proof (what happened next).
- Update, November 27: a second independent check, at Waterloo. Michael Rubinstein, a mathematician at the University of Waterloo, posted "An independent check of the short Lean proof of RH and GRH", last updated at 9:36 p.m. Pacific time on November 25 (05:36 UTC on November 26) and run with Claude Code on one Waterloo server. It checks the compact edition at commit 72fead10, with Mathlib from its official cache and Lean v4.35.0, and reports, item by item: the statement file imports only Mathlib and matches, apart from blank lines, the statements he checked for the original on November 20 and 21; a scan of the source found no added axiom, no sorry or native_decide, and no macro, syntax, notation or elab declarations, the commands that could change how a statement is read; all 794 modules compiled; the five main theorems depend only on propext, Classical.choice and Quot.sound; a replay of every module through Lean's kernel accepted all 794 and rejected none; and lake comparator --paranoid confirmed that the five theorems are the ones in the challenge file and had six checkers accept the export, Lean's own kernel and the five external checkers that ship with Lean 4.35 (leanchecker-paranoid, lean4lean, nanoda, con-leche and con-ron).
- One limit, stated on his page. Rubinstein ran the strict comparison with the flag --inadvisably-no-sandbox, because his cluster blocks the sandbox, "so this run does not have the sandbox guarantee against the project's own build code". Lean's own help text says that turning the sandbox off "can compromise the result fully and is only advised for expert users". The sandbox matters because building a Lean project runs the project's own code on the checker's machine, and code that is not fenced in could, in principle, tamper with the check. His scan found none of the commands such code would need, and his index page notes that Sutherland's sandboxed runs reached the same verdict.
- What the posts on X got wrong. Posts on November 27 said the proof had passed independent verification at Waterloo and MIT, with six kernels accepting it. The six-kernel count is Rubinstein's, from Waterloo; both his page and Sutherland's report 794 modules for the compact edition. MIT's part is a different check: Sutherland's page, which ran the strict comparison inside the sandbox and passed on two machines for the compact edition. So there are two independent checks at two universities, both run with Claude Code, reaching the same verdict, not one joint check. An automated summary on X also credited the proof with a certification from the Lean FRO and Mathlib Initiative on November 21. That certification is real but is about something else: a joint statement on the Lean community's blog, dated November 21, says "We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct", about Alpöge's original 17-million-line library, the only version that existed then. It does not mention this shorter proof.
- What a kernel check establishes, and what it does not. It establishes that the Lean code is a complete derivation of the five statements as written, from Lean's three standard axioms, with no gaps; when several checkers written by different people all accept, a bug in one checker is very unlikely to be the reason. The comparison tool adds that the theorems proved are exactly the ones in the short challenge file. It does not establish that the statement file and Mathlib's definitions of the zeta function and Dirichlet L-functions mean what number theorists mean, which people check by reading (they did, for the original); it does not explain why the argument works; and it is not peer review. Two more machine checks make the first point more certain and leave the other two where they were.
- Status, in exact words, November 27. Riemann hypothesis and GRH for Dirichlet L-functions, shorter Lean proof: machine-checked, not yet refereed. Independent checks by Sutherland at MIT and Rubinstein at Waterloo accept it; no mathematician has read it through. 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.