# h1: A Taste of the Bitter Lesson in Automated Theorem Proving

A simple agent loop with Lean feedback can match specialized theorem-proving workflows

Skander Moalla, Ahmad Rammal, Niket Patel, Remi Munos, Julia Kempe · arXiv · 2026-10-25

- **Problem** Formal theorem provers have relied on human-designed workflows for planning and decomposition. Their gains are often confounded with stronger models or more compute, so it is unclear whether a simple loop could match them.
- **Method** h1 lets a model edit a Lean file until the validator accepts it.
- **Results** With GPT-5.6 Sol, h1 solves 90 of 100 FATE-X problems in a single run per problem. The paper also reports matching or outperforming specialized workflows at matched models.

## Where formal proving stalls

Lean makes each proof step mechanically checkable, so the search space around a proof looks structured enough to design by hand. Simple loops that only feed Lean feedback back to the model and sustain work are a newer choice, and interest in them grew only very recently.

Informal mathematics has advanced mainly by scaling chain-of-thought and agentic reasoning, while formal proving has leaned on human-designed workflows. The open question is whether a simple test-time scaling loop can match specialized workflows, and what the harness must provide to make that scaling effective.

New workflows usually arrive together with stronger models and more compute, or they are compared against baselines that scale poorly. The authors test this with h1, a simple harness that gives the model an efficient Lean 4 interface and imposes no decomposition or search structure. h1 keeps the model working through repeated validation and reflection, so the loop continues until success or a cost cap stops it.

## One model kept working until validation

Each pass through the loop alternates between a multi-turn block of reasoning and tool calls, a submission to a formal validator, and a reflection step. Every edit is compiled, so errors and open goals come back immediately to the model. The validator also accepts checked disproofs where the setting supports them.

SafeVerify performs this check, and it rejects placeholders for unfinished steps and added assumptions. The summary also discourages giving up, and the model resumes from the current file. Each extra iteration works like appending Wait to a model's thinking in s1, which extends test-time computation.

h1 doesn't decide which lemmas to prove or in what order, so the model chooses its own route. The loop builds on APN basic, AxProverBase, and the Ralph loop from software engineering. Section 4 shows that the choice of tools and prompts matters for both cost and success.

## Why the tool interface matters

The interface decides what the model can check and look up, so it shapes every step of the loop. Search runs through LeanExplore, Loogle and grep, and proof fragments run in the Lean REPL. The language server reports goals and definitions, and SafeVerify performs the final validation. The model edits a persistent working file rather than rewriting the whole proof each time.

Each edit is compiled at once, so errors and open goals return to the model immediately.

With Gemini 3 Flash and a $20 budget, AxProverBase solves 18 Putnam100 problems, while h1 solves 69. Because AxProverBase's tools only run once per round, the model cannot act on search results over many turns. The gap shows that targeted edits with immediate feedback matter more than the number of tool calls.

Reliability also removes some failures by design, rather than by prompting. Of AxProverBase's failed compilations, 42.2% stop at an invalid library import. That failure cannot occur in h1, because its file already imports all of Mathlib.

Tool access matters most when the model can act on results over many turns. Without search tools, the REPL and the language server, h1 solves 49 Putnam100 problems, against 69 with all tools. On FATE-X, the same removal drops h1 to 49 solves, against 63 with all tools. Removing any single tool costs at most four solves, so the ability to look up and check is what counts.

Figure 5 shows Claude Code gains from Lean tools but still trails h1 on FATE-X, at 73 against 83 with Opus 4.8.

## What one attempt achieves on established benchmarks and open targets

With GPT-5.6 Sol, h1 solves 90 of 100 FATE-X problems and 78 of 100 FC100-solved problems, each in a single run. On FormalQualBench it solves 14 of 23 theorems, and all six IMO 2026 problems are solved as well. On PutnamBench, h1 with GPT-5.5 solves 670 of 672 problems, and none of these results use repetition or parallelism. The FC100-solved and FATE-X budget curves in Figure 3 show how these scores grow with the inference budget.

Reaching these scores didn't require a prescribed workflow, only a larger budget that lets the model keep iterating and change approaches. Across the runs, accepted attempts reached up to 1,123 rounds of reflection, 95 active hours, or 7,124 lines of proof.

![Figure 3: Generalist models reach frontier results through simple scaling.On FC100-solved (left) and FATE-X (right), increasing h1’s inference budget takes gen…](https://refivu.com/papers/f060d7fe-7433-44c7-ad28-145e5893dfd3/figures/figure-81376ee1143702251f492a38c4bdf568.png?thumb=512)

**Figure 3** Generalist models reach frontier results through simple scaling.On FC100-solved (left) and FATE-X (right), increasing h1’s inference budget takes generalist models beyond published benchmark scores. On FC100-solved,h1 with Gemini 3.1 Pro matches the DeepMind (DM) prover agent’s score at a quarter of its budget cap; with GPT-5.6 Sol, it solves 78, and 90 on FATE-X. With DeepSeek V4 Flash,h1 surpasses AlphaProof on FC100-solved and Leanstral 1.5 on FATE-X. Baseline markers show the best published results as of August 27, 2026.

[Original paper](https://arxiv.org/abs/2610.35962v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Skander Moalla, Ahmad Rammal, Niket Patel, Remi Munos, Julia Kempe · h1: A Taste of the Bitter Lesson in Automated Theorem Proving · Original paper figure · Extracted the figure area from page 5 of the original PDF.

The gains also hold for an inexpensive open-weight model, since DeepSeek V4 Flash solves 43 FATE-X problems at a $14.35 per-problem cap. That count exceeds Leanstral 1.5's published 34, so the loop itself carries much of the result. On FC100-solved, DeepSeek V4 Flash matches the 50 solves of AlphaProof below an estimated $0.30 cap. It reaches 64 at $4.89 per problem, close to the DM prover agent's 66.

With Gemini 3.1 Pro, h1 matches the DM prover agent's 66 solves at a $25 cap rather than $100, then reaches 73 at $150. GPT-5.6 Sol matches the 66 solves below a $9 cap, and reaches 90 FATE-X solves at $38 per problem, against 81 at $113 for Gemini 3.1 Pro.

Beyond the solved subset, h1 ran on 236 open targets selected from Formal Conjectures. It settled eight of them, including variants of Erdős 138 and 337 and three OEIS conjectures. The settled set also includes the existence of an AME(9, 10) state and two conjectures of Written on the Wall II. For the Poincaré conjecture, the formalization was missing a hypothesis, and most misformalizations have since been fixed upstream.

## Matched models against specialized workflows

A single extended h1 attempt then reaches 598 solves, against 597 for Goedel-Architect at pass@4 with informal proof seeding. The per-problem costs are an estimated $1.08 for h1 versus $1.47 for Goedel-Architect.

With Gemini 3.1 Pro alone, h1 matches Goedel-Architect's July leaderboard result of 642 solves. That leaderboard entry pairs Gemini 3.1 Pro with the cheaper DeepSeek V4 Pro. The two systems cost $6.32 versus $5.80 per problem, so the costs are similar.

On Putnam 2025, Numina gave its hardest problem, A5, to a coordinator that delegates work to subagents. That coordinator was seeded with a GPT-5.2 hint and a $1,000 budget. GPT-5.2 alone solves all twelve problems in h1, including A5, in a single run per problem. h1 spends $81.52 on A5, against Numina's $1,000 budget.

Table 2 gathers the matched-model rows and the time caps used in these comparisons. On FormalQualBench, the only lasting exception is MerLean with Opus 4.7, which keeps a one-problem advantage. With Opus 4.8, h1 overtakes MerLean with 13 solves against 10, at $49.46 rather than $118.35 per solve.

![Table 2: Simple scaling often matches specialized systems, while model progress closes further gaps.Row groups separate matched-model comparisons from those us…](https://refivu.com/papers/f060d7fe-7433-44c7-ad28-145e5893dfd3/figures/figure-6b3d1a4e7a2738e77c767b102149a3ac.png?thumb=512)

**Table 2** Simple scaling often matches specialized systems, while model progress closes further gaps.Row groups separate matched-model comparisons from those using other models. The 4-hour cap is FormalQualBench’s official limit; T 50/T 200allow 50/200 turns per iteration;/goal lets a small model judge completion. Table 14 adds measured times.

[Original paper](https://arxiv.org/abs/2610.35962v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## One longer attempt versus repetition

AlphaProof Nexus (APN) found that its basic agent can Pareto-dominate its full system, but only through repetition at large pass@k. The authors test this with h1 on the six open Erdős problems that APN reports individually, using Gemini 3.1 Pro.

For h1, the authors show how pass@1 changes as the budget grows, instead of reporting a single point. At the budget where it matches APN basic's pass@1 at lower cost, h1 keeps climbing. It exceeds APN basic's pass@3 at 75.4% and $191, and full APN at 76% and $317. h1 reaches 82.5% at $121, so one attempt with more time beats three APN basic attempts at lower cost.

Full APN keeps an edge on Erdős 125, where all sixteen h1 attempts end in Lean timeouts.

On the same five problems, pass@1 reaches 82.5% at $138 in mean spend including failures. Pass@3 needs $202 to reach at least that rate, so the advantage of longer attempts persists when failed searches are charged.

Repetition still reaches higher success rates at larger budgets. The right balance between depth and breadth therefore depends on the budget and the problem.

## Prompts, reflection and reasoning effort in h1

Prompts matter most on open problems, because the detailed prompts keep the prover from giving up. Unlike one-line prompts, the detailed prompts describe the tools and set rules for statement integrity and disproofs. The authors note that this is consistent with AxProverBase's findings.

The number of turns between reflections sets a trade-off between cost and solves. Each turn in a continuing context rereads cached input, which is typically ten times cheaper than uncached input.

With Gemini 3.1 Pro, h1 solves 89 Putnam100 problems at $20.63 each with low effort. At high effort, h1 solves 99 Putnam100 problems at $5.34 each, needing far fewer compilations. With Opus 4.8, native Claude Code solves 63 FATE-X problems, and 73 once it gets our prompt and Lean tools through MCP. h1 reaches 83 on the same benchmark, so the interface and the loop together account for the gap.

Harness design also changes cost even when the model is the same. With GPT-5.5, Humanfia spends five times more than h1 for the same 670 PutnamBench solves.

## Limits and open questions

The evidence stops at the edge of the single-file setting, and the authors say so directly. h1 works on a single file, so it doesn't yet handle formalizations that exceed a context window. Parallel agents that share intermediate results are also outside what was tested. The OpenAI Navier–Stokes resolution, with about 10,000 agents over 88 hours, shows the scale that such work can reach.

The tools cover only Lean, so numerical computation, simulation, visualization, and web search were not tested. Across 707 benchmark problems compared with specialized workflows, the authors found only two exceptions. Both exceptions involve a problem that a specialized harness solves and h1 does not in the authors' runs. One exception is Erdős 125, where full APN solves it but all sixteen h1 attempts end in Lean timeouts.

The other is BurnsidePrimeDegree, which MerLean with Opus 4.7 proves while h1 with Opus 4.8 doesn't in this run. h1 with GPT-5.6 Sol does prove BurnsidePrimeDegree, so that exception depends on the model.

The authors can't measure how much benchmark exposure during training narrows the gap between workflows and a simple loop. GPT-5.6 Sol was used for IMO 2026, which keeps that comparison on models released before the problems.

Human design and computation need not conflict, so the open question is where each helps most first. Their current view is that compute should go to frontier model reasoning, while human effort goes to the interface.

## Paper info

- **Authors**: Skander Moalla, Ahmad Rammal, Niket Patel, Remi Munos, Julia Kempe
- **Venue**: arXiv · Preprint
- **First published**: 2026-10-25
- **Added**: 2026-11-4
- **Updated**: 2026-10-30
- **Version**: v2
- **arXiv**: 2610.35962
- **Category**: cs.LG · cs.LO
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2610.35962v2) · [PDF ↗](https://arxiv.org/pdf/2610.35962v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

While progress in informal mathematics has come largely from scaling the chain-of-thought and agentic reasoning of frontier language models, formal theorem proving has increasingly relied on human-designed workflows around these models, such as planning, decomposition, and orchestrating specialized provers. This raises a bitter-lesson question: can a simple agentic loop that scales test-time compute match these workflows? The answer matters as formal verification must scale to keep up with frontier models producing research mathematics, yet new workflows rarely settle it, as their gains are often confounded with stronger models or more compute. We study this question with h1, a simple harness that gives a model an efficient interface to Lean 4 and keeps it working through verifier feedback and self-reflection, without imposing a decomposition or search structure. h1 reaches state-of-the-art results on PutnamBench, FATE-X, and FormalConjectures100-Solved, settles eight open problems in FormalConjectures, and, at matched models, matches or outperforms specialized workflows such as Goedel-Architect and AlphaProof Nexus, surprisingly showing that a single attempt (pass@1) can often scale to solve open problems. Through ablations and matched-model comparisons with Claude Code and AxProverBase, we find that simplicity alone is not enough: an efficient Lean interface largely determines cost and solve rate. We thus recommend that future work evaluate frontier models with efficient execution feedback before prescribing workflows, at the risk of bitter lessons.

## Quote from the paper

Skander Moalla, Ahmad Rammal, Niket Patel, Remi Munos, Julia Kempe (2026). h1: A Taste of the Bitter Lesson in Automated Theorem Proving. arXiv:2610.35962v2. https://arxiv.org/abs/2610.35962v2

**BibTeX**

```
@misc{moalla2026taste,
  title = {{h1: A Taste of the Bitter Lesson in Automated Theorem Proving}},
  author = {Skander Moalla and Ahmad Rammal and Niket Patel and Remi Munos and Julia Kempe},
  year = {2026},
  eprint = {2610.35962},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.35962v2}
}
```

## Other paper commentary

- [EventGPT: Next-Event Pretraining on Banking Customer Histories](https://refivu.com/en/papers/098311cf-1a7e-445a-ad5c-3e4a5e0d7c78-eventgpt-next-event-pretraining-on-banking-customer.md)
- [Poisson Super Learning For Survival And Competing Risks On A Discretized Time Scale](https://refivu.com/en/papers/a343ff19-63f7-4af1-a452-abd2378b8185-poisson-super-learning-for-survival-and-competing-risks.md)
- [Subpolynomial-Query Proximal Sampling Beyond Log-Concavity](https://refivu.com/en/papers/7249f1c7-6231-4bc2-9f72-7180f7d242c2-subpolynomial-query-proximal-sampling-beyond-log-concavity.md)
- [Grading the Unannotated: Insights from the WorkRB Skill Extraction Challenge at RecSys-HR 2026](https://refivu.com/en/papers/15e0e741-7545-455a-88c9-f59fb090be47-grading-the-unannotated-insights-from-the-workrb-skill.md)
- [The Look-Elsewhere Effect in Searches for New Physics: from Classical Methods to Machine Learning](https://refivu.com/en/papers/40749a33-958c-4352-8394-19db350aef80-the-look-elsewhere-effect-in-searches-for-new.md)
- [When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models](https://refivu.com/en/papers/f72c16f8-edc3-4f30-bb5a-814b2eb7dc46-when-to-trust-a-pfn-detecting-harmful-shift.md)
- [D&A: Decoupling Description and Assessment Enables VLMs as Zero-Shot Robotic Reward Models](https://refivu.com/en/papers/37e765b4-67a1-4599-9d94-84f2e4d6d3ac-d-a-decoupling-description-and-assessment-enables-vlms.md)
- [Sonar-MoE: In-Backward Expert Updates for Memory-Efficient Mixture-of-Experts Training](https://refivu.com/en/papers/850b3ff0-2f32-419d-b057-09630c278dd6-sonar-moe-in-backward-expert-updates-for-memory.md)
- [Online Class Posteriors for Interpretable and Controllable Discrete Diffusion](https://refivu.com/en/papers/773d1bb8-b53a-440f-8b38-7653a3ba5bee-online-class-posteriors-for-interpretable-and-controllable.md)
- [Seeing Through the Illusion: Test-Time Scaling for World Action Models](https://refivu.com/en/papers/acce6a4d-042b-4465-88b1-f168246c6849-seeing-through-the-illusion-test-time-scaling-for.md)
- [Safe-Ballbot: Tilt-Consistent MPC with Control Barrier Functions for Ballbot Navigation](https://refivu.com/en/papers/dd5b3378-644c-4e61-8f14-eff7412d7ce1-safe-ballbot-tilt-consistent-mpc-with-control-barrier.md)
- [VidDub: Replacement-Aware Distillation for Two-Step Video Dubbing](https://refivu.com/en/papers/55f170b8-ce30-460d-bc44-55ba4cc6eea6-viddub-replacement-aware-distillation-for-two-step-video.md)

## Terms in this paper

- [pass@1](https://refivu.com/en/terms/0b5f8fd75383-pass-1)
- [Claude Code](https://refivu.com/en/terms/140ee6d8eb01-claude-code)
- [pass@k](https://refivu.com/en/terms/c162514bd507-pass-k)
- [ReAct](https://refivu.com/en/terms/420780a0fd8c-react)
- [GPT-5.6 Sol](https://refivu.com/en/terms/0152cafc35d2-gpt-5-6-sol)
- [Gemini 3.1 Pro](https://refivu.com/en/terms/36382a1144a5-gemini-3-1-pro)
- [DeepSeek V4 Flash](https://refivu.com/en/terms/aafdeac39695-deepseek-v4-flash)
- [Lean](https://refivu.com/en/terms/58498486bd42-lean)
- [LSP](https://refivu.com/en/terms/d665058050d1-lsp)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f060d7fe-7433-44c7-ad28-145e5893dfd3-h1-a-taste-of-the-bitter-lesson-in)
