ZICQ
中 Log in / Sign up
Newsroom Research & Papers #AutoformBench #Lean 4 #Mathlib #Formal Mathematical Reasoning #AI Agents

AutoformBench Evaluates AI Agents on Missing Lean 4 Infrastructure

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:AutoformBench introduces 341 Lean 4 formalization tasks drawn from 24 advanced mathematical sources. Unlike isolated theorem-proving evaluations, the benchmark gives agents an informal proof but withholds the corresponding Lean proof, requiring them to reconstruct missing definitions, intermediate lemmas, and supporting infrastructure. Target statements were formalized and audited by mathematicians with Lean experience. The reported qualitative finding is a broadly shared difficulty frontier am


AutoformBench moves formal-mathematics evaluation beyond proving an already isolated theorem and toward integrating an informal argument into the Lean ecosystem. The benchmark contains 341 Lean 4 tasks drawn from 24 advanced mathematical sources. Mathematicians with Lean experience formalized and audited every target statement, but left the corresponding proof to the evaluated agent. The agent receives an informal proof and must reconstruct missing definitions, intermediate lemmas, and supporting infrastructure.

What AutoformBench Actually Measures

Conventional Lean evaluations often provide the target theorem together with its definitions and supporting Mathlib theory. The model then only needs to find a compilable proof path. That setup resembles theorem completion rather than realistic formalization, where much of the work lies in deciding which definitions are needed, how to decompose the argument, and how to connect local claims to existing library interfaces.

AutoformBench places each problem inside a broader mathematical development while deliberately leaving critical gaps in the proof chain. The agent is no longer given a single proposition to close. It receives a dependency-structured engineering task: translate informal reasoning into Lean, create the necessary intermediate artifacts, and make the resulting construction compatible with the target statement.

The evaluated unit is therefore a chain rather than one proof step. Definitions must be correct, intermediate lemmas sufficient, Mathlib APIs correctly selected, and the final proof accepted by Lean's kernel. Failure at any upstream stage can block the entire task.

From an Informal Proof to a Kernel-Checked Term

A practical Lean 4 formalization pipeline involves several distinct stages:

  1. Map the informal argument to precise definitions, quantifiers, hypotheses, and local notation.
  2. Search for or construct intermediate lemmas connecting the target to the available library.
  3. Select relevant Mathlib theorems, typeclass instances, and automation tactics.
  4. Run elaboration to detect unresolved names, type mismatches, implicit arguments, and dependency errors.
  5. Produce a proof term and submit it to Lean's kernel for final checking.

Elaboration failures and kernel failures belong to different layers. A model may have a sound proof strategy but fail to compile because of one parameter type, instance priority, or namespace issue. Conversely, successful elaboration does not automatically prove that the generated statement faithfully captures the informal argument. Human auditing of the target statements reduces ambiguity, but it does not replace independent semantic review of generated proofs.

Mathlib also introduces an evaluation asymmetry. If all supporting theory is preloaded, the model only needs to complete the final local step. When definitions and intermediate lemmas are absent, it must also perform library retrieval, dependency planning, and compile-error repair. These settings do not measure the same capability. Without recording context availability and scaffolding, a leaderboard can easily mistake scaffold gains for reasoning gains.

Why Infrastructure Emerges as the Shared Bottleneck

The abstract reports a central qualitative finding: frontier models broadly share the same difficulty frontier. Success depends less on the mathematical domain and more on their ability to construct missing formal infrastructure.

This outcome is consistent with the compositional structure of formalization. A proof can be represented as a dependency graph whose nodes include definitions, local lemmas, Mathlib results, and the final target. A missing upstream artifact can prevent the entire chain from elaborating. When several alternative lemmas are unavailable, the search space expands rapidly. Understanding the mathematical goal is not equivalent to reliably retrieving library APIs, decomposing proof obligations, and repairing compiler feedback.

Error analysis should therefore go beyond algebra, geometry, or analysis and identify the failed layer: target modeling, definition construction, intermediate-lemma generation, library retrieval, type inference, tactic scripting, context management, or final semantic verification. Such labels distinguish mathematical misunderstanding from formalization-engineering failure.

What the Current Results Do—and Do Not—Show

The supplied abstract does not disclose the evaluated model list, aggregate pass rate, domain-level results, run-to-run variance, token consumption, or wall-clock time. It is therefore not possible to rank models or calculate the efficiency difference between agent frameworks from the available material.

The benchmark's validity still needs to be checked against the full paper: whether tasks are held out by source or mathematical branch, whether target proofs may already have appeared in pretraining corpora, whether the Mathlib version is pinned, whether retries are bounded, and whether every model receives identical context, tool access, and compute budgets. Because a public benchmark can enter later training sets, maintainers should provide versioned hidden tests or a rotating evaluation set.

A public repository for the data and code is provided, but its license, dependency lockfile, completeness of the evaluation harness, and one-command reproducibility should be verified independently.

Engineering Trade-offs

Longer context is not necessarily better reasoning. Supplying the entire mathematical development can reduce the chance of missing a dependency, but it also increases retrieval interference, token cost, and latency. A production system needs dynamic selection among source text, a relevant-definition index, and compressed summaries.

More compiler iterations improve completion but confound model comparisons. Elaboration failures can expose local errors, yet unlimited retries mix model capability with scaffold capability. Evaluations should fix editing limits, tool calls, token budgets, and wall-clock limits, reporting both fixed-budget and open-budget results.

Mathlib assistance lowers search cost but can conceal knowledge gaps. A shared retrieval system can remove tool-level unfairness, but retrieval results, theorem ranking, and context pruning must remain identical across models. Otherwise, performance differences may originate in the harness rather than the agent.

Formal correctness is not the same as semantic independence. A Lean proof that compiles may still depend on unaccepted axioms or incomplete placeholders. Production evaluations should reject sorry and other unfinished proofs, inspect axiom dependencies with mechanisms such as #print axioms, and retain expert review for semantic equivalence and high-stakes claims.

A Practical Evaluation and Deployment Protocol

Pin the environment. Fix Lean 4, Mathlib, and package versions; build in a clean container; and record compiler version, operating system, CPU, memory, and timeout settings. Toolchain drift can create artificial performance differences.

Separate end-to-end and process metrics. The primary metric should be complete compilation success within a fixed budget. Auxiliary metrics can include first-pass success, average compiler iterations, number of helper lemmas, Mathlib imports, unresolved symbols, token use, runtime, and axiom footprint. These reveal whether failures arise during planning, retrieval, or code repair.

Compare models under equal budgets. Give every model the same informal proof, visible files, Lean tools, retry policy, and total token allowance. Run multiple independent trials to quantify variance. If a system relies on extra scaffolding, publish that scaffold version as a separate experimental condition.

Train specifically for infrastructure construction. Training data can be created by removing definitions and intermediate lemmas from complete proofs, teaching models to recover proof decomposition, local type checking, and Mathlib API use rather than memorizing direct mappings from target statements to final proofs.

Treat Lean as a verifier, not the final authority. Agents can draft definitions, lemmas, and proofs while Lean supplies repeatable checking. New axioms, critical semantic equivalence, and costly mathematical conclusions still require expert audit.

Bottom Line

AutoformBench's main contribution is not another collection of isolated theorems. It places missing definitions, intermediate lemmas, and library-level infrastructure inside the evaluated surface. Its 341 expert-formalized and audited tasks provide a more realistic test of Lean formalization engineering. The reported evidence supports the conclusion that infrastructure construction explains more success variation than mathematical domain, but model rankings, absolute performance, and cost-effectiveness still require complete scores, evaluation details, and independent replication.


Source: ArXiv AI (cs.AI) (2026-11-26)

— END —

Tags: #AutoformBench #Lean 4 #Mathlib #Formal Mathematical Reasoning #AI Agents

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
🚀 Explore & Submit Works

Community Comments

Loading live comments and annotations…