News for hackers. Stuff that matters.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by seanhunter on Saturday September 12, 2026 @02:34AM (#49669518)
You absolutely need to read the lean proof firstly to assess the correctness of the proposition it is proving (ie in this case that it is actually proving or otherwise the smoothness of navier-stokes in R^3 and not something else) and secondly to determine whether the proof is “honest” in the sense given here https://lean-lang.org/doc/reference/latest/ValidatingProofs/
Re:Clay Mathematics Institute on the Navier-Stokes Problem by zone411 on Saturday September 12, 2026 @03:31AM (#49669890)
Completely misleading.

This is all you need to read and understand for Anthropic's FLT formalization:

  import Mathlib
  import Theorems.Thm_fermat_last_theorem

  /-- Solution side: the same statement, binder for binder, proved by this tree's `fermat_last_theorem`. -/
  theorem FLT_for_comparator (n : ℕ) (hn : 3 ≤ n) (a b c : ℕ) (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) :
    a ^ n + b ^ n ≠ c ^ n :=
  fermat_last_theorem n hn a b c ha hb hc

  /-- Mathlib's named proposition, by the one-line bridge from the elementary statement
  (the bridge is restated inline so that this file depends only on `Theorems.Thm_fermat_last_theorem`). -/
  theorem FLT_mathlib_for_comparator : FermatLastTheorem :=
  fun n hn a b c ha hb hc => fermat_last_theorem n hn a b c (Nat.pos_of_ne_zero ha) (Nat.pos_of_ne_zero hb) (Nat.pos_of_ne_zero hc)
The actual proof is 13 million lines of Lean.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by Paracompact on Saturday September 12, 2026 @04:05AM (#49670104)
First of all, that is Fermat's Last Theorem, not Navier-Stokes.

Second of all, you did not read the link.

> In particular, we use honest when the goal is to create a valid proof. This allows for mistakes and bugs in proofs and meta-code (tactics, attributes, commands, etc.), but not for code that clearly only serves to circumvent the system (such as using the debug.skipKernelTC).

Given that AI has autonomously found proofs of `False` in Lean and other proof assistants, it is far from impossible that such a circumvention could be present somewhere in 13 million lines.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by kzrdude on Saturday September 12, 2026 @04:56AM (#49670415)
If we read the link, it has a section called Gold Standard: comparator and external checkers, and comparator is how OpenAI has gone about checking their lean proofs.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by pama on Saturday September 12, 2026 @10:58AM (#49672958)
Perhaps you did not understand the Fermat theorem proof announcement/repo or the link. The 13 million lines did not use any external, possibly not honest libraries, as the proof eventually only used the fundamental axioms. So for the Fermat theorem formalization, no open open questions remain.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by Paracompact on Saturday September 12, 2026 @02:02PM (#49675197)
https://leodemoura.github.io/blog/2026-8-1-postmortem-for-ke...

Do you believe no open questions remain as to the truth of the Collatz conjecture?

Re:Clay Mathematics Institute on the Navier-Stokes Problem by pama on Saturday September 12, 2026 @06:57PM (#49678089)
Not sure what you mean. Here is what happened in that case: https://news.ycombinator.com/item?id=49137060#49140177
Re:Clay Mathematics Institute on the Navier-Stokes Problem by Paracompact on Saturday September 12, 2026 @11:25PM (#49679686)
The point is, they "proved" the Collatz conjecture. You would not know they exploited a bug unless you actually went and dug into their proof. Can we be so certain this has not happened within the millions of lines of Navier-Stokes? In an ideal world, our proof assistants would be more battle-hardened by now (recent exploits deny this), our AI better aligned (their tendency to cheat at tests denies this), or their handlers more responsible (the Hugging Face incident denies this), but the reality is more complicated.

At this point in time, we really can't be confident in accepting proof certificates without any human eyes on the script that generated it. I still have 95%+ confidence in this particular result being trustworthy, but a precedent of blind faith is guaranteed to end badly.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by pama on Sunday September 13, 2026 @12:42PM (#49685880)
This person knew they did not prove the Collatz conjecture and others independently figured it out within hours. Not sure this is at all relevant, other than pointing out how trivial it is for the community to understand errors in lean4.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by Paracompact on Sunday September 13, 2026 @04:16PM (#49688236)
It was trivial because the Collatz proof script is literally 1000x smaller than the script for Navier-Stokes and involves no advanced math. And they found the bug by... manually inspecting the proof script. Maybe we should do the same for Navier-Stokes before declaring the matter settled?

Not only that, but there is a very fuzzable tell of something funny in the Collatz proof script (`CommandElabM`, i.e. metaprogramming). We may not at all be so lucky in other malicious scripts, especially if there are still kernel-level bugs in Lean.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by u1hcw9nx on Saturday September 12, 2026 @04:04AM (#49670096)
Lean roof search tactics can generate vacuous proofs. They are not errors or a degenerate cases. They are completely valid, sound proof terms.

Building a system that reliably detects vacuous proofs in all cases is fundamentally undecidable. It's equal to the halting problem.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by i_no_can_eat on Saturday September 12, 2026 @06:11AM (#49670842)
Can you elaborate on what constitutes a vacuous proof?
Re:Clay Mathematics Institute on the Navier-Stokes Problem by JumpCrisscross on Saturday September 12, 2026 @06:24AM (#49670893)
> Can you elaborate on what constitutes a vacuous proof?

Trivially, a proof that relies on a bug in Lean. Less trivially, a proof that is technically true but about something trivial and does not, in fact, prove what it claims to have proven.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by u1hcw9nx on Saturday September 12, 2026 @06:38AM (#49670974)
It can happen when the proof process ends up with universal implication that holds trivially. Then you end it with something like Forall x, x is empty -> P(x).
Re:Clay Mathematics Institute on the Navier-Stokes Problem by Tanjreeve on Saturday September 12, 2026 @06:28AM (#49670921)
I present to you my new theorem as follows:

If 1 == 3 then 3 == 3

----

This statement is 100% logically coherent internally. But it also doesn't matter because we know that 1 does not equal 3 so this proof is completely pointless. I could also say 3 == 5 and it would still be logically sound but completely useless information.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by Panzer04 on Saturday September 12, 2026 @07:45AM (#49671347)
For a laymen, I don't follow this.

Are you proving for some arbitrary definition of == that isn't what we commonly consider the definition? How is it logically coherent? You mean only in the sense that you say it is and you haven't provided any rules to disprove it?

Re:Clay Mathematics Institute on the Navier-Stokes Problem by JumpCrisscross on Saturday September 12, 2026 @08:02AM (#49671448)
> How is it logically coherent?

It's not. But Lean doesn't interrogate logical coherence, just internal consistency.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by NewsaHackO on Saturday September 12, 2026 @08:26AM (#49671637)
No the definition of == is the regular definition; it's just a deductive reasoning statement. Since the first part of the statement is never true, it doesn't matter what the second part of it says. Of course, like he said, that makes the statement have no value.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by paulddraper on Saturday September 12, 2026 @09:03AM (#49671935)
“if X then Y” means “(not X) or Y”

E.g. “If it’s raining, the sidewalk is wet.” That statement holds if it’s not raining or the sidewalk is wet.

This is a common occurrence in mathematics, where someone might not be able to unconditionally prove Y, but they can under the condition X. Later, another mathematician might build on this by proving X, thereby transitively proving Y. (Or conversely, they might unconditionally disprove Y, thereby disproving X.)

Many hard problems are answered this way.

For example, Fermat’s Last Theorem was proven assuming the Taniyama-Shimura-Weil Conjecture, then Wiles proved the conjecture.

Thousands of theorems rely on the the unproven Reinmann Hypothesis, which is why it’s so interesting to mathematicians.

But if your precondition is “stupid,” your proof is stupid.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by vouaobrasil on Saturday September 12, 2026 @10:08AM (#49672483)
if A then B

Can only be false if there is an instance where A is true, and B is false. In all other cases it's true, even when A is always false.

That's the key.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by rramadass on Saturday September 12, 2026 @10:10AM (#49672506)
It is just the definition of "Logical Implication for Material Conditional" and its truth table; see Material Conditional - https://en.wikipedia.org/wiki/Material_conditional

I highly recommend the following two books to study Logic from the beginning (for a layman);

Logic: An Introduction to Elementary Logic by Wilfrid Hodges.

Introduction to Logic: and to the Methodology of Deductive Sciences by Alfred Tarski.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by Tanjreeve on Sunday September 13, 2026 @01:26AM (#49680315)
Nothing to do with special hacks with operators. The reason it's useless because the precondition is never true. "If my aunt had two wheels and a handlebar then she'd be a bicycle" Is the same problem with a non maths flavour.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by seanhunter on Sunday September 13, 2026 @04:35AM (#49681497)
This is known as a “vacuously true” statement in formal logic. Let me write it out more in more detail and you’ll hopefully see why it’s consistent.

In logic, a proposition is some statement that can be true or false. So, let A be the proposition that 1 equals 3, and B be the proposition that 3 equals 3.

Now the poster is making a third proposition. If A, then B.

A is clearly not true. So in classical logic, B can be anything and “If A then B” is still true.

For example let B be the proposition that I am Elvis Presley (I’m not). So now we have “If one equals 3 then I am Elvis Presley”. This is clearly true. I’m not Elvis Presley, but that doesn’t matter because we’re not saying anything about what happens when one doesn’t equal 3.

Now, let’s try let B be the proposition that I am Sean Hunter (I actually am). So now we have “If one equals 3 then I am Sean Hunter”. This is clearly still true because we still are only making a claim about what happens when one equals three.

https://en.wikipedia.org/wiki/Vacuous_truth

By the way, this isn’t any kind of inherent contradiction or problem, it is just a possibly counterintuitive part of how classical logic works.

You see this type of statement (“If <x>, then <something ridiculous>”) being made a lot when people are exaggerating for effect, for example by Mr Bumble in “Oliver Twist”

   > 'That is no excuse,' replied Mr. Brownlow. 'You were present on the occasion of the destruction of these trinkets, and indeed are the more guilty of the two, in the eye of the law; for the law supposes that your wife acts under your direction.' … 'If the law supposes that,' said Mr. Bumble, squeezing his hat emphatically in both hands, 'the law is a ass--a idiot. If that's the eye of the law, the law is a bachelor’
https://www.literaturepage.com/read/olivertwist-460.html
Re:Clay Mathematics Institute on the Navier-Stokes Problem by empath75 on Saturday September 12, 2026 @09:23AM (#49672093)
When I first started playing with lean I accidentally defined a group in such a way that it was reduced to triviality. It had one object in it, so everything in the group was trivially equal to everything else. It was not the group that I was trying to prove something about, but the proof went through.

It was too easy, so I double checked my definitions, but it is quite easy to do something like that. And Claude does things like that quite frequently.

I am going through the exercise right now of trying to get Claude to formalize a published paper and it is a _struggle_ to get it not to take shortcuts or prove approximations of the paper’s theorems and then tell you it’s done.

Re:Clay Mathematics Institute on the Navier-Stokes Problem by perching_aix on Saturday September 12, 2026 @09:54AM (#49672339)
If you have a software engineering background, it's like how semantic versioning is bollocks.

Semantic versioning describes the following idealized setup:

- you have an interface you expose (a contract, and thus a contract signature)

- you do not change the contract signature -> patch version bump

- you do change it but in a non-breaking way (e.g. additively) -> minor version bump

- you do change it but in a breaking way (e.g. mutatively or destructively) -> major version bump

One would expect then that since interface signatures are statically derivable, semantic version tags can be auto-assigned. And indeed, in lots of shops that's exactly what happens (in my opinion, correctly).

The problem with this is that it comes with a lot more smoke than fire. The interface having no changes or non-breaking changes doesn't mean the actual code behind those interfaces is not going to cause a breakage. It literally is just about the interface itself.

And so unless you encode absolutely everything about the semantics your implementation actually observes into the interface, which is what the semver specification asks you to do so as their sleight of hand, this means the interface will be a leaky abstraction. Which means that external software interfacing with yours may observe behavior that is beyond the purview of semantic versioning. Which means that they do. Which means that they absolutely can and will break, and your package managers' fancy version constraint syntax exists to make such fun events happen.

The way this is usually handled then is:

- you live with the pain: acknowledge the limitations of semver, accept you've been duped, and just give in

- you have human release managers assign versions manually, based on whole program and whole system semantics (with the human overhead and error that entails), falsely claiming that what you're doing is still semver

- you switch to a less deceptive versioning scheme, like calendar versioning; as a bonus, you now no longer have to pretend that your entire application somehow only has a single unified interface

This mirrors the Lean statement and Lean proof situation. The statement is like an interface, and the proof is like the implementation behind that interface. The way the proof is derived may expose semantic gaps in the statement itself, and (ab)use them to obtain the logical consistency certificate. Hence, a vacuous proof, and hence why this is not statically assertable to be not the case. It is part of the challenge in asserting that the statement was correctly formalized in the first place: you need to manually identify whether the way the consistency was achieved is actually meaningful, or just a formalization gap.

Which really makes me wonder about the actual value proposition of Lean then, but alas...

Re:Clay Mathematics Institute on the Navier-Stokes Problem by seanhunter on Sunday September 13, 2026 @04:25AM (#49681424)

  > This mirrors the Lean statement and Lean proof situation. The statement is like an interface, and the proof is like the implementation behind that interface. 
This is true in a very deep sense due to the Curry-Howard correspondence and calculus of constructions which are central to Lean. In Lean, the proposition you are proving is a type (so it really is an interface directly in the computer science sense) and the proof is a function which takes your hypotheses and returns a term of that type (so it really is the implementation of that interface). In fact in lean, you can just as well write this implementation as a lambda (this is known as “term mode”) as in the “tactic mode” that is more generally used in normal lean use. Lean really doesn’t care at all which one you use and you can switch between them within a proof quite easily without interfering with lean’s ability to check your proof at all.

   > Which really makes me wonder about the actual value proposition of Lean then, but alas...
The purpose of lean really is quite different from what most people on hn seem to want it to be. Lean is designed to be a useful tool for mathematicians who want to formalise areas of mathematics. It’s not a primary goal of most of the lean community to make something that is hardened against malicious proof attempts (although these are considered bugs and there is a small subcommunity who work on this area in particular). So it isn’t primarily for the benefit of people who want to “fire and forget” some proof without reading or understanding it and just get the check mark if it’s true.[1] It’s mainly for mathematicians who want a proof assistant to help them with their work.

[1] there are sub-tools such as comparator that are designed for this type of use case. https://github.com/leanprover/comparator

Re:Clay Mathematics Institute on the Navier-Stokes Problem by eru on Saturday September 12, 2026 @03:51AM (#49670018)
You don't need to read the lean proof for that, only the statement.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by seanhunter on Saturday September 12, 2026 @04:34AM (#49670292)
You need to read the lean proof (not just the statement of the proposition) to assess whether the proof is honest. The link I provided is the lean prover community firstly officially agreeing with that claim and secondly explaining why that is the case.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by eru on Saturday September 12, 2026 @05:44AM (#49670707)
Well, Lean needs to get its act together to fix the bugs.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by seanhunter on Sunday September 13, 2026 @03:28AM (#49681037)
They’re working on it, but the bulk of the effort goes into making it more useful to working mathematicians rather than resisting malicious proof attempts.
Re:Clay Mathematics Institute on the Navier-Stokes Problem by hn_throwaway_99 on Saturday September 12, 2026 @02:03PM (#49675211)
While I agree with that, my layman's understanding is that the whole purpose of Lean is that once you agree that the program does "do what it says it does", all the intermediate steps can be verified with a compilation.

That is, verifying a proof in English was a painstaking, years long process in the past as independent mathematicians looked for holes in the steps connecting the logic. When the proof is written in Lean, all of that work goes away. My point is that if OpenAI publishes the Lean code (not sure if they already did), verification should take weeks not years.