🧮Riemann Hypothesis Proof Hits 17 Million Lines of Lean Code
Math proofs just became unreadable by design
TL;DR
A recent Riemann hypothesis proof in Lean runs 17 million lines, longer than any human could read. AI agents also produced a full Fermat's Last Theorem proof on GitHub, about 450 times longer than the human-written portion. Formal verification is now a machine-scale problem, and tooling needs to catch up.
The Riemann hypothesis proof in Lean is 17 million lines long. Nobody is going to read it end to end, and that's kind of the point: the machine checks it, not your eyeballs. If you write Lean, or care about formal verification at all, this is your signal. The Lean ecosystem is growing fast. Reservoir indexes 938 Lean packages with code on GitHub, and Mathlib maintains the core library behind most of them. But only 259 of Mathlib's 1,000-plus famous proofs have Lean code attached yet. The gap between what humans have formalized and what AI can churn out is widening. The numbers are wild. One AI-assisted package sits above 16 million lines. Another work-in-progress project is at 88 million lines. A project linking the LMFDB database to Mathlib generates 98% of its Lean code with scripts, leaving a hand-written core of about 500,000 lines. Meanwhile a complete Fermat's Last Theorem proof appeared on GitHub in September, with AI agents building on human-written open-source Lean. The AI version is roughly 450 times longer than the human-written 60,000-line portion, which is still in progress.
Key Points
Reservoir indexes 938 Lean packages that have Lean code on GitHub, giving a rough census of how much formal math is being built in the open today.
Keep reading — it's free
Enter your email to keep reading — plus the best of AI & tech, daily. Free, forever.
Already a member? Sign in
Comments
Be the first to comment