“...and the proof is checked in Lean”
Summary
This post is an attempt to explain in simple terms how to interpret claims of the form “this theorem is correct because it was checked in Lean”. The summary is: there is an important signal that can be extracted from Lean code, but if this code is AI-generated then you need to do some tests first. We explain the tests, and note that in many cases (such as the OpenAI theorem dump) these tests have not yet been systematically done. Introduction Last month’s theorem dump by OpenAI consisted of 722 mathematics papers, around 45% of which came with some Lean code. Three of the (non-Leanified) papers have since been retracted because of a sign error. Some people might say “well, the papers that come with Lean code are definitely correct because that’s how Lean works”. Others might say “well Lean had a soundness bug and could well have more, and AIs will reward hack, so Lean verification doesn’t tell us much at all”. The truth, unsurprisingly, is more subtle, and this post is an attempt to explain it. This post is structured as a sequence of four questions that one needs to ask about a Lean repository, particularly if it is AI-generated, before one can start to make correctness claims of this form. And before I start, let me stress that for many of the papers in the OpenAI theorem dump, these questions have not yet all been answered affirmatively (but there is nothing stopping people from answering these questions, and I have no reason to believe that any of the tests below will fail, it’s just that people didn’t do them yet). Question 1. Does the Lean statement match the informal statement? A Lean repository will typically have a “headline theorem statement”. This will be some computer code which defines the statement (not the proof!) of a theorem. Note the huge difference here between the statement, and the proof. For example here is some fully-compiling Lean code which defines a mathematical statement. import Mathlib def FermatsLastTheorem : Prop := ∀ a b c n : ℕ, n ≥ 3 → a^n + b^n ≠ c^n This code imports Lean’s mathematics library Mathlib and then defines a mathematical statement which looks at first glance like it might be Fermat’s Last Theorem, but which actually is a trivially false statement because in Lean ℕ contains 0 , so a = b = c = 0 and n = 3 gives a counterexample. This does not stop the statement from compiling! It will however stop any proof of th…
Evidence & checks
- Discovery channel
- Kevin Buzzard · Xena Project
- Original material
- xenaproject.wordpress.com
- Material type
- Source page; material type not verified
- Material basis
- Source excerpt
- Review status
- No human-review record