logoalt Hacker News

Yes, 17M lines of Lean is a lot

94 points • by seizethecheese • today at 5:00 AM • 117 comments • view on HN

Comments

dmos62 • today at 8:56 AM

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.

➕ show 14 replies
maratc • today at 10:50 AM

The brain of humans is relatively bigger than the brain of apes, and this allows humans to have ideas that apes are incapable of grasping. Like the idea of "animal rights," or the idea of "protected species," or the idea of "international law against trafficking and sale of apes." Apes can benefit from all these ideas but are incapable of comprehending them.

As AI progresses to have even bigger "brains," the humans will get to the position of apes, where AIs would have a dialogue no human is capable of understanding.

➕ show 1 reply
adgjlsfhk1 • today at 7:11 AM

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

➕ show 4 replies
chorsestudios • today at 7:02 AM

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.

➕ show 1 reply
laser • today at 6:53 AM

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.

➕ show 8 replies
smy20011 • today at 6:36 AM

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.

➕ show 3 replies
throwaway198846 • today at 8:00 AM

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?

➕ show 1 reply
Incipient • today at 7:24 AM

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?

➕ show 3 replies
negura • today at 9:14 AM

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.

alcomatt • today at 10:37 AM

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

➕ show 1 reply
wigster • today at 9:13 AM

Mathematics rightly viewed possesses not only truth but supreme beauty. Bertrand Russell

17M lines of it?

brador • today at 10:54 AM

“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.” - MM

https://en.wikipedia.org/wiki/Roko%27s_basilisk

stringfood • today at 6:42 AM

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

➕ show 1 reply
xyzsparetimexyz • today at 10:25 AM

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

CodeCompost • today at 8:03 AM

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?

➕ show 4 replies
VeejayRampay • today at 10:34 AM

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?

➕ show 1 reply
s08148692 • today at 9:30 AM

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

➕ show 5 replies