Introduction
StepFun-Prover Preview represents a significant advancement in automated theorem proving, achieving a state-of-the-art 70.0% pass@1 rate on the miniF2F-test benchmark. While traditional large language model (LLM) approaches to formal verification often rely on brute-force sampling—generating numerous proof candidates and checking them post-hoc—StepFun-Prover introduces a paradigm of tool-integrated reasoning. By treating the formal verifier (Lean 4) as a "thought partner," the model iteratively refines its proofs based on real-time feedback, mimicking the strategic adjustments made by human mathematicians.
Methodology: Tool-Integrated Reinforcement Learning
The core of StepFun-Prover is an end-to-end training pipeline designed to transform an LLM into an agentic prover. The framework moves beyond binary pass/fail checks at the end of a generation, instead embedding the verification process into the reasoning chain.
Key Components
- Reinforcement Learning (RL): Utilizing Group Relative Policy Optimization (GRPO), the model is trained to generate hybrid content. It uses specific tags to denote Lean 4 code and receives environment feedback within the same trajectory. This encourages the model to find the most efficient path to a correct solution by interpreting error messages.
- Cold Start and SFT Cycles: To overcome the initial sparsity of successful trajectories, the team synthesized a "cold start" dataset using high-quality reasoning trajectories. This was followed by Supervised Fine-Tuning (SFT) to harmonize different reasoning styles (conversational vs. code-heavy) into a base model, $M_1$.
- Iterative Improvement: Successful trajectories from the most challenging problems in the RL phase were recycled back into the SFT process, creating a continuous self-evolution loop.
Experimental Results
The model was evaluated on the miniF2F-test, a standard benchmark of formalized high-school competition math problems. StepFun-Prover-Preview-32B achieved a 70.0% pass@1 rate, outperforming significantly larger models such as DeepSeek-Prover-V2-671B (61.9%) and the previous state-of-the-art, Kimina-Prover-72B (63.9%).
Scaling and Efficiency
A critical finding of the research is the impact of test-time scaling. Performance improved dramatically as the model was allowed more "thinking space" (up to 20,480 tokens) and more interactions with the REPL. While many proofs are solved in a single turn, a substantial portion of successful outcomes on miniF2F required between 2 and 5+ interactions, validating the multi-turn agentic approach. Even the smaller 7B variant of StepFun-Prover achieved 66.0%, demonstrating that the quality of tool integration is a more potent driver of performance than raw parameter count.
Discussion and Future Work
StepFun-Prover demonstrates that LLMs can learn to use formal tools not just for verification, but as active components of the reasoning process. The model's ability to identify syntax errors, recalibrate strategies, and discover human-like "aha!" moments (such as rearranging inequalities into sums of squares) suggests a path toward more rigorous automated reasoning.
Future iterations of this work aim to explore multi-agent systems for complex proofs and the transfer of formal rigor to natural language mathematical reasoning. While currently focused on competition-level math, scaling these techniques to research-level mathematics remains the ultimate objective.
Summary updated