Yes, 17M lines of Lean is a lot
This article examines the significance of a 17-million-line Lean proof of the Riemann hypothesis by comparing it to other large-scale Lean projects. It finds that most massive Lean files are generated by scripts or AI rather than human effort.
Why it matters
It highlights the evolving role of AI in formal verification and the changing nature of mathematical proof documentation.
The recent proof of the Riemann hypothesis came with a statistic attached: the proof is 17 million lines of Lean. Beyond the philosophical questions of what it means to have a proof longer than any human could comprehend, I'm left with a simpler question: is that as large as it sounds?
To investigate, I hunted for collections of Lean proofs online. I found two and charted the lengths of their proofs.
(All charts have a log x axis, which makes 17m lines look a lot closer to 1m and 100k than it really is.)
Mathlib maintains a collection of famous proofs. There are over 1k but only 259 have Lean associated, which I chart here.
These are all human generated, and as we can see, they come nowhere close to 17m.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in