# L2EAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks

*Po-Nien Kung, Linfeng Song, Dawsen Hwang, Jinsung Yoon, Chun-Liang Li, Simone Severini, Miroslav Olšák, Edward Lockhart, Quoc V Le, Burak Gokturk, Thang Luong, Tomas Pfister, Nanyun Peng*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148616) · [OpenReview](https://openreview.net/forum?id=wQUhi8Oy33) · [Open on the map](../papers.html#p148616)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Long-Horizon Coding and Proof Benchmarks](../pgroup/99.md) · Type: new method · Keywords: formal theorem proving, LLM reasoning, agentic frameworks, Lean proof assistant, mathematics benchmarks

Areas: [LLM Reasoning](../areas/reasoning.md) › Agentic Reasoning › Verifiable Reasoning Agents; [AI Agents](../areas/agents.md) › Agent Benchmarking › Agentic code and proof generation; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Formal Mathematics Benchmarks

## Summary
L2EAP is an agentic framework that enables general-purpose foundation models to achieve state-of-the-art performance on formal theorem proving by bridging informal reasoning with Lean proofs through decomposition, instruction following, and iterative self-refinement.

## Explained to a 5-year-old
A big computer brain can understand math stories, like how to add numbers, but it often makes mistakes when it has to write proofs that are checked by a computer. Proofs are like step-by-step recipes that must be perfect for a special math program called Lean. To help the brain do this, we built a system that works like a friendly coach. The coach watches the brain’s ideas, breaks big problems into tiny pieces, and asks the brain to try again if something looks wrong. The brain can think informally, like talking about math in plain language, and then the coach helps turn those ideas into formal steps.

## Explained to a 5-year-old, longer
A big computer brain can understand math stories, like how to add numbers, but it often makes mistakes when it has to write proofs that are checked by a computer. Proofs are like step-by-step recipes that must be perfect for a special math program called Lean. To help the brain do this, we built a system that works like a friendly coach. The coach watches the brain’s ideas, breaks big problems into tiny pieces, and asks the brain to try again if something looks wrong. The brain can think informally, like talking about math in plain language, and then the coach helps turn those ideas into formal steps. The brain also learns from its own mistakes by looking at earlier attempts and improving them. This back-and-forth continues until the proof is ready for the Lean program to accept. The coach also makes sure the brain does not get stuck on one idea for too long. Over time, the brain becomes better at solving math puzzles that are very hard, even puzzles from math competitions. The new system can solve all the problems from a recent math competition, something that only the best specialized math computers could do before. It also works on a new collection of math problems called Lean-IMO-Bench, where it can solve about seven out of ten problems on the first try, which is much better than before. This makes it possible for anyone to use a regular computer brain to do rigorous math checking without needing a team of expert mathematicians.

## For a technical reader
The system decomposes theorem-proving tasks into smaller sub-problems, uses foundation models for informal reasoning and instruction following, and iteratively refines proofs while interacting with the Lean compiler. This agentic loop enables general-purpose LLMs to generate formal proofs without specialized automated theorem-proving components. Evaluation on the 2025 Putnam Competition and the new Lean-IMO-Bench benchmark shows dramatic improvements over prior baselines.

## Problem
Large language models excel at informal mathematical reasoning but struggle to produce proofs that are mechanically verifiable in formal proof assistants such as Lean. This limits their use in applications requiring rigorous, checkable mathematics.

## Method
The approach decomposes complex problems into smaller units, uses foundation models' informal reasoning and instruction following, and iteratively self-refines proofs while interacting with the Lean compiler to bridge informal blueprints with formal verification.

## Results
On the 2025 Putnam Competition, the approach solves all 12 problems, matching frontier models; on Lean-IMO-Bench, it raises the one-shot formal solve rate of general-purpose LLMs from below 10% to 70%, outperforming the best baseline of 48%.

## Contributions
It introduces an agentic framework that leverages foundation models' reasoning and self-refinement to improve formal theorem proving, and it provides Lean-IMO-Bench, a benchmark of IMO-style formalized problems with multi-step proofs across difficulty levels.

## Research questions this paper is counted under

- [How can we reliably evaluate the correctness and quality of LLM-generated mathematical proofs?](../q/276.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148616)
