# Why do 128 of OpenAI's math families have no Lean? I started writing the statements

> Source: <https://dev.to/denisijcu/why-do-128-of-openais-math-families-have-no-lean-i-started-writing-the-statements-pnf>
> Published: 2026-12-04 19:10:22+00:00

**Recommendation:** Write the Lean statement first and document how each paper term maps to Lean, then re-check proofs with an independent kernel like nanoda before trusting them.
More in the playbook "Verifying model output": <https://wpnews.pro/playbooks/output-verification>

OpenAI's [`openai/math`](https://github.com/openai/math) repository holds 730 AI-written mathematics manuscripts, grouped into 375 families. 247 of those families come with proofs in **Lean**, the language where a computer checks every logical step. The other **128 have no Lean at all**.

I had spent weeks on the part that *was* there. My other open-source project, [vertex-math-verify](https://github.com/Denisijcu/vertex-math-verify), re-checks OpenAI's Lean challenges on a plain Windows PC: build, axioms, statement comparison and a second independent kernel. 27 challenges have passed all four seals so far.

But the gap kept bothering me. Why not those 128?

Before you can prove something in Lean, you have to be able to *write it down*, and that means every object it mentions has to exist in **Mathlib**, Lean's math library. Most of the 128 families live in algebraic geometry, topology and differential geometry, where Mathlib still lacks a lot of the theory those papers take for granted.

That gives a testable prediction: **families that talk about things Mathlib already has (primes, matrices, division rings, colorings of the integers) should be statable.** So I built a second project to find out.

[github.com/Denisijcu/vertex-math-formalize](https://github.com/Denisijcu/vertex-math-formalize) (Apache-2.0)

The rule is **statement first**. A formal statement is a contract: if it's wrong, a perfect proof proves the wrong thing and every check still comes out green. So each statement ships with a line-by-line table of how the paper's words became Lean.

Here is the main theorem of family 029 (Artin's primitive roots) as it now builds against OpenAI's exact Mathlib version:

```
def Admissible (a : ℤ) : Prop :=
  a ≠ -1 ∧ ¬ IsSquare a

theorem artin_infinitely_many (a : ℤ) (ha : Admissible a) :
    {p : ℕ | p.Prime ∧ orderOf (a : ZMod p) = p - 1}.Infinite := by
  sorry
```

That `sorry` is honest: the paper is 92 pages. But the *easy direction*, that being a primitive root mod infinitely many primes forces `a` to be admissible, is fully proved:

```
theorem admissible_of_infinitely_many (a : ℤ)
    (h : {p : ℕ | p.Prime ∧ orderOf (a : ZMod p) = p - 1}.Infinite) :
    Admissible a
```

It uses only Lean's three standard axioms, and the second kernel (nanoda) re-checked it from scratch: 9,263 declarations, no errors.

| Family | Problem | Statement | Proof | 
|---|---|---|---|
| 029 | Artin's primitive roots | builds | easy half proved | 
| 164 | Hindman's finite sums and products | builds | `sorry` | 
| 201 | Kurosh's problem for division rings | builds | `sorry` | 
| 239 | Singularity of symmetric sign matrices | builds | `sorry` | 

The prediction held in all four cases. That says nothing yet about the other 124 families, and I'm not claiming it does.

The hardest question isn't whether a proof is correct (Lean answers that). It's **whether the statement says what the paper actually claims**. If you know Lean or any of these areas, open an issue or reply here: a mistake found is the best possible outcome.

The full write-up is in [docs/why-128-families.md](https://github.com/Denisijcu/vertex-math-formalize/blob/main/docs/why-128-families.md).

*Built with heavy help from an AI assistant (Claude). AI writes, Lean checks, people decide what it means.*
