LAMP: Lean-based Agentic framework with MCP and Proof Repair
On the map: LLM reasoning → Mathematical reasoning
also in 1 more
Abstract (arXiv)
Large language models are increasingly capable of mathematical reasoning, but the proofs they generate are often unreliable and hard to verify. Interactive theorem provers such as Lean 4 address this by accepting only kernel-checked proofs; however, their reach is bounded by the formalized knowledge available. While Mathlib, a repository of formalized Lean 4 theorems that covers diverse mathematical areas, certain specialized areas remain underrepresented; notably, the domain of Combinatorics on Words (CoW). CoW studies sequences, exploring their properties such as periodicity, borders, conjugacy, and morphisms. As a result, specialized provers, trained on Mathlib-centered data, lack the lemmas to operate in CoW. We present two contributions. First, we introduce a Lean 4 formalization of CoW containing eight modules and 93 declarations of core definitions and foundational lemmas. Second, we present LAMP, a multi-agent framework that synthesizes kernel-verified Lean 4 proofs by providing explicit, structured domain knowledge at inference time through an ontology, rather than by fine-tuning a prover. LAMP coordinates a Planner, Builder, and Verifier with Model Context Protocol based access to a domain-specific CoW ontology. In a suite of 90 CoW theorems that span all eight modules and three difficulty levels, LAMP synthesizes verified proofs for 96.7% of theorems, substantially exceeding both an unscaffolded baseline and existing specialized provers. An ablation shows that removing LAMP's tool-grounded architecture or its Planner/Builder separation each cost roughly 12 percentage points, even with the backbone model held fixed.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 31 of its 53 references that are in the map. First posted on arXiv 27 Jun 2026.
Builds on
31 of 53 references.
Closest ancestors · 6
Same direction, newest first
- 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physics14 Oct
- 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models5 May
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decomposition30 Apr
- 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learning15 Apr
- 2024Lean-STaR: Learning to Interleave Thinking and Proving14 Jul
- 2020Generative Language Modeling for Automated Theorem Proving7 Sep
Other references · 25
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 225
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
- 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Searchcited by 189
- 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 180
- 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 153
- 2022Formal Mathematics Statement Curriculum Learningcited by 141
- 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 140
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
13 more
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 126
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
- 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 115
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 108
- 2024A Survey on Deep Learning for Theorem Provingcited by 55
- 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 52
- 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 35
- 2024InternLM2.5-StepProver: Advancing Automated Theorem Proving via Critic-Guided Searchcited by 34
- 2025Prover Agent: An Agent-Based Framework for Formal Mathematical Proofscited by 28
- 2025LeanExplore: A search engine for Lean 4 declarationscited by 13
- 2025LeanGeo: Formalizing Competitional Geometry problems in Leancited by 7
- 2026TaoBench: Do Automated Theorem Prover LLMs Generalize Beyond MathLib?cited by 5
- 2023Infinite Words and Morphic Languages Formalized in Isabelle/HOLcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026VALG: An Agentic System for ML Theory Researchcited by 1
- 2026VALG: An Agentic System for ML Theory Research13 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026Beyond the Library: An Agentic Framework for Autoformalizing Research Mathematics
- 2026Optimizing the Cost-Quality Tradeoff of Agentic Theorem Provers in Lean
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning
- 2026Advancing Mathematics Research with AI-Driven Formal Proof Search
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks
- 2026OProver: A Unified Framework for Agentic Formal Theorem Proving
- 2026Discover and Prove: An Open-source Agentic Framework for Hard Mode Automated Theorem Proving in Lean 4
- 2026Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematics