News for hackers. Stuff that matters.
Re:Yes, 17M lines of Lean is a lot by pohl on Monday November 23, 2026 @10:06AM (#50613042)
Is there hope in refactoring it into several smaller separate intermediate theorems, or is that just my naïve programmer brain talking?
Re:Yes, 17M lines of Lean is a lot by Davidzheng on Monday November 23, 2026 @10:48AM (#50613822)
Ofc it is like that. To first level, thinking about it like a giant codebase is ok

Also i suspect this 250,000 pages estimate is just a mistake by alpoge. My guess is: In the process of turning informal to formal, theres a lot of excess auxiliary steps introduced to match formal definitions. But then if you naively translate back to informal, you get informal proof which is like laughably inefficient. I expect the factor is like off by 100

Re:Yes, 17M lines of Lean is a lot by TexanFeller on Monday November 23, 2026 @11:16AM (#50614309)
Yes, lemmas and theorems have been used like different layers of "reusable code" in math since time immemorial. Different abstractions lead to vastly different difficulties expressing a proof/calculation, just think about how some Calculus operations are a massive struggle when formulated in Cartesian coordinates but can become almost trivial in another coordinate system(polar, spherical,...). It feels incredibly likely that by finding better abstractions and using different lemmas/theorems to build on top of that the giant proof could collapse to something a tiny fraction of its former size.