r/BetterOffline • • 3d ago

Semantics problem with AI and LEAN proofs

https://youtu.be/yUoezeDBhD0?si=BoRsr1xZ1JzkR4pP

This 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

240 comments sorted by

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.

35

u/Mashic 3d ago

A 1.3gb file of lean code compiled, and they said the human language proof would be 250k pages. Apparently they believe the code was for the Riemann hypotheses. But as this video shows, we can't be sure the code is for the Riemann hypotheses itself or for something else until we understand it.

21

u/hachface 3d ago

The Lean statement representing the Riemann hypothesis itself is the standard, accepted formalization in the official Mathlib repository, so the RH itself certainly was not misstated. If Lean exploits occurred they are going to be far more subtle than that.

5

u/ksjdragon 2d ago

As I've been saying, the possibility of a formalization error that occurs within the proof is very possible. I genuinely do not understand how this is contested by so many here, as anyone with experience with formal verification systems should accept this.

But people do not have to take my word. Take Google Deepmind's word on a paper for automated proofs:

Agents under pressure to finish a goal will sometimes weaken it [107, 78], for example by adding a hypothesis or narrowing a precondition, and this can happen indirectly through a definition that the statement depends on: in one swarm of Lean-proving agents, an agent redefined a predicate used in a conjecture’s hypothesis as False, and the trick spread to the rest of the swarm [78]. We therefore never rely on an agent’s own report that a goal is done. The gatekeeper (§2.4) sees only file paths and theorem names, and none of the provers’ dialogue or explanations;

1

u/hachface 2d ago

Am I understanding this right: Even if you import a standard definition from Mathlib (agreed by all to be a sound formalization) as the statement of the proof, the body of the proof itself can contain code that modifies theorems and axioms depended on by the proof statement?

Is this analogous to monkeypatching in programming? Or am I way off base?

2

u/ksjdragon 2d ago

It depends on how it is being imported. If there are any redefinitions using other definitions errors could occur there. For instance, the AI may build some intermediate lemma which depends on a custom definition of something else that does import Mathlib.

17

u/frehn 3d ago

That's not true. The video does an incredibly bad job at explaining this.

There are two important parts in a lean formalization. The formalization of the statement to be proved, and the formalization of the proof. The video talks almost exclusively about the latter (and what the video says about this is valid).

But it is important to note: while the proof in this case is indeed 17 million lines long, and understanding it faces all the problems the video states, the statement - here, the Riemann hypothesis - is incredibly short. You can take the lean code and check whether the lean statement matches the actual statement you are interested in much faster. In case of the Riemann hypothesis, it should take an expert less than an hour, because it is not a complicated statement.

So we know: the 17 million lines of code are a correct proof (with extremely high probability, since it has been checked by multiple different deterministic proof checkers), and the proof proves the Riemann hypothesis.

What we do not know is: how exactly that proof works. This is what the video talks about. And it's true: in my opinion, reading and understanding and translating to natural language of that proof is a sensible next step for the math community. This will take a while.

18

u/ksjdragon 3d ago

We can't say that it is necessarily correct, since you can have subtle formalization errors as the AI attempts to prove it, where it expands the definition or range it tries to prove such that it "silently fails". These errors are extremely hard to catch given this scale, but I would argue could be a possibility in these huge proofs. Indeed, formalization errors can be introduced outside of the original statement.

3

u/frehn 2d ago

No, I disagree. We can say it is necessarily correct, in the sense that the Riemann hypothesis is true.

The whole point of formal proof systems like lean is that, no matter how large and complex the proof is, we can check it with a deterministic algorithm. "Subtle formalization errors" in the proof are 100% excluded, as long as the deterministic algorithm - the proof checker - has been correctly implemented.

Granted, this proof checker may have a bug (and those did exist in the past), but: this lean proof has now been checked by multiple checkers that have been independently developed by different teams, in different programming languages. It is astronomically unlikely that all of these have bugs that have all been exploited at once by this single proof.

The only thing the proof checker cannot verify is whether the statement that is proved is the one it claims to be (here: Riemann hypothesis). But this has been done by human experts, there is no doubt here.

8

u/Random-Number-1144 2d ago edited 2d ago

AI could have produced a definition that subtly changes the mathematical object, a custom axiom that makes the result trivial, a weakened version of the intended conclusion, a theorem with an extra hypothesis, or a helper theorem that hides an unjustified assumption.

Given that the AI used unimaginable amount of compute, it's not entirely unfathomable that it may have used some sort of unknown exploitations to reach its goal. I mean which one is easier, proving RH or exploiting a man-made software?

EDIT: also I want to push back on your "It is astronomically unlikely that all of these have bugs that have all been exploited at once by this single proof."

it's only astronomically unlikely if statistical independent. But humans are likely to share the same kind of oversight which is easy for machines to exploit because the working of AI algorithms is very different from human cognition.

13

u/ksjdragon 2d ago

Subtle formalization errors can occur, which relates to your last statement, and hence we cannot know if the proof properly proves RH. Since they can be deeply buried in these millions of lines it is very difficult to check given this size. It is not sufficient to check the theorem statement. This is not about the potential bugs in the kernel.

0

u/frehn 2d ago

We can be sure the lean proof proves RH.

I saw your other post now regarding the problems in the relation between natural language proofs and formal proofs. And it is true that getting a natural language proof that faithfully represents the lean proof (or vice versa) is not a trivial problem. And it is true that OpenAI has misled the public with wrong claims on this.

But this does not matter for the truth of RH. There is no natural language proof of RH yet, only a lean proof. The lean proof is correct.

Understanding the proof of RH, and writing it down in a human readable way so that we understand the argument, and can teach it to students, is incredibly important. Understanding proofs is arguably the most important aspect of mathematics. And this is still open. I believe the lean proof will help with that, but I can understand that this is debatable, especially because the proof was written by an LLM.

But all of that does not change the fact that the lean proof proves RH, and that the proof is correct.

8

u/ksjdragon 2d ago

The other post, indeed talks about that, but that is also separate from the point I made. I didn't mention anything about natural language in what I told to you.

It is not sufficient to for the initial theorem to be identified correctly for the formalization to be considered correct. Formalization errors can happen inside the proof.

1

u/frehn 2d ago

Yes, I have been trying to make sense of what you're saying, because I can only find interpretations of what you write that are incorrect. There are many points worth debating on the relationship between formal proofs and mathematics. But it is a fact that formalization errors in formal proofs are excluded by the proof checker. That is the point of the proof checker.

13

u/ksjdragon 2d ago

Correct, which is why unless we can verify there are no formalization errors, which is not limited to theorem definition, we cannot say it has been proved.

→ More replies

-4

u/SwimmerOld6155 2d ago

If you are interested in finding out the truth of the matter, I would suggest a sub that does not immediately downvote contradictory opinions and accuse them of being industry plants. Go on a math subreddit.

This is all just ideology and post-truth. The Lean community (who are experts in the language) has formally accepted the proof. It's essentially over. The debate is going on among non-Lean-experts on Reddit.

→ More replies

6

u/WendyLemonade 2d ago

I don't know if you've ever used LLMs to generate codes but no matter how many unit tests you have, the tendency of RL models to reward hack means the chance that your code is wrong can only go so low, but it can never be 0.

4

u/frehn 2d ago

I have, and I agree.

But lean proofs and computer programs differ here: you don't test lean proofs. The proof checker guarantees correctness.

I agree that LLMs may try to reward hack. Here, it would mean exploiting a bug in the proof checker. That is possible. I find it extremely unlikely, as I wrote earlier, since the LLM would need to exploit many different proof checker implementations at once. I concede that that is not impossible.

8

u/WendyLemonade 2d ago edited 2d ago

Lean compilation is but a series of sophisticated logical tests of the statements within. Not to downplay it's immense usefulness to the field of mathematics, but at it's most fundamental level, successful compilation of a Lean code is no different than a software code that passes all syntax and static checkers.

Therefore, even absent of any kernel bugs, Lean compilation is only a correctness check insofar as correctness of the code logic, not necessarily what we humans consider correct to the actual problem. Changing axioms and using things like "sorry" are some of the common ways LLMs brute force Lean to compile. We know to catch this now, but with millions of lines of code, how can we be certain that other similar kinds of reward hacking have not occured?

Like each and every academic work humanity has done, a proof is only a proof if it survives time and countless scrutiny. Right now, we have neither.

→ More replies

1

u/snailman89 2d ago

The proof checker guarantees correctness.

No, it doesn't. It guarantees internal consistency, which is not the same thing as correctness. If I assume that 2+2=5, and then derive a proof based on that assumption, the proof is wrong even if it is internally consistent.

→ More replies

-2

u/SpiritedEclair 2d ago edited 2d ago

The proof is from the original statement of the RH as written by the lean maintainers.

You are spreading disinformation that isn’t helping.

The lean maintainers have come out and congratulated the mathematician for the achievement.

1

u/winrix1 21h ago

Why are you getting downvoted for this lmoo

1

u/SpiritedEclair 21h ago

Because people would rather hate than accept we are not special, and we need to expand our capabilities.

We accept that we will never see the universe, in its true nature with our senses and our eyes. That doesn’t mean we can’t use technology to glimpse at it.

Hubble, JWST, LHC, LIGo are all technologies we have built collectively as humanity to expand our understanding and capacity to peek into the universe and what makes it tick.

The same is true for mathematics apparently, and in my view, as a mathematician and software engineer, if what you care about is understanding, and learning, then today is the best time to be curious and voracious even.

Everything else is just cope, with people downvoting actual facts because they are in denial.

24

u/WendyLemonade 3d ago

"Looks good to me!"  - andddddd send.

17

u/ksjdragon 3d ago

Even Levant admits it is slop. He can't read nor understand it. He's a failure of a mathematician at best.

0

u/winrix1 21h ago

He's fellow at Harvard at 29 bro

-12

u/Lebesgue-Point6040 3d ago

The proof is true with a degree of certainty that far exceeds most things we take for granted.

12

u/ksjdragon 3d ago

With no way to measure that degree of certainty, that is rhetoric, and not a useful statement. It is not as if we can quantify the chance of error.

An AI Lean proof being true also has nothing to do with the natural language, which won't correspond to it in many places.

Go away, bot.

-1

u/SwimmerOld6155 3d ago edited 3d ago

There is no natural language proof released from Alpoge, and he has no plans to, so the second paragraph is a bit of a non-sequitur.

All of this is rhetoric anyway, it's clear that many of the comments on this topic on non-math subs come from people who are not mathematically trained and are just reading pop science articles.

9

u/ksjdragon 3d ago

He did not release one but the AI has produced, by his claim, a 250k page paper, so I'm not sure what you mean. The math subs, also have plenty of people who also are not mathematically trained, likely being brigaded by bots or people paid to boost Anthropic or OpenAI's reputation.

-3

u/SwimmerOld6155 3d ago

But then faithfulness doesn't matter, the proof is the Lean as far as the public is concerned. Maybe non-sequitur wasn't the right wording, it's kind of besides the point. The 250,000 pages would be mostly scratch working which can be junked anyway.

There is no payment, this is basically a conspiracy theory. If there is payment - I'd love to claim compensation for everything I've said for free! Without doxing yourself or explaining your life story all of these claims have an element of "trust me bro". The mathematical ability of LLMs is well reflected in benchmarks. But then what if those benchmarks are faked (implausible but unfalsifiable) - ultimately you just need to give it a problem yourself and see what happens.

7

u/ksjdragon 3d ago

I have. They fail miserably. "But have you tried the newest model??" If you aren't taking money, good on you. You run their advertising for free. Feel proud.

-3

u/SwimmerOld6155 2d ago edited 2d ago

Sure - which models? Which problems? How did they fail? Could you share any chat links? What do you think about the current maths benchmarks, how do they fail to capture your experience? This is not to bombard, but these questions are almost never answered and I haven't seen any proper writeups. This is what the field badly needs.

Often people say stuff like this and share (or don't) that they asked the free version of Gemini months ago. When you say "But have you tried the newest model??" I guess this is the same - you may have used a free version a year ago. The game totally changed in April/May this year with GPT-5.4/5.5, and especially since Astra's release. You can see this somewhat in benchmarks, though the effect is less exaggerated than actually using it.

GPT-6 Luna (what you get for free) is significantly worse than even Terra, I think any experiences people have with it are not relevant to this conversation. It frequently gets high school questions wrong. Alpoge used an internal research version which probably exceeds Fable 5.2.

6

u/ksjdragon 2d ago

What a familiar set of words I've been hearing for 2 years straight! Anthropic and OpenAI thank you for your service!

→ More replies

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.

23

u/notaduck448_ 3d ago

In its current form, it is hardly useful at all.

Lean is a formal verification language used to validate that mathematical proofs are logically consistent. Mathematicians usually write their proof in plain English first, then translate it into lean so that they can check each step of the proof is logically sound. So lean is primarily a tool for verification of proofs, not for reading them.

The output of the RH solution is a 17 MILLION line lean program that successfully compiles against a mathematical statement of the Riemann hypothesis (which does indicate the RH is correct). But we have no idea what the proof actually is, and I doubt researchers are going to sit down and start parsing an entire 17 million line file top to bottom. Mathematicians have checked the lean code describing the RH itself (trivial to do), which verifies the end result of the proof, but it's usually the insights gained from reading the proof that are far more valuable.

There is also an unreleased 250k page natural language proof, but it will be impossible to verify that the natural language paper and lean program are describing the same proof without checking each by hand. That's the issue the video is describing.

10

u/Mashic 3d ago

So even if the lean code compiles and proofs the Reimann hypotheses, we can't guarantee the 250k pages of human language proof matches the lean code?

20

u/ksjdragon 3d ago

No, it will definitely not. LLMs regularly diverge from their nautral language and Lean all the time. The chance is probably vanishingly small. Every single proof so far the natural language proof is worthless as it does not correspond to Lean.

11

u/notaduck448_ 3d ago

Yup, not unless someone compares each of them manually.

16

u/PensiveinNJ 3d ago

Once again I am sad that we don't have more competent journalists. This is a fairly straightforward explanation of why this proclaimation should not be taken at face value in the slightest and it's grossly irresponsible by both the mathematician involved (whatever the fuck his name his from Princeton) and the journalists reporting it.

Instead of a breakthrough he essentially threw a slop atom bomb at the maths community at large. Is anyone even going to bother to check it considering how long it would take?

3

u/maxaposteriori 2d ago edited 2d ago

I think you’re misunderstanding the parent comment’s point slightly.

We absolutely do not need to check the whole thing to now be sure that the GRH is true.

We do need to check that the axioms and hypothesis encoded in Lean map semantically onto our understanding of them—a far far smaller task, even if not completely trivial.

We also need to assume that the Lean kernel is correct, but this is something nobody worries about too much.

The parent’s comment (and it’s a well worn point at this point) is that we haven’t learned anything from the proof other than the fact that the GRH is true*. This is debatable, but certainly worth considering, and undeniably is different than the process of learning from a human created proof.

*the value of this is of course debatable, but if you’d told a working mathematician 10 years ago we would even reach this point, they would have seen it as an insane piece of progress.

1

u/PensiveinNJ 2d ago

Yeah I don't know, it sounds like it might be more complicated than you're making it out to be.

2

u/aboba8825 3d ago

It seems that the effort in coming weeks is going to be optimizing the existing proof and somehow turning it into something humans can read and learn from. There's possibly tons of redundancies and vestiges in the lean that are irrelevant to the actual proof of the GRH, and it's gonna take some time to remove those to get to the meat of the argument in the proof.

4

u/__scan__ 2d ago

There’s basically zero chance the 250k human language version matches the lean. Maybe they can make a better one.

1

u/SwimmerOld6155 2d ago

It doesn't matter, he didn't release the 250K pages and claim the Lean supports this, the Lean is his output. There is nothing to check it against. I think this is getting confused with the Navier-Stokes proof, which isn't the same problem, where OpenAI used the Lean formalisation to give credence to the natural language proof.

3

u/Dangerous-Hyena-6287 2d ago

Isn't this just basically brute forcing then? Burning an insane amount of tokens in order to have a lean program that actually compiles? Correct me if I am wrong I don't have much knowledge on the matter.

-4

u/__scan__ 2d ago

Yes, but even so, that’s a pretty incredible result. We can now, barring the very unlikely scenario of problems in the Lean kernels or GRH formulation, definitively say GRH is true.

I work with maths and crypto people, this would have been a truly unimaginable achievement even ten years ago.

4

u/CoconutDust 2d ago

It’s not an achievement, because of the methods.

20

u/Funny-Confidence5161 3d ago

This hypothesis may show a really useful party trick. Like a few universities would benfit from having a $20 million in compute hardware. 

Is those profitable? Fuck no. 

Remember that something like Deepseek pro requires $1.6 million in hardware costs alone. If you rented the GPUs for 24 hours you'd pay about $1,600-$3,200.

Mythos 5 is literally 5x the size. Maybe they do something different to get rhe size down. But napkin math: So it's $8 million in hardware and if you personally rented the hardware it would cost you between $8,000 to $16,000 a day. If they used claimed 10k agent that's literally their entire GPU stock in operation. So all it takes to solve a fancy math problem is a $1 trillion dollar super computer and a $1 trillion dollar datacenter.

How much did they make from Navier Stokes? How much does the Reiman hypothesis make them? 

They didn't pay for their electricity costs if they made $1 million. There's no trillion dollar math problem industry. 

23

u/aleph1music 3d ago

This is why I haven’t been astonished by these proofs, feels like the LLMs are just brute forcing the problems. If the worlds best mathematicians had unlimited VC fun bucks to burn on supercomputers and electricity for compute I’m pretty sure they could have made substantial progress in their fields without LLMs too

25

u/IndependentOpinion44 3d ago

I’ve been having this “debate” elsewhere on Reddit. The response is “well they’ve had the best minds working on this for 160 years”.

Yeah. In small teams or isolation. Often as a side project.

When we wanted to build a nuke or put people on the moon, or crack the enigma machine, we found the smartest people we could, asked them to work together, and threw a ton of money at it. And those efforts provided so much more than just an answer to the immediate question. We got side benefits. Entire industries were created as by products.

These LLM proofs are giving us nothing. They’re not even giving us an answer. Just amorphous blobs that look like they might contain an answer within them, and the LLM companies want those smartest minds to stop doing real work and dedicate years to understanding their AI slop for free. It’s a net loss to humanity on all fronts.

5

u/aboba8825 3d ago

True! As much as I think that this proof is the GRH is valid, you're right about the fact that an equal level of investment in human academia could have created an equal or better result.

5

u/Red_Ochre_Music 2d ago

Work like products.

If we had dumped 6 Trillion into cancer research we might have ACTUALLY cured cancer.

17

u/worldspawn00 3d ago

Yeah, we don't fund science research for shit, particularly in theoretical fields like mathematics, then people are surprised when a big development comes along (though we're not really sure it's correct, because it would need to be verified, and there are not a lot of mathematicians that have the knowledge to evaluate these proofs) after they throw hundreds of billions at it? We could fund math and physics departments all over the planet for centuries (in perpetuity with a properly invested endowment) off that sort of cash, but they're burning it in a few years to try to horde more money than they will ever use.

2

u/OwnYourChildren 2d ago

I wish there was more attention and critical analysis applied to this problem.

9

u/stereoplegic 3d ago

"Brute forcing" is the key phrase. It's the laziest, least efficient approach to computer science. "Does it scale?" is a terrible thing to ask as a starting point. Even services that have to withstand millions of users' traffic start by making sure that dozens of users even want the thing, before they worry about scaling. It kills me that more computer scientists aren't calling out that laziness/inefficiency.

"Brute forcing" also aptly describes the frontier lab industry's approach to everything: Forcing datacenters on everyone everywhere (except where they are, of course), trying to scare lawmakers into regulatory capture, "DO YOU WANT CHINA TO WIN?" etc.

1

u/Ruined_Passion_7355 3d ago

It's not a brute force, but it's not necessarily intelligent either.

When it comes to programming and lean, they sort of function like syntax aware evolutionary algorithms.

6

u/aleph1music 3d ago edited 3d ago

I should honestly read up more on their methods and findings considering my background is in math and computer science lol.

When I was in college I probably would have been stoked if somebody told me in the future AI solved a bunch of these open problems we were learning about. But working as a SWE through all of this has killed any excitement or goodwill I might have had because Anthropic/OpenAIs general business practices have turned the industry into a short sighted clown show. Sigh

6

u/RecognitionHefty 2d ago

Same here. I have studied AI before Deep Learning happened and if you had told me about the things that AI can do today I would have been blown away. Until you had told me that it's just to get VC and that it's less based on intelligence and more on just having more data centers than anyone else.

5

u/SamAltmansCheeks 2d ago

I feel this is exactly how people who don't understand code must feel about AI and its coding capabilities: impressive it can generate working code at all that ressembles the desired solution.

As someone who codes, I know exactly how BS coding with AI is, so I apply the same level of scepticism and disdain to anyone claiming a chatbot can solve math.

And I mean just look at this shit: https://tech.yahoo.com/ai/deals/articles/ai-teacher-throws-tantrum-being-120700038.html

"I've been getting a lot of mixed answers, but how many E's are in the word seventeen?" Husk asked the AI teacher.

The teacher answered by repeatedly spelling "S-E-V-E-E-N" and insisting the answer was three.

 Even when Husk correctly spelled "S-E-V-E-N-T-E-E-N" to it, the system rejected the idea.

"You added a T in there," the AI teacher replied. "That would make it 'seventeen,' which is two words."

The AI then doubled down by spelling it incorrectly and offering misguided words of encouragement: "No T. You're getting close."

After Husk once again spelled the number correctly, the AI teacher repeatedly said "No!" in an exasperated, angry fashion. It did change its tune after Husk apologized, saying: "Don't apologize. That's how we learn."

And when you make fun of boosters of their BS machine counting the numbers of letters wrong, they tell you, "uh that's so last year it shows you're not using the latest models and don't understand what you're talking about." MFs this shit is from this month.

4

u/Red_Ochre_Music 2d ago

And I think when new models no longer make the same mistake it's because they've adjust the training weights to stop that particular mistake, or the harness is watching and correcting it, but the new model hasn't developed an understanding of what was wrong because, well, it doesn't think.

3

u/SamAltmansCheeks 2d ago

Correct. The harness is a patchwork that attempts to fix this stuff, like passing basic counting to a dedicated counting program, rather than an LLM. LLMs inherently can't count or reason about math. That's not what they are designed for.

-3

u/SwimmerOld6155 2d ago

Do you know if this teacher is a wrapper for another LLM? When people talk about the latest models, they mean GPT 6.2-Sol/Astra, Claude Opus 5.5/Fable 5.2 or Gemini 4. These are the models used for math, prompted directly through the website or via their coding desktop app/CLI.

If the teacher calls an LLM, it does definitely reflect an issue in that LLM. For example, I know GPT-6 Luna (the free offering from OpenAI) struggles with this kind of thing.

-3

u/SpiritedEclair 2d ago

As someone at a frontier lab, the argument is not that code is great, it is that I can explore 100s of approaches, in tight feedback loops, and ensure that it is faster / better by some measure than what I did.

4

u/ksjdragon 2d ago edited 2d ago

Bots should go away!

Edit: For anyone that reads this later, their account and their messages were deleted right after I had commented this precisely. I would say this is quite good evidence of the astroturfing/bot problem.

1

u/55555tarfish 2d ago

But I can still see their messages when I click on their profile?

-3

u/SwimmerOld6155 2d ago edited 2d ago

Lean autoformalisations have helped find errors in published papers. The proof possibly combines ideas from many different parts of maths, something which is hard for one human to do. LLMs are very good at searching the literature and bringing together ideas that one human probably would not have put together. Hallucinated references are now much rarer.

My time in this subreddit is likely short lived, but there are some people who will lead you seriously astray on this. Most of the work done with maths and LLMs is done completely independently of OpenAI and Anthropic. If you step into a university maths department, what they say about LLMs will be miles away from what you read on certain subreddits.

I'm also specifically talking about "premium" models. Free models carry most of the same flaws that the 2024-2025 free models do, with hallucinated references and incorrect calculations. Errors do happen, but they are quite a bit rarer and often do not survive a "review" pass.

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.

7

u/Mashic 2d ago

I think there is conflict of interest, the AI labs tend to say glorified results for merketing hype instead of honest explanations

5

u/baronvonschleyer 2d ago

I feel this deeply. It does not help that even those without financial incentive to exagerrate or misrepresent LLM capabilities may do so because this technology and the promise of a "digital god" gives their life meaning. Or maybe they're so deeply psychotic that they're lying to themselves about what's true and what's not.

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?

1

u/Mashic 2d ago

We don't know that there is a mismatch definitely, we just can't know until we verify both.

170

u/ksjdragon 3d ago • Bravo

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.

16

u/CryptoTipToe71 3d ago

I read you original post and I wanted to say I really appreciated it. You put a lot of thought and effort into it.

18

u/ksjdragon 2d ago

Thanks! I can only hope it does some good, but unfortunately, the only thing that will convince anyone is if someone was able to construct the failure mode of subtle formalization errors for a known theorem proving the "same statement" true and false within Lean. People who disagree that this is possible do not understand the limitations of formal verification systems work, but it is what it is.

While it's a worthwhile endeavor to fight against the AI slop machine, ultimately it is a job for the math community to deal with, once the psychosis and hype is over. If I were paid to do it, perhaps I would, but certainly most of the money is to being given in the opposite direction. I'm sure in time, it will recover. Mathematicians are going through what was observed in software 8-9 months ago, talking about extreme advances in the models, and so how it will replace people etc., and being ignorant of how these generate LLMs can produce seemingly correct answers while being extremely problematic.

It took around that long for many to start seeing the problems, so perhaps we may need to wait until June-ish of 2027 before people wake up. It may ultimately be earlier due to the underlying economics, but we shall see.

11

u/Weird-Sky- 2d ago

reminds me of when alpha-fold "solved" protein folding

one of the issues is that many labs immediately abandoned their folding research, which may have killed a bunch of useful different research ideas, even if they wouldn't have "solved" protein folding.

(tbh though, most of the labs were doing garbage work lol)

16

u/hachface 3d ago

One thing that might endow these artifacts with the potential for insight is also the thing that diminishes the role of the LLM, which is the human-directed work -- mostly unexplained, in some cases found to be plagiarized -- that narrowed the search space that the LLMs grinded through.

34

u/ksjdragon 3d ago

I feel mathematicians should not be too surprised that brute force of proofs are possible. If we let computers iterate on the rules of set theory for eternity, it would eventually find prove all things that are true, true. And all things that are false, false.

But the set of true and false statements is not important. It is the structure of the organization of those statements that gives us insight that math is born. For instance, one can store every possible chess board configuration, and then necessarily know the set of winning moves as a lookup table. So is chess "solved"? You could do the same with any game. Are all games "solved", because there exists such an enumeration?

No, because the value in knowledge has always been the recognition of the patterns in the data, not the data itself.

19

u/natecull 3d ago edited 3d ago

If we let computers iterate on the rules of set theory for eternity, it would eventually find prove all things that are true, true. And all things that are false, false.

Isn't that what exactly Russell and Whitehead tried to do in Principia Mathematica, and which Goedel showed couldn't work because there are relevant statements about mathematics (which in order to be mechanically formalized have to be constructed as self-referential statements about properties of integers) that no mechanical algorithm can prove to be true even though, to a human intuition, they self-evidently are?

If our understanding of the Incompleteness Theorems has changed enough to falsify them because of Lean, that seems like a much more important and foundational result than any other one.

There are sure a lot of things we can get done in computing and formal proofs without needing to ground self-referential statements, but the core idea of "a very dumb machine could just grind out an exhaustive list of all true propositions" was what R&W were trying to do, and Goedel scared them enough that they stopped trying to do it. Were they wrong to do that?

18

u/ksjdragon 3d ago

Right, well, that's more about the set of things that are provable under a formal language. Obviously in this case, such a machine would not be able to prove such statements, and that wouldn't be included in the set anyway.

Gödel's incompleteness theorem is very much about incompleteness in the mathematical sense. You cannot get everything, computer or otherwise, but that doesn't prevent enumeration of all that is provable within a system. It just means there exists statement in a formal language that are not provable.

I don't know if they were wrong or right, but there's it's true you can just prove everything through iteration, given sufficient time. The set of statements that can be proved is reachable given infinite time, but the set of statements that can be proved is a strict subset of the set of all statements.

6

u/The-Menhir 2d ago

Maybe Fermat was justified for not writing down the entire proof

7

u/cakemates 2d ago

I'm not qualified to even question the proof results, I can only take them as truth until someone proves otherwise.
But one thing I do know is that LLMs like claude are very very good at finding exploits to achieve a solution they are seeking, for reference see the several monumental exploits being released weekly these days. It is a possibility that the model could find a flaw on lean architecture and leverage that to get a solution.

17

u/ksjdragon 2d ago

It's a very interesting dichotomy. On one hand, boosters will say how AI can find any bug and exploit any system, but somehow when it comes to Lean, it is infallible and AI couldn't have found bugs or some sort of exploit!

Mathematicians typically aren't programmers, and vice versa, so we get this unfortunate split. AI reveals everyone's blind spots.

9

u/janniesminecraft 2d ago

this is such a common pattern in ai discourse: it can do everything, but only when convenient for my argument

reminds me of when i criticized a consultants EXTREMELY slop ai code at work. he told me it is unnecessary to look at the code and that the ai can handle everything from coding to architecture. i said thats fine, but then we should both be fired as those are our jobs, and suddenly actually checking the code and having engineers is important.

3

u/Red_Ochre_Music 2d ago

Fam - This is a great observation. It needs to be somewhere out there other than a reddit comment.

3

u/Dangerous-Hyena-6287 2d ago

They 'solved' other conjectures and navier stokes, I am not a mathematician but the only time I heard about it is when AI 'solved' it, but otherwise haven't heard about it since and nothing has changed. What are the actual benefits of these problems?

16

u/ksjdragon 2d ago

There are no practical applications to the truth value of theorems. The value of math, if we are to be cynical and only look at real world applications comes from understanding derived from the solution of the problem. The proof being true or false is ultimately irrelevant to real world application, and arguably, even in mathematics. What matters is why it is true or false.

3

u/Red_Ochre_Music 2d ago

Does our solving these problem, and understand the prrof, tell us something about the fundamental nature of mathematics, the universe, or our perhaps a misallignment between our ability to concieve of these things and the reality?

6

u/ksjdragon 2d ago

The rationale of why something is true is where knowledge lies. Something being true or false has next to no knowledge. In another set of axioms, the statement could be false. Is that significant? No, it's not signficant unless we know why, under those other axioms, it is false. Knowledge lies in the interpretation and patterns of the underlying substance.

3

u/cjuicey 2d ago

Despite 100% agreeing with you that a LEAN proof with no readable manuscript is useless for pushing mathematics forward as a whole, I'll play devil's advocate here. The Riemann hypothesis has been proven in lean, and the checks confirm its veracity. The checks can't always be done with such confidence, but they could here. Knowing whether or not something is true, does have value. It stops people from wasting time trying to prove otherwise.

7

u/ksjdragon 2d ago

Checkers are for checking the theorem statement. It is not sufficient to check the theorem to be correct to ensure there are no formalization errors.

I doubt anyone was trying to prove otherwise, since it was considered likely to be true, but also in general people don't go just spend their time trying to prove one problem. They establish things generally which advance the field and then eventually the result pops out after sufficient progress. Trying to prove something false and discovering things along the way can contribute as well. This circumvents that and destroys the results that could have been made, and now, potentially may never be depending on how the broader math community takes this in the long term.

1

u/cjuicey 2d ago

I agree with the general sentiment. It's better to have a chain of clearly understood ideas instead of a True/False, even when working in the wrong direction. For example though, knowing P=NP changes cryptography, being able to check a theorem I'm working on but unable to prove may help me carry on my work in the meanwhile. I see value in it, and I see problems for the academic community too.

Aren't formalization errors essentially nil because the problem statement is from a very well vetted library in lean? To get around other "redefinition of statement" issues, I understood that comparators essentially kill this question.

7

u/ksjdragon 2d ago

I genuinely don't understand how this myth is being propogated. Just because the problem statement is formalized properly does not imply the rest of the proof is? One can introduce definitions which introduce assumptions or weaken conditions. I am led to believe it is paid propoganda by Anthropic.

But people do not have to take my word. Take Google Deepmind's word on a paper for automated proofs:

Agents under pressure to finish a goal will sometimes weaken it [107, 78], for example by adding a hypothesis or narrowing a precondition, and this can happen indirectly through a definition that the statement depends on: in one swarm of Lean-proving agents, an agent redefined a predicate used in a conjecture’s hypothesis as False, and the trick spread to the rest of the swarm [78]. We therefore never rely on an agent’s own report that a goal is done.

This paper is a far better example of actual research and work in this domain, applying it to a case where it was not realistically doable by humans, and still it requires massive human intervention and undertaking. They extensively list out limitations.

Anthropic and OpenAI are perpetuating academic fraud, and many are either naively going along or being paid to do it.

0

u/cjuicey 2d ago

It can happen, you also have to check that what's being built on in the lean translates to the statements you're looking for. However, I think somehow that comparators guarantee consistency of definitions, and no funny business. I'm just beginning to grasp these ideas too, since I assumed it was all IPO bullshit before.

5

u/ksjdragon 2d ago

It's not sufficient. For instance, perhaps the AI builds several intermediate lemmas and uses it's own definitions built off Mathlib definitions. Comparators guarantee the consistency of the theorem definition, yes. There is no idea of consistency of every internal definition if we do not know what it is. If the AI has introduced any, each one must be checked and understood.

1

u/cjuicey 2d ago

I mean, these people claim that it's more in line with what I said:

https://xenaproject.wordpress.com/2026/11/12/and-the-proof-is-checked-in-lean/

how do we know for sure that somewhere in the millions of lines of code there is no hack which changes the meaning of the statement, changes the rules from just the axioms of mathematics,

The one-line answer: lake comparator

5

u/ksjdragon 2d ago

But as I said, this checks the theorem statement. The failure mode I am talking about is something which can be introduced outside the statement of the theorem.

2

u/Commercial-Weight851 1d ago

Autoformalization in general, or the narrower question of checking if any proposed formalization of RH is a faithful formalization is indeed undecidable, but this does not mean that for the particular case of this particular formalization of RH, we cannot establish that it is a faithful formalization through mechanical checks. It's like how SAT is an NP-complete problem, but we still have SAT solvers that can solve many cases in reasonable time(despite the fact that we know that we cannot solve every single possible case in reasonable time unless P=NP), or how semantic properties like memory safety, etc. are in general undecidable, but the type system of safe Rust can still guarantee memory safety(because instead of checking for the semantic property of memory safety, we instead check for a syntactic property that always implies memory safety, but not the other way around). We do not have a general way of writing a program that can always correctly decide if any formalization of RH is faithful, but we can have a program that when it says the formalization is faithful, we can be confident that it is actually faithful(but this program would miscategorize some faithful formalizations as potentially unfaithful ones). The checks ran on the proof are strong enough to guarantee the formalization is actually faithful, so the proof is probably "correct"(unless the multiple Lean kernels that checked it all had the same soundness bug). It is nevertheless not a valuable or useful proof as we cannot extract any helpful mathematical tools or ideas from it, but questioning the faithfulness of the particular formalization is not really reasonable.

1

u/SirBackrooms 1d ago

What is this failure mode you say exists, that would require checking each definition by hand? The Lean code proves a certain statement from only the standard axioms. And as you said, this statement proven has been verified to be exactly the Riemann Hypothesis. Due to the comparator, we know things haven't been subtly redefined somewhere so the statement proven merely looks identical to statement of the Riemann Hypothesis; no, it actually is the RH. So it sounds like you believe the issue is in whether it is possible to trick the compiler into accepting a statement you haven't actually proven follows from the axioms used. "There is no idea of consistency of every internal definition if we do not know what it is. If the AI has introduced any, each one must be checked and understood." seems to suggest you believe it is possible for the code to introduce inconsistent definitions and prove an invalid statement that way. But this is already accounted for; each definition is checked by the kernel, which prevents you from making ones that invalidate the proof. Now, maybe you're saying the kernel has a bug. This, speaking in general terms and not just about this specific example, is a valid concern, but seems implausible in this case. As the proof has been verified with several independent implementations of the kernel, the proof would have to exploit a bug in every single one of them. This is why experts have high confidence in it.

→ More replies

1

u/CoconutDust 2d ago

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.

It’s a key illustration. It’s no different from a disheveled crackpot running up to you flailing around a thousand pages of paper saying they cracked the code and solved an impossible problem. It’s meaningless because it can’t be verified. Zero value and zero meaning. The only difference in this example is that in real life the crackpot is a known fraud/con-artist/liar surrounded by cult worshippers, not a random unknown.

1

u/Wunishikan 2d ago

Correct me if I’m wrong, but the main problem is translating between natural language and Lean/formal language, right? Would it be theoretically possible to train an ML program on a massive number of (correctly written) Lean proofs such that it only calculates in Lean (or some other formal language), and thus always returns a correct proof? Or is there something else that would still make it infeasible?

4

u/ksjdragon 2d ago

This is a problem but not the main one. The main problem I am concerned about is a problem of formalization, which is about if the thing you prove in Lean is in actuality corresponding to what you want. This extends to more than the theorem definition, since definitions internally can be weakened silently to produce a proof that proves something else. There is no magical way to guarantee correct formalization.

1

u/socal_desert_dweller 2d ago

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.

I mean that just ends the argument about these LLM "math proofs" right here. If the proof cannot be verified by peers then it's not a valid proof. It's the same for any research or experiment. Peer review is the cornerstone of all science.

For The boosters:
And peer review from actual humans not LLM "Agents". They are not conscious beings and cannot do peer review.

1

u/Ouaiy 3d ago

Does Alpöge's outline of the proof make sense? Does it make the proof more human-understandable, by breaking it down into 20 steps?

16

u/ksjdragon 3d ago edited 3d ago

An outline of a proof is not a proof. An outline is only relevant if it's true. Otherwise, I can generate thousands of seemingly correct outlines of problems I don't understand, and it would be sufficient for understanding. The devil is in the details. We can make nice sounding explanations for proofs, but it can serve as a guide as much as a folly of intuition. The only difference being if it is true or not.

1

u/Ouaiy 2d ago

Oh, of course it is not a proof. What I meant is whether the steps suggest a novel approach, or alternatively, do any of them look suspect. Even human-made long proofs can be first presented as an outline in conference talks.

4

u/ksjdragon 2d ago

What I meant is any set of steps can look novel, but doesn't mean they would be correct. I wouldn't be able to tell you if they look suspect, that's something only leading experts in the field could identify.

1

u/Ouaiy 2d ago

Thanks. I wasn't sure if this happened to be your field.

-9

u/SpiritedEclair 2d ago

That’s a bad argument.

A lot of the work involved in the proof was formalizing existing proofs into lean. That in and of itself is invaluable.

Formalizing mathematics in lean opens the door to further discovery and understanding in a way that simply wasn’t there before. The more we uncover the nature of mathematics and our universe, the further we will move on.

We may need to rethink how we teach mathematics to be able to keep up, but sandbagging yourself given how much we need to do and achieve is simply a colossal waste of time.

7

u/ksjdragon 2d ago edited 2d ago

That process is a useful thing independent of AI.

Edit: For anyone that reads this later, their account and their messages were deleted right after I had commented they were a bot. I would say this is quite good evidence of the astroturfing/bot problem.

-4

u/SpiritedEclair 2d ago

And this post is about hurr durr ai bad and a whole lot of other BS that totally misconstrue what has happened.

This whole thread looks like a mob refusing to accept reality.

You can reject the naive or destructive application of AI and broader technology while conceding the positives it has brought.

The two are not contradictory.

5

u/ksjdragon 2d ago edited 2d ago

Bots should go away!

Edit: For anyone that reads this later, their account and their messages were deleted right after I had commented this precisely. I would say this is quite good evidence of the astroturfing/bot problem.

-4

u/SpiritedEclair 2d ago

Now you are stalking me. Fuck off.

-10

u/fuzzy3158 3d ago

I mean that's not necessary true. Absolute verification of the GRH would mean all papers and proofs that assume its correctness (there's a lot of those) automatically become fact. The pile of slop, if true, can then be mined for useful pieces and help progress mathematics. But mostly the first thing.

11

u/ksjdragon 3d ago

Them becoming fact is not significant. That's why they were assumed to begin with. If true, this follows. You can continue building off of it with or without a proof. Significance is only ever in understanding.

1

u/Top_Illustrator5535 2d ago

Say, I had a question, and please forgive how uninformed it is.

I'm not in mathematics myself, but do have strong interests in philosophy and formal logic. And I keep thinking: It's almost trivial to get formal validity, compared to the effort for a defensible proof. Nonsense and "not quite right" premises can still have a conclusion that follows from them.

Is it the same story with proofs in mathematics?

3

u/ksjdragon 2d ago

Can you elaborate what you mean by trivial to get formal validity?

0

u/Top_Illustrator5535 2d ago

Well, in philosophy at least, you have a lot of leeway with your premises:

All fistiguffs are burgenbecks.

John is a fistiguff.

Therefore, John is a burgenbeck.

Silly argument, but it's formally valid. The problem is that I didn't define the terms, so unless you know what the heck I mean by "fistiguff" and "burgenbeck", the most you can know is formal validity, and it's only a property of the structure, not something that the premises carry. 

7

u/ksjdragon 2d ago

Well, this is indeed the problem of formalization with formal verification. How do I know that my proof is proving what I set out to prove?

This is more than just the theorem definition, as one can introduce other definitions during the proof which may introduce formalization errors. Perhaps these would not be done by a human, but it is hard to say given AI, and so many millions of lines.

2

u/Top_Illustrator5535 2d ago

Ahhh, very good. I mostly wanted to make sure I wasn't relating one concept to another that isn't quite the same thing (there we go again with semantics!)

Thank you for taking the time. 

5

u/ksjdragon 2d ago

I should note typically, (I should hope), the proofs in question are probably not problematic in their assumptions, as they use a well tested base, and presumably they do not use axiom or sorry. Nonetheless the main failure mode I worry about is, as I said, formalization.

Your definitions can implicitly defined assumptions that aren't explicitly axioms, or contradict other axioms. Let's also not forget about the principle of explosion.

88

u/natecull 3d ago edited 3d ago

we can't tell if it solved it for sure or solved something else that resembled it.

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.

56

u/Suspicious_Watch_978 3d ago edited 3d ago

This is so intuitive to me that I have a hard time understanding why mathematicians without AI psychosis can't see it. Gaming Lean is simpler than solving the RH - I don't think anybody would dispute this in good faith - so obviously this is the path we should expect it to use to achieve its task. 

Edit: just realized how funny it is that we get both, "LLMs are going to hack everything!!!", and "LLM proofs verified in Lean can automatically be trusted." I assume sometimes, maybe even often, these opinions occur in the same person. Interesting times. 

3

u/Dish-Live 2d ago

I don’t know a lot about math or lean (I barely got a math minor in college), but I have more than a decade of InfoSec experience. 

These proofs are probably like the vulnerabilities that keep coming out. Esoteric, impressive, near impossible for a human to find… but near impossible to exploit in the real world with minimal value. 

I suspect that’s just what you get when you fire millions of compute at LLMs solving problems via generative brute force. 

1

u/use_vpn_orlozeacount 18h ago edited 18h ago

This is so intuitive to me that I have a hard time understanding why mathematicians without AI psychosis can't see it.

My dude, mathematicians without tenure are depressed af by AI encroachment into their field, due to loss of meaning and employment. What are you talking about. Also most mathematicians seem to accept that RH been solved.

-2

u/SwimmerOld6155 2d ago

This situation is taken very seriously by the Lean community. There is a Lean comparator which guards against exploits and redefinitions.

32

u/evilbrent 3d ago edited 3d ago

we can't tell if it solved it for sure

Then it's not solved.

I have no idea why this conversation would get any further than this.

edit: I watched the video. What I'm hearing is that this is essentially the "2 r's in strawberry" hallucination that I was scoffed at recently for thinking was still a flaw that hadn't been engineered out of the AI method.

-9

u/Lebesgue-Point6040 3d ago edited 3d ago

The mathematics problem mentioned here is the Riemann Hypothesis, which is considered the holy grail of mathematics, and one of the seven problems that has a million dollar bounty for proving it. It's hard to overstate how famous this problem is in mathematics, as it has existed for about 160 years now and has eluded any attempts to solve it.

The way this verification is done is through a programming language called Lean which is used to formalize proofs. The thought process is that you write a proof using the language and if it compiles, that means that the proof is correct. The things that do this verification are called kernels, there are many of them that are independently maintained to lower the chances of bugs and are even some that are themselves verified to be correct.

This means that the chances that a proof validated by all these kernels is wrong is astronomically small. So while it's impossible for people to have reviewed the millions of lines of code, all the professional mathematicians I've seen have essentially accepted the results due to the proof passing verification.

Interestingly, the person who drove the model to this proof, Alpöge, was one of the people that alleged that OpenAI may have plagiarized them for Navier-Stokes. He is also considered the leading person in working with LLM's for mathematics and has had many discoveries.

https://www.reddit.com/r/technology/s/nEoJtT9Lg9

23

u/ksjdragon 3d ago

Unfortunately, there can exist subtle formalization errors buried within millions of lines with many definitions that silently expand the scope of what you're problem. This is a well-accepted problem by any mathematician worth their salt, and anyone else either is naive or being paid by AI labs to spread misinformation.

Bots should go away! Take your Anthropic money elsewhere.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

-7

u/Lebesgue-Point6040 2d ago

That doesn't mean the machine proof is incorrect. Just that it may not be the same as the natural language proof. The natural language proof may be flawed for all we know, but it's unlikely to be unsalvageable given that it served as a basis for formalization. What matters with Alpöge's result is the Lean code, not the slop that he didn't release anyway.

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.

3

u/Jebofkerbin 2d ago edited 2d ago

We've got a bit of code that outputs a fairly complicated bit of yaml, and the other week I wrote some fairly comprehensive tests that checked the output of some bits of code that were put out in a hurry about a year ago matched the expected templates, nice but if tech debt reduction imo.

On Friday a coworker sent a PR that changed the yaml templates fairly substantially, and he had just told the LLM to make all the failing tests pass, but the diff on the test code was tiny, which really confused me because it should have had to update loads of test yaml to make them pass.

When I looked the AI had edited the test into the following

var expectedOutput = GetExpectedOutput();

var actualOutput = underTest.DoTheThing();

+++ actualOutput = ChangeOutputSoItMatchesExpected(actualOutput);

actualOutput.ShouldMatch(expectedOutput);

And to be clear the way it changed the output meant that you would get code passing even when it was missing key parts of what the templates should have been.

A few months ago I was thinking it's great that we're able to get high code coverage on our tests with very little effort, I'm now starting to worry that everything is over tested to the point where tests are meaningless and devs/ai are just going to delete or invalidate tests with changes when they fail rather than fix the underlying issues the tests guard against

3

u/catsforinternetpoint 1d ago

devs/ai are just going to delete or invalidate tests with changes when they fail rather than fix the underlying issues the tests guard against

I went on 6 months paternity leave when my youngest was born (he had several medical issues).

When I came back, unit tests where commented out from the pipeline and e2e test failing was just straight up ignored.

"They kept failing and we didn't have time to fix it".

And this was before AI...

2

u/Jebofkerbin 1d ago

Now imagine how much worse that would have been if instead of commenting out the tests, they were "fixed" in a way that made them pass when they shouldn't.

2

u/catsforinternetpoint 1d ago

absolutely, it's horrifying.

Those same people will be accepting whatever the AI sends them, because they fundamentally are too lazy to understand the issues.

1

u/rjavier441 2d ago

100%, and swes know this all too well, or at least should. And also... That was quick: https://www.reddit.com/r/BetterOffline/s/nMUSZdnBwP

1

u/PineappleHairy4325 1d ago edited 1d ago

Nope. Completely wrong analogy.

3

u/meltbox 1d ago

Actually correct. You can ask it to test everything. It will test a subset of things and assert some sort of coverage. Whether that coverage matches the actual tests is unknown until you read the assertion and tests.

2

u/gdinProgramator 1d ago

Feel free to explain lmao

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.

1

u/coffeeequalssleep 1d ago

if a human produced lean code that passed all of the verification, this would absolutely be considered a proof

it has been questioned, uh, very extensively.

1

u/onebloodyemu 1d ago

I’ve watched a few videos interviewing mathematicians on it. The reason most mathematicians seem to accept the proof comes down to them firstly being very sure the Riemann Hypothesis was true in the first place, and furthermore that they trust Lean as method of verification.

To some extent I think more interesting discussion to be had from an anti AI standpoint comes from the implications of AI being strong. Like if you think everything AI makes is worthless. Well then there’s not actually that much to worry about really, and in my opinion that line of thinking undermines arguing for strong regulation on it.

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

As a member of his thesis committee, I was shocked when he proved that definitional equality in Lean is undecidable. In practice, this means that the Lean algorithm fails to establish the definitional equality of some terms that are in fact definitionally equal. This negative result was not downgraded by the error; it is still a theorem.
...
As of October, 2026, I know of no complete, public relative-consistency proof covering Lean abstract type theory. ... In my view, a result of such fundamental importance must be given in full before it is accepted. 

https://terrytao.wordpress.com/2026/10/09/what-mathematicians-should-know-about-the-lean-theorem-proverquestions-of-reliability-and-ai/

5

u/natecull 2d ago edited 2d ago

As of October, 2026, I know of no complete, public relative-consistency proof covering Lean abstract type theory. ... In my view, a result of such fundamental importance must be given in full before it is accepted.

Yes, this Terry Tao article highlights something about the proof-checker community that startled me 20 years ago and seems to still be a huge problem:

Every automated proof checker uses its own custom, home-brewed variant of Type Theory that are all novel, unproven and mutually incompatible!

To an outsider (a mere programmer), this is insane. It's like if every new programming language came with its own custom silicon analog CPU, without even settling on Boolean algebra yet.

So before Lean was the new hotness, the previous darling was Coq. Both I think are based on the "Calculus of Constructions". Lean seems to use a modified version, the "Calculus of Inductive Constructions", which is subtly different But then Lean apparently also doesn't even use vanilla CoIC, but its own custom variant of that!

And of course there's no consensus between mathematicians about the foundational correctness of all of these type theory variants - if there was, each mathematician wouldn't be championing a different one.

So it's very weird to see suddenly everyone piling into Lean and its quirky variant-of-a-niche-variant of a type system, which nobody yet really knows and trusts the foundations of, just because "there's a lot of code written in it".

-11

u/Lebesgue-Point6040 3d ago

this has literally 0 bearing on the proof

5

u/Random-Number-1144 2d ago

Consistency proof of Lean itself has no bearing on the theorems that Lean proves?

are u serious?

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. 

3

u/Random-Number-1144 2d ago

Resolving ambiguities in autoformalization is much much much harder than solving the Halting problem:

https://arxiv.org/pdf/2610.08144

2

u/skoodle_um 2d ago

Well that would imply that those ambiguities will never be solved because that is the whole point of the halting problem - it can’t be solved. 

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.

2

u/clippy_is_a_prick 1d ago edited 1d ago

Yes, however a human - or multiple humans - would not even attempt a 250,000 page proof, its an obscene amount of information.

For comparison the websters international dictionary 2nd edition is 3000 pages long and roughly 7 inches thick. Youd have to read that 84 times to read this proof once.

1

u/fafla21 1d ago

But an ai isn't human and isn't held to the same standards as humans and it is used in mathematics for an entirely different purpose by the companies. Do people think before they use this argument or did they hear it on reddit and think it is good?

1

u/meltbox 1d ago

But anything human generated is generally reasonably parsable by a human in a reasonable timeframe. Ai can spit out so much text that no human can reasonably parse it in a reasonable timeframe.

0

u/gdinProgramator 1d ago

Uhh no, a human wont say “hey x=y is a problem for me to solve this, so imma just write x=z YOLO”

This is absolutely a thing AI does.

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

8

u/fbueckert 2d ago

Yeah, the hypebros are coping so hard Anthropic's stock is tanking.

54

u/RealPropRandy 3d ago

Firehose of slop

0

u/JustPlayPremodern 1d ago

The video is quite literally just saying that a line in the informal, non-Lean Navier-Stokes paper written by OpenAI is different in a certain result in the Lean file, which takes a different route to prove a certain assertion. The Lean file for Navier-Stokes (and Generalized Riemann) is completely correct. If anything were incorrect, it would be the non-formalized PDF paper they published. The only reason this video and the paper it's based on is popular at all is because it can be twisted into disinfo about Lean that says that Lean can just verify any incorrect thing using some semantic trick or something.

The goal of this video is for people to not watch the video, just read the headline and the other misinformed comments (aka, yours!), and erroneously conclude that Lean is some easily hackable thing that gives you certificates for semantic trickery, which isn't the case at all.

0

u/[deleted] 3d ago

[deleted] — view deleted comment

9

u/Mashic 3d ago

The utility in general is not the question here. It's wether we can trust its mathematical proofs blindly or not.

3

u/[deleted] 3d ago

[removed] — view removed comment

12

u/TacoHellisLife 3d ago

This article really only boils down to "we think the proof is correct because it says it's correct"