[Paper Review] Reinforcement Learning of Theorem Proving
This paper introduces rlCoP, a reinforcement learning-enhanced theorem prover that replaces traditional domain-specific heuristics with Monte-Carlo tree search and policy/value networks trained on proof corpora. After ten learning iterations, it solves 40% more unseen mathematical problems than baseline provers using the same inference budget, marking a significant leap in generalizable automated reasoning without human-designed search rules.
We introduce a theorem proving algorithm that uses practically no domain heuristics for guiding its connection-style proof search. Instead, it runs many Monte-Carlo simulations guided by reinforcement learning from previous proof attempts. We produce several versions of the prover, parameterized by different learning and guiding algorithms. The strongest version of the system is trained on a large corpus of mathematical problems and evaluated on previously unseen problems. The trained system solves within the same number of inferences over 40% more problems than a baseline prover, which is an unusually high improvement in this hard AI domain. To our knowledge this is the first time reinforcement learning has been convincingly applied to solving general mathematical problems on a large scale.
Motivation & Objective
- To develop a general-purpose automated theorem prover that minimizes reliance on hand-crafted proof search heuristics.
- To investigate whether reinforcement learning can significantly improve performance in automated mathematical reasoning on large-scale formal problem sets.
- To evaluate the effectiveness of combining Monte-Carlo tree search with policy and value networks trained on historical proof attempts.
- To demonstrate that end-to-end learning from proof corpora can outperform traditional ATP systems in solving novel, nontrivial mathematical theorems.
- To establish a new paradigm for automated reasoning by replacing heuristic-driven search with data-driven, learned guidance.
Proposed method
- The system uses a bare connection tableau prover with no domain-specific heuristics, relying solely on nondeterministic extension and reduction steps.
- Monte-Carlo Tree Search (MCTS) is employed to guide proof search by simulating many trajectories from the current state.
- A policy network predicts the next action (tableau extension) based on the current state, while a value network estimates the probability of success from a given state.
- The policy and value networks are trained via reinforcement learning using rewards from successful proof attempts in a feedback loop over multiple training iterations.
- The system performs iterative learning: each proof attempt generates new training data, refining the policy and value functions over time.
- The final system, rlCoP, is evaluated on a large corpus of Mizar Mathematical Library problems, comparing success rates against baseline provers under identical inference limits.
Experimental results
Research questions
- RQ1Can a theorem prover trained via reinforcement learning outperform traditional ATP systems that rely on hand-crafted heuristics?
- RQ2To what extent can Monte-Carlo tree search guided by learned policies and value functions improve proof search in connection tableau systems?
- RQ3Does end-to-end learning from proof corpora lead to generalizable improvements in solving previously unseen mathematical problems?
- RQ4How much performance gain can be achieved by replacing heuristic-based search with data-driven, learned guidance in automated theorem proving?
- RQ5Can reinforcement learning be effectively scaled to solve complex, nontrivial mathematical theorems in a large formal library?
Key findings
- The strongest version of rlCoP solves over 40% more previously unseen problems than the baseline leanCoP prover when using the same number of inference steps.
- After ten learning iterations, rlCoP significantly outperforms the baseline, demonstrating a substantial and measurable improvement in proof-solving capability.
- The system successfully proves three nontrivial theorems—TOPREALC:10, WAYBEL_0:28, and FUNCOP_1:34—that remain unsolved by standard mlCoP even with a 4 million inference limit.
- The MCTS tree for WAYBEL_0:28 shows that the learned policy successfully navigates complex proof paths, with high visit counts and reward values at nodes leading to the solution.
- The improvement is attributed to effective policy and value network training, which guide MCTS to explore more promising proof branches without relying on domain-specific heuristics.
- This work demonstrates, for the first time at scale, that reinforcement learning can be successfully applied to general mathematical problem solving in automated reasoning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.