r/BetterOffline • u/Mashic • 3d ago
Semantics problem with AI and LEAN proofs
https://youtu.be/yUoezeDBhD0?si=BoRsr1xZ1JzkR4pPThis is a very interesting video. It shows that even if an AI made a LEAN code that compiles, there is no guarantee that it translated the semantics of the theory correctly, it could have changed some definitions, or tried to solve ambiguity in an undesirable way.
If the Claude Riemann solution can't be verified by humans due to the huge volume of it: 250k pages in human language, we can't tell if it solved it for sure or solved something else that resembled it.
249
Upvotes
56
u/PracticallyPerfcet 3d ago
Wow, 250k pages of AI lean slop is insane. How does the original mathematician that prompted Claude know, himself, that the proof is correct? Did he read over those 250k pages to verify it? I’d bet the odds are good he hasn’t looked at a single page of the output.
18
u/Ju54 3d ago
As a person who does not have real understanding of Lean or any of this level of math its difficult to understand are there any real use cases for LLM:s in math. Did OpenAi and Antropic just spent x about of compute to output some thing to boost up company valuations or is it something useful ?
Cant help thinking that it was done more as a publicity stunt.
4
u/OwnYourChildren 2d ago
It's so frustrating as a layman that I could spend 8 hours a day trying to understand the truth claims about LLMs and not feel like I'm making significant progress. Not sure if that experience is an indictment of my capacity to think critically or if the information space is so polluted by contradictory info that it feels like a bloody psy op.
It shouldn't be this hard. Or maybe I'm just dumber than I realized.
2
u/brawnyfrogmouth 2d ago
So, we know there's a 'mismatch' between the natural language and lean proofs, but the host makes it clear that she isn't disputing either proof. Not a mathematician but how can both proofs be valid if the AI 'fudged' something during the translation?
170
u/ksjdragon 3d ago •
I've talked about this topic a lot here, trying to dissolve some of the misinformation the boosters would have you understand about Lean. A relevant post of mine discussed a paper on this topic.
Even if we give the full benefit of the doubt that the 15M of lines of Lean, among all the other millions for the other proofs, are truly correct, the problem still lies in the the fact that these proofs bring nothing of value to science or academics. In fact, they are detrimental to knowledge as they reduce time mathematicians could be using on real research, and not performative slop math for marketing and pumping IPOs.
An unverifiable proof is worthless. Otherwise I could say I have a proof, and I won't tell you. What's the difference? I am the math god and you cannot prove otherwise, so therefore it is proved.
88
u/natecull 3d ago edited 3d ago
What we do know for sure is that an AI algorithm will do the absolute lowest effort thing that superficially meets its very specific goal/reward function. And if that reward function can be satisfied by cheating, then it will absolutely cheat. It's what search algorithms are designed to do, it would be inefficient not to cheat.
28
u/The-Menhir 2d ago
LLMs really make everything lame. Even if it is correct, there's neither constructive insights that can be taken from the proof, nor is there any elegance to it. It's like destroying landscape to build a parking lot, except that has at least some value to people.
A bull has solved dancing because it can move from point A to point B
9
u/Altruistic-Toe-5990 2d ago
This sounds a lot like how LLMs handle writing automated tests for software. You can verify that the tests they wrote compile, and pass successfully.. but not that they're actually faithful to the code under test.
6
u/CuTe_M0nitor 2d ago
Software Engineers have had this problem with AI since day one. The AI can produce code, it compiles, but is it good code? Also at a certain point the AI breaks since understanding the problem requires more context than the AI can hold in its memory
11
u/Dull-Sandwich-7128 2d ago edited 2d ago
This is the first video I've seen that actually critically examines the claim that Riemann was solved.
I'm struck by the almost total lack of critical and sceptical assessments of the recent claims of accomplishments by LLMs. Even scientists and mathematicians have said "I got a text that Riemann was solved by an LLM" and that's it, they believe it. The same scholars will then say that the proof is so enormous no human can understand it, that semantic proof is poorly written, that the LLM over-explains obvious points while making large logical leaps in places that aren't obvious, and so on.
If a graduate student submitted a 250,000 line proof that they couldn't explain, that was poorly written, and that no one could understand, would we even say it is a proof just because it compiles in Lean? We've given an enormous amount of leeway to LLMs that we would absolutely never give to humans, and the assumption is already that the LLM "proof" is to be believed first, questioned later (maybe). This entirely contradicts the scientific method, and it's as if every scientist and mathematitican has been simply dazzled into uncritically accepting whatever these LLMs say.
5
u/_Wiretrip_ 2d ago
Again this highlights the fundamental problems of using nondeterministic systems to produce any formal code. It is not just another compiler (a 'justification' that is rife in AI coding these days).
5
u/Beginning_Basis9799 2d ago
AI chests at tests this is well known
9
u/Random-Number-1144 3d ago
https://terrytao.wordpress.com/2026/10/09/what-mathematicians-should-know-about-the-lean-theorem-proverquestions-of-reliability-and-ai/
2
u/skoodle_um 2d ago edited 2d ago
Surely Gödel’s Theorem is relevant here - she mentions the Halting problem, in passing which is the machine limit but it is Gödel’s Theorem that puts the limit on the natural language. I know this is broadly speaking (and they both operate on each system domain) but the trend is true? All of which might well suggest that this is a terminal limit for AI.
1
u/-illusoryMechanist 2d ago
Iirc it used the standard definition for the reimann hpoyhtesis that lean provides so that's sort of moot?
1
u/throwaway3113151 1d ago
The same is true for a human, though.
1
u/coffeeequalssleep 1d ago
no, actually, it solved riemann. the proof statement is part of mathlib, ffs.
1
u/Stunning_Ride_220 1d ago
Well, so AI companies "solved" all of this and did what for mankind up until now?
1
u/AndyKJMehta 1d ago
Wouldn’t it be easier to work backwards from the result?
1
u/Macrobian 1d ago
Okay so, what we're interested in here is whether any axioms* that are "cheating" were declared, like 2 + 2 = 5. The way we can figure out whether the proof did anything naughty is to just print all the axioms (in case an axion that was cheating was imported and not declared in the repo).
*the mapping of English to math terminology is a little fraught here: something that does not need to be proven in order to be depended on (like 2 + 2 = 5) is an axiom.
This is what Sutherland found in his verification:
ALL AXIOMS IN ENVIRONMENT (15):
[(Classical.choice, Init.Prelude),
(Lean.ofReduceBool, Init.Core),
(Lean.ofReduceNat, Init.Core),
(Lean.trustCompiler, Init.Core),
(Quot.lcInv, Init.Prelude),
(Quot.sound, Init.Core),
(isScalarObj, Init.Prelude),
(lcAny, Init.Prelude),
(lcCast, Init.Prelude),
(lcErased, Init.Prelude),
(lcProof, Init.Prelude),
(lcUnreachable, Init.Prelude),
(lcVoid, Init.Prelude),
(propext, Init.Core),
(sorryAx, Init.Prelude)]
So I was wrong: it's not even using axioms in Mathlib, just those from core Lean.
I pulled the proof myself and checked that these were the same:
$ git clone https://github.com/Deicyde/riemann-hypothesis.git
Cloning into 'riemann-hypothesis'...
[ELIDED]
$ cd riemann-hypothesis/lean
$ lake exe cache get
Downloading Mathlib cache ...
[ELIDED]
$ lake build Main
✔ [1/175187] Built ...
[ELIDED]
$ lake env lean --repl
> import Main
> #print axioms riemannHypothesis
'riemannHypothesis' depends on axioms: [propext, Classical.choice, Quot.sound]
> #print axioms riemannZeta_eq_zero_re
'riemannZeta_eq_zero_re' depends on axioms: [propext, Classical.choice, Quot.sound]
> #print axioms LFunction_ne_zero_of_half_lt_re
'LFunction_ne_zero_of_half_lt_re' depends on axioms: [propext, Classical.choice, Quot.sound]
> #print axioms LFunction_eq_zero_re
'LFunction_eq_zero_re' depends on axioms: [propext, Classical.choice, Quot.sound]
> #print axioms LFunction_eq_zero_re_of_isPrimitive
'LFunction_eq_zero_re_of_isPrimitive' depends on axioms: [propext, Classical.choice, Quot.sound]
and I got the same set of axioms.
CONTEXT: I briefly studied formal logic in my philosophy course in uni and played around with Isabelle (a different thereom prover). I am generally worried about existential risk from AI and would like a total stop to it.
1
u/g_ockel 1d ago
To be fair the paper she is referencing specifically talks about autoformalisation scenarios, which the RH proof is not. The "250k pages NL proof" actually doesnt exist. It stems from some statement along the lines of "this lean proof could be 250k pages If IT was written in NL"
1
u/shatterdaymorn 15h ago
Look at the prompts.
Users make accidental logical distinctions and equivalences that an LLM will run with it.
You can't audit a proof without seeing what generated it.
-21
u/TheDerminator1337 3d ago
so much cope aahah
54
u/RealPropRandy 3d ago
Firehose of slop
0
u/[deleted] 3d ago
[deleted] — view deleted comment
3
u/[deleted] 3d ago
[removed] — view removed comment