The Riemann Hypothesis Lean Proof Just Shrank From 17 Million Lines to 76,000, and Kernel Checks Dropped From Days to Minutes
A repository posted to GitHub on November 25 under the account lsernau contains a much shorter Lean 4 proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions. The original, released by Anthropic mathematician Levent Alpöge on November 20, was about 17 million lines. The new repository has two editions of the same five theorems: a “readable” one of about 300,000 lines across 803 files, and a “compact” one of about 76,000 lines across 794 files. That is a 57x and a 224x reduction.
The README says the work is “based on Levent Alpöge’s, with Claude” and was produced “in collaboration with my colleagues at Anthropic, and Claude.” It is licensed Apache 2.0 with copyright assigned to Anthropic, PBC, and carries the notice “Research artifact. Not maintained and not accepting contributions.” Despite the headline on Hacker News, the repo does not sit under an Anthropic organisation account.
What the smaller proof changes in practice
The original proof was checkable but punishing. Andrew Sutherland at MIT, who has been running the verification with Claude Code, logged 175,187 modules compiling cleanly and a raw proof export of 61.6 GB. Lean’s default kernel needed 48 hours on a single thread and 82.6 GiB of memory to accept it. The paranoid kernel needed 72 hours and 98.8 GiB. The full lake comparator run, which also matches the theorem statement against Mathlib’s definition, took 122 hours.
On the shorter proof, Sutherland’s page records a sandboxed lake build of 32 minutes for the readable edition and 33 minutes for the compact one, a per-module kernel replay of about 12 minutes for each, and a default-kernel check of the exported theorems in 29 and 33 minutes. The exports are 4.5 GB and 5.2 GB. Those timings came from a different pipeline than the original run, so they are indicative, not a controlled comparison. The repo’s own instructions put a local build at one to two hours on 12 cores with 24 GB of memory.
The verification page reports that both editions depend only on the three standard axioms (propext, Classical.choice, Quot.sound). Independent kernels (nanoda, con-leche, con-ron) and both --compare modes accept all five theorems against the challenge statement. At the time of the last update, the lake comparator --paranoid runs and one lean4lean run on the readable edition were still going.
The caveat the README states itself
“The proof has passed machine checks only,” the repository says. “No mathematician has read it through, and no paper comes with it.” The original proof had the same property: Lean FRO and the Mathlib Initiative certified on November 21 that the statement matches Mathlib’s RiemannHypothesis and that the proof is valid, but that is a statement about correctness, not comprehension. Sutherland told Scientific American that “there is much work to be done to understand the mathematical details.”
That is now a more tractable job. 76,000 lines is still far beyond what a person reads in an afternoon, but it is the difference between a dataset and a codebase. The 17 million-line original was too large for any human review, and the compact edition is the first version that a small team of Lean specialists could plausibly audit module by module.
Hacker News commenters spent part of the thread on provenance. Some questioned whether a repo outside an Anthropic account counts as “from Anthropic”, and others noted Alpöge posted the original on his own website. Nothing in the repository settles that beyond the copyright line and the README’s wording.