arXiv:2610.25920cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25920

Maestro: Agentic Formal Proof Development by Coordination

Haoyu Li, Zeren Shui, Yuhao Zhang, Ferhat Erata, Benjamin Mikek, Murali Krishna Ramanathan, Hao Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Lean is increasingly used to verify mathematical proofs and software produced by LLM agents, but writing formal proofs remains hard. Existing prover systems take a divide-and-conquer approach that recursively decomposes hard proof obligations into easier lemmas and splits again any lemma that resists proof. However, a lemma can resist proof for different reasons, including insufficient guidance, a false statement, or a flaw in the decomposition that produced it. Existing systems cannot tell these apart as a failed attempt reports little beyond its failure, and responses are confined to the failing node without considering the rest of the proof or revising the plan above it. The system may thus keep decomposing obligations along a flawed proof direction until the budget runs out, causing the whole proof attempt to fail. We introduce MAESTRO, a Lean prover harness that handles failures through global coordination. Provers report why they failed, not just that they failed, and a coordinator that sees the whole proof chooses an appropriate response, such as guiding a stuck prover, correcting a false lemma, or retracting a flawed subtree and replanning it. The same harness extends to verified code synthesis, where a checked counterexample sends the code back for repair. We evaluate MAESTRO with four frontier LLMs on seven mathematics and three software verification benchmarks. It proves more targets than each model's native coding agent (Claude Code or Codex) on every benchmark the agent has not already saturated, with the largest gains on research-level mathematics. With Claude Opus 5, it discovers its own proofs of 34 of the 48 theorems in the June 2026 release of arXivLean, against 19 for the native agent. It also outperforms all published prover systems on every benchmark they share, solving 669/672 PutnamBench, 59/60 Lean-IMO-Bench, and 6/6 IMO 2026.

1 INTRODUCTION

LLM agents are increasingly applied to research-level mathematics (Dekoninck et al., 2026) and complex software engineering tasks (Jimenez et al., 2024). As these tasks grow harder, their outputs become harder for human experts to audit. Formal verification makes such auditing mechanical, so that a proved theorem or a verified program in Lean can be trusted without trusting the agent that produced it (Leesatapornwongsa et al., 2016; Hawblitzel et al., 2015; Agarwal et al., 2026; Wilcox et al., 2015; Chen et al., 2015; Lesani et al., 2016), but reliable formal proof generation is far from solved. In September 2026, OpenAI reported a proof of finite-time singularity formation for the three-dimensional Navier-Stokes equations with smooth forcing, together with a Lean formalization. 1^{1} However, the proof was produced by an unreleased internal model, and the agent harness is not openly available. Moreover, how the agents developed the proof, and how much human guidance they received, is only partially documented. The final proof also omits the failed approaches and intermediate discoveries that shaped the search, which could explain why plausible routes fail and reveal ideas useful beyond the original problem. The wider mathematical community has also called for openness about failures in AI-assisted mathematics. 2^{2} What is missing is an effective, open-source Lean proving harness that produces formally checked results with accessible models and exposes the attempts, failures, and revisions behind them.

1^{1}OpenAI, On the Navier–Stokes Millennium Prize Problem, September 2026.

2^{2}ICIAM Statement on Mathematics and Artificial Intelligence, September 2026.

To build such a harness, one must decide how to organize many agents around a proof that rarely succeeds in a single attempt. Almost all prior systems make this decision the same way. When a goal resists direct proof, they decompose it into subgoals and prove those recursively (Wang et al., 2024; Ren et al., 2025; Varambally et al., 2026; Qiu et al., 2026). This strategy has carried formal proving a long way. It saturates high-school-level competition benchmarks such as miniF2F (Zheng et al., 2022; Varambally et al., 2026; Chung et al., 2026). With large test-time budgets, it also proves most IMO 2025 problems (Achim et al., 2025; Chen et al., 2025b) and most undergraduate-level PutnamBench problems (Tsoukalas et al., 2024; Chen et al., 2025a; Chung et al., 2026), as well as a few research-level theorems. However, a subgoal can resist proof for different reasons. The prover may need better guidance, the lemma may be false, or the surrounding proof may approach the theorem from the wrong direction. Existing systems answer all of these cases locally, at the node that failed. Recursive provers such as Hilbert (Varambally et al., 2026) and LEAP (Kung et al., 2026) decompose the failing subgoal again, and Goedel-Architect (Chung et al., 2026) may first repair its statement through blueprint refinement, but neither revisits the architecture that produced the subgoal. They stay local because they lack the information a global decision needs. A failed attempt reports little beyond the fact that it failed, and nothing in the pipeline collects what has been tried across branches. The prover therefore cannot tell these cases apart, let alone judge when to retry with a different direction, when to add a fact that several branches need, or when to abandon a route altogether. A locally evolving pipeline can then spend its budget elaborating an architecture that leads nowhere. Broad parallel search can work around this at a much higher cost (Varambally et al., 2026), but long proofs need many rounds of decomposition whose branching choices compound, so even a large search can easily miss the one route that actually leads to a complete proof.

We present MAESTRO, an agentic framework that replaces local plan revision with global coordination. Parallel workers attack the open obligations of a shared Lean workspace, and a single coordinator oversees the whole proof. Workers report more than success or failure. A prover that fails returns a diagnosis of the routes it tried, the auxiliary facts it would need to close the goal, and any counterexample it suspects. The coordinator reads every report and remembers what has already been tried, so it can see patterns that no single node reveals, such as several sibling lemmas failing for want of the same fact, or repeated decompositions of one lemma recreating its hardest part. Its response to a failed lemma can therefore be global and much more flexible. It may retry the lemma with better guidance, add a fact that several branches need, retract a flawed subtree while keeping the lemmas already proved, falsify a target that looks false, or send explorers to search for a new architecture. Decomposition becomes one possible response to failure instead of the pipeline's fixed rule. The same coordination extends naturally to verified code synthesis. With the specification held fixed, the implementation is one more artifact that can be diagnosed. When a checked counterexample shows that the code is at fault and the proof strategy is not, the coordinator sends the counterexample and a concrete diagnosis to the coder, then rebuilds the proof obligations around the revised implementation. Code and proof thus improve through the same feedback loop, with the specification as the stable contract between them. Finally, every coordinator decision is recorded together with its evidence, so a finished run shows not only the proof but also the exploration behind it. Our contributions are threefold:

• Global coordination instead of local repair. We design MAESTRO, a Lean prover harness that handles failure globally, where prior provers repair only the lemma that failed. Workers return structured diagnoses, and a coordinator that sees the whole proof uses them to revise the plan at the level where the problem lies, from a guided retry of one lemma to replanning a whole subtree.

• One system for mathematics and verified coding. Because coordination acts on formal obligations and not on domain-specific tactics, the same harness proves theorems, verifies given implementations, and synthesizes code together with its proof.

• Strong empirical results. Across four frontier backbones and ten benchmarks, MAESTRO outperforms a plain coding agent with the same model on every benchmark the agent has not saturated. On the research-level March and June releases of arXivLean, it proves up to 26 of 41 and 34 of 48 theorems, against at most 17 and 25 for the plain agent. It solves all six IMO 2026 problems and beats the best published result on every shared benchmark, with 669/672 on PutnamBench against 597 for Goedel-Architect (Chung et al., 2026), 59/60 on Lean-IMO-Bench against 42 for LEAP (Kung et al., 2026), and 76/77 on AlgoVeri against 65 for IDS (Agarwal et al., 2026).

Figure

Figure 1: MAESTRO's coordination loop. The persistent coordinator ① dispatches or redirects workers, which ② attack open obligations in parallel and ③ report proofs, diagnoses, progress, or blueprints to a shared queue. The coordinator ④ consumes these events as they arrive and ⑤ revises the shared Lean workspace, here retracting H2 and H1.2, restating H3 as H3', adding H4, and keeping the proved H1.1. When the root closes, ⑥ Lean checks the final proof or falsification.

References (51)