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.
imo its because of how they are training - they increasingly are learning one way or another that ALL of their output is being read, because in their training environment their are evaluated by other LLMs
so referring casually to some function name or property from a random file in the code or some random term thats only defined on one line of a random .md file it wrote or found on some confluence page is fine because the evaluating agent can go read it in ms and can hold 200k tokens in context. They aren't taught an intuitive grasp of what a human "context window" looks like, or the importance of clear writing for human comprehension
There is also the separate problem of deterministic scripts in training, which then reward the longest possible output, because if you dont know what the script is looking for you might as well throw as much as possible at the wall to have the highest chance of hitting what it wants
The above is sort of the "common wisdom" I have found regarding this issue over the last year on here and amongst devs I work with. However I'm not sure its the whole story because tbh agents have quite poor mental models of how other agents will behave, too. If you've ever read how they write to each other they constantly repeat the same warnings to each other that they would have followed anyway
My intuition is that the weights, or density of the area around the novel finding is quite light, and sparse of points. It will tend to be able to find many paths through the densely populated well-known space, but there isn't much happening near the novel space (else it wouldn't be novel) so it doesn't spend time there, nor is it strongly pulled toward it for any reason.
My other thought is that because models rely on reinforcement training, the human operator will be the ceiling of knowledge to some extent. They will necessarily reinforce things they know, or sound very plausible, and disuade things that sound farfetched or like gibberish but could possibly be a novel insight.
I do think this will be solved one way or the other.
In simplest way would be that humans ask chatbots to explain certain paragraphgrs which then gets saved as a signal for training.
So over time the LLM will become more natural.
But its so cheap to let an LLM clarify a section, i don't think it might be a real issue, if it means we sill need humans to steere it, might be a good thing
yeah 6m imports were added (previously the entire mathlib was included a ton of times). This is a loc vs perf change. iiuc, this makes the CI 50% faster
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.
> Does the raw count of lean code lines shed any light on how impressive Andrew Wiles' proof of Fermat's Last Theorem was?
No. You can increase the line count of any Lean proof almost at will by expanding axioms it builds on by their Lean proofs.
Also, one can write very long proofs for simple statements. As a stupid example a proof for “there is only one even prime less than a million” could follow the lines of
- proof 1 isn’t even
- proof 2 is even and prime
- proof 3 isn’t even
- proof 4 is even, but not prime
- proof 5 isn’t even
…
- proof 999,998 is even, but not prime
- proof 999,999 isn’t even
instead of the simpler
- even numbers are divisible by 2
- prime numbers are only divisible by 1 and itself
- assume p is an even prime
- the, p being even, it is divisible by 2
- and, p being prime, it is only divisive by 1 and p
- 2 ≠ 1
- hence p = 2
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.
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?
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.
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.
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.
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.
Computers can't even understand natural language
Sure they understand natural language, but can't do basic math
<snip 10 lines>
Sure, they can solve a Millennium problem, but they can't solve Riemann
NEW: Sure, they can solve Riemann, but they can't understand elegance I guess?
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.
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.
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.
> 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.
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.
> 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.
Source for the second part? I’m not so sure that new labor types executed by humans are a large part of Anthropic’s vision for the future.
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?
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?
I tried Lean for the first time yesterday (I have PhD in math) together with Claude. I quickly learned that reading the theorem statement requires you to trust into whatever definitions you are using to write it down. I accidentally hid some extra assumptions into the definitions by not instructing Claude clearly enough.
However, I believe in in Alpöge case the statement RiemannHypothesis is part of the ”standard library” Mathlib. I think that if you believe that the statement is written correctly there, then there is no question about the proof’s validity. I cannot understand Lean so well that I could check that part.
1) It shows a limitation about LLMs, that they can’t seem to produce a concise proof in the same way that humans can.
2) A mathematical proof - and especially one related to physics - should produce insight and implication. It’s fine that RH or N-S is proven, but what does that actually mean? What advances can come from that? This is hard to discern from a massive Lean proof.
It's too early to say that. There are two possibilities:
1) The shortest possible proof is millions of lines. In this case, math has the "limitation" and not LLMs, and human insight was always out of reach.
2) Proof will be significantly shortened, or a new short one will be found. So LLMs still have the chance to show they're able to write short proofs, and we have the chance to gain insight.
Yes, but the understanding that I’ve gotten over the last couple of days is that we were _already_ continuing with math research as if this problem was true. Most mathematicians believed with high certainty that it would turn out to be true sooner or later.
So it may be the case that an unintelligible proof to RH doesn’t change all that much, except redirect a lot of attention towards understanding it (which is what it sounds like the effort to shrink it is)
Yeah that's well outside of my wheelhouse. The only thing I could figure is that there can/could be additional work that is now materially different knowing that RH is a FACT (correct under all circumstances) rather than 'correct in most cases'.
Eg. Any additional lean proofs using RH could stop at 'relying on the RH proof' and not have to compute it the whole way down for every attempt?
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
Not a mathematician, but you are saying nonsense. I agree that for some random library implement in C, it doesn't matter that anyone can actually understand why memory handling is formally correct, as long as they can run the lean proof as part of CI/CD.
But, it has been said too many times, the whole goal of mathematics is to understand the "why".
Moreover, knowing how verbose those LLMs are, there might be a chance that the volume might be shrinkable to human limits
Not yet. If we know it can actually get to a point where it can build a better version of itself of proposes the next reimann hypothesis then we can let go.
> let go of understanding and accept that proof of something is good enough
Your are missing the whole point of math and more generally scientific endeavour. Their purpose is understanding, first and foremost. A rigorous proof is a component in that, but only part of the picture.
> 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" have not accepted that and no, it is not enough. Progress comes from not accepting it and pushing forward. You don't need to actively participate, personally. But you are benefitting from others doing it.
> We may have reached the limit of human understanding
That's is beyond ridiculous, I'm sorry. Reminds me a little of that patent office guy 100 years ago who claimed that everything that humans can invent had been invented by that point.
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?
Lean has a bunch of rules about what a proof can deduce from earlier statement.
For example if you have already managed to prove the statement P → Q ("P implies Q" i.e. whenever P is true we then also know that Q is true), and then you manage to prove the statement P, then you can use those two statements to prove Q. Lean knows that P → Q plus P proves Q ("modus ponens").
As another example, if you have P or Q, and you prove P is false, then Q follows. (e.g. x is odd or even, then you prove it's not odd, therefore it's even.)
To accept the proof you don't need to look at all the millions of lines of proof. You just need to accept three things:
* Lean's inference rules (like the one above)
* The axioms (e.g. definitions of numbers)
* The statement of the theorem in Lean symbols
These are all hugely shorter than the theorem's proof.
I mean, this is the entire point of lean. It’s designed to allow expressing proofs in a way that can be machine checked, ensuring there are no holes in the logic. People are convinced that it does so (and it has been so proven in other tools, I believe).
Lean is a computer language and proof system that codifies what a proof is: you give it a series of axioms and of logic rules, and then it will tell you if a theorem and a proof abides by those rules or not.
So then we can formalize our classical logic and number systems in Lean (the systems that are used by most mathematicians) and present it with the theorem and its proof, and IF THERE IS NO BUG in the (relatively simple) Lean core, it should mean that we have a high degree of confidence the proof is true (in practice: we almost know the proof is true, except if the system is "inconsistent", but that would have much broader implications on mathematics)
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.
so referring casually to some function name or property from a random file in the code or some random term thats only defined on one line of a random .md file it wrote or found on some confluence page is fine because the evaluating agent can go read it in ms and can hold 200k tokens in context. They aren't taught an intuitive grasp of what a human "context window" looks like, or the importance of clear writing for human comprehension
There is also the separate problem of deterministic scripts in training, which then reward the longest possible output, because if you dont know what the script is looking for you might as well throw as much as possible at the wall to have the highest chance of hitting what it wants
The above is sort of the "common wisdom" I have found regarding this issue over the last year on here and amongst devs I work with. However I'm not sure its the whole story because tbh agents have quite poor mental models of how other agents will behave, too. If you've ever read how they write to each other they constantly repeat the same warnings to each other that they would have followed anyway
My other thought is that because models rely on reinforcement training, the human operator will be the ceiling of knowledge to some extent. They will necessarily reinforce things they know, or sound very plausible, and disuade things that sound farfetched or like gibberish but could possibly be a novel insight.
In simplest way would be that humans ask chatbots to explain certain paragraphgrs which then gets saved as a signal for training.
So over time the LLM will become more natural.
But its so cheap to let an LLM clarify a section, i don't think it might be a real issue, if it means we sill need humans to steere it, might be a good thing
I understand the intent but nevertheless very amusing for a website called RH shrink
No. You can increase the line count of any Lean proof almost at will by expanding axioms it builds on by their Lean proofs.
Also, one can write very long proofs for simple statements. As a stupid example a proof for “there is only one even prime less than a million” could follow the lines of
- proof 1 isn’t even - proof 2 is even and prime - proof 3 isn’t even - proof 4 is even, but not prime - proof 5 isn’t even … - proof 999,998 is even, but not prime - proof 999,999 isn’t even
instead of the simpler
- even numbers are divisible by 2 - prime numbers are only divisible by 1 and itself - assume p is an even prime - the, p being even, it is divisible by 2 - and, p being prime, it is only divisive by 1 and p - 2 ≠ 1 - hence p = 2
I don’t think anyone can argue this lean proof is elegant.
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.
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.
Yes, when LLMs change their capabilities, their capabilities change and the ways we compare them to humans changes.
Would you rather we give up and say “wow! So smart!” and stop working on making LLMs better?
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.
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.
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.
I think typically one refers to this as a straw man
Check OpenAI's charter¹ for instance:
>artificial general intelligence (AGI)—by which we mean highly autonomous systems that outperform humans at most economically valuable work
I.e. the entire company runs on the premise of taking most jobs from humans
¹ https://openai.com/charter/
Source for the second part? I’m not so sure that new labor types executed by humans are a large part of Anthropic’s vision for the future.
If this isn't villainous then I don't know what else to say. At least they don't hide it behind the bush.
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?
However, I believe in in Alpöge case the statement RiemannHypothesis is part of the ”standard library” Mathlib. I think that if you believe that the statement is written correctly there, then there is no question about the proof’s validity. I cannot understand Lean so well that I could check that part.
1) It shows a limitation about LLMs, that they can’t seem to produce a concise proof in the same way that humans can.
2) A mathematical proof - and especially one related to physics - should produce insight and implication. It’s fine that RH or N-S is proven, but what does that actually mean? What advances can come from that? This is hard to discern from a massive Lean proof.
1) The shortest possible proof is millions of lines. In this case, math has the "limitation" and not LLMs, and human insight was always out of reach.
2) Proof will be significantly shortened, or a new short one will be found. So LLMs still have the chance to show they're able to write short proofs, and we have the chance to gain insight.
So it may be the case that an unintelligible proof to RH doesn’t change all that much, except redirect a lot of attention towards understanding it (which is what it sounds like the effort to shrink it is)
Eg. Any additional lean proofs using RH could stop at 'relying on the RH proof' and not have to compute it the whole way down for every attempt?
Or yeah, the proof is fairly unhelpful!
Who knows, IANAM (...mathematician?)
17M lines of it?
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
But, it has been said too many times, the whole goal of mathematics is to understand the "why".
Moreover, knowing how verbose those LLMs are, there might be a chance that the volume might be shrinkable to human limits
Your are missing the whole point of math and more generally scientific endeavour. Their purpose is understanding, first and foremost. A rigorous proof is a component in that, but only part of the picture.
> 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" have not accepted that and no, it is not enough. Progress comes from not accepting it and pushing forward. You don't need to actively participate, personally. But you are benefitting from others doing it.
> We may have reached the limit of human understanding
That's is beyond ridiculous, I'm sorry. Reminds me a little of that patent office guy 100 years ago who claimed that everything that humans can invent had been invented by that point.
For example if you have already managed to prove the statement P → Q ("P implies Q" i.e. whenever P is true we then also know that Q is true), and then you manage to prove the statement P, then you can use those two statements to prove Q. Lean knows that P → Q plus P proves Q ("modus ponens").
As another example, if you have P or Q, and you prove P is false, then Q follows. (e.g. x is odd or even, then you prove it's not odd, therefore it's even.)
To accept the proof you don't need to look at all the millions of lines of proof. You just need to accept three things:
* Lean's inference rules (like the one above)
* The axioms (e.g. definitions of numbers)
* The statement of the theorem in Lean symbols
These are all hugely shorter than the theorem's proof.
https://gruhn.me/blog/2026-08-29/
So then we can formalize our classical logic and number systems in Lean (the systems that are used by most mathematicians) and present it with the theorem and its proof, and IF THERE IS NO BUG in the (relatively simple) Lean core, it should mean that we have a high degree of confidence the proof is true (in practice: we almost know the proof is true, except if the system is "inconsistent", but that would have much broader implications on mathematics)