Anthropic Shrinks the Riemann Proof From 17.4 Million Lean Lines to 76,000
Luke Sernau's rewrite with Claude passed six independent proof checkers within a day, and a 300,000-line edition is laid out for humans to read.

On 20 November, Levent Alpöge released a proof of the Riemann Hypothesis that ran to 17,374,215 lines of Lean across 175,187 files. Five days later, his Anthropic colleague Luke Sernau posted the same five theorems in about 76,000 lines. The gap matters more than any headline: at 17 million lines no human could read the argument, while at 76,000 a team of mathematicians can start.
Five Theorems, 228 Times Smaller
The new repository, grh-lean, holds two versions. The compact edition proves the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions in about 76,000 lines. A readable edition of about 300,000 lines comes with a guide, written for people rather than for the machine.
The README credits the proof to Alpöge's work with Claude and calls the repository a shorter version "produced in collaboration with my colleagues at Anthropic, and Claude." Like the original, it rests on only Lean's three standard axioms, and it builds in one to two hours on a 12-core machine with 24 GB of memory.
Sernau is a familiar name in AI circles: in 2023 he wrote the leaked Google memo "We Have No Moat, And Neither Does OpenAI", and he joined Anthropic in 2025. According to reports on his method, he first unrolled every definition into one long flat proof, which exposed shortcuts that file-by-file cleanup could not see, then folded it back into a structured project. Some parts needed new arguments, and material tied to Vandiver's conjecture turned out not to be needed at all.
A shorter proof is only worth something if it still checks. It took the community a day to find out.
Six Checkers in a Day
On 26 November, Michael Rubinstein of the University of Waterloo published his checks of the compact edition. All 794 modules compiled, and a kernel replay accepted every one. Comparator, the tool that confirms a proof matches the agreed statement of the problem, ran in its strictest mode for about five hours and reported that the five theorems prove exactly what the challenge file states.
Six kernels, the small core programs that do the final checking, accepted it: Lean's default and paranoid modes, nanoda, lean4lean, con-leche and con-ron. Rubinstein notes his cluster could not run Comparator's sandbox; MIT's Andrew Sutherland reached the same verdict with the sandbox on.
The repository is candid about what this does and does not settle.
“The proof has passed machine checks only.”— grh-lean README
No mathematician has read it through yet, and no paper accompanies it. The Clay Mathematics Institute, which offers $1 million for a proof, requires publication and two years of general acceptance, and still lists the problem as open. Which raises an obvious question about the version that went viral the next day.
The "One Line" Version Is a Joke, and a Useful One
Hours after the compact edition appeared, 16-year-old Cinna Davis posted a claim to have reduced the proof "to ONE LINE OF LEAN", drawing more than 668,000 views. The accompanying repository explains the trick: the whole 76,000-line edition is stored as text inside a single line 7,279,198 characters wide, which rebuilds the original files when run. Davis later wrote that "some people still won't get the joke here", and the same README credits the rewrite to "Luke Sernau and colleagues at Anthropic with Claude."
The joke lands because the real number is the story. Alpöge has said he does not fully understand parts of his own 17.4-million-line original, and number theorists such as Kevin Buzzard have said nobody yet knows why the theorem is true. A proof that fits in 76,000 lines, with a 300,000-line guided edition beside it, turns that question into a reading project a team can divide up.
The next step is the one machines cannot take: mathematicians reading the argument and writing it up. They now have a version short enough to read.
17.4M Lines to 76K in Five Days
The Brief
Stay curious
AI and technology: what changes and why it matters.
Your daily selection, in English or Spanish.
Free forever. Unsubscribe anytime.
More stories

The Specialty News





Conversation
Start the conversation