Guides · explainer
What is a kernel-verified proof?
Short answer. A kernel-verified proof is one written in a proof assistant, such as Lean 4, Rocq or Isabelle, and accepted by that system's kernel: a small program that checks every step against the rules of the logic. If the kernel accepts it, the formal statement follows from the axioms, whoever or whatever wrote the proof.
Why the kernel is the part that matters
A proof assistant is a large piece of software: an editor, automation, libraries, and increasingly AI models that suggest steps. None of that has to be trusted. All of it produces a low-level proof object, and only the kernel decides whether that object is valid. The kernel is deliberately small, so that it can be read, tested and reimplemented. This design principle is sometimes called the de Bruijn criterion: the proofs a system produces should be checkable by a simple, independent program.
This is why it does not matter, for correctness, whether a proof was found by a person, by a tactic or by a language model. A model can invent a wrong argument,
but it cannot make the kernel accept one. certXiv has a page on publishing proofs and results that an AI model helped find. The set of things you still have to trust is called the trusted computing base, which is where certXiv's
TCB tiers get their name.
How to tell that a Lean proof is finished
-
No
sorry. In Lean,sorryis a placeholder that lets an unfinished proof compile, with a warning. A theorem that depends on one has not been proved. -
Check the axioms. The command
#print axioms my_theoremlists everything the proof rests on. A finished proof in Lean 4 with Mathlib normally shows only three standard axioms:propext,Classical.choiceandQuot.sound. If the list includessorryAx, there is asorrysomewhere underneath. -
Look for extra trust. A proof that uses
native_decideasks you to trust Lean's compiler as well as its kernel, and this appears in the axiom list (asLean.ofReduceBool). Anaxiomdeclared by the author is an unproved assumption and should be stated in the paper. -
Rebuild it yourself. Clone the repository at the stated commit and run
lake build. Tools such aslean4checkerre-run the kernel over the compiled files as a second check.
Proof certificates: a different route to the same kind of trust
Some results come from a search too large to write as a human-style proof, for example a SAT solver showing that no assignment satisfies a formula.
The solver is complicated and might have a bug, so it also writes a certificate: a step-by-step record of its reasoning in a standard format such as DRAT or LRAT.
A much simpler program then checks the certificate. drat-trim is the usual checker, and there are checkers for LRAT that have themselves been formally verified.
You trust the small checker, not the big solver.
One thing a certificate does not cover is the translation: whether the formula given to the solver really expresses the mathematical problem. That step has to be proved separately or argued in the paper.
What verification does not tell you
- That the statement is the right one. The kernel checks the formal statement. If that statement is weaker than, or different from, what the prose claims, the proof is still accepted. Reading the formal statement against the paper is the reader's job.
- That the definitions mean what you think. A theorem about a wrongly defined object is a true theorem about the wrong thing.
- That the result is new or important. Machines check validity, not significance.
How certXiv labels this
| Tier | What was checked | What you still take on trust |
|---|---|---|
| ◆ TCB-0 Kernel-verified | A formal proof rebuilt in a sandbox with no sorry. |
The kernel, the axioms listed, and that the formal statement matches the prose. |
| ▲ TCB-1 Certificate-checked | A proof certificate accepted by an independent checker. | The checker, and the encoding of the problem. |
| ● TCB-2 Reproducible computation | The code reruns in a sandbox and reproduces the reported output. | That the code computes what the paper says it does. |
| ○ TCB-3 Audited exploratory | References and disclosures only. | Every claim in the paper. |
Questions
What is a kernel-verified proof?
It is a proof written in a proof assistant such as Lean 4, Rocq or Isabelle whose every step has been checked by the system's kernel, a small program that accepts a proof only if it follows from the axioms by the rules of the logic. However the proof was found, by a person, by automation or by an AI model, the kernel's acceptance is what makes it verified.
What does sorry mean in Lean?
sorry is a placeholder that lets an unfinished proof compile. A theorem that depends on a sorry has not been proved. Running #print axioms on it shows sorryAx among its dependencies, which is how a reader can check that a proof is complete.
If a proof is kernel-verified, is the theorem true?
The formal statement follows from the axioms used. What verification cannot show is that the formal statement says what the paper's prose claims. Checking that match is a job for a careful reader.