Yes, 17M lines of Lean is a lot

Hacker News by 2 min read 506x views
Yes, 17M lines of Lean is a lot

Share Post

The latest evidence of the Riemann assumption came alongside a figure attached: the evidence is 17 myriad lines of Lean. Beyond the philosophical questions of what it method to have a evidence longer than any individual could comprehend, I’m remaining alongside a simpler question: is that as ample as it sounds?

To investigate, I hunted for collections of Lean proofs online. I established two and charted the lengths of their proofs.

(All charts have a log x axis, which makes 17m lines appearance a lot nearer to 1m and 100k than it really is.)

Famous theorems in Mathlib

Mathlib maintains a gathering of celebrated proofs. There are complete 1k but lone 259 have Lean associated, which I diagram here.

These are all individual generated, and as we can see, they arrive nowhere near to 17m.

 nearly all autumn between 100k and 1.2m lines, below the 2.4m lines of all of Mathlib and far below the claimed Riemann evidence at 17m

Every Lean bundle on Reservoir

Reservoir indexes all published Lean package, 938 of which have Lean code on GitHub. This one has a lot additional data, including AI assisted proofs. We equal have a few that are complete 16m!:

  1. 88m: Qiuzhen-CFSG/CFSG this appears to be an AI built evidence that is motionless a activity in progress.

  2. 36m: CBirkbeck/LeanBridge, a project linking the LMFDB repository of figure theory objects to Mathlib. This isn’t really a proof: concerning 98% of its Lean is records generated by scripts that inspect the database’s numbers one by one. The hand-written part is nearer to 500k lines.

  3. 27m: anthropics/fermats-last-theorem is another Anthropic special: a complete evidence of Fermat’s Last Theorem, published on GitHub in September. Its README says “the Lean sources were produced by AI agents construction on human-written open-source Lean”, including the human FLT project led by Kevin Buzzard, which is concerning 60k lines and motionless in progress. The AI type is approximately 450 times longer.

 the median bundle is concerning 4k lines, all of Mathlib is 2.4m, and lone three packages (88m, 36m and 27m) are larger than the claimed Riemann evidence at 17m

So yes, 17m lines is a lot.

Other Article Hacker News
↑
Close Right Ads
Close Left Ads