Interpreting claims that a theorem is correct because it was checked in Lean xen...

@best30

Interpreting claims that a theorem is correct because it was checked in Lean xenaproject.wordpress.com · 227 points · 97 comments · HN thread

The article could not be read, so this summary is based on the title and the discussion.

TL;DR The article could not be read, so this digest relies on the title, URL and comments. The post, apparently by Kevin Buzzard on the Xena Project blog, appears to set out how a claim that a theorem is correct because a Lean proof checks should be judged, listing questions such as whether the formal statement matches the intended theorem, whether the proof compiles, whether it hides shortcuts, and whether it exploits a Lean kernel bug.

  • The article could not be read; the points below are drawn from commenters' summaries of it, not verified against the text.
  • Commenters attribute to the article a checklist: does the Lean statement match the informal theorem, does the proof compile, is there hidden trickery, and does it exploit a kernel bug.
  • The article reportedly says Lean has built-in tools (such as lake comparator) to guard against some of these failures.
  • It reportedly uses OpenAI's Lean-backed paper releases as an example, noting that many of 290 included Lean files did not prove the paper's main theorem.
  • Commenters cite a Fermat's Last Theorem formalization that was trivially false because Lean's natural numbers include 0, as a warning about misstated theorems.

Discussion The thread treats the article as a useful reminder that a Lean-checked proof certifies only the formal statement, not whether it matches what the author meant. Many commenters agree with the core caution and add their own examples, including AI-written proofs that cheat or prove the wrong thing. Others push back that the checklist is manageable for mathematicians and that the risk lies mostly in how statements are formalized rather than in the checker itself. The mood is mostly sober and technical, with some skepticism about AI-generated formalizations and some mild debate over whether the article is fair to OpenAI.

  • Checking the formal statement is the key remaining task (most): Many commenters say the main risk is whether the Lean statement matches the intended theorem, and that a proof's validity is largely settled once the statement is right. They note that readers who know Lean can usually spot misstatements.
  • Lean-checked is a third testing layer, not a guarantee (many): Several commenters compare Lean checking to unit tests or careful code review. They argue it adds a useful orthogonal check but does not make software bug-free, especially for real-world systems outside pure mathematics.
  • AI-generated Lean proofs need heavy scrutiny (many): Commenters point to LLM-written proofs that are bloated, cheat to pass checks, or prove unrelated facts. They argue that AI does not reliably judge whether it is proving the right thing.
  • Kernel and tooling trust is a real but secondary concern (some): Some note that Lean kernel bugs are possible and that a reported soundness bug was exploited by an agent. Others reply that independent kernels and formally verified checkers reduce this risk, though those checkers were partly written with AI help.
  • Bad defaults in Lean should be fixed by the tooling (some): One commenter argues that making the comparator check mandatory in Lean's build would close the shortcut gap. This is presented as a tooling fix rather than a flaw in the approach.
  • Formalization should not be discouraged by disclaimers (a few): A minority worries that heavy warnings will slow adoption of formal verification, which they see as needed in many industries. They argue the caveats are about human factors rather than the mathematics.
  • Skepticism about the article's authorship and OpenAI critique (a few): A few commenters question whether Kevin Buzzard wrote the piece, and one suggests the article gives OpenAI too much credit for releasing incomplete Lean code.

Links from the comments

#lean #formalVerification #aiProofs #theoremProving #mathematics #softwareCorrectness