# Studying proof data with proof theory: the case of AI-generated mathematics

> AI-generated proofs in Lean diverge structurally from human proofs, with 5.8x greater gesture-mix divergence and only 31% realized compression versus 73% in mathlib.

- **Source:** [arXiv](https://arxiv.org/abs/2610.25357)
- **Published:** 2026-10-24
- **Permalink:** https://picx.dev/p/U9JZZF
- **Whiteboard:** https://picx.dev/p/U9JZZF/image

## Summary

# Summary of "Studying Proof Data with Proof Theory: The Case of AI-Generated Mathematics"

## Summary (Overview)

- This paper presents a novel methodology for empirically analyzing large collections of formally verified mathematical proofs, treating proof-theoretic quantities as *measurements* of proofs rather than optimization targets.
- The author compiled 96 projects from OpenAI's AI-written mathematics library, three smaller AI corpora (sphere packing, Putnam 2025, IMO 2025 solutions), and two human research projects (Carleson, sphere eversion), all against the same version of mathlib (Lean's main library).
- Key findings: AI-generated proofs diverge significantly from human-written ones in structure—OpenAI's gesture mix is **5.8×** farther from mathlib than random mathlib samples are from themselves, and AI proofs realize far less available logical compression (**31%** vs. **73%** in mathlib).
- The paper introduces novel concepts: **gestures** (structure-preserving abstractions of proof steps), **eigenproofs** (directions of maximal divergence), and **realized compression** (the fraction of available sharing a proof actually exploits).
- Three main results survive all controls: (1) gesture-mix divergence, (2) excessive intermediate claims (40% of OpenAI proofs are larger *with* their cuts than without, vs. 13% in mathlib), and (3) low realized compression.

## Introduction and Theoretical Foundation

### Historical Motivation: Brahe, Kepler, and Newton

The author draws an extended analogy between the Scientific Revolution and the current state of AI-generated mathematics. Just as Tycho Brahe's meticulous astronomical observations provided the data that enabled Kepler's laws and Newton's synthesis, the author argues that large collections of formally verified proofs constitute "mathematical data" that can be turned into "mathematical evidence."

Key historical innovations cited:
- **Kepler's five evidentiary innovations**: using the true sun rather than the mean sun, bisection of eccentricity, the area rule, and the elliptical orbit model
- **Newton's synthesis**: showing that mathematical structures underlying celestial and terrestrial mechanics could be systematically related

> "The transition to Newtonian mechanics thus depended on a methodological transformation in which observations were systematically collected, discrepancies were treated as grounds for revising existing models, and mathematical relationships were used to establish connections that the observations alone could not have revealed."

### The Foundational Crisis

The paper reviews the 19th–20th century foundational crisis through the lens of two opposing attitudes:

1. **Kronecker's finitism**: "God made the integers, all else is the work of man" — mathematics must be grounded in finite, constructive processes
2. **Cantor's freedom**: "Mathematics is completely free in its development and is only bound to the self-evident consideration that its concepts are both free of contradictions..."

The author traces how these attitudes played out through Frege, Hilbert, Borel, Brouwer, and Heyting, culminating in **Gentzen's proof theory**.

### Proof Theory: Natural Deduction and Cut Elimination

The paper presents Gentzen's sequent calculus (LJ) and the cut elimination theorem in detail. Key rules include:

**Sequent form**: $\Gamma \vdash A$

**Cut rule**:
$$\frac{\Gamma \vdash A \quad \Delta, A \vdash C}{\Gamma, \Delta \vdash C} \text{(Cut)}$$

**Cut elimination theorem**: Every derivable sequent in LJ has a cut-free derivation.

The rank of a formula is defined by:
$$r(P) = r(\bot) = 0$$
$$r(A \circ B) = 1 + \max\{r(A), r(B)\}, \quad \circ \in \{\land, \lor, \to\}$$
$$r(Qx\,A) = 1 + r(A), \quad Q \in \{\forall, \exists\}$$

### Boolos's "Don't Eliminate Cut"

The paper invokes Boolos's (1984) argument that while cut elimination is possible in principle, the cut-free derivation can be unimaginably large. This motivates measuring whether cuts *earn their place* in actual proofs.

## Methodology

### Proofs as Programs (Curry–Howard)

Lean rests on the Curry–Howard correspondence: propositions are types, proofs are programs. The paper distinguishes between:
- **Source text**: what a person or machine types (tactics)
- **Proof term**: the kernel-checked program that the tactics elaborate

### Gestures

**Definition**: A *gesture* is a proof term node with three transformations:
1. All hypothesis names erased
2. Every type reduced to its head connective (e.g., $=$ for equations, $\to$ for implications)
3. Each hypothesis labeled by usage count: 0 (never), 1 (once), or $\omega$ (more than once)

For example, every use of transitivity of equality becomes: `Eq.trans (=, =) ⇒ =`

### Data Pipeline

1. **Text study**: 5-gram interpolated Kneser–Ney language model trained on mathlib's source; measures "energy" in bits per token
2. **Compiled study**: All corpora compiled with Lean 4.34.1 against mathlib at commit `d13f23b`
3. **Hashing pass**: Eliminates cuts by substitution, uses hash-consing to compute exact sizes of cut-free forms without materializing them

### Cut Measures

For each proof $\pi$, three sizes are computed:
- $|\pi|$: size as written
- $|\pi^{cf}|$: size of cut-free form
- $|\pi^{opt}|$: size with optimal layout (keeping only cuts that save space)

**Key definitions** (all in bits):

**Cut compression**:
$$\kappa(\pi) = \log_2 \frac{|\pi^{cf}|}{|\pi|}$$

**Compressibility**:
$$\chi(\pi) = \log_2 \frac{|\pi^{cf}|}{|\pi^{opt}|}$$

**Layout redundancy**:
$$\rho(\pi) = \log_2 \frac{|\pi|}{|\pi^{opt}|}$$

These satisfy: $\kappa = \chi - \rho$

The five normal forms split $\kappa$ into:
$$\kappa = \underbrace{\log_2 \frac{N_3}{N_2}}_{\sigma} - \underbrace{\log_2 \frac{N_1}{N_2}}_{\ell} - \underbrace{\log_2 \frac{N_0}{N_1}}_{w}$$

where $\sigma$ is the gain from shared cuts, $\ell$ the cost of naming proofs used once, and $w$ the cost of never-used proofs.

### Realized Compression

For cut-free proof size $S$, define:
- $\chi^{author} = \log_2(S/A)$: what the author's cuts achieve
- $\chi^{lb} = \log_2(S/G)$: an explicit layout naming any repeated subproof that pays for itself
- $\chi^{DAG} = \log_2(S/D)$: full sharing with no naming cost

**Realized share**: $\frac{\sum_\pi \chi^{author}(\pi)}{\sum_\pi \chi^{lb}(\pi)}$

### Control Measures

The paper implements several controls:
- **Null distributions**: random size-matched samples of mathlib against itself
- **Automation controls**: proofs with no tactic calls, certificates collapsed to single steps
- **Layout controls**: proofs in optimal layout ($\rho = 0$), proofs with no cuts
- **Compilation controls**: shared vs. module-by-module environments

## Empirical Validation / Results

### Text Energy

| Corpus | Bits per token | AUC vs. mathlib |
|--------|---------------|-----------------|
| mathlib (held-out) | 5.15 | — |
| Human research | 6.67 | — |
| OpenAI | 7.00 | 0.94 |

76% of the gap comes from identifiers (names); syntax adds only 0.28 bits.

### Gesture Divergence

- OpenAI's gesture mix: **280 bits** from mathlib
- Null (random mathlib samples): **49 bits** (max 58 in 10 draws)
- **Ratio: 5.8×**

The first four eigenproofs:

| Eigenproof | Bits | mathlib >2 s.d. | OpenAI >2 s.d. | Human >2 s.d. |
|------------|------|-----------------|----------------|----------------|
| Integer arithmetic in equation chains | 23.6 | 0.7% | 6.3% | 0.5% |
| Rewriting under binders | 17.5 | 0.2% | 4.2% | 4.4% |
| Closing by evaluating numerals | 15.5 | 0.6% | 8.4% | 11.2% |
| Normalizing, then closing | 13.5 | 0.9% | 13.5% | 12.8% |

### Basic Step Statistics (medians over projects)

| Measure | mathlib | OpenAI | Human | AUC vs. mathlib | AUC vs. human |
|---------|---------|--------|-------|-----------------|---------------|
| Steps per theorem | 18.5 | 27.0 | 29.0 | 0.75 | 0.40 |
| Unused hypotheses | 8% | 12% | 14% | 0.64 | 0.41 |
| Intermediate claims per 100 steps | 0.36 | 1.20 | 0.64 | 0.86 | 0.79 |
| Unused claims | 0.0% | 0.9% | 1.0% | 0.74 | 0.50 |

### Cut Statistics

| Measure | mathlib | Human | OpenAI | Sphere packing | Putnam | IMO |
|---------|---------|-------|--------|----------------|--------|-----|
| Proofs measured | 143,448 | 3,195 | 25,928 | 3,553 | 353 | 29 |
| Proofs with a cut | 17% | 33% | 47% | 54% | 73% | 69% |
| Cuts dead/linear/shared | 1/74/25% | 1/77/22% | 2/82/16% | 3/88/9% | 4/86/10% | 2/86/12% |
| χ (bits/proof) | 0.029 | 0.063 | 0.035 | 0.022 | 0.056 | 0.056 |
| ρ (bits/proof) | 0.015 | 0.028 | 0.071 | 0.188 | 0.174 | 0.159 |
| Proofs larger with cuts | 13% | 26% | 40% | 50% | 67% | 55% |

OpenAI's redundancy $\rho$ is higher than mathlib's (AUC 0.95, $p = 2 \times 10^{-44}$) and higher than human research code's (AUC 0.85, $p = 4 \times 10^{-5}$).

### Realized Compression

| Measure | mathlib | Human | OpenAI | Sphere packing | Putnam | IMO |
|---------|---------|-------|--------|----------------|--------|-----|
| χ^author | 0.029 | 0.063 | 0.035 | 0.022 | 0.056 | 0.056 |
| χ^lb | 0.039 | 0.105 | 0.115 | 0.162 | 0.186 | 0.173 |
| χ^DAG | 0.100 | 0.223 | 0.290 | 0.424 | 0.418 | 0.437 |
| **Realized share** | **73%** | **61%** | **31%** | **14%** | **30%** | **33%** |
| Missed ≥1 bit | 0.1% | 0.3% | 1.1% | 3.2% | 3.4% | 3.4% |

### Tooling Controls

With automation collapsed, OpenAI's divergence falls from 280 to 182 bits (3.7× null); with rewriting also collapsed: 191 bits (3.4×); on author's own steps only: 220 bits (3.9×).

On proofs calling no automation:

| Measure | All proofs AUC | No automation AUC |
|---------|---------------|-------------------|
| Steps per theorem | 0.87 | 0.73 |
| Unused hypotheses | 0.75 | 0.77 |
| Intermediate claims/100 steps | 0.94 | 0.95 |
| Redundancy ρ | 0.95 | 0.94 |
| Compressibility χ | 0.63 | 0.55 |
| κ | 0.12 | 0.07 |
| Realized share | 0.25 | 0.36 |

On no-automation proofs: mathlib realizes **86%**, human research **82%**, OpenAI **55%**, sphere packing **33%**.

### Instrument Checks (Rank Ladder)

The paper verifies that created redexes can only arise from cuts of rank ≥ 1. Initial failures revealed two instrument bugs (syntactic rank reading, missed cuts behind substitutions). After fixes, the ladder holds for **every proof with created redexes in every corpus** (1,100 in mathlib).

## Theoretical and Practical Implications

### Theoretical Contributions

1. **Proofs as measurable objects**: The paper demonstrates that proof-theoretic quantities (cut structure, compression, redundancy) can serve as empirical measurements, not just optimization targets.

2. **The gesture abstraction**: Provides a way to compare proofs of entirely different theorems by stripping away content while preserving structure.

3. **The tension between Cantor and Kronecker**: The author frames the methodology as navigating between Cantorian freedom (abstracting away content to find common structure) and Kroneckerian constructivism (insisting on the actual construction, the kernel-checked proof term).

### Practical Implications

1. **For AI prover development**: The low realized compression of AI proofs suggests concrete improvement targets—writing fewer dead intermediate claims and better exploiting repeated subproofs.

2. **For formal verification practice**: The paper highlights the importance of tracking compilation failures and provenance; 67% of IMO solutions failed to compile against the target mathlib version.

3. **For the "Navier–Stokes" controversy**: The author cites Bastounis et al. (2026) showing discrepancies between informal claims and formalizations, arguing that empirical proof analysis can help identify artifacts requiring closer inspection.

4. **For mathematical archiving**: The author envisions "a mathematical archive in which failures and corrections remain visible, so that accumulated proofs become a resource for discovering regularities."

## Conclusion

The paper's central findings:
1. AI-generated proofs have a **measurably different structure** from human proofs, even after controlling for tooling and layout
2. AI proofs are **redundant**: 40% are larger with their intermediate claims than without them
3. AI proofs **realize less available compression**: 31% vs. 73% in mathlib (55% vs. 86% without automation)

The author acknowledges limitations: mathlib is a polished library with a house style; the gesture study doesn't control for subject matter; the human research reference is small.

**Future directions**:
- Measuring abstraction (cut introduction) at scale, not just repetition
- Testing whether current categories "collapse under closer inspection"
- Building archives where failures remain visible
- Extending the methodology as corpora grow

The paper concludes with a Lakatosian perspective: "the proof is a moving object, altered by criticism, counterexample, and the introduction of distinctions that were invisible in the original formulation." The empirical study of proofs is "a rather peculiar science, whose data are themselves mathematical constructions and whose instruments must answer to mathematical theorems."

---

_Markdown view of https://picx.dev/p/U9JZZF, served by PicX — AI-generated visual whiteboard summaries of research papers._
