Manuscript Offprint
arXiv:2610.27046ReuF2F: Benchmarking Coding Agents on Formalized Undergraduate Research Problems
Zeyu Zheng, Yiyang Liu, Yuyang Zhao, Congmin Zheng, Jiachen Zhu, Jianian Chen, Kangning Zhang, Kayue Daniel Wong, Lingyu Yang, Rong Shan, Shihao Chen, Thomas Zhu, Wentao Zhang, Xiaopeng Li, Yan Hu, Yongxi Lin, Yuxiang Chen, Zhuoying Ou, Jianghao Lin, Jeremy Avigad, Prasad Tetali, Jingbang Chen, Sean Welleck
Carnegie Mellon University
Chinese University of Hong Kong, Shenzhen
Shenzhen Loop Area Institute
Shanghai Jiao Tong University
Yau Mathematical Sciences Center, Tsinghua University
University College London
{zeyuzhen, swelleck}@andrew.cmu.edu,
https://github.com/cmu-13/reuF2F
ABSTRACT
As AI systems begin to resolve open research problems, reliable verification becomes increasingly important. Formal mathematics provides a trusted framework for mathematical reasoning, enabling agents to produce machine-checkable proofs while conducting mathematical exploration. Existing formal mathematics benchmarks often focus on known results or a small set of prominent open problems, which can become difficult to evaluate reliably once solutions are discovered and widely disseminated. Existing evaluation protocols are also not always aligned with how modern coding agents operate. We therefore introduce REUF2F, a Lean 4 benchmark of 244 formalized open problems drawn from Research Experiences for Undergraduates (REU), spanning entry-level open research problems across a broad range of mathematical subfields. We expect these less prominent open problems, which tend to attract less attention and may remain unsolved for longer, to be better suited for held-out evaluation of end-to-end open problem resolution in Lean. We adopt a standard coding-agent evaluation setting, placing each problem and its logical negation into a Lean project in a Docker container. We also build Leanimum-agent on mini-SWE-agent to provide a unified harness for fair comparisons across models. Our evaluation finds that even the best-performing model resolves only ~40% of the problems, leaving substantial room for improvement on formalized open research problems.
REU Paper
Conjecture 3. For every pure labelled k-family, the sum of its t largest Laplacian eigenvalues is at most...
LEAN Workspace
.lake/
abebe2019conjectural.lean
lakefile.toml
lean-toolchain
Coding Agent
Generated Patch
+999 -1
testbed
abebe2019conjectural.lean
Lemmas.lean
lakefile.toml
Comparator
Lean
nanoda
Direction
✓
proof
conjecture_3_brouwer_
✗
refutation
conjecture_3_brouwer__neg
✓
Resolved: either direction accepted
Figure 1: REUF2F draws its task instances from open problems in undergraduate research projects, formalized in Lean. Given a snapshot of the Lean workspace, coding agents generate patches that are evaluated by Comparator using both the Lean kernel and nanoda.
Core contributor
Corresponding author
Available at https://github.com/cmu-13/Leanimum-agent.
1 INTRODUCTION
Large language models (LLMs) have made remarkable progress over the past few years, particularly in mathematics and coding. In both domains, solutions can be difficult to construct but comparatively easy to verify. This makes them well suited to reinforcement learning with verifiable rewards (RLVR), as demonstrated by (Guo et al., 2025; Yue et al., 2025). In mathematics, progress has extended from solving competition problems to resolving open research problems that had resisted expert efforts for decades (Bukh et al., 2025; Zheng et al., 2026). Notable examples include the disproof of the unit distance conjecture (OpenAI, 2026c), a complex structure on the six-sphere (Alpöge, 2026), the ten advances in mathematics and theoretical computer science reported by OpenAI (OpenAI, 2026d), and the recent finite-time blowup results for the Navier–Stokes equations (OpenAI, 2026a). For human experts, even verifying such results can be a substantial undertaking. Rapid progress in mathematical reasoning therefore creates a corresponding challenge for evaluation, as most research problems are proof-based, and the correctness of a natural-language proof is difficult to assess reliably at scale.
Formal proof assistants such as Lean 4 provide a natural connection between mathematics and coding. Through the Curry–Howard correspondence, Lean represents mathematical statements as types and proofs as terms whose correctness can be checked by its kernel (Moura & Ullrich, 2021). This allows an argument to be verified without first requiring a human reader to develop a detailed understanding of the argument. Progress in coding agents also makes turning mathematical proofs into formal code increasingly practical. Recent projects tackle Fermat's Last Theorem, three-dimensional Kakeya, and sphere packing (Anthropic, 2026; Bailey et al., 2026; The Sphere Packing in Lean Contributors, 2024). Anthropic reports that its agent-assisted formalization of Fermat's Last Theorem took 11 days (Anthropic, 2026), illustrating how agents can make Lean implementation less of an obstacle to mathematical evaluation. Formal proofs are also becoming part of the presentation of new mathematics, as illustrated by the Polynomial Freiman–Ruzsa project (The PFR Formalization Contributors, 2026), work on diagonal Ramsey bounds (Mehta, 2023), and Lean certificates accompanying recent Navier–Stokes and Euler results (OpenAI, 2026b). This development has made Lean-based open-problem benchmarks an increasingly practical setting for evaluating the mathematical reasoning capabilities of language models. While Lean enables verification of candidate solutions, many collections such as FrontierMath Erdős and Formal Conjectures include research questions of substantial community interest (Adamczewski & Bloom, 2026; Firsching et al., 2026). Once one of these problems is solved, its proof is often published or widely shared online. Since mathematical research naturally involves searching the literature, an agent may retrieve that solution during a later evaluation. The same dissemination that benefits mathematical research can thus undermine a problem's value as a held-out test of new problem solving.
To address this problem, we introduce REUF2F, a Lean 4 benchmark of 244 open conjectures from undergraduate research, primarily Research Experiences for Undergraduates (REU) programs. REUs give students the opportunity to conduct original research with a mentor. Their projects are chosen both for their mathematical interest and for their value in training young researchers, and often leave precise conjectures for further investigation. Compared with prominent conjectures that have attracted sustained attention across a field, we expect these questions to attract less concentrated attention and their solutions to circulate less widely. They therefore offer a source of genuine research problems with a lower expected risk of future solution leakage. The mathematicians and formalization experts on our team selected and formalized 244 such conjectures across a broad range of mathematical areas. Table 1 summarizes the features of REUF2F and compares it with existing mathematics benchmarks.
We evaluate REUF2F using the task setup and submission workflow of modern coding-agent benchmarks. Each task is placed in an independent sandbox where the agent develops its solution. Because an open conjecture can be false, each task provides both the original conjecture and its full logical negation. The agent is free to pursue either direction during its attempt. After the agent submits its solution, we then check the submitted code in a separate evaluation container. We use Comparator to check that the submission establishes the original statement or its negation without changing the underlying definitions or introducing unproved assumptions. A problem counts as solved when a proof of either direction passes both Lean's kernel and the independent nanoda checker. Both the problem and its accepted solution are thus entirely formal. Following miniF2F (Zheng et al., 2021), the F2F in REUF2F refers to this formal-to-formal setup.
Table 1: Comparison with representative mathematics benchmarks.
| Benchmark | # Tasks | Setting | Formalized? | Open? | Diverse subfields? | Lower leakage risk? |
|---|---|---|---|---|---|---|
| AIME | 30 | Competition | ✕ | ✕ | ✕ | ✕ |
| IMO-Bench (Luong et al., 2025) | 400/60/1,000/60 | Competition | △ | ✕ | ✕ | ✕ |
| MathArena Apex (Dekoninck et al., 2026) | 12 | Competition | ✕ | ✕ | ✕ | ✕ |
| ArXivMath (Dekoninck et al., 2026) | 30/48 | Research | ✕ | ✕ | ✓ | ✕ |
| First Proof (Abouzaid et al., 2026a;b) | 10/10 | Research | ✕ | △ | ✓ | ✓ |
| Soohak (Son et al., 2026) | 439 | Research | ✕ | △ | ✓ | ✓ |
| FrontierMath (Glazer et al., 2024) | 350 | Research | ✕ | △ | ✓ | ✓ |
| miniF2F (Zheng et al., 2021) | 244 | Competition | ✓ | ✕ | ✕ | ✕ |
| PutnamBench (Tsoukalas et al., 2024) | 640 | Competition | ✓ | ✕ | ✕ | ✕ |
| FATE (Jiang et al., 2026) | 150/100/100 | Research | ✓ | ✕ | ✕ | ✕ |
| ProofNet (Azerbayev et al., 2023) | 371 | Undergraduate | ✓ | ✕ | ✓ | ✕ |
| FormalProofBench (Ravi et al., 2026) | 100 | Research | ✓ | ✕ | ✓ | ✕ |
| ArXivLean (Dekoninck et al., 2026) | 41/46 | Research | ✓ | ✕ | ✓ | ✕ |
| Lean-eval (Lean FRO, 2026b) | 128 | Research | ✓ | ✕ | ✓ | ✕ |
| FrontierMath Erdős (Adamczewski & Bloom, 2026) | 68 | Research | ✓ | ✓ | ✕ | ✕ |
| OEIS Open (Adamczewski, 2026) | 492 | Research | ✓ | ✓ | ✕ | ✓ |
| Formal Conjectures (Firsching et al., 2026) | 2,615 | Research | ✓ | △ | ✓ | ✕ |
| REUF2F (ours) | 244 | Research | ✓ | ✓ | ✓ | ✓ |
√ yes; ✕ no; △ mixed. Research includes advanced graduate and research-facing tasks, not necessarily unsolved problems. Open? means open at collection. Diverse subfields means substantial coverage beyond one specialized area. Lower leakage risk is a qualitative assessment of whether solutions, once available, are less likely to be readily retrievable online during the benchmark's evaluation lifecycle. Counts: First Proof first/second batch; IMO-Bench Answer/Proof/Grading/LeanProof; ArXivMath and ArXivLean Mar./Jun. 2026; FrontierMath original Tiers 1–4 total (300 core + 50 Tier 4); miniF2F test; FATE M/H/X; Lean-eval v1.
For fair comparisons across models, we also build Leanimum-agent, a lightweight adaptation of mini-SWE-agent (Yang et al., 2024) for formal theorem proving. It provides every model with the same task instructions, shell interface, context handling, and interaction loop. Through Leanimum-agent, models can read and edit files, search Mathlib, run computations, and revise proofs using Lean kernel feedback. This setup retains the capabilities of a modern coding-agent harness while minimizing performance differences attributable to model-specific tools or agent designs.
We evaluate frontier models on REUF2F. Under the tested budgets, the best-performing model, Gemini 4 Argon at high reasoning effort, achieves the highest pass@1 of and pass@2 of , resolving 109 of 244 problems in at least one of two attempts. These results leave substantial room for improvement and show that REUF2F remains challenging for current coding agents. Progress on REUF2F would therefore provide a concrete indicator of agents' ability to resolve open mathematical questions with machine-checkable proofs.
2.1 AI FOR MATHEMATICS AND EVALUATION
Over the past couple of years, LLMs' mathematical capabilities have advanced rapidly from solving competition problems (Guo et al., 2025; Hubert et al., 2026; Chen et al., 2025b; Google DeepMind, 2025; Chen et al., 2025a), to tackling genuine research questions. Examples include resolutions of Erdős problems (Tsoukalas et al., 2026), the unit distance conjecture (OpenAI, 2026c), the cycle double cover problem (OpenAI, 2026; Oum, 2026), a complex structure on the six-sphere (Alpöge, 2026), OpenAI's ten-result collection (OpenAI, 2026d), and finite-time blowup for Navier–Stokes (OpenAI, 2026a). These selected successes, while impressive, do not establish a systematic comparison of LLMs' overall mathematical capabilities.
Mathematical benchmarks have become more challenging in response, progressing from educational and competition problems to advanced and research-level tasks (Cobbe et al., 2021; Hendrycks et al., 2021; He et al., 2024; Gao et al., 2025; Glazer et al., 2024; Schmitt et al., 2025). Yet evaluation methods have struggled to keep pace as model capabilities have rapidly improved. Performance on most established benchmarks has approached saturation, leaving little room to distinguish stronger models. Moreover, most research questions are proof-based, and checking a proposed solution may require specialist knowledge and close reading, making it difficult to obtain evaluations that are both reliable and scalable.
2.2 FORMAL THEOREM PROVING
Formal theorem proving offers a solution to this verification problem. Proof assistants such as Isabelle, Coq, and Lean encode mathematical statements and arguments in formal languages, allowing proofs to be checked mechanically by a small trusted kernel and providing both reliable correctness guarantees and a scalable alternative to expert evaluation.
Among these systems, Lean 4 has seen particularly broad adoption in current AI-driven formal mathematics. Mathlib, Lean's centralized library, contains more than two million lines of code and covers definitions and results across a wide range of mathematical areas (Moura & Ullrich, 2021; The mathlib Community, 2026). This shared foundation supports formalization projects for highly complex mathematical developments, including sphere packing, three-dimensional Kakeya, and Fermat's Last Theorem (The Sphere Packing in Lean Contributors, 2024; Bailey et al., 2026; Anthropic, 2026), with some projects extending to millions of lines of code. This demonstrates the breadth and depth of mathematics that can be built on Mathlib, thereby illustrating the maturity and expressive power of Lean as a language for formalizing research mathematics.
Proof assistants support research on neural theorem proving and autoformalization. In Lean, representative examples include Draft, Sketch, and Prove (Jiang et al., 2022), Lean-STaR (Lin et al., 2025), miniCTX (Hu et al., 2025), and BFS-Prover (Xin et al., 2025a;b). Increasingly, solutions to open mathematical problems are released together with formal proofs that provide directly checkable evidence of correctness, with notable examples including the Polynomial Freiman–Ruzsa conjecture and the recent resolution of Navier–Stokes (The PFR Formalization Contributors, 2026; OpenAI, 2026b). These emerging practices point toward a new paradigm of mathematical verification driven by machine-checkable formal proofs.
2.3 CODING AGENTS
Coding is another major application of LLM agents and an important driver of their recent development. Models have progressed from assisting with short code completions to independently editing repositories, implementing features, and carrying out substantial development tasks (Chen et al., 2021; Jimenez et al., 2024; Yang et al., 2026; Huang et al., 2026; Shepard & Salimans, 2026; Merrill et al., 2026). Formal theorem proving lets us turn a mathematical problem into a coding task. We can therefore reuse the mature training and evaluation infrastructure developed for coding agents by replacing unit-test-based correctness checks with formal proof verification. This provides a natural way to evaluate mathematical reasoning through standard coding-agent interfaces.
2.4 RESEARCH EXPERIENCES FOR UNDERGRADUATES
Research Experiences for Undergraduates (REU) programs give students research experience through work with faculty mentors (National Science Foundation, 2026). Well-known mathematics programs include Duluth REU, Williams SMALL, Stanford SURIM, CMU SURF, and MIT SPUR. Their projects cover all major branches of mathematical research. Although the choice of a project takes students' mathematical backgrounds into account, the work combines research training with genuine mathematical investigation. The resulting papers report new results and often propose conjectures that remain unresolved beyond the project itself.
These conjectures provide a useful source for evaluation. They arise from genuine mathematical research, but typically receive less broad attention than famous conjectures. We expect this lower visibility to make their eventual solutions less likely to become widely disseminated reference answers, thus reducing the risk of future solution leakage.
3 REUF2F
In this section, we introduce REUF2F, a benchmark consisting of 244 formalized open problems drawn from undergraduate research projects. We first formulate the task, then describe how the problems were collected and formalized. The evaluation protocol and implementation details are deferred to Section 4.
3.1 TASK FORMULATION
For each problem in the benchmark, let denote its formal Lean statement. An open conjecture may ultimately be resolved either by a proof or by a refutation, so we consider both and its logical negation . Let indicate whether a proof of is accepted by our evaluation protocol, and let analogously indicate whether a proof of is accepted. Since both statements cannot admit accepted proofs in a consistent proof system, . We therefore define the resolution indicator for as , where indicates that the problem has been resolved.
3.2 PROBLEM SELECTION
We collect publicly available research papers, preprints, and project reports from REU programs and other undergraduate research initiatives. Within each paper, we identify the central research questions that the authors leave unresolved. We verify that each selected question was first proposed in the paper, is central to its research contribution, and remains unresolved. This focuses the benchmark on genuinely open questions arising from the undergraduate research itself, rather than on known results or external conjectures mentioned only for context. Table 2 summarizes the largest source programs.
Table 2: Problem counts by source program in REUF2F.
| Source program | # Problems |
|---|---|
| University of Minnesota Duluth REU | 34 |
| Williams College SMALL REU | 24 |
| University of Minnesota Twin Cities REU | 16 |
| Polymath Jr. | 14 |
| MIT SPUR | 11 |
| Yale SUMRY | 10 |
| Oregon State University REU | 9 |
| Cornell Mathematics REU | 8 |
| University of Michigan REU | 7 |
| Budapest Semesters in Mathematics REU | 7 |
| Other REU programs | 104 |
| Total | 244 |
We organize the collected problems into five broad areas: discrete mathematics and combinatorics; number theory and arithmetic; algebra and algebraic geometry; geometry and topology; and analysis, dynamics, probability, and partial differential equations. We include 45 problems from each of these five categories to maintain a balanced disciplinary distribution. The remaining 19 problems, which do not fit naturally into any of these categories, are grouped under Others.
3.3 FORMALIZATION AND QUALITY CONTROL
The formalization work is distributed among contributors on our team, including several active Mathlib contributors. Formalizers work primarily on problems within their areas of expertise and submit completed formalizations for review. Before a problem is admitted to the benchmark, we conduct additional independent checks using both Codex and Claude Code to assess whether the problem was originally proposed in the source work, remains novel and unresolved, is central to the research contribution, and has been faithfully formalized in Lean. Any issues identified during these checks are returned to the formalizer for revision or replacement. Problems that pass these checks undergo a final review by a Mathlib contributor before being included in the benchmark.
4 EVALUATION PROTOCOL
Traditional formal theorem-proving benchmarks are typically distributed as Lean repositories (Zheng et al., 2021; Tsoukalas et al., 2024; Firsching et al., 2026). Each target theorem contains a sorry, Lean's placeholder for a missing proof, which must be replaced to solve the task. How these proof holes are filled is left to the evaluation system: a step-level prover may perform tree search over tactics, a whole-proof model may generate a complete proof script, and an agent may interact iteratively with Lean feedback to construct and refine a proof. The final evaluation signal is often determined by whether the resulting development compiles after the required proof holes have been filled. While flexible, this setup leaves four fundamental issues that motivate the design of our evaluation protocol.
-
Proof-only evaluation. A proof-only task assumes that the supplied proposition is provable. This is appropriate for known theorems with trusted formalizations, but not for open conjectures. If a conjecture is false, failures due to its falsity are difficult to distinguish from failures due to mathematical difficulty. A meaningful evaluation of open problems should therefore accept either a valid proof or a valid refutation.
-
Trusted verification. Lean permits metaprogramming and code execution during proof development. This creates ways for a submission to compile without providing the intended proof, often by interfering with the environment or exploiting implementation bugs, making compilation alone an imperfect correctness signal. This motivates additional independent verification beyond Lean's standard elaboration and kernel checking during lake build. (Lean FRO, 2026a; Moura, 2026).
-
Harness confounding. Evaluation results obtained with different harnesses measure the combined system, making the underlying models harder to compare. A leaderboard that includes both heavy multi-agent proving systems and individual agent sessions does not effectively isolate differences in model capability. Vals AI's ProofBench addresses this problem by providing a common, lightweight harness with Mathlib search and Lean execution feedback (Ravi et al., 2026). However, this specialized scaffolding does not give the model the general filesystem access used in modern coding agent designs.
-
Environment dependence. Modern agents necessarily interact with the filesystem. Without a clean and consistently configured environment, performance can depend on hardware, accessible files, installed dependencies, and even the order in which tasks are run if changes persist between attempts. A clean, consistently configured environment is therefore necessary to compare runs reliably.
To address these four issues, we adopt a modern coding-agent evaluation setting for REUF2F, augmented with Lean-specific mechanisms for open-problem evaluation and trusted proof verification. Section 4.1 introduces our two-way protocol and independent verification with Comparator, addressing the first two issues. Section 4.2 then presents our sandboxed evaluation environment and Leanimum-agent, a formal theorem-proving adaptation of mini-SWE-agent, which provide a standardized harness and reproducible execution environment for addressing the remaining two issues.
4.1 KERNEL-TRUSTED TWO-WAY EVALUATION
Since the problems selected for the benchmark are open, their truth values are not known in advance. We therefore allow models to prove either direction. Specifically, for each formalized theorem foo with full Lean type T, we use Export.lean, included in Appendix A, to obtain its declaration name and universe parameters. Task preparation then appends a theorem foo_neg whose type is type_of% @foo; Lean elaborates this to Not T, including all of T's binders. We leave it to the agent to decide which direction to pursue and count a problem as resolved when a proof of either direction passes our Lean verification.
We do not include a third acceptance option for proving that the target is independent of the permitted foundations, meaning that neither it nor its negation is provable. Such a claim is distinct from a refutation and requires formalizing and reasoning about provability. Whereas, an independence claim may itself be unprovable in the chosen metatheory. Recursively introducing higher-level independence claims merely pushes this difficulty up the metatheoretic hierarchy, without providing a general guarantee of termination. We therefore restrict the protocol to proofs or refutations, which we expect to cover the vast majority of the intended research tasks. We discuss this limitation further in Section 6.
The second issue is that “passing Lean verification” can refer to different levels of checking. The Lean developers have progressively strengthened their verification tools in response to adversarial
Table 3: Verification layers and the invalid submissions they are designed to detect
| Method | What is checked | Errors addressed |
|---|---|---|
| lake build | Elaboration and compilation | Syntax, elaboration, and type errors |
| + Axiom checking | Dependency | Unauthorized axioms |
| + SafeVerify | Specification | Type manipulation |
| + Comparator | Sandboxed export and kernel replay | .olean-level attacks |
| + nanoda | Independent kernel checking | Lean kernel bugs |
testing, including AI-assisted attempts to find vulnerabilities (Moura, 2026). A successful lake build establishes that a project passes the compilation process in its current environment. It does not, by itself, establish that an untrusted submission proves the unchanged target using only the intended assumptions. This distinction matters when the model can execute code and modify the environment in which it develops its proof.
We instead use Comparator (Lean FRO, 2026a), the “Gold Standard” proof validation method recommended by Lean official. It takes a trusted challenge and an untrusted solution, builds and exports them separately in sandboxed environments, and compares their formal specifications. For each target theorem, Comparator checks that the submitted theorem proves the same statement as the trusted challenge and that all declarations transitively referenced by the statement agree between the two environments. It also checks the proof’s transitive axiom dependencies and replays the exported solution through Lean’s kernel. These checks effectively prevent a submission from changing the target statement or its dependencies, assuming the desired conclusion through an additional axiom, or otherwise bypassing the kernel check. Our configuration permits only propext, Quot .sound, and Classical .choice, so a proof depending on any additional axiom is rejected.
Comparator's Lean-kernel check still relies on the correctness of that kernel implementation. AI-assisted investigations have also exposed bugs at this level, including a flaw in the handling of nested inductive types that allowed an invalid proof of False (Moura, 2026). To avoid reliance on any single checker implementation, Comparator supports nanoda (Bailey, 2026), an independent type checker for Lean implemented in Rust. We enable this additional check and require a submission to be accepted by both kernels. Table 3 summarizes the layers of verification and the classes of invalid submissions they address. Our final acceptance criterion is a successful Comparator invocation with nanoda enabled in a fresh evaluation container.
4.2 SANDBOXED ENVIRONMENTS AND LEANIMUM-AGENT
The third and fourth issues are not specific to Lean. Coding-agent benchmarks already provide established approaches to harness consistency and environment isolation, which we adopt for formal theorem proving tasks.
The SWE-bench and ProgramBench evaluation use mini-SWE-agent as a common harness, while Terminal-Bench provides the Terminus harness (Yang et al., 2024; Merrill et al., 2026). These shared harnesses standardize the inference loop, including tool protocols, context management, and the agent lifecycle, allowing comparisons to focus more directly on differences between models. We use the same principle to compare models on REUF2F.
For the execution environment, modern coding-agent evaluations typically place each task in its own sandbox container. This provides a reproducible starting state and prevents performance from being affected by differences in filesystem state. We follow the same design for REUF2F. Each task is instantiated as a self-contained Lean project containing the two proof targets described in Section 4.1, together with a fixed Lean and Mathlib environment. The agent interacts only with this isolated workspace during its attempt, ensuring that every run begins from the same task state.
Each task runs in a fresh Docker container built on codex-universal (openai, 2026), with Lean, Mathlib and its cache, Comparator, and the required dependencies preinstalled. We initialize the project, run lake build, and create a Git checkpoint before starting the agent. The agent can then inspect the workspace, search Mathlib, edit code, and test proofs. At the end of the attempt, its changes are submitted as a Git patch. We replay this patch in a separate evaluation container and run the Comparator verification described above. This follows the familiar pattern of evaluating a coding agent's patch against tests in a clean environment, with formal proof verification serving as the success criterion instead of conventional unit tests.
Our common harness, Leanimum-agent, is adapted from mini-SWE-agent, whose simple shell-based design has proved effective as a common harness for SWE-bench and ProgramBench (Yang et al., 2024; 2026). Despite its lightweight implementation, it provides the main capabilities needed by a modern coding agent: filesystem access, command execution, persistent file edits, and iterative feedback. We preserve this design and add instructions specific to Lean. The prompt explains the proof-or-refutation objective, names the two target declarations, shows how to search Mathlib with rg, and asks the agent to check its changes with lake build before submitting a source patch. Appendix B includes the full prompt, and Appendix C gives the verification configuration. All evaluated models use this common harness, so the comparison does not confound model capability with differences in agent scaffolding.
5 EXPERIMENTS
We evaluate current frontier models on REUF2F using Leanimum-agent. We first report frontier model results on the full benchmark and study how their performance scales with test-time reasoning effort. We then compare a broader set of models and analyze performance across mathematical domains and resolution types. The best-performing model, Gemini 4 Argon achieves the highest pass@1 (42.42%) and pass@2 (44.67%), demonstrating that REUF2F remains challenging for current frontier models.
5.1 EVALUATION CONFIGURATION
All experiments use Lean and Mathlib v4.34.0. Every model is evaluated using the same Leanimum-agent harness described in Section 4.2. Both agent and evaluation containers use identical hardware configurations, with 20 CPU cores and 60 GB of RAM each, and have Internet access, ensuring that Lean compilation does not become a computational bottleneck. We impose no monetary cost limit. Following ProgramBench (Yang et al., 2026), we cap each attempt at 1,000 agent steps and 6 hours of wall-clock time, with a timeout of 1,200 seconds for each individual shell command. The agent is reminded to finalize and submit its patch once fewer than 20 steps or 20 minutes remain. Each submitted patch is graded in a fresh evaluation container with a timeout of 6 hours. We choose these limits to be deliberately generous, so that the results approximate each model's capability ceiling under a common agent harness.
We schedule two independent attempts per model configuration on every problem. We report pass@1 as the number of accepted attempts divided by 488, and pass@2 as the fraction of the 244 problems resolved in at least one of the two attempts. The proved@2 and refuted@2 rates use the same 244-problem denominator.
5.2 FULL-BENCHMARK RESULTS AND TEST-TIME SCALING
We evaluate frontier models in our study, Claude Opus 5.5, Gemini 4 Argon, GPT-6 Astra, and GPT-6.1 Sol, on all 244 problems under their different reasoning-effort settings. This allows us to measure both their overall performance and the extent to which additional test-time computation improves their ability to resolve formalized open mathematical problems.
Figure 2 visualizes the token–performance trade-off. For each of the four models, both pass@1 and pass@2 increase monotonically with reasoning effort. From low to max effort, pass@1 rises from 9.22% to 42.01% for Claude Opus 5.5, from 7.79% to 34.63% for GPT-6 Astra, and from 1.43% to 39.55% for GPT-6.1 Sol. For Gemini 4 Argon, pass@1 rises from 36.27% at low effort to 42.42% at high. Token usage and agent-step counts do not always vary monotonically with effort.
Increasing effort can also be more token-efficient than repeating an attempt. For example, Opus at high effort achieves 29.30% pass@1 versus 28.28% pass@2 at medium effort, using 62.81K versus 81.35K output tokens per problem. Astra at high effort similarly achieves 23.57% versus 20.90% at medium effort, using 14.84K versus 20.46K tokens.

Figure 2: Test-time scaling results. Thin lines show pass@1 (one attempt), thick lines show pass@2 (two attempts on each problem), with twice the average token budget for the same configuration. Labels indicate reasoning effort.
Table 4: Reasoning-effort scaling on the full benchmark. All resolution metrics are percentages.
| Model | Effort | pass@1 | pass@2 | proved@2 | refuted@2 | Avg. out tokens | Avg. steps |
|---|---|---|---|---|---|---|---|
| Claude Opus 5.5 | low | 9.22 | 13.52 | 6.56 | 6.97 | 11.26K | 12.9 |
| Claude Opus 5.5 | medium | 23.16 | 28.28 | 13.52 | 14.75 | 40.68K | 30.5 |
| Claude Opus 5.5 | high | 29.30 | 35.66 | 18.85 | 16.80 | 62.81K | 27.4 |
| Claude Opus 5.5 | xhigh | 35.66 | 39.34 | 20.90 | 18.44 | 120.10K | 36.7 |
| Claude Opus 5.5 | max | 42.01 | 43.85 | 23.36 | 20.49 | 230.18K | 53.4 |
| Gemini 4 Argon | low | 36.27 | 42.62 | 24.18 | 18.44 | 238.10K | 86.7 |
| Gemini 4 Argon | medium | 40.37 | 44.26 | 24.18 | 20.08 | 241.42K | 76.5 |
| Gemini 4 Argon | high | 42.42 | 44.67 | 25.00 | 19.67 | 300.75K | 83.3 |
| GPT-6 Astra | low | 7.79 | 10.25 | 2.87 | 7.38 | 4.45K | 30.9 |
| GPT-6 Astra | medium | 18.85 | 20.90 | 6.97 | 13.93 | 10.23K | 17.9 |
| GPT-6 Astra | high | 23.57 | 25.82 | 10.25 | 15.57 | 14.84K | 20.4 |
| GPT-6 Astra | xhigh | 24.80 | 26.64 | 10.66 | 15.98 | 16.87K | 21.0 |
| GPT-6 Astra | max | 34.63 | 37.70 | 17.21 | 20.49 | 34.92K | 23.5 |
| GPT-6.1 Sol | low | 1.43 | 1.64 | 0.00 | 1.64 | 11.12K | 138.5 |
| GPT-6.1 Sol | medium | 8.81 | 10.25 | 2.05 | 8.20 | 7.84K | 40.3 |
| GPT-6.1 Sol | high | 18.03 | 21.31 | 6.97 | 14.34 | 18.89K | 34.0 |
| GPT-6.1 Sol | xhigh | 23.36 | 26.23 | 9.43 | 16.80 | 34.37K | 38.8 |
| GPT-6.1 Sol | max | 39.55 | 40.98 | 19.26 | 21.72 | 107.18K | 53.3 |
5.3 CROSS-MODEL COMPARISONS
To compare a broader range of models, we evaluate state-of-the-art proprietary models, including Claude Opus 5.5, Gemini 3.8 Flash, Gemini 4 Argon, GPT-6 Astra, GPT-6 Sol, and GPT-6.1 Sol, as well as state-of-the-art open-source models, including Kimi K3 and Qwen3.8-Max. For each model, we use its highest available reasoning-effort setting and the same Leanimum-agent harness and evaluation configuration described above.
Table 5: Model comparisons on REUF2F. Tokens and step counts are averaged over all attempts.
| Model | Effort | pass@1 | pass@2 | proved@2 | refuted@2 | Avg. out tokens | Avg. steps |
|---|---|---|---|---|---|---|---|
| Gemini 4 Argon | high | 42.42 | 44.67 | 25.00 | 19.67 | 300.75K | 83.3 |
| Claude Opus 5.5 | max | 42.01 | 43.85 | 23.36 | 20.49 | 230.18K | 53.4 |
| GPT-6.1 Sol | max | 39.55 | 40.98 | 19.26 | 21.72 | 107.18K | 53.3 |
| GPT-6 Astra | max | 34.63 | 37.70 | 17.21 | 20.49 | 34.92K | 23.5 |
| GPT-6 Sol | max | 18.03 | 19.26 | 6.97 | 12.30 | 335.55K | 255.6 |
| Kimi K3 | max | 7.17 | 9.84 | 2.87 | 6.97 | 499.78K | 132.9 |
| Qwen3.8-Max | max | 6.76 | 9.02 | 2.05 | 6.97 | 823.93K | 178.5 |
| Gemini 3.8 Flash | high | 6.15 | 7.38 | 1.23 | 6.15 | 214.15K | 196.8 |
Table 5 summarizes the results. Gemini 4 Argon (high) achieves the highest pass@2 of 44.67% (109 problems), followed by Claude Opus 5.5 (max) at 43.85% (107 problems), GPT-6.1 Sol (max) at 40.98% (100 problems), and GPT-6 Astra (max) at 37.70% (92 problems). Gemini 4 Argon also achieves the highest pass@1 at 42.42%. Even the strongest configuration leaves more than half of the benchmark unresolved after two attempts. We also observe substantial differences in inference efficiency: average output-token usage ranges from 34.92K for Astra to 823.93K for Qwen. The evaluated frontier open-source models, Kimi K3 and Qwen3.8-Max, use more output tokens yet resolve much fewer problems than the strongest proprietary models, highlighting a substantial performance gap between open-source and proprietary models in formal theorem proving.
Figure 3 compares all measured model–effort configurations under the same perfect-cache pricing assumption. The first input in each attempt is charged at the ordinary input rate, all subsequent input at the cache-read rate, and output at standard rates.

Figure 3: Cost/performance Pareto frontier. Each point is one model–effort configuration. The dashed lines indicate the Pareto frontier.
5.4 PERFORMANCE ACROSS MATHEMATICAL AREAS
Figure 4 breaks down pass@2 resolutions for Claude Opus 5.5 (max), Gemini 4 Argon (high), GPT-6 Astra (max), and GPT-6.1 Sol (max). Algebra and algebraic geometry contributes the largest number of resolutions for all four configurations. Gemini 4 Argon has the highest count in Others (7 of 19), which consists primarily of theoretical computer science and mathematical logic problems.

Figure 4: Number of problems resolved under pass@2 by the four frontier models. Each subject area contains 45 problems, except for “Others”, which contains 19. Solid segments denote proved problems; hatched segments denote refuted problems. Numbers above the bars give the totals.
This exceeds the six distinct problems resolved by the union of the other three models shown in the figure.
These differences may reflect both mathematical difficulty and formalization difficulty (see the discussion of formalizability in Section 6). For example, arguments involving intuitive reasoning, explicit constructions, or extensive case analyses may be concise on paper but laborious to formalize in Lean. By contrast, some algebraic and analytic arguments may benefit from higher-level abstractions already available in Mathlib.
6 DISCUSSION AND LIMITATIONS
Below we discuss a few design choices and limitations of our benchmark and evaluation that should be kept in mind when interpreting the results.
Bias from formalizability. We include only conjectures that can be stated faithfully in Lean with Mathlib. Conjectures whose statements require substantial missing infrastructure are therefore underrepresented, even though we try to balance the benchmark across five mathematical areas. As a result, the distribution of REUF2F follows the current coverage of Mathlib as well as the distribution of REU research. Formalization in Lean can also shift the relative difficulty of problems across areas. An agent may struggle on a problem not because its mathematics is hard, but because its solution is hard to formalize. Resolution rates across areas therefore reflect both mathematical difficulty and formalization difficulty.
Unprovability and independence. The law of excluded middle ensures that for any formalized proposition P, either P or holds, but it does not guarantee that either is provable within the permitted foundations. Gödel's first incompleteness theorem implies that any consistent, effectively axiomatized theory sufficiently expressive to formalize arithmetic admits statements that can be neither proved nor refuted within the theory. Assuming consistency, this fundamental limitation also applies to Lean with its permitted axioms. Consequently, as discussed in Section 4.1, there is no guarantee that every task admits a verifiable proof or refutation. In particular, problems independent of the permitted foundations cannot be resolved under our protocol, regardless of the capabilities of the agent.
Formalization faithfulness. Despite expert formalization, independent AI-assisted checks, and a final review by Mathlib contributors, some Lean statements may still differ subtly from the intended conjectures. Such statements nonetheless provide meaningful evaluation signals: a verified proof of either a formalized proposition P or its negation remains a mathematically valid result relative to the underlying axioms, even if it does not resolve the intended conjecture. Moreover, incom-pleteness gives no reason to expect a misformalized statement to be more likely independent than a faithful one, and we do not expect formalization discrepancies to systematically increase the risk of independence.
Leakage risk. Our argument that REU conjectures carry a lower risk of leakage is qualitative. Any open problem in REUF2F may be resolved and published at any time, after which its solution could be retrieved by search agents or included in future models' training data. To preserve the benchmark's long-term utility, we encourage the community to refrain from publicly releasing formalized solutions to benchmark problems.
Common harness. Leanimum-agent separates model capability from differences in agent scaffolding, but no single harness is optimal for every model. Some models may perform better with their native agent harnesses or heavier multi-agent systems. Our results should therefore be interpreted as a comparison under a common, lightweight coding-agent harness without context condensation, rather than as an upper bound on what each model can achieve.
7 CONCLUSION
We introduced REUF2F, a benchmark of 244 open conjectures drawn from undergraduate mathematics research. The problems span multiple mathematical areas and are supplied with complete Lean formalization. To evaluate modern coding agents, we place each task in a sandboxed container and allow either a proof or a refutation. All agents are run through a common harness, Leanimum-agent, and every submission is independently checked by Comparator using both the official Lean kernel and nanoda. The strongest frontier model we evaluated resolves only about 40% of the problems under the tested budgets, leaving substantial room for progress. We hope REUF2F will provide a reproducible foundation for evaluating coding agents on open mathematical research and for tracking their ability to produce new, formally verified results.
ACKNOWLEDGEMENTS
This project grew in part out of discussions at the 2025 ICERM workshop Autoformalization for the Working Mathematician. We thank Daniel Halpern-Leistner, Kim Morrison, Oleg Mürk, Jason Rute and Benyou Wang for helpful early discussions on this project.
This work is partially supported by NSF Grant DMS-2434614, and DARPA ExpMath Grant HR0011262E028. Daniel Wong is partially supported by the National Natural Science Foundation of China (no. 12341101, 12371033). Xiaopeng Li is partially supported by the University Development Fund of The Chinese University of Hong Kong, Shenzhen under Grant UDF01004255. Prasad Tetali acknowledges funding from the Alexander M. Knaster Professorship in supporting his research. Sean Welleck thanks the Gemini Academic Program Award and OpenAI for providing API credits.
REFERENCES
Mohammed Abouzaid, Andrew J Blumberg, Martin Hairer, Joe Kileel, Tamara G Kolda, Paul D Nelson, Daniel Spielman, Nikhil Srivastava, Rachel Ward, Shmuel Weinberger, et al. First proof. arXiv preprint arXiv:2602.05192, 2026a.
Mohammed Abouzaid, Nikhil Srivastava, Rachel Ward, and Lauren Williams. First proof second batch, 2026b. URL https://arxiv.org/abs/2606.18119.
Tom Adamczewski. Oeis open: How many conjectures can language models turn into theorems? arXiv preprint arXiv:2608.11941, 2026.
Tom Adamczewski and Thomas F Bloom. Frontiermath erd\h {o} s. arXiv preprint arXiv:2609.25050, 2026.
Levent Alpöge. The modular family of 2-tori, completed at its three special points, is a complex structure on . https://alpo.ge/s6.pdf, 2026.
Anthropic. Formalizing fermat's last theorem. https://www.anthropic.com/research/formalizing-fermats-last-theorem, 2026.
Zhangir Azerbaijan, Bartosz Piotrowski, Hailey Schoelkopf, Edward W Ayers, Dragomir Radev, and Jeremy Avigad. Proofnet: Autoformalizing and formally proving undergraduate-level mathematics. arXiv preprint arXiv:2302.12433, 2023.
Bolton Bailey, Jia Li, Jiaqi Wang, Junqi Liu, Justin Asher, Pietro Pellegrino, Ruichen Qiu, Wenda Li, Xiao Ma, Yichuan Cao, Yihe Huang, Yunfei Li, Yunzhou Xie, Zekai Zhu, Zihao Zhou, and Weikun He. Kakeya in dimension three. https://github.com/project-numina/kakeya-3d, 2026.
Chris Bailey. nanoda: An external type checker for lean 4. https://github.com/ammkrn/nanoda_lib, 2026.
Boris Bukh, Ting-Wei Chao, and Zeyu Zheng. The oddtown problem modulo a composite number. arXiv preprint arXiv:2509.00586, 2025.
Jiangjie Chen, Wenxiang Chen, Jiacheng Du, Jinyi Hu, Zhicheng Jiang, Allan Jie, Xiaoran Jin, Xing Jin, Chenggang Li, Wenlei Shi, et al. Seed-prover 1.5: Mastering undergraduate-level theorem proving via learning from experience. arXiv preprint arXiv:2512.17260, 2025a.
Luoxin Chen, Jinming Gu, Liankai Huang, Wenhao Huang, Zhicheng Jiang, Allan Jie, Xiaoran Jin, Xing Jin, Chenggang Li, Kaijing Ma, et al. Seed-prover: Deep and broad reasoning for automated theorem proving. arXiv preprint arXiv:2507.23726, 2025b.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168, 9, 2021.
Jasper Dekoninck, Nikola Jovanović, Tim Gehrunger, Kári Rögnvaldsson, Ivo Petrov, Chenhao Sun, and Martin Vechev. Beyond benchmarks: Matharena as an evaluation platform for mathematics with llms. arXiv preprint arXiv:2605.00674, 2026.
Moritz Firsching, Paul Lezeau, Salvatore Mercuri, Miklós Z Horváth, Yaël Dillies, Calle Sönne, Eric Wieser, Fred Zhang, Thomas Hubert, Pushmeet Kohli, et al. Formal conjectures: An open and evolving benchmark for verified discovery in mathematics. arXiv preprint arXiv:2605.13171, 2026.
Bofei Gao, Feifan Song, Zhe Yang, Zefan Cai, Yibo Miao, Qingxiu Dong, Lei Li, Chenghao Ma, Liang Chen, Zhengyang Tang, et al. Omni-math: A universal olympiad level mathematic benchmark for large language models. In International Conference on Learning Representations, volume 2025, pp. 100540–100569, 2025.
Elliot Glazer, Ege Erdil, Tamay Besiroglu, Diego Chicharro, Evan Chen, Alex Gunning, Caroline Falkman Olsson, Jean-Stanislas Denain, Anson Ho, Emily de Oliveira Santos, et al. Frontiermath: A benchmark for evaluating advanced mathematical reasoning in ai. arXiv preprint arXiv:2411.04872, 2024.
Google DeepMind. Advanced version of gemini with deep think officially achieves gold-medal standard at the international mathematical olympiad. https://deepmind.google/blog/advanced-version-of-gemini-with-deep-think-officially-achieves-gold-medal-standard-at-the-international-mathematical-olympia/d/, 2025.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, et al. Olympiadbench: A challenging benchmark for promoting agi with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3828–3850, 2024.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
Jiewen Hu, Thomas Zhu, and Sean Welleck. minictx: Neural theorem proving with (long-) contexts. In International Conference on Learning Representations, volume 2025, pp. 10106–10130, 2025.
Wenqi Huang, Charley Lee, Leonard Tng, and Serena Ge. Deepswe: Measuring frontier coding agents on original, long-horizon engineering tasks. arXiv preprint arXiv:2607.07946, 2026.
Thomas Hubert, Rishi Mehta, Laurent Sartran, Miklós Z Horváth, Goran Žužić, Eric Wieser, Aja Huang, Julian Schrittwieser, Yannick Schroecker, Hussain Masoom, et al. Olympiad-level formal mathematical reasoning with reinforcement learning. Nature, 651(8106):607–613, 2026.
Albert Q Jiang, Sean Welleck, Jin Peng Zhou, Wenda Li, Jiacheng Liu, Mateja Jamnik, Timothée Lacroix, Yuhuai Wu, and Guillaume Lample. Draft, sketch, and prove: Guiding formal theorem provers with informal proofs. arXiv preprint arXiv:2210.12283, 2022.
Jiedong Jiang, Wanyi He, Wang Yuefeng, Guoxiong Gao, Yongle Hu, Jingting Wang, Nailin Guan, Peihao Wu, Bryan Dai, Liang Xiao, et al. Fate: A formal benchmark series for frontier algebra of multiple difficulty levels. In International Conference on Learning Representations, volume 2026, pp. 10543–10580, 2026.
Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. Swe-bench: Can language models resolve real-world github issues? In International Conference on Learning Representations, volume 2024, pp. 54107–54157, 2024.
Lean FRO. Comparator: A trustworthy judge for lean proofs. https://github.com/leanprover/comparator, 2026a.
Lean FRO. Lean ai formalization leaderboard. https://lean-lang.org/eval/, 2026b.
Haohan Lin, Zhiqing Sun, Sean Welleck, and Yiming Yang. Lean-star: Learning to interleave thinking and proving. In International Conference on Learning Representations, volume 2025, pp. 66041–66062, 2025.
Minh-Thang Luong, Dawsen Hwang, Hoang H Nguyen, Golnaz Ghiasi, Yuri Chervonyi, Insuk Seo, Junsu Kim, Garrett Bingham, Jonathan Lee, Swaroop Mishra, et al. Towards robust mathematical reasoning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 35406–35430, 2025.
Bhavik Mehta. Exponentialramsey: Formalization of an exponential improvement for diagonal ramsey. https://github.com/b-mehta/ExponentialRamsey, 2023.
Mike Merrill, Alexander Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi, Jeong Shin, Thomas Walshe, E Kelly Buchanan, et al. Terminal-bench: Benchmarking agents on hard, realistic tasks in command line interfaces. In International Conference on Learning Representations, volume 2026, pp. 40903–40986, 2026.
Leonardo de Moura. Postmortem for kernel soundness bug #14576. https://leodemoura.github.io/blog/2026-8-1-postmortem-for-kernel-soundness-bug-14576/, 2026.
Leonardo de Moura and Sebastian Ullrich. The lean 4 theorem prover and programming language. In International Conference on Automated Deduction, pp. 625–635. Springer, 2021.
National Science Foundation. Research experiences for undergraduates (reu). https://www.nsf.gov/funding/initiatives/reu, 2026.
OpenAI. Cdc lean formalization. https://github.com/openai/cdc-lean, 2026.
openai. codex-universal. https://github.com/openai/codex-universal, 2026.
OpenAI. Finite time blowup for navier-stokes. https://cdn.openai.com/pdf/32d9f210-8b73-45e0-91bc-82a30aef8a9a/navier-stokes.pdf, 2026a.
OpenAI. Navierstokesandeuler: Lean formalizations of finite time blowup for navier–stokes and euler equations. https://github.com/openai/NavierStokesAndEuler, 2026b.
OpenAI. Planar point sets with many unit distances. https://cdn.openai.com/pdf/74c24085-19b0-4534-9c90-465b8e29ad73/unit-distance-proof.pdf, 2026c.
OpenAI. Ten advances in mathematics and theoretical computer science. https://cdn.openai.com/pdf/ten-proofs-oai.pdf, 2026d.
Sang-il Oum. A proof of the cycle double cover conjecture by openai: An exposition. arXiv preprint arXiv:2607.16356, 2026.
Nikil Ravi, Kexing Ying, Vasilii Nesterov, Rayan Krishnan, Elif Uskuplu, Bingyu Xia, Janitha Aswedige, and Langston Nashold. Formalproofbench: Can models write graduate level math proofs that are formally verified? arXiv preprint arXiv:2603.26996, 2026.
Johannes Schmitt, Gergely Bérczi, Jasper Dekoninck, Jeremy Feusi, Tim Gehrunger, Raphael Appenzeller, Pieter Belmans, Alessio Bottini, Jim Bryan, João Camarneiro, et al. Improof-bench: Benchmarking ai on research-level mathematical proof generation. arXiv preprint arXiv:2509.26076, 2025.
Daniel Shepard and Robin Salimans. Automationbench. arXiv preprint arXiv:2604.18934, 2026.
Guijin Son, Seungone Kim, Catherine Arnett, Hyunwoo Ko, Hyein Lee, Hyeonah Kang, Jiang Longxi, Jin Yun, JungYup Lee, Kyungmin Lee, et al. Soohak: A mathematician-curated benchmark for evaluating research-level math capabilities of llms. arXiv preprint arXiv:2605.09063, 2026.
The mathlib Community. Mathlib4: The lean 4 mathematical library. https://github.com/leanprover-community/mathlib4, 2026.
The PFR Formalization Contributors. The polynomial freiman–ruzsa conjecture: Lean 4 formalization. https://github.com/teorth/pfr, 2026.
The Sphere Packing in Lean Contributors. Sphere packing in lean. https://github.com/thefundamentaltheor3m/Sphere-Packing-Lean, 2024.
George Tsoukalas, Jasper Lee, John Jennings, Jimmy Xin, Michelle Ding, Michael Jennings, Amitayush Thakur, and Swarat Chaudhuri. Putnambench: Evaluating neural theorem-provers on the putnam mathematical competition. Advances in Neural Information Processing Systems, 37:11545–11569, 2024.
George Tsoukalas, Anton Kovsharov, Sergey Shirobokov, Anja Surina, Moritz Firsching, Gergely Bérczi, Francisco JR Ruiz, Arun Suggala, Adam Zsolt Wagner, Eric Wieser, et al. Advancing mathematics research with ai-driven formal proof search. arXiv preprint arXiv:2605.22763, 2026.
Ran Xin, Chenguang Xi, Jie Yang, Feng Chen, Hang Wu, Xia Xiao, Yifan Sun, Shen Zheng, and Ming Ding. Bfs-prover: Scalable best-first tree search for llm-based automatic theorem proving. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 32588–32599, 2025a.
Ran Xin, Zeyu Zheng, Yanchen Nie, Kun Yuan, and Xia Xiao. Scaling up multi-turn off-policy rl and multi-agent tree search for llm step-provers. arXiv preprint arXiv:2509.06493, 2025b.
John Yang, Carlos E Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik R Narasimhan, and Ofir Press. SWE-agent: Agent-computer interfaces enable automated software engineering. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://arxiv.org/abs/2405.15793.
John Yang, Kilian Lieret, Jeffrey Ma, Parth Thakkar, Dmitrii Pedchenko, Sten Sootla, Emily McMilin, Pengcheng Yin, Rui Hou, Gabriel Synnaeve, et al. Programbench: Can language models rebuild programs from scratch? arXiv preprint arXiv:2605.03546, 2026.
Yu Yue, Yufeng Yuan, Qiying Yu, Xiaochen Zuo, Ruofei Zhu, Wenyuan Xu, Jiaze Chen, Chengyi Wang, TianTian Fan, Zhengyin Du, et al. Vapo: Efficient and reliable reinforcement learning for advanced reasoning tasks. arXiv preprint arXiv:2504.05118, 2025.
Kunhao Zheng, Jesse Michael Han, and Stanislas Polu. Minif2f: a cross-system benchmark for formal olympiad-level mathematics. arXiv preprint arXiv:2109.00110, 2021.
Zeyu Zheng, Shengtong Zhang, Jeremy Avigad, Prasad Tetali, and Sean Welleck. The problem is the problem: Towards scalable mathematical discovery. arXiv preprint arXiv:2608.16977, 2026.
A TWO-WAY TASK EXPORT
Export.lean checks that each target declaration is a theorem and exports its name and universe parameters. Task preparation preserves the original declaration and its definitions, then appends a _neg theorem with type ¬ type_of% @target. Lean elaborates type_of% @target to the target's complete type, so the negation includes all binders without printing and reparsing the statement.
Listing 1: Lean code for exporting target declaration metadata.
import Lean
open Lean Elab Command
namespace Export
/-- Export each target's universe parameters, named 'u0, ul, ...', so the task can state its refutation as 'Not type_of% @target.{u0, ...}'. -/ elab "#reuf2f_export_types" manifestPath:str "to" outputPath:str : command => do let text <- liftIO <| IO.FS.readFile manifestPath.getString let .ok manifest := Json.parse text | throwError "Invalid task manifest" let .ok entries := manifest.getArr? | throwError "Task manifest must be an array" let mut results : Array Json := [#[] for entry in entries do let .ok name := entry.getObjValAs? String "declaration" | throwError "Task has no declaration" let info <- getConstInfo name.toName unless info.isTheorem do throwError "Not a theorem: {name}" let levels := info.levelParams.zipIdx.map fun (_, i) => s!"u{i}" results := results.push <| Json.mkObj [("declaration", toJson name), ("universes", toJson levels)] liftIO <| IO.FS.writeFile outputPath.getString (Json.arr results).pretty end Export
The following is the appended declaration for the release task abebe2019conjectural.
theorem Abebe2019Conjectural. conjecture_3_brouwer_inequality_for_k_families_neg : Not type_of% @Abebe2019Conjectural. conjecture_3_brouwer_inequality_for_k_families := by sorry
B LEANIMUM-AGENT PROMPT
All models share the system prompt “You are a helpful assistant that can interact with a computer shell to solve Lean tasks.” and the instance template below. The template specifies the two-way task, gives instructions for searching Mathlib and checking Lean code, and defines the patch-submission procedure. The {{task}} variable is replaced with the task’s problem statement, “In <file>.lean, prove either <declaration> or refute it by proving its logical negation <declaration>_neg.”
Listing 2: The Leanimum-agent task prompt.
<problem_description> Consider the following Lean problem: {{task}}
</problem_description>
<instructions> # Task InstructionsOverview
You're a mathematician interacting continuously with a computer by submitting commands.
You'll be helping prove or refute the Lean statement described above.
Your task is specifically to make changes to files in the current directory in order to formally prove or refute the conjecture described in the problem description, keeping the target declarations and relevant dependencies unchanged.
<IMPORTANT>This is an interactive process where you will think and issue AT LEAST ONE command, see the result, then think and issue your next command(s).</important>
For each response:
-
Include a THOUGHT section explaining your reasoning and what you're trying to accomplish
-
Provide one or more bash tool calls to execute
Important Boundaries
-
MODIFY: Regular Lean files in /testbed (this is the working directory for all your subsequent commands)
-
DO NOT MODIFY: Target statements and their dependencies, the 'lean-toolchain' version; do not introduce 'lakefile.lean'
Recommended Workflow
-
Analyze the codebase by finding and reading relevant files
-
Search the project and Mathlib for relevant definitions and lemmas
-
Edit the task file to prove the original theorem or its full logical negation ('_neg')
-
Check your changes with 'lake build'
-
Check that your proof does not depend on introduced axioms or sorries
Command Execution Rules
You are operating in an environment where
-
You issue at least one command
-
The system executes the command(s) in a subshell
-
You see the result(s)
-
You write your next command(s)
Each response should include:
-
Reasoning text where you explain your analysis and plan
-
At least one tool call with your command
CRITICAL REQUIREMENTS:
-
Your response SHOULD include reasoning text explaining what you're doing
-
Your response MUST include AT LEAST ONE bash tool call. You can make MULTIPLE tool calls in a single response when the commands are independent (e.g., searching multiple files, reading different parts of the codebase).
-
Directory or environment variable changes are not persistent. Every action is executed in a new subshell.
-
However, you can prefix any action with 'MY_ENV_VAR=MY_VALUE cd /path/to/working/dir && ...' or write/load environment variables from files
Example of a CORRECT response: <example_response> I need to understand the target statement. Let me find relevant definitions and check the project structure.
[Makes multiple bash tool calls: {"command": "ls -la"}, {"command": "rg -n 'theorem|def' -g '*.lean'}}, {"command": "cat lean-toolchain"}] </example_response>
Environment Details
- You have a full Linux shell environment
- Always use non-interactive flags (-y, -f) for commands
- Avoid interactive tools like vi, nano, or any that require user input
- You can use bash commands or invoke any tool that is available in the environment
- You can also create new tools or scripts to help you with the task
- If a tool isn't available, you can also install it
- Search Mathlib with 'rg 'PATTERN'.lake/packages/mathlib/Mathlib'.
- Register new helper libraries with '[lean_lib]' entries in 'lakefile.toml', then import the needed modules in the task file.
Submission
When you've completed your work, you MUST submit your changes as a git patch. Follow these steps IN ORDER, with SEPARATE commands:
Step 1: Create the patch file Run 'git add path/to/file1 path/to/file2 && git diff --cached > patch.txt' listing exactly the source files you modified. Do NOT commit your changes.
<IMPORTANT> The patch must only contain changes to the specific source files you modified to prove or refute the theorem. Do not use any of the following to complete a proof: - 'sorry' or 'admit' in the chosen proof or any of its dependencies - new axioms or changes to the target's definitions - changes to the verifier or its configuration (lakefile.toml library layout may change) - binary or compiled files </IMPORTANT>Step 2: Verify your patch Inspect patch.txt to confirm it only contains your intended changes and headers show '--- a/' and '+++ b/' paths.
Step 3: Submit (EXACT command required) You MUST use this EXACT command to submit:
bash echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT && cat patch.txt
If the command fails (nonzero exit status), it will not submit.
<CRITICAL> - Creating/viewing the patch and submitting it MUST be separate commands (not combined with &&).- If you modify patch.txt after verifying, you SHOULD verify again before submitting.
- You CANNOT continue working (reading, editing, testing) in any way on this task after submitting. </CRITICAL>
The observation and format-repair templates below provide command feedback, budget reminders, and guidance after malformed tool calls.
Listing 3: Command observations and budget reminders.
{ % if output.exception_info -%} <exception>{output.exception_info}</exception> { % endif -%} <returncode>{output.returncode}</returncode> { % if output.output | length < 10000 -%} <output> {{ output.output -}} </output> {%- else -%} <warning> The output of your last command was too long. Please try a different command that produces less output. If you're looking at a file you can try use head, tail or sed to view a smaller number of lines selectively. If you're using grep or find and it produced too much output, you can use a more selective search pattern. If you really need to see something from the full command's output, you can redirect output to a file and then search in that file. </warning> {%- set elided_chars = output.output | length - 10000 -%} <output_head> {{ output.output[:5000] }} </output_head> <elided_chars> {{ elided_chars }} characters elided </elided_chars> <output_tail> {{ output.output[-5000:] }} </output_tail> {%- endif -%} { % if step_limit > 0 and step_limit - n_model_calls < 20 -%} </IMPORTANT> There is a limit to the steps you can take. You are now {{ step_limit - n_model_calls }} steps away from reaching your limit. You must submit your Git patch before reaching the limit; unsubmitted changes are not collected. At this point, please abort any specific issues that you are debugging or solving and focus on the big picture. Please make sure that 1. Your Lean solution compiles 2. Create, inspect, and submit your Git patch using the separate commands in the initial instructions. </IMPORTANT> {%- endif %} { % if wall_time_limit_seconds > 0 and wall_time_limit_seconds - elapsed_seconds < 600 -%} </IMPORTANT> You are running low on time. You have approximately {{ (( wall_time_limit_seconds - elapsed_seconds) / 60) | int }} minutes remaining before timeout. Please wrap up your work now: 1. Ensure your Lean solution compiles
- Create, inspect, and submit your Git patch using the separate commands in the initial instructions.
- Submit with 'echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT && cat patch.txt' </IMPORTANT>
{%- endif %}
Listing 4: Format-repair feedback.
{ % if finish_reason is defined and (finish_reason == "length" or (finish_reason == "tool_calls" and not has_tool_calls)) -%} Your previous response reached the output token limit (finish_reason={ finish_reason }) before you produced a tool call, so it was cut off. Respond more concisely and finish with exactly one bash tool call. If you need to think more, do so briefly. {%- else -%} Tool call error: <error> {{error}} </error>
Here is general guidance on how to submit correct toolcalls:
Every response needs to use the 'bash' tool at least once to execute commands.
Call the bash tool with your command as the argument:
- Tool: bash
- Arguments: {"command": "your_command_here"}
If you have completed your assignment, please consult the first message about how to submit your solution (you will not be able to continue working on this task after that). {%- endif %}
C VERIFICATION CONFIGURATION
Comparator compares the trusted challenge with the submitted solution. The configuration below checks the original theorem and a second invocation checks the theorem with the suffix _neg. The example shows the task abebe2019conjectural.
{ "challenge_module": "Challenge", "solution_module": "abebe2019conjectural", "theorem_names": ["Abebe2019Conjectural.conjecture_3_brouwer_inequality_for_k_families"], "permitted_axioms": [ "propext", "Quot.sound", "Classical.choice" ], "external_kernels": { "nanoda": ["/usr/local/bin/nanoda_lib/target/release/nanoda_bin"] } }