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

Don't take our word for it. Each result here comes with its files and a check guide, and each guide says which checks you can rerun yourself. Some results rest on logs from programs that are not part of this book, or on files available on request; the guide says which. Where your run matches ours, you checked that part rather than trusted it. If something breaks, confuses you or does not match, you are welcome to tell us. We fix mistakes in the open and credit the person who found them. Why a recipe and not our program: https://gocheckyourself.org/how-to-check/

You do not have to trust our results or our programs. This page tells you, step by step, how to check the published files with tools you already have. The full written recipe is the chapter 'Check it yourself: OpenAI's claimed refutation of ETH' in https://gocheckyourself.org/text/eth-audit-experts.txt.

Every step has the command for Windows PowerShell and for macOS or Linux (bash), the output you should see, and a plain sentence on what a match means and what it does not. If your output is different, the step has failed; do not skip it.

You need: a command line, and Python 3.8 or later (python on Windows, python3 on macOS or Linux) for the steps that run a script. Windows PowerShell 5.1 or later (pwsh also works). Scripts are short; read them before you run them.

## What is known not to work today

- This book ships no data files (just a statement file, a citation file and a licence note), so there are no fingerprints to compare. Every step uses outside software and OpenAI's public repository.
- HEAVY: the build took about 9.5 hours on the authors' machine with Mathlib already downloaded, needs about 16 GB of memory, and a full kernel replay of 3,091 modules likely needs a day or more. Not run here.

## Step 1: Get OpenAI's source at the pinned commit (sparse checkout of the proof folder and the challenge file).

Commands (same on both platforms; not run by us unless stated):

```
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
```

You should see:

```
git ends on commit 7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a.
```

What a match shows, and what it does not: It shows you have the same source we checked, not that it is correct.

Cost: minutes.

## Step 2: Make a small Lake project (toolchain leanprover/lean4:v4.34.1, Mathlib revision d13f23b723b8a846827a245b89c10fc7d3f11612, library OAI with autoImplicit false), fetch the Mathlib cache, build the main module.

Commands (same on both platforms; not run by us unless stated):

```
lake exe cache get
lake build OAI.Algorithms.SubexponentialSAT.Main
```

You should see:

```
Build completed successfully (the number of build steps depends on what the cache supplied; the authors saw 12014).
```

What a match shows, and what it does not: It shows Lean accepts the proof. It does not show the Lean statement is the right one.

Cost: about 9.5 hours, 16 GB.

## Step 3: Print the axioms of the final theorem.

Commands (same on both platforms; not run by us unless stated):

```
# put these two lines in Axioms.lean:
#   import OAI.Algorithms.SubexponentialSAT.Main
#   #print axioms OAI.Algorithms.SubexponentialSAT.SqrtLogSpace.exact_count_and_sat
lake env lean Axioms.lean
```

You should see:

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

What a match shows, and what it does not: Just the three standard axioms appear; it does not show the theorem statement matches the paper.

Cost: seconds after the build.

## Step 4: Replay one module through the kernel (repeat for each of the 3,091 modules for a full replay).

Commands (same on both platforms; not run by us unless stated):

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

You should see:

```
No output and exit code 0 when accepted; a message and exit code 1 when rejected.
```

What a match shows, and what it does not: A full replay of all modules is not done by this one command.

Cost: about 100 modules per hour; a full replay a day or more.

