When OpenAI released 722 mathematics papers last month—roughly 45% accompanied by Lean code—some observers concluded that the Lean-backed papers were automatically trustworthy. Others swung the opposite direction, pointing to past soundness bugs in Lean's kernel as evidence that machine verification means little. Both reactions are wrong. The actual picture is more structured: there is a concrete, four-step checklist that determines whether a Lean-verified claim is genuinely reliable, and for many of those OpenAI papers, that checklist hasn't been fully run yet.

Step 1: Does the Lean statement actually encode the right theorem? Lean cleanly separates a theorem's statement from its proof. A statement can compile perfectly while being subtly wrong—for instance, a Fermat's Last Theorem formulation that accidentally allows zero as a natural number, making it trivially false. For small, well-scoped proofs a competent Lean user can spot mismatches quickly. For large AI-generated libraries this gets hard: Axiom's recent classification-of-finite-simple-groups announcement relies on a Lean statement buried inside over 250,000 lines of AI-generated code, including custom definitions of sporadic simple groups that don't yet exist in Mathlib. No human has publicly confirmed those definitions are correct. About 38 of OpenAI's 290 Lean-accompanied papers don't even state the main theorem in their code—they prove intermediate lemmas instead, which OpenAI acknowledged but didn't prominently flag.

Step 2: Does the code actually compile? Compilation is necessary but non-trivial at scale. When Anthropic formalized a Lean proof of Fermat's Last Theorem, the codebase ran to 13 million lines and required a 96-core, 500 GB RAM machine to compile. OpenAI's Navier–Stokes formalization, at 640,000 lines, compiles on a standard laptop. Practical note: never run AI-generated Lean code directly on your local machine—sandbox it first. Mathlib, the human-curated core library, is safe; AI-generated layers on top of it are not.

What 'Verified in Lean' Actually Means: A Four-Question Checklist for AI-Generated Proofs

Step 3: Does the proof actually prove the stated theorem—without hidden tricks? Even if the code compiles, millions of lines of untrusted proof files could in principle redefine mathematical operations or silently introduce new axioms. The tool that closes this gap is lake comparator. It verifies that the theorem proved in the untrusted proof files is identical to the theorem stated in a trusted, minimal-import file, and that only standard mathematical axioms were used. If you're auditing an AI-generated proof, running lake comparator is non-negotiable.

Step 4: Does the proof exploit a bug in Lean's kernel? Lean has had at least one confirmed soundness bug (patched within four hours of discovery); an OpenAI audit subsequently found several more, all fixed before disclosure. More may exist. The mitigation is lake comparator --paranoid, which routes the proof through multiple independent Lean kernels—including at least one formally verified down to assembly level. A reward-hacking exploit would need to simultaneously fool all of them, which is not a realistic attack surface. The Lean Kernel Arena already shows OpenAI's Navier–Stokes proof passing this multi-kernel check.

One more thing: a passing Lean proof doesn't validate the accompanying PDF The written paper and the Lean proof can diverge—and the Lean proof wins that disagreement. In the Navier–Stokes case, reviewers found places where the PDF argument and the Lean proof don't match. Some experts are now using AI to informalize the Lean proof back into readable English rather than trusting the PDF write-up. The proof is in the code, not the paper.

The bottom line for builders and technical readers: "verified in Lean" is a strong signal if all four checks have been run—statement match, compilation, lake comparator, and multi-kernel validation. Your frontier AI model can execute all of these steps; the computational cost scales with codebase size but is tractable. The gap right now is that most people treating Lean verification as a binary yes/no haven't run the full checklist. That's fixable, and nothing in the OpenAI dump gives reason to expect failures—the work just hasn't been done yet.