# Statement

**The question:** does the Lean theorem that OpenAI published say what the Exponential Time Hypothesis (ETH) denies, and how far has its proof been checked? **The answer:** the statement is a faithful and slightly stronger form of "k-SAT and counting its solutions are solvable in time 2^{o(n)} times a polynomial, in polynomial space, for every fixed k of 2 or more" (checked, re-derived); the whole proof builds under Lean 4.34.1 and its axioms are the standard three and no others (checked by machine); a kernel replay of all 3,091 modules has finished (3,091 accepted, none rejected); the comparator tool and a second kernel have not been run, and the manuscript's mathematics has not been checked line by line (open).

Setup: OpenAI's repository at the pinned commit, Lean 4.34.1 and the pinned Mathlib version. The theorem is the main theorem of OpenAI's proof, stated in the challenge file and proved in the final module of the proof. The exact names are:

```
Repository:     github.com/openai/math
Commit:         7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a
Mathlib:        d13f23b723b8a846827a245b89c10fc7d3f11612
Theorem:        OAI.Algorithms.SubexponentialSAT.SqrtLogSpace.exact_count_and_sat
Stated in:      ComparatorChallenges/SubexponentialSAT.lean
Proved in:      OAI/Algorithms/SubexponentialSAT/SqrtLogSpace/Final.lean
```

## The theorem as published

```lean
theorem exact_count_and_sat (k : ℕ) (hk : 2 ≤ k) :
    ∃ (machine : Computation.PrimitiveMachine)
      (countTape answerTape : Fin machine.tapeCount)
      (C A S : ℝ) (d e : ℕ),
      0 < C ∧ 0 < A ∧ 0 < S ∧ 0 < d ∧ 0 < e ∧
      ∀ (n : ℕ) (F : SAT.CNF (Fin n)), SAT.WidthAtMost k F →
        ∃ (time : ℕ) (final : LocatedCfg machine),
          Computation.Trace (locatedStep machine) time
            (locatedInit machine (Encoding.encodeCNF F)) final ∧
          final.config.tapes countTape =
            Turing.Tape.mk₁ ((countWord (SAT.count F)).map some) ∧
          final.config.tapes answerTape =
            Turing.Tape.mk₁ [some (decide (0 < SAT.count F))] ∧
          final.config.state = Sum.inl (decide (0 < SAT.count F)) ∧
          BinaryArithmetic.toNat (countWord (SAT.count F)) = SAT.count F ∧
          (countWord (SAT.count F)).length ≤ n + 1 ∧
          (time : ℝ) ≤ OAI.Algorithms.SubexponentialSAT.SqrtLog.Statement.runtimeBound C A d
            (Encoding.formulaBitLength F) n ∧
          ∀ (prefixSteps : ℕ) (intermediate : LocatedCfg machine),
            prefixSteps ≤ time →
            Computation.Trace (locatedStep machine) prefixSteps
              (locatedInit machine (Encoding.encodeCNF F)) intermediate →
            (visitedSpace intermediate : ℝ) ≤
              S * ((Encoding.formulaBitLength F : ℝ) + 1) ^ e
```

The text above is copied from the file in OpenAI's repository, which is released under the Apache 2.0 licence. In the challenge file the proof is replaced by the placeholder word "sorry", the normal shape of a challenge.

## What each part says

| Part of the statement | In plain words | Label |
| --- | --- | --- |
| The choice of machine, tapes and constants, placed before "for every n and every formula" | One fixed machine and fixed constants for each width k, chosen before the size n and the formula | Checked |
| The run of the machine on the encoded formula | The machine's own run reaches a final configuration after exactly the stated number of steps | Checked |
| The count tape and the equation tying it to the count | The count tape holds the exact number of satisfying settings, in binary (least significant bit at the start) | Checked |
| The length bound on the count | The count fits in n + 1 bits | Checked |
| The answer tape and the halting state | The yes-or-no answer is on its own tape and is the halting state | Checked |
| The time bound | Time at most C·(L+1)^d·2^{A·n·(ln ln (n+16))²/√(ln (n+16))}, where L is the encoded length | Checked: the exponent is o(n) and L is polynomial in n for fixed k |
| The last line, on space | At every moment of the run, the total over all tapes of the width of the stretch each head has covered (the input tape counts as covered from the start) is at most S·(L+1)^e | Checked |

## The checks on the proof

| Check | Result | Label |
| --- | --- | --- |
| Scan of 3,977 Lean files for placeholders, new axioms, trusted compiled code and checking switches | none found outside the challenge file's own placeholder | Checked by machine |
| Build of the final module with Lean 4.34.1 and the pinned Mathlib version | completed successfully, 12,014 jobs | Checked by machine |
| Axioms of the final theorem | the three standard axioms and no others (listed in the check guide) | Checked by machine |
| Kernel replay with leanchecker, module by module | 3,091 of 3,091 modules accepted, none rejected | Checked by machine |
| Comparator tool | run by Busnello: accepted (Lean's kernel) | Cited |
| Second kernel | run by Toledo with a patched nanoda: accepted; unpatched run not finished | Cited |
| The manuscript's mathematics | not checked line by line | Open |
| The manuscript's other claims (sharper exponents, corollaries, local-map appendix) | not re-derived | Open |

## Where to go next

- How was each line of the statement read? See [What the Lean statement says](../chapters/01-what-the-lean-statement-says.md).
- How do I repeat the checks? See [Check it yourself](../VERIFY.md).
