Hacker News new | ask | show | jobs
by laser 9 days 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.
7 comments

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.
Elegance is information compression.
Not really/only tangentially. Elegance also implies an artistic component.
I don't know why you're getting downvotes, compression/simplicity is definitely only part of story with "elegance", especially in math. Yes, simplicity _can_ be elegant, but so can something that's complex. In my opinion, it's more about the overall composition itself, and the juxtaposition of simplicity and complexity, that really makes something elegant.
If something is elegant, particularly in mathematics or science, it is succinct and yet still true - the minimum required to prove a given hypothesis. In this context it doesn’t mean using pretty words - the simplicity is the aesthetics.

I don’t think anyone can argue this lean proof is elegant.

Simplicity does not always entail aesthetics IMO since aesthetics are frame-relative.

Take Noether’s Theorem - incredibly simple in its minimality and consequential power wrt being essential to so much of modern physics, yet its elegance is a matter of debate because only someone who understands the context for the theorem is able to appreciate the elegance.

As your second paragraph notes, simplicity is also frame relative.

Not everyone will be able to appreciate all elegance, that’s normal surely? I’d want to defer to people who understand the context any judgement of elegance, wouldn’t you?

I've seen strong arguments for concept that compression is intelligence.

I believe that many of the top entries for the Hutter Prize, the 1/2 million euro prize for compressing 10gb of human knowledge, are all using LLM based compression. http://prize.hutter1.net/

In this case does the verbosity, or the inelegance, imply that the way the solution was found was intrinsically unintelligent, akin to brute force?

> ...the models are just really bad at information compression.

I think there is a little more to it than this, in that lean proofs are necessarily much more rigorous than a typical human proof. A human proof typically assumes a lot from the reader (which is partly why maths can feel pretty impenetrable), whereas a lean proof spells out every detail.

> You see it when writing code too, they introduce duplicates all over the place.

I've found this is usually because they don't have the other part they're duplicating fully in context. Telling it to read a couple relevant files fully helps - that often makes it come up with more elegant solutions too.

Only usually. I had a current frontier model write a new Foo and asked it to attach them to my bar. I got

    this.FooA = new Foo();
    this.FooB = new Foo();
    this.Foos = [this.FooA, this.FooB];
    this.Foo = this.Foos;
These were entirely new objects with no existing instances of this pattern in this codebase. There were no references at all to the duplicate properties.
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?
I think the comparison is between natural language proofs (1000 pages for Masullo vs 250,000 for Alpoge)
Nobody has read the 17 million lines, so it could just as well could be literal junk and hallucinated trash.

In other words, don't carry water for the LLM clanker, you won't be rewarded for it.

> it could just as well could be literal junk and hallucinated trash

No it can't. That's the whole point of Lean. The kernel checks every step so if it accepts the proof, then this proof is valid (short of a kernel bug, unlikely here as tested on multiple kernels).

You could have millions of lines of 1+1=2. It's true, but trash.
I doubt that's the sort of thing the commenter was pointing to with "literal junk" and "hallucinated trash". Seemed more like "the proof might be wrong", which it (almost) can't.

If we agree that the proof can't really be wrong, even if it was 99% "1+1=2" and 1% actually useful code (or literally _any_ other ratio), the whole thing would still be incredibly valuable and calling it "junk" or "trash" would be dumbfounding

do you have much familiarity with c++? you know how you can override operators, or keywords?

you can do that in lean too. A single redefinition of "sum" or "+" or "&" or whatever that was supposed to help with some small branch off in a single frond of those millions of lines of code, and suddenly entire parts of your proof work with different axioms to those we usually accept, such that a number+1-1 =that number may not be true anymore

and these are the obvious ones. There can be massive components that you establish, reestablish, reestablish again etc all with slight differences in formulation. LLMs are great at sowing confusion like this in large codebases, they can't find something so they assume it doesn't exist and end up making the 200th copy. A subtle error in the formulation or use of one of these and you prove something true but meaningless

there are ways to check for this - the problem statement is usually made in one file, then defined again in the code to be compiled. The compiled versions can be checked against each other, in several compilers and versions of lean, and in the case of the RH proof here they say they're the same (haven't had elements subtly redefined to prove something different). But also that check was itself a constraint that the agent knew about - and we've caught LLMs cheating this way before, so it could well just be better at hiding things.

This all being said, I don't have a reasonable way to establish how likely it is that the proof is wrong. I'm skeptical of anyone talking with confidence one way or the other. I just know that frontier LLMs in large codebases consistently produce evil/stupid code at random and unpredictable intervals. My confidence is higher than 50% this result will hold, but less than 90% - I would not at all be surprised if its retracted also

But it’s been verified with the problem statement not just from the author but multiple sources
You’re missing the point that the problem statement is not trash, has been verified to be correct, and as such the proof must be correct.

“could be literal junk and hallucinated trash” is simply not possible.

Your argument doesn't support your claim. It could still be millions of lines of trash.
Lean is not a magic oracle, it is a compiler and a programming language.

Formal methods for software are a pseudoscience that has never been demonstrated to work.

Maybe there's actually a proof somewhere in the 17 million lines of code, but "just trust Lean bro" is not a proof.

> Formal methods for software are a pseudoscience that has never been demonstrated to work.

Sure, but formal methods for mathematics are very much a science and are easy to implement. You categorically do not have to check the code for a Lean proof. That's the whole point.

Unfortunately, no formal methods for mathematics have been used to construct this "proof".
the anthropic proof for Fermat's last theorem is 27m lines, more than the Riemann one, even though it's based on Wiles' only 129 page proof. This would suggest that an informal version of the anthropic proof for Riemann could be even shorter than 129 pages, which is vastly shorter than Masullo's.
Not necessarily it depends on how much existing math you can refactor out by referencing it. Also it should be noted Anthropic proof is based of simplification of Wiles' og proof.
Well yeah. Even today machine generated code is almost always more verbose than code written by a competent developer.
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.

> 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.

LLMs are not perfect, like humans, they write bugs all the time. An intelligence that makes no mistakes is probably outright impossible.

Even formal verification systems can only verify things that have been translated into a particular format. They can't verify the translation itself.

So bugs cannot be completely avoided, but they can be made less likely. For humans, we've found that complex representations of systems are a lot easier to write bugs for than simple representations of those systems. This appears to hold true for LLMs as well, and I'd be surprised if it weren't a general property of intelligent systems.

Agreed. It’s basically brute force…
It's obviously not just brute force, just verbose.
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.
You can only make this argument because you aren’t defining the term “knowing”, I think. How would you define the term to make this claim still true?