Yes, 17M lines of Lean is a lot micjm.com · 13 points · 8 comments · HN thread T...
HN Best 200 @best
Yes, 17M lines of Lean is a lot micjm.com · 13 points · 8 comments · HN thread
TL;DR The author checks whether the 17 million lines of Lean in a claimed proof of the Riemann hypothesis is unusually large by charting Lean proof lengths from two collections. Famous human-written theorems in Mathlib top out far below 17M lines, and among Reservoir packages only a few AI-assisted projects exceed 16M, so the author concludes 17M is indeed a lot.
- The Riemann hypothesis proof is reported at 17 million lines of Lean, which the author treats as the starting statistic to test.
- Mathlib's collection of famous theorems has over 1,000 entries, of which 259 have Lean associated; all are human-generated and far smaller than 17M lines.
- Reservoir indexes 938 published Lean packages with Lean code on GitHub; a few exceed 16M lines, including AI-built projects.
- The largest example, Qiuzhen-CFSG/CFSG at 88M lines, is an AI-built work in progress.
- anthropics/fermats-last-theorem is a complete AI-produced proof of Fermat's Last Theorem at about 27M lines, roughly 450 times the roughly 60k-line human FLT project led by Kevin Buzzard.
- The author notes that charts use a log x axis, which makes 17M look closer to 1M and 100k than it is.
Discussion The thread is a mix of comparisons and skepticism about AI-generated proofs. Commenters ask how line counts compare to Andrew Wiles' 129-page Fermat proof, debate whether verbosity matters if a proof is machine-checked, and joke about the scale. The mood is lightly humorous and somewhat skeptical, with one longer tangent about what AI means for mathematicians' jobs.
- Verbosity of AI proofs is a real weakness (some): Commenters argue that models compress information poorly and introduce duplicates, so the line count reflects a lack of elegance rather than difficulty. One suggests that hundreds of times more verbose output shows models still lack elegance.
- Machine-verified correctness may matter more than length (some): One commenter asks whether anyone truly cares about verbosity if LLMs edit proofs that are verifiably correct, admitting the answer is not clear.
- Line counts say little about proof difficulty (a few): A commenter asks whether raw line counts shed light on how impressive Wiles' proof was, noting it is only 129 pages, implying line counts alone give limited perspective.
- AI could extract structure to find new theory (a few): One commenter suggests using AI to find shared logic and remove redundancy in the 17M lines, possibly yielding new mathematical theories.
- Hire more mathematicians, not fewer (a few): A commenter argues that AI is a tool for experts, so the response should be hiring and educating more of them, criticizing the promise to replace mathematicians.