# 2. How we checked it

## The question

Beyond reading the statement, how far can an outside reader check that OpenAI's Lean proof of it is accepted, and what has been done so far?

## Why it matters

A Lean proof is only as trustworthy as the checks around it: that it builds, that it adds no hidden assumptions, and that Lean's kernel, the small program that checks every step, accepts each part. Each check catches a different kind of problem.

## What answering it would help with

The same four checks (build, axioms, scan for escape hatches, kernel replay) may be applied to any large Lean proof a reader wants to understand.

## What our research shows

**The answer in one line:** at the time of writing, the whole proof builds, its axioms are the standard three and no others, and the kernel replay of all 3,091 modules has finished: 3,091 accepted, none rejected. Checked by machine.

### 1. Scan for escape hatches

Lean has a few ways to get a proof accepted without really proving it: the placeholder "sorry", newly declared axioms, native_decide (a command that trusts compiled code), unsafe code, and switches that turn kernel checking off. We searched all 3,977 Lean files in the algorithm's folder, with comments removed, for these and for many similar patterns. None occurs, apart from the single placeholder that closes the challenge file, which is how a challenge file is meant to look. Module names containing "Native" or "compiled", which an expert will notice, refer to the proof's own explicit counting program and its run, constructed inside Lean (we read the headers of two such modules); they are not Lean's native_decide, which trusts compiled code and would show up in the axiom list as an extra axiom about compiled evaluation, and the axiom list below does not contain it. The folder holds the 3,091 modules the final theorem depends on (the dependency list was computed from the imports, and every import resolves to a file in the checkout; the only outside imports are Mathlib). This scan is a search of text, not a proof: it cannot rule out a flaw in Lean's kernel, in Mathlib, or in a definition that makes the statement easy (chapter 1 looked for that last one). Checked by machine.

### 2. The build

We copied the proof files and the challenge file into a fresh Lean project on one Windows PC, with Lean 4.34.1 and Mathlib at the pinned revision (listed in the check guide), the two versions the repository pins, and built the final module. The build finished successfully (12,014 jobs). It took about 9.5 hours of elapsed time, stopped and resumed three times along the way, so this is elapsed time and not a clean single-run figure. There is no placeholder or error text in the build output. Checked by machine.

### 3. The axioms

An **axiom** is a starting assumption Lean accepts without proof. Lean can list every axiom a theorem depends on. For the final theorem (named in the check guide), the list is exactly:

```
[propext, Classical.choice, Quot.sound]
```

These are the three that Lean's standard mathematics library uses, and they are the three the challenge file's configuration permits. There is no placeholder axiom. We also read the 19 axiom lists the proof prints for itself while building, including five at the end of the final file; all list only these three, and 19 is the number of such print commands in the 3,091 modules. For contrast, the challenge file on its own, before any proof is attached, lists the placeholder axiom, which is expected, since its placeholder is the blank to be filled. Checked by machine.

### 4. The kernel replay

A normal build checks a proof as it is compiled, and then stores it. A replay with leanchecker, a tool that ships with Lean, reads the stored proof of a module and sends every step back through the kernel. It exists because a stored proof could in principle differ from what was checked. We replayed one module at a time. The replay of all 3,091 modules has finished: every one was accepted (exit code 0), none rejected. Without its option for also replaying imports, leanchecker replays only the declarations of the module you name and trusts what that module imports, so the finished replay of all 3,091 modules does not by itself cover Mathlib or core Lean.

### 5. The second reader

After the earlier notes were written, a second reading within this project went back over every step of reasoning in them and either re-derived it in writing, cited a source that was opened, or marked it open. In plain words:

- **Checked (re-derived):** the order of the quantifiers; the polynomial size of the encoded formula; the step from the exponent to 2^{o(n)}; that the statement contradicts ETH, its counting version and SETH; that NSETH, Gap-ETH and the randomised versions fail if the algorithm is correct (one-line derivations, with the definitions taken from the manuscript); the machine-model argument; that counting also gives the yes-or-no answer; that "canonically encoded" hides nothing; that the algorithm cannot be combined with standard reductions to give subexponential algorithms for general NP problems; and the composite verdict of chapter 1. Chapter 1 and [chapter 3](03-what-it-means.md) give the arguments.
- **Checked by machine:** the build, the axioms, the escape-hatch scan and the recalculations of the size bounds.
- **Cited:** the definitions of ETH and SETH (from Impagliazzo–Paturi, Impagliazzo–Paturi–Zane, Calabro–Impagliazzo–Paturi and Dell and others, all opened); what the comparator tool guarantees (its public description); the known lower bounds for weaker proof systems (chapter 3).
- **Open:** see [chapter 4](04-what-is-still-open.md).

### What this adds up to

A reader who repeats the build and the axiom check should see the same output. Together with the statement reading in chapter 1, this indicates that the machine-checkable part of OpenAI's claim holds up, so far, to every check we could run with public tools. It does not replace the review group's examination of the mathematics.

## Check it yourself

[VERIFY.md](../VERIFY.md) gives the commands, the expected output, and the rough time and memory.

## Where to go next

- What do the checks leave unchecked? See [What is still open](04-what-is-still-open.md).
- What does the algorithm do, in plain words? See [What it means, and what it does not](03-what-it-means.md).
