# What "Lean-verified" does not mean

## The question

If a proof passes every Lean check, what can still be wrong?

## Why it matters

A result that passes every check can still be read as promising more than it does. The gaps are where a reader can be misled.

## What answering it would help with

Knowing the gaps tells a reader what still has to be read by a person: the statement, the definitions, and anything outside Lean.

## What our research shows

**The answer in one line:** the match between the Lean statement and the English sentence, the meaning of the definitions, anything computed outside Lean, and the tools themselves.

The label covers a proof of a Lean statement. The distance between that and the English sentence in a headline is where mistakes and misreadings live. Lean's reference manual draws the same line: it separates the question of whether a theorem has a valid proof from the question of what the theorem statement means.

### 1. It does not mean the Lean statement says what the English sentence says

A theorem is a statement plus its proof. The kernel checks the proof of the statement that is written. If the statement is a little off, the proof can be perfect and the headline still wrong. Examples of "a little off": a hypothesis left out, a condition dropped from a definition, a function defined to return 0 outside the range someone cared about, a type that allows a case the paper excludes. Chapter 3 has two short examples with real output: a definition of "prime" that lets 1 in, and 2 + 2 = 5 read in a number system with one number.

### 2. It does not mean the definitions mean what readers assume

Lean lets anyone define new words, new notation and new meanings for existing symbols, and many of these are in scope only inside one file or one section. A reader who sees a plus sign assumes ordinary addition. Chapter 3 shows a file where the plus sign has been redefined for the natural numbers, and every automatic check is clean. The defence is to read the definitions the statement depends on, and not only the statement.

### 3. It does not cover anything outside Lean

A Lean proof can use the result of a computation only if that computation is done inside Lean's logic, or if Lean's native evaluation is used, which shows up as an extra axiom. A numerical experiment that was run outside Lean, in another language or on other hardware, is not covered, even if a Lean theorem later quotes its output. The same goes for the correctness of the machine the checker ran on. When a result mixes Lean with such computations, the label should say which part is which.

### 4. It does not mean the toolchain was not tampered with

The kernel is a program, and so are the compiler, the build tool and the checkers. A file can switch the kernel's checks off (the kernel-skip option, shown in chapter 3), and the option can sit in the build file and not in any Lean source. Lean's manual calls code that does this dishonest, as opposed to honest. Kernels can also contain bugs (chapter 4). Re-checking with the kernel again and with a second kernel narrows these risks (chapters 3 and 4). It does not remove them.

### What this adds up to

"Lean-verified" is a good answer to one question: given these definitions and these axioms, is this a correct proof of this statement? It is silent on the other questions. Is the statement the one in the headline? Are the definitions the ones a reader assumes? Was everything checked? Is the checking program itself correct? A careful reader needs a separate look for each.

### Yesterday, today, tomorrow

**Yesterday.** The Lean reference manual separates whether a theorem has a valid proof from what its statement means, and the documentation of leanchecker says it is not an external verifier. A 2026 paper by Bastounis, Circelli and Hansen states that a machine-checked Lean version of a written argument can differ from it, and gives examples in which an AI translation into Lean does not match the written proof it was meant to formalise. The AXLE paper by Xin, Schneidman, Cummins, Ram, Ganesh and Limperg (arXiv:2606.26442, June 2026) lists the same family of cases as chapter 3, ways for a file to compile without proving the intended statement (sorry, an axiom outside a short allowed list, a restated theorem, unsafe declarations), and compares the checkers lean4checker, Comparator and SafeVerify.

**Today.** I keep four claims apart in every Lean result: the proof of the Lean statement, the match between the Lean statement and the English one, the work done outside Lean, and the soundness of the tools. The label "Lean-verified" is used only for the proof of the Lean statement.

**Tomorrow.** Where a result depends on a match between a Lean statement and an English one, a short table can set the two side by side, line by line, for a reader or an expert to check.

## Check it yourself

Three of the seven demonstrations in [the check guide](../VERIFY.md) pass every automatic check and are caught only by reading. Running them shows the gaps this chapter describes.

## Where to go next

- How does a statement that is true in Lean say something other than the sentence you read? See [Five ways to get 2 + 2 = 5 past a build](03-two-plus-two-is-five.md).
- If the kernel is the one thing everything rests on, what happens when it has a bug? See [Kernel bugs, and why a second checker helps](04-kernel-bugs-and-second-checkers.md).
