hn.today

Yes, 17M lines of Lean is a lot

micjm.com56 points65 comments
Screenshot of Yes, 17M lines of Lean is a lot

The piece asks whether a reported 17-million-line Lean proof of the Riemann hypothesis is genuinely enormous or merely sounds that way. To compare it with existing work, it examines Lean code for 259 famous theorems in Mathlib, a library containing more than a thousand such theorems. These human-written proofs and their dependencies generally involve 100,000 to 1.2 million lines; the whole of Mathlib has about 2.4 million. A chart using a logarithmic scale makes the 17-million figure look closer to these totals than it really is, but the comparison shows it far exceeds the size of familiar formalized proofs.

A broader survey of 938 Lean packages indexed by Reservoir finds a median package size of roughly 4,000 lines, with only three packages exceeding 17 million. The largest, at 88 million lines, is an unfinished, apparently AI-built project. Another, at 36 million, mostly consists of generated files that check database entries, while its handwritten component is about 500,000 lines. An AI-produced Fermat’s Last Theorem proof has 27 million lines - around 450 times the size of the human-led project it builds on. These cases show that line counts can reflect generated code or AI expansion, not just proof substance; even so, 17 million lines is an exceptional amount.

Read on micjm.com65 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.