TacticZero: Learning to Prove Theorems from Scratch with Deep Reinforcement Learning
Minchao Wu, Michael Norrish, Christian Walder, Amir Dezfouli
Abstract
We propose a novel approach to interactive theorem-proving (ITP) using deep reinforcement learning. The proposed framework is able to learn proof search strategies as well as tactic and arguments prediction in an end-to-end manner. We formulate the process of ITP as a Markov decision process (MDP) in which each state represents a set of potential derivation paths. This structure allows us to introduce a novel backtracking mechanism which enables the agent to efficiently discard (predicted) dead-end derivations and restart from promising alternatives. We implement the framework in the HOL4 theorem prover. Experimental results show that the framework outperforms existing automated theorem provers (i.e. hammers) available in HOL4 when evaluated on unseen problems. We further elaborate the role of key components of the framework using ablation studies.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Autoformalization with Large Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Autoformalization with Large Language Models cites Learning Heuristics for Quantified Boolean Formulas through Reinforcement Learning
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites TacTok: semantics-aware proof synthesis
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites Autoformalization with Large Language Models
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites Diversity-Driven Automated Formal Verification
- Diversity-Driven Automated Formal Verification cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Diversity-Driven Automated Formal Verification cites TacTok: semantics-aware proof synthesis
- QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement Learning cites TacTok: semantics-aware proof synthesis
- QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement Learning cites Baldur: Whole-Proof Generation and Repair with Large Language Models
- QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement Learning cites Diversity-Driven Automated Formal Verification
- Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Proof Artifact Co-Training for Theorem Proving with Language Models
- Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites TacTok: semantics-aware proof synthesis
- Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Autoformalization with Large Language Models
- Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Baldur: Whole-Proof Generation and Repair with Large Language Models
- Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites Diversity-Driven Automated Formal Verification
- Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification cites QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement Learning
Cited by top-tier papers10
- Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations
- Baldur: Whole-Proof Generation and Repair with Large Language ModelsEmily First, Markus N. Rabe, Talia Ringer, Yuriy BrunFSE 2023 · 89 citations
- Diversity-Driven Automated Formal VerificationEmily First, Yuriy BrunICSE 2022 · 28 citations
- Rango: Adaptive Retrieval-Augmented Proving for Automated Software VerificationKyle Thompson, Nuno Saavedra, Pedro Carrott, Kevin Fisher et al.ICSE 2025 · 4 citations
- QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement LearningAlex Sanchez-Stern, Abhishek Varghese, Zhanna Kaufman, Shizhuo Dylan Zhang et al.ICSE 2025 · 2 citations
Builds on3
- Proof Artifact Co-Training for Theorem Proving with Language ModelsJesse Michael Han, Jason Rute, Yuhuai Wu, Edward W. Ayers et al.ICLR 2022 · 149 citations
- TacTok: semantics-aware proof synthesisEmily First, Yuriy Brun, Arjun GuhaOOPSLA 2020 · 39 citations
- Learning Heuristics for Quantified Boolean Formulas through Reinforcement LearningGil Lederman, Markus N. Rabe, Sanjit A. Seshia, Edward A. LeeICLR 2020 · 3 citations
Related papers
- A Deep Reinforcement Learning Approach to First-Order Logic Theorem ProvingMaxwell Crouse, Ibrahim Abdelaziz, Bassem Makni, Spencer Whitehead et al.AAAI 2021 · 41 citations
- BAIT: Benchmarking (Embedding) Architectures for Interactive Theorem-ProvingSean Lamont, Michael Norrish, Amir Dezfouli, Christian Walder et al.AAAI 2024 · 3 citations
- Lean-Auto: An Interface Between Lean 4 and Automated Theorem ProversYicheng Qian, Joshua Clune, Clark W. Barrett, Jeremy AvigadCAV 2025 · 6 citations
- Thor: Wielding Hammers to Integrate Language Models and Automated Theorem ProversAlbert Qiaochu Jiang, Wenda Li, Szymon Tworkowski, Konrad Czechowski et al.NeurIPS 2022 · 154 citations
- Proving Theorems using Incremental Learning and Hindsight Experience ReplayEser Aygün, Ankit Anand, Laurent Orseau, Xavier Glorot et al.ICML 2022 · 22 citations
