Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematics
Junqi Liu, Zihao Zhou, Zekai Zhu, Marco Dos Santos, Weikun He, Jiawei Liu, Ran Wang, Yunzhou Xie, Junqiao Zhao, Qiufeng Wang, Lihong Zhi, Jia Li, Wenda Li · 2026
Read Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematics by Junqi Liu, Zihao Zhou, Zekai Zhu, Marco Dos Santos, Weikun He, Jiawei Liu, Ran Wang, Yunzhou Xie, Junqiao Zhao, Qiufeng Wang, Lihong Zhi, Jia Li, Wenda Li (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-14027.txt.
Introduction
Junqi Liu and a large team use a general coding agent as a formal math reasoner in 2026. Agentic systems now dominate formal theorem proving, with strong performance. They coordinate multiple models and tools to build proofs. Existing approaches often rely on task-specific pipelines and trained formal provers.
That reliance limits flexibility and reproducibility, the team argues. Their Numina-Lean-Agent is an open and general agentic reasoning system. It directly uses a general coding agent for formal mathematics in Lean. An open system lets other teams test, copy, and extend the approach.
Catalog record
| CREATOR | Junqi Liu, Zihao Zhou, Zekai Zhu, Marco Dos Santos, Weikun He, Jiawei Liu, Ran Wang, Yunzhou Xie, Junqiao Zhao, Qiufeng Wang, Lihong Zhi, Jia Li, Wenda Li |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 27 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2601-14027
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematics Junqi Liu, Zihao Zhou, Zekai Zhu, Marco Dos Santos, Weikun He, Jiawei Liu, Ran Wang, Yunzhou Xie, Junqiao Zhao, Qiufeng Wang, Lihong Zhi, Jia Li, Wenda Li Abstract Agentic systems have recently become the dominant paradigm for formal theorem proving, achieving strong performance by coordinating multiple models and tools. However, existing approaches often rely on task-specific pipelines and trained formal provers, limiting their flexibility and reproducibility. In this paper, we propose the paradigm that directly uses a general coding agent as a formal math reasoner. This paradigm is motivated by (1) A general coding agent provides a natural interface for diverse reasoning tasks beyond proving, (2) Performance can be improved by simply replacing the underlying base model, without training., and (3) MCP enables flexible extension and autonomous calling of specialized tools, avoiding complex design. Based on this paradigm, we introduce Numina-Lean-Agent , which combines Claude Code with Numina-Lean-MCP to enable autonomous interaction with Lean, retrieval of relevant theorems, informal proving and auxiliary reasoning tools. Using Claude Opus 4.5 as the base model, Numina-Lean-Agent solves all problems in Putnam 2025 (12/12), matching the best closed-source system. Beyond benchmark evaluation, we further demonstrate its generality by interacting with mathematicians to successfully formalize the Brascamp–Lieb theorem. We release Numina-Lean-Agent and all solutions at https://github.com/project-numina/numina-lean-agent . † † affiliationnotice: Equal contribution 1 Introduction Formal theorem proving aims to construct machine-verifiable proofs for mathematical theorems within rigorously defined logical systems, such as Lean ( 6 ) and Isabelle ( 11 ) . Unlike informal mathematical reasoning, formal verification systems provide tools for automatically and soundly verifying the correctness of proofs. Consequently, these systems establish a foundation for developing reliable reasoning. Previous advances in neural theorem proving have focused on developing single-model formal provers. Early provers relied on tactic prediction combined with explicit search methods, such as Monte Carlo tree search, to explore the proof space. ( 10 ; 9 ) . To mitigate the efficiency limitations of search-based methods, subsequent work explored whole proof generation to directly produce complete proofs ( 15 ) . Subsequently, other efforts incorporated informal reasoning to guide tactic generation and proof construction ( 14 ; 12 ) . Despite notable progress, effectively capturing long-horizon, structured reasoning within formal systems remains a central challenge. More recently, several systems have moved beyond single-model formal provers by introducing agentic workflows that enable provers to interact with formal theorem proving environments and other models. For example, HILBERT ( 13 ) proposes an agentic framework that combines informal reasoners with formal provers to guide proof construction. In parallel, Seed-Prover 1.5 ( 5 ) trains a formal prover via large-scale agentic reinforcement learning, emphasizing repeated interaction with the Lean compiler and related tools. In addition, AxiomProver ( 3 ) , developed by Axiom Math, adopts an autonomous multi-agent ensemble architecture and has achieved a perfect score on Putnam-2025. These systems highlight the growing effectiveness of agentic proving systems. Despite their strong performance, existing agentic proving systems exhibit several limitations: (1) They rely on task-specific reasoning pipelines that are explicitly designed and often coupled with extensively trained formal provers, which can limit their extensibility to new tools or domains. (2) Most systems are closed-source and provide limited implementation details, making it difficult for the broader community to reproduce and extend their work. In this paper, we propose a paradigm for building a formal math reasoner based on a general coding agent, which is motivated by three reasons: (1) Coding agents provide a native interface for diverse proof engineering tasks beyond proving. (2) It allows for the flexible replacement of underlying base models to enhance reasoning capabilities without any training. (3). Integration of MCP enables the plug-and-play extension of specialized reasoning tools and the model can autonomously invoke them based on the specific query. Following this paradigm, we propose Numina-Lean-Agent, which consists of Claude Code and Numina-Lean-MCP for providing diverse reasoning tools. Specifically, Numina-Lean-MCP integrates several core components. It includes Lean-LSP-MCP ( 7 ) 1 1 1 https://github.com/oOo0oOo/lean-lsp-mcp for agentic interaction with the Lean theorem prover. To provide relevant background knowledge, we develop LeanDex for semantic retrieval of related theorems and definitions from Lean libraries such as mathlib. An Informal Prover ( 8 ) is used to generate detailed informal proof solutions, while a Discussion Partner tool enables querying external language models to assist in reasoning and planning. Together, these components make Numina-Lean-Agent a general and powerful formal mathematical reasoning system. Using Claude Opus 4.5 ( 2 ) as the base model, Numina-Lean-Agent successfully solved all 12 problems in the Putnam 2025, achieving state-of-the-art performance. This result matches the closed-source system AxiomProver and surpasses Harmonic’s Aristotle ( 1 ) by two problems. We report all solutions along with their computational costs and proof lengths in Section 3 . Notably, on certain problems such as Problem-B1, Numina-Lean-Agent produced remarkably concise proofs than AxiomProver and Seed-Prover 1.5. Beyond standard automated proving, Numina-Lean-Agent serves as a general mathematical reasoning system, enabling mathematicians to engage in interactive ”vibe proving”. We demonstrate this paradigm by collaborating with human experts to formalize the Brascamp-Lieb theorem, with the details of the interactive process reported in Section 4 . Figure 1 : Overview of Numina-Lean-Agent, an agentic formal reasoning framework built on Claude Code and Numina-Lean-MCP. The agent autonomously selects and invokes specialized reasoning tools to handle diverse queries. 2 Numina-Lean-Agent 2.1 Overview As shown in Figure 1 , Numina-Lean-Agent is an agentic formal theorem proving framework built upon Claude Code and Numina-Lean-MCP. Functioning as an autonomous agent, it can dynamically select and invoke the appropriate reasoning tools within Numina-Lean-MCP to handle diverse queries and complete complex formal reasoning tasks. 2.2 Numina-Lean-MCP Lean-LSP-MCP. Lean-LSP-MCP ( 7 ) is a Model Context Protocol (MCP) server explicitly designed for the Lean theorem prover. Acting as a bridge between LLMs and the Lean kernel via the Language Server Protocol (LSP), it empowers models with the capability to deeply comprehend, analyze, and manipulate Lean projects. It significantly enhances the proving capabilities of models through a toolset organized into three distinct dimensions: 1. Semantic Awareness and Interaction: This dimension provides a suite of tools enabling agents to simulate the behavior of proficient Lean users. Ranging from lean_file_outline for grasping global structures, to lean_goal for precise goal querying, and lean_diagnostic_messages for obtaining authoritative verification results, these tools liberate models from guessing regarding proof states, enabling precise decision-making grounded in the authentic compilation environment. 2. Code Execution and Strategy Exploration: It supports the instant compilation of isolated code snippets via lean_run_code and utilizes lean_multi_attempt to allow parallel execution and evaluation of multiple strategies at a single proof node. This mechanism establishes a robust “trial-feedback-optimization” closed-loop for automated theorem proving. 3. Theorem Retrieval and Knowledge Enhancement: Multi-level search tools are integrated to effectively mitigate hallucinations. lean_local_search focuses on mining definitions within local lean projects and the standard library (stdlib), while lean_loogle facilitates searching the massive Mathlib repository via natural language or structured queries. This dual-retrieval mechanism ensures that every theorem cited by the model is factually existent and contextually appropriate. LeanDex. We present a new theorem search tool for Lean that supports theorem retrieval under Lean v4.26.0. In contrast to existing tools, loogle