Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchically
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Mathematical theorem proving is an important testbed for large language models' deep and abstract reasoning capability. This paper focuses on improving LLMs' ability to write proofs in formal languages that permit automated proof verification/evaluation. Most previous results provide human-written lemmas to the theorem prover, which is an arguably oversimplified setting that does not sufficiently test the provers' planning and decomposition capabilities. Instead, we work in a more natural setup where the lemmas that are directly relevant to the theorem are not given to the theorem prover at test time. We design an RL-based training algorithm that encourages the model to decompose a theorem into lemmas, prove the lemmas, and then prove the theorem by using the lemmas. Our reward mechanism is inspired by how mathematicians train themselves: even if a theorem is too challenging to be proved by the current model, a positive reward is still given to the model for any correct and novel lemmas that are proposed and proved in this process. During training, our model proposes and proves lemmas that are not in the training dataset. In fact, these newly-proposed correct lemmas consist of 37.7% of the training replay buffer when we train on the dataset extracted from Archive of Formal Proofs (AFP). The model trained by our RL algorithm outperforms that trained by supervised finetuning, improving the pass rate from 40.8% to 45.5% on AFP test set, and from 36.5% to 39.5% on an out-of-distribution test set.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 33 of its 44 references that are in the map. First posted on arXiv 4 Nov 2024.
Builds on
33 of 44 references.
Closest ancestors · 3
Same direction, newest first
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models5 Feb
- 2023Llemma: An Open Language Model For Mathematics16 Oct
- 2020Generative Language Modeling for Automated Theorem Proving7 Sep
Other references · 30
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2023Let's Verify Step by Stepcited by 3,598
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2017Hindsight Experience Replaycited by 1,096
- 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
- 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
- 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 308
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
- 2022Autoformalization with Large Language Modelscited by 252
18 more
- 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
- 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 153
- 2022Formal Mathematics Statement Curriculum Learningcited by 141
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
- 2023Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigationcited by 123
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 108
- 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 97
- 2021NaturalProofs: Mathematical Theorem Proving in Natural Languagecited by 80
- 2023MedAlign: A Clinician-Generated Dataset for Instruction Following with Electronic Medical Recordscited by 54
- 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
- 2018TacticToe: Learning to Prove with Tacticscited by 43
- 2023Is ChatGPT a Good Teacher Coach? Measuring Zero-Shot Performance For Scoring and Providing Actionable Insights on Classroom Instructioncited by 37
- 2024Proving Theorems Recursivelycited by 25
- 2023Lyra: Orchestrating Dual Correction in Automated Theorem Provingcited by 24
- 2023Reinforcement Learning Tutor Better Supported Lower Performers in a Math Taskcited by 11
Built on by
Citing papers per year: 2025: 12; 2026: 10.
22 papers.
Sort:
By area:
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 270
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Provingcited by 77
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 55
- 2025Prover Agent: An Agent-Based Framework for Formal Mathematical Proofscited by 28
- 2025Solving Inequality Proofs with Large Language Modelscited by 21
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2025ProofAug: Efficient Neural Theorem Proving via Fine-grained Proof Structure Analysiscited by 10
- 2025MPS-Prover: Advancing Stepwise Theorem Proving by Multi-Perspective Search and Data Curationcited by 10
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Predictioncited by 9
- 2025Neural Theorem Proving: Generating and Structuring Proofs for Formal Verificationcited by 4
- 2026DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agentcited by 4
10 more
- 2025LemmaHead: RAG Assisted Proof Generation Using Large Language Modelscited by 3
- 2026MathlibLemma: Folklore Lemma Generation and Benchmark for Formal Mathematicscited by 3
- 2025Scaling Natural-Language Graph-Based Test Time Compute for Automated Theorem Provingcited by 2
- 2026Learning to Reason with Insight for Informal Theorem Provingcited by 2
- 2026FormalTCS: Benchmarking End-to-End Frontier Formal Theoretical Computer Science Research of Large Language Modelscited by 2
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontiercited by 1
- 2026Efficient Test-Time Optimization for Multi-Agent Proof Autoformalizationcited by 1
- 2026Self-Play Pretraining with Zero Datacited by 1
- 2026MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Librariescited by 0
- 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Searchcited by 0
- 2026Self-Play Pretraining with Zero Data24 Sep 2026
- 2026FormalTCS: Benchmarking End-to-End Frontier Formal Theoretical Computer Science Research of Large Language Models20 Aug 2026
- 2026Efficient Test-Time Optimization for Multi-Agent Proof Autoformalization13 Jul 2026
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontier8 Jul 2026
- 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Search4 Jun 2026
- 2026MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Libraries8 May 2026
- 2026DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agent29 Apr 2026
- 2026Learning to Reason with Insight for Informal Theorem Proving17 Apr 2026
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification18 Mar 2026
- 2026MathlibLemma: Folklore Lemma Generation and Benchmark for Formal Mathematics30 Jan 2026
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning26 Sep 2025
- 2025Prover Agent: An Agent-Based Framework for Formal Mathematical Proofs24 Jun 2025
10 more
- 2025Solving Inequality Proofs with Large Language Models9 Jun 2025
- 2025MPS-Prover: Advancing Stepwise Theorem Proving by Multi-Perspective Search and Data Curation16 May 2025
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decomposition30 Apr 2025
- 2025Neural Theorem Proving: Generating and Structuring Proofs for Formal Verification23 Apr 2025
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Prediction25 Feb 2025
- 2025Scaling Natural-Language Graph-Based Test Time Compute for Automated Theorem Proving4 Feb 2025
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Proving31 Jan 2025
- 2025ProofAug: Efficient Neural Theorem Proving via Fine-grained Proof Structure Analysis30 Jan 2025
- 2025LemmaHead: RAG Assisted Proof Generation Using Large Language Models27 Jan 2025
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 270
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Provingcited by 77
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 55
- 2025Solving Inequality Proofs with Large Language Modelscited by 21
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Predictioncited by 9
- 2026MathlibLemma: Folklore Lemma Generation and Benchmark for Formal Mathematicscited by 3
- 2025Scaling Natural-Language Graph-Based Test Time Compute for Automated Theorem Provingcited by 2
- 2026Learning to Reason with Insight for Informal Theorem Provingcited by 2
- 2026Efficient Test-Time Optimization for Multi-Agent Proof Autoformalizationcited by 1
- 2026MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Librariescited by 0
- 2026Efficient Test-Time Optimization for Multi-Agent Proof Autoformalization13 Jul 2026
- 2026MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Libraries8 May 2026
- 2026Learning to Reason with Insight for Informal Theorem Proving17 Apr 2026
- 2026MathlibLemma: Folklore Lemma Generation and Benchmark for Formal Mathematics30 Jan 2026
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning26 Sep 2025
- 2025Solving Inequality Proofs with Large Language Models9 Jun 2025
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decomposition30 Apr 2025
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Prediction25 Feb 2025
- 2025Scaling Natural-Language Graph-Based Test Time Compute for Automated Theorem Proving4 Feb 2025
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Proving31 Jan 2025
- 2026Self-Play Pretraining with Zero Datacited by 1
- 2026Self-Play Pretraining with Zero Data24 Sep 2026
- 2025ProofAug: Efficient Neural Theorem Proving via Fine-grained Proof Structure Analysiscited by 10
- 2025MPS-Prover: Advancing Stepwise Theorem Proving by Multi-Perspective Search and Data Curationcited by 10
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
- 2025Neural Theorem Proving: Generating and Structuring Proofs for Formal Verificationcited by 4
- 2025LemmaHead: RAG Assisted Proof Generation Using Large Language Modelscited by 3
- 2026FormalTCS: Benchmarking End-to-End Frontier Formal Theoretical Computer Science Research of Large Language Modelscited by 2
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontiercited by 1
- 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Searchcited by 0
- 2026FormalTCS: Benchmarking End-to-End Frontier Formal Theoretical Computer Science Research of Large Language Models20 Aug 2026
- 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontier8 Jul 2026
- 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Search4 Jun 2026
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification18 Mar 2026
- 2025MPS-Prover: Advancing Stepwise Theorem Proving by Multi-Perspective Search and Data Curation16 May 2025
- 2025Neural Theorem Proving: Generating and Structuring Proofs for Formal Verification23 Apr 2025
- 2025ProofAug: Efficient Neural Theorem Proving via Fine-grained Proof Structure Analysis30 Jan 2025
- 2025LemmaHead: RAG Assisted Proof Generation Using Large Language Models27 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2025ProofCompass: Enhancing Specialized Provers with LLM Guidance
- 2025DeepTheorem: Advancing LLM Reasoning for Theorem Proving Through Natural Language and Reinforcement Learning
- 2025Steering LLMs for Formal Theorem Proving
- 2025Towards Solving More Challenging IMO Problems via Decoupled Reasoning and Proving
- 2026Learning to Disprove: Formal Counterexample Generation with Large Language Models
- 2026MA-ProofBench: A Two-Tiered Evaluation of LLMs for Theorem Proving in Mathematical Analysis
- 2024SubgoalXL: Subgoal-based Expert Learning for Theorem Proving
- 2025Can Large Language Models Learn Formal Logic? A Data-Driven Training and Evaluation Framework