News for hackers. Stuff that matters.
Re:" and the proof is checked in Lean" by seanwilson on Monday November 16, 2026 @09:35AM (#50518037)
> def FermatsLastTheorem : Prop := ∀ a b c n : ℕ, n ≥ 3 → a^n + b^n ≠ c^n

> This code imports Lean’s mathematics library Mathlib and then defines a mathematical statement which looks at first glance like it might be Fermat’s Last Theorem, but which actually is a trivially false statement because in Lean ℕ contains 0, so a = b = c = 0 and n = 3 gives a counterexample.

...

> The first question which one has to ask when judging a pdf which comes with some Lean code is: “what is the statement of the theorem in the Lean code, and does this correspond to the actual theorem statement in the pdf?” For a human Lean expert, this is typically (but not always) an easy question to answer. For example any Lean-competent human mathematician would be able to read the two lines of code above and observe that this was a mis-statement of Fermat’s Last Theorem.

To add to this, if the statement is wrong, the proof steps and other theorem statements that appear in the full proof are going to follow a path that goes with the wrong statement so there's further opportunities there to see there's a mistake.

In the above example, you would see from the easy counterexample found in the proof that the statement is wrong. Often problems with the statement make it impossible to complete the proof, make it unexpectedly easy, or it takes a path that doesn't make sense. The proofs aren't a black box.

It's like if your high-level requirements for a computer program (the thereom statement) had a mistake and someone implemented it (the proof). The implementation is going to follow a path that implements that mistake. So by looking at individual function definitions that were implemented, there's opportunities to spot the problem.

Re:" and the proof is checked in Lean" by thejokeisonme on Monday November 16, 2026 @12:12PM (#50519981)
This is exactly one reason why human written mechanized proofs are so much more trust worthy. AI isn't really good at judgment calls, and that includes whether it is mechanizing the right things.