How to verify Lean proofs written by AI
Understand this story
benmandrew shared a method on Hacker News for verifying Lean formal proofs written by AI. He pointed out that the Lean kernel and axioms only check the proof itself; the theorem statement, the definitions used, and real-world assumptions are all outside the scope of checking, so a proof passing does not by itself show that the goal has been achieved. He proposed using unit tests and mutation testing to check theorem statements and definitions, and differential fuzzing to check real-world assumptions. He also warned that AI may write weaker but still true theorems, leading people to mistakenly believe the original goal has been proven.
AI overview based on source reports · Updated 59 min ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AITrusting AI-Written Proofs
This post examines what must be trusted when AI agents write Lean proofs, arguing that beyond Lean's kernel and axioms, a project's trust base also includes theorem statements, definitions, and assumptions about the world, none of which any proof checks. Using the author's Lean build system Mise, it shows how weakened theorems and definitions can still pass the kernel, and proposes unit tests, mutation testing, coverage checks, and differential fuzzing against Ninja to catch such flaws.
Activity for this story
Not enough continuous observations to show a trend yet.