# AutoformBench: A Lean Formalization Benchmark for Advanced Mathematics

> AutoformBench shows frontier models need hundreds of millions of tokens for 50% task completion, proving infrastructure construction, not domain knowledge, is the core bottleneck in formalization.

- **Source:** [arXiv](https://arxiv.org/abs/2611.33165)
- **Published:** 2026-11-28
- **Permalink:** https://picx.dev/p/44RMuR
- **Whiteboard:** https://picx.dev/p/44RMuR/image

## Summary

## Summary (Overview)

- **AutoformBench** is a new benchmark of 341 Lean 4 formalization tasks drawn from 24 advanced mathematical sources (primarily MIT OpenCourseWare materials), designed to evaluate agents' ability to construct missing formal infrastructure—definitions, intermediate lemmas, and connections to Mathlib—rather than just proving isolated theorems.
- Each task provides a human-audited Lean statement, local formal context, and the corresponding informal proof excerpt; agents must prove the target by interacting agentically with the workspace, constructing any missing auxiliary definitions and lemmas.
- The benchmark contains 1,155 graded proof obligations across 341 workspaces, with strict verification via Comparator and independent replay through the Nanoda kernel.
- **Key finding**: Success depends less on mathematical domain than on models' ability to construct missing formal infrastructure; even state-of-the-art models require dozens of millions of tokens to complete 50% of tasks.
- **Efficiency frontier**: GPT-6 Astra (high token-efficiency) and DeepSeek V4.1 Flash (low cost per token) dominate, with strong task-nesting indicating a largely shared difficulty frontier across models.

## Introduction and Theoretical Foundation

The paper addresses a critical bottleneck in AI mathematical reasoning: **verification**. As language models produce increasingly sophisticated mathematical arguments, verifying their output becomes essential. Proof assistants like Lean 4 offer mechanical verification—a small kernel checks every logical step, providing a precise certificate relative to the formal statement and assumptions.

The authors argue that formalization is **cumulative**: before proving a theorem, one must identify or construct the definitions, intermediate lemmas, and connections to Mathlib on which it depends. This cumulative work is underrepresented in existing benchmarks:

- **miniF2F, PutnamBench, ProofNet** primarily test self-contained problems from competitions or undergraduate courses whose formal vocabulary is already supplied
- Success on these tasks does not reveal whether an agent can navigate new mathematical developments, build missing infrastructure, or do so efficiently

The **Jacobian Challenge** (Buzzard, 2026) points toward this broader regime, and AutoformBench systematizes this evaluation across 24 sources. The benchmark makes an explicit point about **cost efficiency**: formalizing mathematical literature at scale requires models and inference harnesses that achieve strong performance at low computational cost.

## Methodology

### Benchmark Construction

1. **Source material**: 24 openly available advanced mathematical sources spanning diverse domains (algebraic geometry to probability theory), mostly from MIT OpenCourseWare, deliberately selected to extend beyond direct Mathlib coverage.

2. **Formalization protocol**: Human experts (PhD-level) from Labelbox formalized selected theorems plus all definitions and lemmas needed to state them in Lean 4 (version 4.32). Each formalization was reviewed by an independent expert and the authors assisted by frontier models.

3. **Output**: 341 self-contained Lean workspaces with 1,155 graded proof obligations. Each workspace has one headline target; proposition-valued proof bodies are replaced with `sorry`. Models must replace every graded `sorry` with a correct proof.

### Evaluation Protocol

- **Workspace isolation**: Each problem has a frozen file with the statement and supporting definitions, plus an editable copy. A machine-readable specification identifies graded results and permitted axioms.
- **Harbor harness**: Runs agents in isolated Docker environments; the verifier runs in a separate, network-disabled container using Comparator.
- **Tools provided**: Filesystem tools, Lean-execution tools (REPL, full-project build), and Mathlib search via Loogle.
- **Budget**: Flat \$200 per-task cost cap; runs terminate when the model calls `submit_report` or exhausts budget.
- **Context compaction**: When conversation approaches context limits, the harness compacts history into a summary while preserving files, enabling long-horizon work.

### Models Evaluated

GPT-6 Astra, GPT-5.6 Sol, Claude Opus 5, Claude Opus 4.8, Claude Sonnet 5, Claude Fable 5, Gemini 3.7 Flash, DeepSeek V4.1 Flash, and Kimi K3.

## Empirical Validation / Results

### Budget-Conditioned Leaderboard

- Tasks are extremely challenging; most frontier models require **hundreds of millions of tokens** to reach 50% completion.
- **GPT-6 Astra** is highest from 10 turns, ~0.41M total tokens, and the first conversation iteration onward.
- The efficiency frontier is dominated by two opposing designs: **Astra** (high token-efficiency, high cost per token) and **DeepSeek V4.1 Flash** (inference-optimized, low cost per token).

### Efficiency Comparisons (129 tasks solved by all nine models)

| Metric | Best Model | Median Ratio |
|--------|-----------|--------------|
| Recorded cost | DeepSeek | 0.19× same-task median |
| Turns | Astra | 0.28× |
| Added Lean LOC | Astra | 0.59× |

### Difficulty Analysis

- Strong task-nesting: across 36 model pairs, the higher-scoring model solves ≥95% of the lower-scoring model's successes in 30 pairs.
- **Astra** solves 281 tasks, uniquely solving 66 that every other model misses; only one task is solved by another model but missed by Astra.
- Mean success falls from **66.4%** on single-hole tasks to **32.5%** on multi-hole tasks.
- Correlation between Astra's solution LOC and number of models solving the task: $\rho = -0.84$ (longer solutions → harder tasks).

### Agent-Built Infrastructure (Astra's 281 solutions)

- 92.9% use auxiliary lemmas
- 73.3% introduce new definitions
- 94.0% of dependency-reachable proof code lies in supporting declarations
- Even single-hole tasks: 90.4% use auxiliary lemmas; 93.4% of live proof code is in supporting declarations

### Run-to-Run Stability (72-problem panel)

- 69/72 problems receive the same result across three runs for each model
- Sol: 43–44 problems/run (45 under pass@3); Gemini: 36–38/run (39 under pass@3)

### Ablations

**Tool Ablations** (72-problem panel):

| Condition | Gemini 3.7 Flash | GPT-5.6 Sol |
|-----------|-----------------|-------------|
| Full tools, three runs | 38, 36, 38 | 43, 44, 43 |
| No REPL | 36 | 45 |
| No Loogle | 35 | 44 |
| No build | 24 | 39 |
| No REPL or build | 1 | 4 |
| Files only | 1 | 1 |

**Single-shot without tools** (230 single-hole tasks): Sol 6/230 (2.6%), Gemini 3/230 (1.3%) vs. 70.9% and 64.3% under full agentic evaluation.

**Context-iteration scaling**: DeepSeek solves 101 additional tasks after first context window, Kimi 86, Gemini 83, Sonnet 46; Astra and Fable complete all within initial context.

**Agent-scaffold comparison**: Claude Code solves 218/341 vs. 211/341 for common loop; advantage is primarily efficiency/persistence rather than different mathematical strategy.

**Informal-source ablation**: Removing textbook access yields no statistically significant difference (Opus: 204 vs. 200; Gemini: 136 vs. 133), though both models consult the source in >93% of enabled runs.

## Theoretical and Practical Implications

1. **Benchmark design**: AutoformBench demonstrates that evaluating proof completion in realistic, infrastructure-heavy settings reveals capabilities invisible in isolated theorem-proving benchmarks. The strong nesting of results indicates a largely shared difficulty frontier—success depends on constructing missing formal infrastructure, not mathematical domain specialization.

2. **Cost efficiency is critical**: The paper argues that formalizing mathematical literature at scale requires strong performance at low computational cost. AutoformBench provides a natural benchmark for measuring progress under explicit cost constraints, with the \$200 budget serving as a ceiling rather than a requirement.

3. **Tool access is essential**: Removing executable Lean-feedback interfaces collapses performance from 36–45 to 1–4 solved problems. The agentic loop with compiler feedback is not optional—it is fundamental to capability.

4. **Infrastructure construction is the core skill**: Even single-hole tasks require substantial supporting declarations (93.4% of live proof code), showing that "theorem proving" in practice is largely "formal library building."

5. **Informal sources may be less critical than expected**: Current frontier models' strong mathematical knowledge means explicit textbook access provides no clear aggregate advantage once formal statements and local context are available.

## Conclusion

AutoformBench is a natural step toward measuring how well models can construct missing formal infrastructure. Key takeaways:

- **Current state**: Even frontier models require hundreds of millions of tokens for 50% completion, highlighting the need for more cost-efficient approaches before autoformalization can scale effectively.

- **Limitations**: The benchmark is constrained by what can be expressed against Mathlib within a bounded evaluation; it evaluates proof completion rather than end-to-end statement autoformalization; kernel acceptance doesn't guarantee abstraction quality for upstream library inclusion.

- **Future direction**: The next step is testing whether agents can recognize shared missing theory, build reusable abstractions, and amortize work across related results—moving from isolated problems to cumulative developments, measuring the transition from theorem solving to extending formal libraries.

---

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