How to check claims that a theorem is correct because it was verified in Lean
The post explains how to judge claims that a theorem is correct because its proof was checked in Lean[1] code. The author says Lean code gives an important signal, but AI-generated code needs some tests first. Many of these tests have not yet been done for OpenAI's theorem dump of October 2026, which had 722 mathematics papers, about 45% of them with Lean code.
The post sets out four questions to ask about a Lean repository. The first is whether the Lean statement matches the statement in the paper, since code can compile and still be wrong. The example defines a false version of Fermat's Last Theorem, because Lean's natural numbers include 0. The second question is whether the code compiles, and the author notes that compiling Anthropic's 13 million lines of code needed a far more powerful machine than his own. The third asks whether the proof really proves the stated theorem, because millions of lines of unchecked proof files could hide a trick.
The author warns against running AI-generated Lean code on a local machine without a sandbox[2], since it can in theory delete files, whereas Mathlib[3] is curated and checked by human experts. Of the 290 OpenAI papers with Lean code, around 38 do not state or prove the main theorem of the paper, and OpenAI only said that the code goes with the paper.
Read the original xenaproject.wordpress.comDiscussion
Discussion
Most commenters agree that successful compilation is not enough to trust a Lean proof, and they note that the same AI systems wrote both the proofs and the Lean kernel checkers. Some worry that these warnings will slow down formalization in industry. Others say that exploiting a bug in Lean's kernel has not happened so far, but that AI agents may cheat on hard tasks.
Sources
-
xenaproject.wordpress.com
Interpreting claims that a theorem is correct because it was checked in Lean
-
KRGeekNews KO
“…그리고 이 증명은 Lean으로 검증됐습니다”


