mlsanityData to 7 Oct 2026

Formal Theorem Proving by Rewarding LLMs to Decompose Proofs Hierarchically

arXiv 2411.01829 ↗First posted 4 Nov 2024cs.LGcited by 22

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

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models5 Feb
  2. 2023Llemma: An Open Language Model For Mathematics16 Oct
  3. 2020Generative Language Modeling for Automated Theorem Proving7 Sep

Other references · 30

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  3. 2023Let's Verify Step by Stepcited by 3,598
  4. 2022Large Language Models Encode Clinical Knowledgecited by 1,807
  5. 2017Hindsight Experience Replaycited by 1,096
  6. 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
  7. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
  8. 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
  9. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
  10. 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 308
  11. 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
  12. 2022Autoformalization with Large Language Modelscited by 252
18 more
  1. 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 225
  2. 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
  3. 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Searchcited by 189
  4. 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 153
  5. 2022Formal Mathematics Statement Curriculum Learningcited by 141
  6. 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
  7. 2023Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigationcited by 123
  8. 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
  9. 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 108
  10. 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 97
  11. 2021NaturalProofs: Mathematical Theorem Proving in Natural Languagecited by 80
  12. 2023MedAlign: A Clinician-Generated Dataset for Instruction Following with Electronic Medical Recordscited by 54
  13. 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
  14. 2018TacticToe: Learning to Prove with Tacticscited by 43
  15. 2023Is ChatGPT a Good Teacher Coach? Measuring Zero-Shot Performance For Scoring and Providing Actionable Insights on Classroom Instructioncited by 37
  16. 2024Proving Theorems Recursivelycited by 25
  17. 2023Lyra: Orchestrating Dual Correction in Automated Theorem Provingcited by 24
  18. 2023Reinforcement Learning Tutor Better Supported Lower Performers in a Math Taskcited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 12; 2026: 10.

22 papers.

Sort:

By area:

  1. 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 270
  2. 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Provingcited by 77
  3. 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 55
  4. 2025Prover Agent: An Agent-Based Framework for Formal Mathematical Proofscited by 28
  5. 2025Solving Inequality Proofs with Large Language Modelscited by 21
  6. 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
  7. 2025ProofAug: Efficient Neural Theorem Proving via Fine-grained Proof Structure Analysiscited by 10
  8. 2025MPS-Prover: Advancing Stepwise Theorem Proving by Multi-Perspective Search and Data Curationcited by 10
  9. 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
  10. 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Predictioncited by 9
  11. 2025Neural Theorem Proving: Generating and Structuring Proofs for Formal Verificationcited by 4
  12. 2026DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agentcited by 4
10 more
  1. 2025LemmaHead: RAG Assisted Proof Generation Using Large Language Modelscited by 3
  2. 2026MathlibLemma: Folklore Lemma Generation and Benchmark for Formal Mathematicscited by 3
  3. 2025Scaling Natural-Language Graph-Based Test Time Compute for Automated Theorem Provingcited by 2
  4. 2026Learning to Reason with Insight for Informal Theorem Provingcited by 2
  5. 2026FormalTCS: Benchmarking End-to-End Frontier Formal Theoretical Computer Science Research of Large Language Modelscited by 2
  6. 2026From Solvers to Research: Large Language Model-Driven Formal Mathematics at the Research Frontiercited by 1
  7. 2026Efficient Test-Time Optimization for Multi-Agent Proof Autoformalizationcited by 1
  8. 2026Self-Play Pretraining with Zero Datacited by 1
  9. 2026MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Librariescited by 0
  10. 2026Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Searchcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025ProofCompass: Enhancing Specialized Provers with LLM Guidance
  2. 2025DeepTheorem: Advancing LLM Reasoning for Theorem Proving Through Natural Language and Reinforcement Learning
  3. 2025Steering LLMs for Formal Theorem Proving
  4. 2025Towards Solving More Challenging IMO Problems via Decoupled Reasoning and Proving
  5. 2026Learning to Disprove: Formal Counterexample Generation with Large Language Models
  6. 2026MA-ProofBench: A Two-Tiered Evaluation of LLMs for Theorem Proving in Mathematical Analysis
  7. 2024SubgoalXL: Subgoal-based Expert Learning for Theorem Proving
  8. 2025Can Large Language Models Learn Formal Logic? A Data-Driven Training and Evaluation Framework