Many redditors, except one, missed the point of my post. They thought I tried to show that we can use Lean to prove seemingly wrong propositions. That's not true.
My point was that the misleading definition of the predicate IsNotNat doesn't invalidate the proof of the theorem exists_nat_eq_one. See this validation result from Comparator.
Please take a look at the following post first: Can someone explain to non-mathematician why Nielsen arguments are incorrect?
Many Koreans and others seem to think the correctness of the AI-generated proof of the Riemann hypothesis remains uncertain because some parts of its proof are AI slop. I'm trying to explain to them that the proof is correct and the verification process has been completed.
In this post, I'll explain how a formal proof can be correct even if useless, misleading definitions are included in the code.
For laypersons, here's a correct Lean proof that uses a misleading definition:
def IsNotNat : Nat → Prop :=
fun _ : Nat ↦ True
theorem one_is_not_nat_and_exists_nat_eq_one :
IsNotNat 1 ∧ ∃ (n : Nat), n = 1 :=
⟨trivial, ⟨1, rfl⟩⟩
theorem exists_nat_eq_one : ∃ (n : Nat), n = 1 :=
one_is_not_nat_and_exists_nat_eq_one.right
Predicate IsNotNat
For all natural numbers n, IsNotNat n is equivalent to True. The name of the predicate IsNotNat is poorly chosen because it gives the false impression that IsNotNat n holds if and only if n is not a natural number.
Theorem one_is_not_nat_and_exists_nat_eq_one
The theorem states that both of the following propositions are true:
- The
True proposition is true.
- There exists a natural number
n that is equal to one.
If you think that the first conjunct of the theorem means that 1 is not a natural number, you're mistaken.
Theorem exists_nat_eq_one
There exists a natural number n that is equal to one.
Conclusion
A correct Lean proof may contain useless, misleading definitions. It doesn't mean the final theorem hasn't been proved; the proof is correct. It means you only need to remove those definitions from your formal proof.
I hoped this example would help the public understand how a Lean proof can be correct while also including some useless, misleading definitions. Lots of laypersons look confused.
Edit
This is a bad example.
It doesn't use misleading DEFINITIONS, it uses misleading NAMES.
[...]
What I think you want to do is produce an example of a theorem that is obviously false, but has a valid lean proof by virtue of a misleading definition. That is the thing that people are actually worried about.
Two years ago, I found an incorrect definition of a string operation: String.splitOn.
#eval "012".splitOn "12" -- output: ["0", ""]
#eval "007".splitOn "07" -- ["007"]
The value of the second expression above should be ["0", ""], not ["007"].
The splitOnAux s sep b i j r part of the definition was changed to splitOnAux s sep b (s.next i) 0 r. See https://github.com/leanprover/lean4/pull/3832/changes.
This might be an example of a misleading definition you wanted, but it's not something that laypersons can easily understand.
One may also argue that the string operation String.splitOn used a misleading name two years ago, and that its incorrect definition still didn't make Lean proofs about it flawed.
If the name of the operation were String.misleadingOperation, the operation would've been perfectly fine, although it's completely uninteresting.
The distinction between use of misleading definitions and use of misleading names isn't that clear.