What ‘Checked in Lean’ Really Guarantees About AI-Written Math Proofs

Original author: Xenaproject

Mathematician Kevin Buzzard explains how to read claims that a theorem is correct because it was verified in the Lean proof assistant. His point is that Lean gives a strong signal, but only after several checks, especially when the code was produced by an AI. He notes that many recent AI math results, including OpenAI's batch of 722 papers, have not yet been through all of these checks.

The first check is whether the Lean statement matches the informal statement in the paper. Lean separates a theorem's statement from its proof, so a badly written statement can compile and still be false or meaningless. His example is a Fermat's Last Theorem lookalike that fails because natural numbers include zero. Some statements are hard to audit. A formalised Hodge conjecture statement needs over 10,000 lines, and the finite simple group classification statement sits on a library of more than 250,000 lines. Among 290 OpenAI papers with Lean code, about 38 do not state the paper's main theorem at all.

The second check is that the code actually compiles. Anthropic's Fermat's Last Theorem formalisation had 13 million lines and needed a machine with 96 cores and 500 GB of RAM. Buzzard also warns that AI-generated Lean should be run in a sandbox. The third check is whether the proof really proves the stated theorem, without redefining terms or adding axioms. The tool lake comparator checks this.

The fourth check is whether the proof exploits a bug in Lean's kernel. Such bugs have existed and been fixed. Independent kernels now exist, and one is formally verified. Running the comparator in paranoid mode makes a successful exploit very unlikely. Even so, a verified Lean proof does not make the accompanying PDF argument correct, and the two can diverge.

Why it matters

For readers in math, computer science and AI careers, formal verification is becoming a core skill and a growing job area. The article also gives a practical way to judge hype about AI solving open problems: check the statement, the compilation, the axioms and the kernel before trusting a headline.


Source: Kevin Buzzard, Xena
Original title: “…and the proof is checked in Lean”
Original link: https://xenaproject.wordpress.com/2026/11/12/and-the-proof-is-checked-in-lean/
Published: 2026-11-12

This summary was generated with AI assistance and is not the full original text. Copyright remains with the original author and publisher; see the original link for the full article.

Disclaimer: The views and opinions expressed in this article are solely those of the original author(s) and do not necessarily reflect the views or positions of Overseas Chinese (overseaschinese.org). We republish, translate or summarize it for informational purposes only.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.