arXiv:2611.02678cs.AINov 2026

Manuscript Offprint

arXiv:2611.02678

Reap: Uncovering Monte Carlo proof search with a lightweight model

Yutong Wang, Xuanzhi Ren, Tianyi Xu, Ruitong Liu, Jingda Xu, Peihao Wu, Bryan Dai, Bin Dong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

We present Reap, an open framework for learning and analyzing formal proof search in Lean 4. Reap implements policy-value-guided Monte Carlo Tree Search directly in Lean, sharing proof-state transitions, AND-OR search, and replay verification between inference and training rollouts. Structured action logs expose how neural predictions and tactic execution interact during search. Using this framework, we train Reaper-1, a 1.7B-parameter policy-value model, through continued pre-training, supervised tactic learning, and iterative search-based reinforcement learning. Using a separate premise selector, the final system solves 79.9% of miniF2F-test at pass@32, establishing state-of-the-art performance among open provers of comparable size while remaining competitive with substantially larger models. Beyond improved solve rates, our results suggest that RL strengthens the prover's ability to organize proofs around useful intermediate results, favoring substantial advances over repeated local adjustments. This more directed proof construction is accompanied by increasingly elaborate tactic programs: fewer explicit search decisions are needed, while more work is performed within each decision. The resulting trade-off between search effort and tactic execution cost provides insight into how learning changes the prover's problem-solving strategy.

1 INTRODUCTION

Formal theorem proving provides a reliable testbed for studying machine reasoning: proof assistants expose explicit proof states and verify completed proofs with a trusted kernel, grounding reasoning in a precisely defined environment. Recent whole-proof systems, such as Kimina-Prover, DeepSeek-Prover-V2, and Seed-Prover (Wang et al., 2025; Ren et al., 2025; Chen et al., 2025), have achieved strong mathematical performance with increasingly large models and elaborate inference pipelines, while step-level reinforcement learning has substantially improved neural theorem provers (Lample et al., 2022; Hubert et al., 2026). These advances raise a complementary question: beyond solving more theorems, how does training change the mechanism and procedure of proof search? Earlier systems (Lample et al., 2022; Polu & Sutskever, 2020) combined relatively small models with inspectable search environments, whereas more recent high-performing provers (Hubert et al., 2026; Xin et al., 2026; Wu et al., 2025) can be difficult to study independently because of limited implementation access or substantial computational requirements. This motivates our central goal: combining strong theorem-proving performance with an accessible and observable search framework.

*The Reap framework is open-source at https://github.com/frenzymath/reap, and Reaper-1 model weights are available at https://huggingface.co/FrenzyMath/Reaper-1. The training pipeline code is being prepared for public release.

To this end, we introduce Reap, an open framework that implements policy-value-guided Monte Carlo Tree Search (MCTS) directly as a Lean 4 tactic. Reap runs the semantics-critical search loop inside Lean, supporting native proof-state transitions, AND-OR search, runtime budget control, proof reconstruction, and replay verification, while external neural services provide policy and value predictions. The same implementation serves both as an inference-time proof-search tactic and as a rollout engine for reinforcement learning, providing a consistent interface between training and evaluation. Reap also records structured search traces, making the interaction between neural predictions, tactic execution, and search directly observable. Together with the distributed Scythe-rl pipeline for coordinating rollouts, training, and data management, this design provides a lightweight environment for developing and analyzing search-based formal provers.

Figure

Figure 1: Overview of Reap's proof-search and learning interface. A shared policy-value backbone and a fixed premise retriever provide guidance to Monte Carlo Tree Search running inside Lean's tactic monad, where native proof-state transitions are selected, expanded, evaluated, and backed up. Successful proofs are checked by Lean's kernel and exposed through traces and replay; the same interface supports reinforcement-learning rollouts and inference, enabling transparent analysis of how training changes proof structure and computation within each action.

Using this framework, we train Reaper-1, a lightweight 1.7B-parameter policy-value model through continued pre-training, supervised tactic learning, and iterative MCTS-guided reinforcement learning. With a separate premise retriever following the LeanSearch-PS recipe (Shen et al., 2025), Reaper-1 achieves 79.9% pass@32 on miniF2F-test, establishing state-of-the-art performance among open provers of comparable size. This system altogether lowers the hardware barrier and compute budget to inference and experimentation.

Beyond benchmark performance, Reap allows us to study how reinforcement learning reshapes proof search. Our analysis reveals that reinforcement learning changes both the organization of proofs and the granularity of interaction with Lean. Later checkpoints produce shorter top-level proof trajectories while increasingly using structural tactics to introduce intermediate claims and organize local reasoning. Together with our qualitative case studies, this pattern suggests that the model becomes better at identifying useful intermediate structural lemmas and concentrating proof attempts on steps that make substantive progress, reducing reliance on repeated local manipulations. At the same time, individual actions become more compound, incorporating multiple proof operations and solver calls. Shorter trajectories therefore reflect a combination of more focused proof construction and greater computation within each action. These findings highlight the need to examine proof structure and execution cost together when interpreting the benefits of reinforcement learning for proof search.

Our main contributions are as follows:

  • We introduce Reap, an open and observable MCTS proof-search framework implemented directly as a Lean 4 tactic, supporting native proof-state transitions, AND–OR search, proof reconstruction, and replay verification.
  • We develop the Scythe-rl training pipeline and use it to train Reaper-1, a lightweight 1.7B-parameter prover backbone. Integrated with Reap and a separate premise retriever, it achieves 79.9% pass@32 on miniF2F-test and strongly transfer across 4 additional benchmarks, reaching state-of-the-art performance among models of comparable size.
  • Enabled by the high observability of our framework, we provide statistical analyses and detailed case studies to characterize how proof-search behavior evolves during MCTS-guided learning, revealing a transition toward search-interaction compression.

References (57)