Analysis: 17-million-line Lean proof of Riemann hypothesis dwarfs typical formalizations
A blogger compared the newly reported 17-million-line Lean proof of the Riemann hypothesis against two public collections of Lean proofs: Mathlib's famous-theorems list and the Reservoir package index. Mathlib's 259 human-written famous proofs fall far short of 17 million lines, while only a handful of Reservoir entries, mostly AI-assisted or script-generated, come close to or exceed that size, including an Anthropic-built Fermat's Last Theorem proof at 27 million lines.
GoKawiil's interpretation of the reporting above, not reported fact.
The comparison suggests that proofs of this scale are now mainly produced with AI assistance or automated code generation rather than hand-written by mathematicians, which could change expectations about what 'a proof' looks like and how reviewable it is. It also hints that raw line counts may be a poor proxy for genuine mathematical complexity, since some large entries are mostly generated boilerplate rather than novel reasoning.
- The 17-million-line Riemann hypothesis proof vastly exceeds typical human-written Lean proofs in Mathlib's famous theorems collection.
- Only a few Reservoir-indexed Lean packages exceed 16 million lines, and most of these involve AI assistance or auto-generated code.
- Anthropic's AI-generated Fermat's Last Theorem proof, at 27 million lines, is about 450 times longer than the ongoing human-led version.
Source: micjm.com, 2026-11-23
Published there as: “Yes, 17M lines of Lean is a lot”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.