# Check it yourself: OpenAI's claimed refutation of ETH

This guide is a reader's recipe for the machine checks in this book, using only public tools: git, elan (the Lean version manager), Lean 4.34.1, Lake (Lean's build tool), Mathlib and leanchecker (which ships with Lean). Write your own commands from the recipe. You can follow every step with public tools or code you write yourself. Each recipe also comes as a [step-by-step page](https://gocheckyourself.org/data/recipes/eth-audit-REPLICATE.md) with commands for Windows, macOS and Linux and the exact output to expect. Exact names, versions and paths are in the code blocks.

## What is claimed

The question these checks answer: is OpenAI's Lean proof of its subexponential SAT theorem accepted by Lean, under which assumptions, and does the stored proof pass a kernel replay?

| Check | Claim |
| --- | --- |
| Build | The main module of the proof (3,091 modules in its dependency list) builds under Lean 4.34.1 and the pinned Mathlib version |
| Axioms | The final theorem of the proof depends only on the three standard axioms listed under "Expected output" |
| Kernel replay | Each module passes leanchecker. On our machine all 3,091 modules were replayed: 3,091 accepted, none rejected |

The names used below:

```
Repository:       https://github.com/openai/math
Pinned commit:    7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a
Lean toolchain:   leanprover/lean4:v4.34.1
Mathlib revision: d13f23b723b8a846827a245b89c10fc7d3f11612
Main module:      OAI.Algorithms.SubexponentialSAT.Main
Final theorem:    OAI.Algorithms.SubexponentialSAT.SqrtLogSpace.exact_count_and_sat
Proof folder:     lean/OAI/Algorithms/SubexponentialSAT/
Challenge file:   lean/ComparatorChallenges/SubexponentialSAT.lean
Manuscript:       preprints/The-Exponential-Time-Hypothesis-is-False-October-25-2026/paper.pdf
```

## Status

Active · Preliminary. The build and the axiom report were produced on one Windows PC. The kernel replay of all 3,091 modules finished on our machine: 3,091 accepted, none rejected. We have not run the comparator tool or a second kernel; others have run them (see chapter 4). No reader outside this project has repeated the checks yet.

## Commands

You need elan, git, about 16 GB of free memory and many hours of time (see the last section). The whole repository is large (the proof folder alone holds 3,977 Lean files), so a sparse checkout of the proof folder and the challenge file is enough.

1. Get the source at the pinned commit:

   ```
   git clone --filter=blob:none --sparse https://github.com/openai/math.git
   cd math
   git sparse-checkout set lean/OAI/Algorithms/SubexponentialSAT lean/ComparatorChallenges
   git checkout 7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a
   ```

2. Make a small Lake project. The repository's own project file also pulls in about forty unrelated libraries; the proof's imports (computed from the files) are only the proof folder and Mathlib, so a minimal project is enough. In a new project folder put: a toolchain file with the Lean toolchain line above; a Lake project file that requires Mathlib at the revision above, declares a library named OAI whose root is OAI, and sets the option autoImplicit to false (Lake's own documentation shows the format); and the copied proof folder, placed so that the main module is the file below.

   ```
   OAI/Algorithms/SubexponentialSAT/Main.lean
   ```

3. Fetch Mathlib's prebuilt files, which saves many hours. If Lake reports that no manifest exists, an update command writes one when you fetch; check that it pins Mathlib at the revision above.

   ```
   lake exe cache get
   ```

4. Build the main module:

   ```
   lake build OAI.Algorithms.SubexponentialSAT.Main
   ```

5. Print the axioms. Save these two lines in a new Lean file and run it as in the second block:

   ```
   import OAI.Algorithms.SubexponentialSAT.Main
   #print axioms OAI.Algorithms.SubexponentialSAT.SqrtLogSpace.exact_count_and_sat
   ```

   ```
   lake env lean Axioms.lean
   ```

6. Replay a module through the kernel. leanchecker takes one module name, and the module below is one example out of 3,091:

   ```
   lake env leanchecker OAI.Algorithms.SubexponentialSAT.Algorithm
   ```

   To replay all 3,091, run the same command once for every module of the proof, and record each exit code. The 3,091 are exactly the modules that have a compiled file (the kind Lean writes when it builds a module) under the folder below after step 4; the repository folder holds 3,977 Lean files, and about 900 of them are not part of this proof's dependencies. A module name is the file path under the OAI folder with slashes replaced by dots and the ending removed.

   ```
   .lake/build/lib/lean/OAI
   ```

   We have not run leanchecker with its option for also replaying everything a module imports on this proof, so we do not know its memory use.

7. Scan for escape hatches. Search every Lean file in the proof folder, after removing comments, for each of the words below. We found none outside the challenge file's own placeholder, which is the normal blank of a challenge file. (A text search is not a proof, and the module names containing "Native" are explained in chapter 2.)

   ```
   sorry   admit   axiom   native_decide   ofReduceBool
   implemented_by   extern   unsafe   skipKernelTC   debug.
   ```

8. Compare the statement with the proof. The Lean community's comparator tool (github.com/leanprover/comparator) is made for this: it checks that the proved theorem has the same statement as the challenge file. We have not run it. We compared the 33 definitions of the challenge file with the proof's as text, and read the eight that differed by eye; a reader who wants a stricter check can compare the compiled form of each definition in the two versions.

The repository's own route (the project file in its lean folder, then the cache fetch and a build) also exists. We did not use it, because it fetches the other libraries.

## Expected output

The build ends with a line like this (the number of jobs depends on what the Mathlib download supplied; ours was 12,014):

```
Build completed successfully (12014 jobs).
```

During the build you will also see axiom lines printed by the proof itself (19 in all), each listing only the same three axioms. The axiom report from step 5 is:

```
'OAI.Algorithms.SubexponentialSAT.SqrtLogSpace.exact_count_and_sat' depends on axioms: [propext,
 Classical.choice,
 Quot.sound]
```

If the list contains the placeholder axiom, or any axiom not in this list, the result differs from ours. The line breaks in the axiom report may differ on your machine. leanchecker prints nothing and exits with code 0 when it accepts a module, and prints a message and exits with code 1 when it rejects.

Warnings from Lake that the copied Mathlib or Batteries folders have "local changes" can appear when the project is copied between systems. On our copy both were at the revisions in the manifest, and the only differences were three non-Lean files that changed type from a link to a plain file.

## Time and memory

On our machine the build took about 9.5 hours of elapsed time, with Mathlib already downloaded, and was stopped and resumed three times; we ran the heaviest modules on one thread. Plan for about 16 GB of free memory. While it ran, the replay went at about a hundred modules an hour on the same machine, one module at a time; later modules may be slower, so a full replay of all 3,091 modules is likely to need a day or more. These are rough figures from one machine.

## What is not claimed

These checks show that the theorem, as written in Lean, is accepted under the three standard axioms, and that all 3,091 stored modules pass a kernel replay. They do not show that the Lean statement is the right one (that is the reading in the book), that the manuscript's mathematics is correct, or that a second kernel agrees; the comparator tool and a second kernel have not been run.

Supporting records are available on request.
