Discovering New Theorems via LLMs with In-Context Proof Learning in Lean
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated significant promise in formal theorem proving. In this study, we investigate the ability of LLMs to discover novel theorems and produce verified proofs. We propose a pipeline called Conjecturing-Proving Loop (CPL), which iteratively generates mathematical conjectures and attempts to prove them in Lean 4. A key feature of CPL is that each iteration conditions the LLM on previously generated theorems and their formal proofs, enabling parameter-free improvement of proof strategies via in-context learning. We provide both theoretical and experimental evidence that CPL increases the discovery rate of hard-to-prove theorems compared to frameworks that generate statements and proofs simultaneously. Moreover, our experiments show that reusing the LLM's own formally verified outputs as context consistently improves subsequent proof success, demonstrating the effectiveness of self-generated in-context learning for neural theorem proving. The source code is available at https://github.com/auto-res/ConjecturingProvingLoop.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 19 of its 36 references that are in the map. First posted on arXiv 16 Sep 2025.
Builds on
19 of 36 references.
References · 19
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 287
- 2025R-Zero: Self-Evolving Reasoning LLM from Zero Datacited by 228
- 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 154
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 133
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 119
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 109
- 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Provingcited by 101
- 2021A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Levelcited by 96
- 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 82
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Provingcited by 79
7 more
- 2024Learning Formal Mathematics From Intrinsic Motivationcited by 45
- 2025A Survey of In-Context Reinforcement Learningcited by 39
- 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 37
- 2024InternLM2.5-StepProver: Advancing Automated Theorem Proving via Critic-Guided Searchcited by 34
- 2024Reliable Evaluation and Benchmarks for Statement Autoformalizationcited by 32
- 2025Prover Agent: An Agent-Based Framework for Formal Mathematical Proofscited by 31
- 2025MathSmith: Towards Extremely Hard Mathematical Reasoning by Forging Synthetic Problems with a Reinforced Policycited by 24
Built on by
Citing papers per year: 2026: 2.
2 papers.