Reinforcement learning for formal-math reasoning with Lean 4. We train a conjecturer to propose useful theorem statements for a prover, then use those generated samples to improve the prover via SFT and RL.
Formal proofs are machine-checkable: the Lean compiler verifies every step, removing ambiguity compared to informal math. This also enables synthetic data generation—you don’t need to hand-annotate ground truth when the compiler can validate it.
We define a base term:
$$ R_{\text{base}} = \mathbf{1}!\left(0 < \text{Pass@16} \le 0.5\right) \cdot \mathbf{1}!\left(0.4 < \cos(\texttt{new}, \texttt{old}) < 0.9\right) \cdot \mathbf{1}!\left(\min \cos(\text{same batch}) < 0.9\right) $$
The $R_{\text{base}}$ term is designed to capture several key aspects :
| Model | Pass@1 | Pass@32 |
|---|---|---|
| DeepSeek-Prover-v1.5-SFT | 30.74 | 47.95 |
| + SFT on conjecturer data | 32.79 | 49.18 |
| + SFT + RL (LeanWorkbook) | 39.75 | 49.18 |
Takeaway: +9 absolute improvement in Pass@1 over the base.
Built on and inspired by: GodelLM, kimina-server, VERL, STP, Levanter, Lean Dojo ,and DeepSeek-Prover-v1.5. Thanks to the authors and maintainers of these projects.
For more details, please see the slides: [https://github.com/Slim205/RL-Lean/blob/master/Harvard%20Work.pdf]
12 followers · starred Jun 2026
Reinforcement learning for formal-math reasoning with Lean 4. We train a conjecturer to propose useful theorem statements for a prover, then use those generated samples to improve the prover via SFT and RL.
Formal proofs are machine-checkable: the Lean compiler verifies every step, removing ambiguity compared to informal math. This also enables synthetic data generation—you don’t need to hand-annotate ground truth when the compiler can validate it.
We define a base term:
$$ R_{\text{base}} = \mathbf{1}!\left(0 < \text{Pass@16} \le 0.5\right) \cdot \mathbf{1}!\left(0.4 < \cos(\texttt{new}, \texttt{old}) < 0.9\right) \cdot \mathbf{1}!\left(\min \cos(\text{same batch}) < 0.9\right) $$
The $R_{\text{base}}$ term is designed to capture several key aspects :
| Model | Pass@1 | Pass@32 |
|---|---|---|
| DeepSeek-Prover-v1.5-SFT | 30.74 | 47.95 |
| + SFT on conjecturer data | 32.79 | 49.18 |
| + SFT + RL (LeanWorkbook) | 39.75 | 49.18 |
Takeaway: +9 absolute improvement in Pass@1 over the base.
Built on and inspired by: GodelLM, kimina-server, VERL, STP, Levanter, Lean Dojo ,and DeepSeek-Prover-v1.5. Thanks to the authors and maintainers of these projects.
For more details, please see the slides: [https://github.com/Slim205/RL-Lean/blob/master/Harvard%20Work.pdf]
12 followers · starred Jun 2026