Yes, 17M lines of Lean is a lot

seizethecheese 263 points 339 comments November 23, 2026
micjm.com · View on Hacker News

Discussion Highlights (20 comments)

smy20011

I wounder there are some automatic way to extract structure from 17M lines of code, like ask Claude to use existing libraries and remove redundancy. We could find some common logic inside of this proof and create new math theories from it.

stringfood

God created the universe in seven days and over 22 billion lines of lean, so we have some catching up to do

laser

If you were to print it out it’s hundreds of thousands of pages or hundreds of thick textbooks. If Masullo’s proof works the fact it’s hundreds of times less verbose will really capture the current state of affairs more generally with these models. They can get the job done but have yet to fully understand elegance.

chorsestudios

Does the raw count of lean code lines shed any light on how impressive Andrew Wiles' proof of Fermat's Last Theorem was? The proof itself was 129 pages but I'm not sure how much perspective that alone provides regarding the difficulty of the problem.

adgjlsfhk1

It's down to 13m https://rh-shrink.github.io/ . Decent chance it hits 11m by tomorrow

Incipient

From my (ultra limited) understanding of lean, is that it all 'compiles' down to base primitives that can be trivially asserted. So regardless of the length and complexity, if the initial statements (12 lines or so?) can be expanded/compiled down to primitives we can irrefutably assert as true, then the length doesn't really matter to the conclusion? Granted we may never understand WHY it's proven (and that's another whole kettle of worms) but in terms of relying on the knowledge that all these primes lie on R(-1/2) (or whatever exactly it was) we're in the clear to carry on?

throwaway198846

Post is missing AxiomMath's proof of classification of finite simple with 43 million lines. Also anthropic when they published the proof said they wrote 13 million lines but here it is 27, why is there a discrepancy?

CodeCompost

I'm an ignorant human but can anybody explain to me how LEAN is accepted as proof? I'm not trying to undermine it or knock it down but everybody seems to accept a LEAN proof as fact. Why is that?

dmos62

What are peoples' takes on why LLMs struggle to write things in a human-readable way? I've watched Astra and the like write PR descriptions that are middle-school level: as if it struggles to distinguish what it knows (having read the code, having done the debugging) and what someone who hasn't read the code and hasn't participated in the debugging (his target audience) knows. It'll make references to parts of the solution, or of the problem being solved, without contextualizing it, making the references useless, serving only to add confusion to the text. Terence Tao's take was that LLMs don't understand what is trivial (in a proof, for example) and what is interesting and novel: it gives everything equal weight, or, in Tao's paraphrased words, the LLM will talk at length about something trivial and then write only a single sentence about something novel. I wonder what peoples' intuition about this is.

wigster

Mathematics rightly viewed possesses not only truth but supreme beauty. Bertrand Russell 17M lines of it?

negura

Paul Erdos believed that short, elegant proofs came out of God's own Book. Perhaps he would have also believed this proof came out of Satan's Book.

s08148692

This is a very unpopular opinion but I think we need to let go of understanding and accept that proof of something is good enough Not just in maths. In any technology, science, any engineering domain. We have already accepted it in AI - nobody really knows how a LLM works, we just know it does work, and that's enough. We may have reached the limit of human understanding but that should not restrict us at our current technology - we have tools now that can go beyond human

xyzsparetimexyz

My understanding is that in those 17M lines is a lot of theorems essentially 'inlined'. Could it use the ones from mathlib instead?

VeejayRampay

what's crazy with all this is that we're trying to ignore what seems obvious to me (though in fairness, maybe I don't understand it well enough or I'm too cynical) the models are way verbose because longer answers brings more profit to the companies providing them?

alcomatt

17M screams to be - in realistic terms - unverifiable.

brador

If I was a temporal AI I too would invest heavily in distracting the smartest people on the planet. The only ones who could stop me. Power and intelligence. https://en.wikipedia.org/wiki/Roko%27s_basilisk

larodi

So do the billions of assembly instructions essentially every OS is compiled into. Does it bother anyone that much? I think not.

FinnLobsien

There's a short story by Ted Chiang called "The Evolution of Human Science" (originally published as "Catching Crumbs From the Table" where superintelligent machines have taken over scientific research. Their research is so complex no human could understand it. So in the story, human scientists relegated to interpreting metahuman science. It sounds like we're in the early stages of something similar, where AI creates fundamentally different results from human approaches that are for us to interpret. I can't imagine what happens when AIs discover research problems that other AIs then solve.

brap

Maybe a simpler proof doesn’t exist at all? Why would it be the case that for every question we can come up with, the answer has to be “beautiful” (according to our own bias) and fit neatly into our primate brains? Maybe some questions, no matter how simple, have answers that are far too complex for us to ever understand?

turboponyy

puter, simplify the proof make no mistakes

Semantic search powered by Rivestack pgvector
3,966 stories · 36,002 chunks indexed