Yes, 17M lines of Lean is a lot

(micjm.com)

23 points | by seizethecheese 2 hours ago

7 comments

  • laser 56 minutes ago
    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.
    • skeledrew 1 minute ago
      Well yeah. Even today machine generated code is almost always more verbose than code written by a competent developer.
    • siddboots 2 minutes ago
      Isn’t the big difference that the Lean proof contains the detailed theory of dozens of intricate and hyper specific branches of established maths that Masullo doesn’t need to restate?
    • GrollingGrakbor 48 minutes ago
      Doesn't really have anything to do with elegance, the models are just really bad at information compression. You see it when writing code too, they introduce duplicates all over the place.
      • grey-area 24 minutes ago
        Elegance is information compression.
        • GrollingGrakbor 7 minutes ago
          Not really/only tangentially. Elegance also implies an artistic component.
    • hmontazeri 10 minutes ago
      Agreed. It’s basically brute force…
    • bot403 54 minutes ago
      Did we try adding "and make it elegant - the sum of all human knowledge depends on it" to the prompt? I heard that gets better results.

      On a more serious note this is a struggle I have with llms. They can be verbose, but then, if we're just going to have llms edit code and proofs and it's verifiably correct then do we truly care? The answer is not a clear yes or no.

      • paganel 24 minutes ago
        > llms edit code and proofs and it's verifiably correct then do we truly care?

        We also tried to do that with XML at the beginning, I'd say 2002-2003-ish, as in the discourse was pretty similar: "doesn't matter how verbose XML is, it's supposed to be only ingested by computer code". And that's how we got to REST a few years later.

    • dead_hn_theory 17 minutes ago
      An unspoken aspect here is that Masullo is human and therefore he knows and he doesn't know. He knows that he doesn't know; self-awareness and all that human nonsense. The LLMs output an absurd amount of "logically" consistent things without knowing anything, nor without not knowing. This is not a matter of pedantry or puffery, training or taste. But there is a ridiculous amount of compute thrown at this problem to be sure. Even if Masullo's approach does not end up working he's taking risks and trying out something new. I'd hazard to say Masullo learned more from this than Alpoge has (did he even read the output?), but that's a thread for another discussion.
  • chorsestudios 46 minutes ago
    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 37 minutes ago
    It's down to 13m https://rh-shrink.github.io/. Decent chance it hits 11m by tomorrow
    • VoidWhisperer 9 minutes ago
      It just shot up to 18 million lines now.. I tried checking the changes but github isn't a fan of rendering a commit with millions of lines
    • vibebingo 11 minutes ago
      Looks like it has gone up. Guess I should have invested!
  • Incipient 24 minutes ago
    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?

  • smy20011 1 hour ago
    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.
    • brian-armstrong 36 minutes ago
      I think what you're describing is NP-hard, at least naively.
      • fc417fc802 0 minutes ago
        Isn't what LLMs do also NP-hard (at minimum)?
      • lllllm 7 minutes ago
        easy, just add a line to the prompt to solve P=NP first
    • michaelchisari 54 minutes ago
      That sounds like an extraordinary amount of work. Which is fine, I'd love to see mathematicians employed.

      But the promise of AI was to fire all mathematicians not hire more.

      A hiring spree is what I want to see across industry and research in response to AI. It's an incredible tool for experts which means we need to hire (and educate) more experts.

      But the counterpoint imagining otherwise has billions of dollars in marketing and the press hangs on their every word.

      Anthropic did not IPO on the promise that their customers would increase labor costs.

      • staticshock 33 minutes ago
        > But the promise of AI was to fire all mathematicians not hire more

        What a truly villainous take. Is "solving cancer" a call to fire all biologists?

        The promise of AI is to give humans power tools and dramatically raise the ceiling on our individual and collective potential. Anthropic IPO'd on the promise that much of current labor can be displaced, yielding to new kinds of labor as we find ways to actualize that potential.

        • michaelchisari 22 minutes ago
          I agree, it is villainous and not my position. But it's been the refrain of the frontier AI companies and tech leaders from the beginning.

          It's running into reality as of late but it was the promise markets priced it on.

          Would they have even been able to raise funding if they said AI would create near impossible complexity, requiring verification from many highly trained experts and potentially explode labor costs?

          Would industries have jumped directly to adoption on that pitch?

          Of course not. The markets were priced on the promise of labor destruction.

        • skeledrew 5 minutes ago
          The promise of AI is to make it so we can do whatever we want, whenever we want, without having to think about sourcing food, clothing and shelter.
        • discreteevent 12 minutes ago
          LLMs have not solved cancer. If you have a good argument, it shouldn't need a fiction to illustrate it.
        • paganel 23 minutes ago
          > that much of current labor can be displaced, yielding to new kinds of labor as we find ways to actualize that potential.

          If this isn't villainous then I don't know what else to say. At least they don't hide it behind the bush.

  • stringfood 1 hour ago
    God created the universe in seven days and over 22 billion lines of lean, so we have some catching up to do
    • d_tr 56 minutes ago
      Nah, it was mostly hacked together with Perl.