Manuscript Offprint

arXiv:2610.17697

LeanPRM: Lean-Grounded Process Supervision for Natural Language Proof Verification

Rodney Lafuente-Mercado, Salman Rahman, Jingyan Shen, James Shiffer, Saadia Gabriel, Pavel Izmailov

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

Abstract

AI systems now write long and difficult mathematical proofs, and checking their step-by-step validity is becoming a bottleneck. A learned verifier could check proofs cheaply, but training one requires a correctness label on every step, and such labels are hard to obtain for open-ended proofs. Existing methods take them from human annotators, which is costly, or derive them from final answers, which proofs do not have, and formalizing each proof in Lean requires expert effort. We introduce LeanPRM, a framework that uses the Lean proof assistant to create step-level labels for natural-language proofs. A model writes a natural-language proof together with a paired formal proof, without feedback from Lean. Lean then labels every step, and a second model discards failures caused only by the formal syntax, so that the negative labels mark errors in the mathematics. LeanPRM contains 10,634 proofs with 152K labeled steps and no human annotation. A Qwen3-4B verifier trained on LeanPRM raises exact step-label accuracy on a held-out set of 200 proofs (LeanPRM-Bench) from 48.2 to 74.7, as opposed to 60.3 when the same base model is trained on PRM800K. It also selects better proofs in best-of-N selection on IMO-level problems, and outperforms the PRM800K-trained verifier on three of four external verification benchmarks. Training on LeanPRM improves verifiers at every size from 0.6B to 8B parameters on LeanPRM-Bench, Hard2Verify and IMO-GradingBench. Given the labels need no human annotation, LeanPRM can grow with the supply of formal statements, offering a path to step-level feedback on AI-generated proofs that are hard for humans to check.

Project page: https://rlafuente.com/lean-prm

1 Introduction

As AI systems become more capable, they are increasingly able to produce long and difficult mathematical proofs, including solutions to long-standing open problems [OpenAI, 2026] and complete machine-checked proofs of major theorems such as Fermat's Last Theorem [Anthropic, 2026]. At the same time, it is becoming harder to verify the correctness of these proofs. Existing verifiers, including outcome and process reward models, were built for problems with a short checkable final answer [Lightman et al., 2023, Rahman et al., 2025, Wang et al., 2023], whereas a proof has no final answer to check; its correctness lies in whether every step follows from the ones before it. Formal verification in a proof assistant such as Lean offers an alternative, but translating an informal proof into a formal language is itself difficult and requires expert-level effort. As a result, evaluating the proofs that AI systems produce is hard, especially for non-experts, and reliable supervision for training future systems is scarce.

Correspondence to: rlafuente@utexas.edu, salman@nyu.edu, pi390@nyu.edu

Figure

Figure 1: Overview of LeanPRM, with one example from the corpus running through it. Top row: Stage 1 writes a proof attempt from the theorem statement alone, each natural-language step paired with its formal step, and Lean checks the steps in order. Bottom row: Stage 2 decides whether the first failure lies in the mathematics or only in the formal syntax (syntax failures are patched and rechecked once), and the verifier is trained on the natural-language steps and their labels only. Here step 5 asserts without justification that conjugation by y fixes x, so steps 1 to 4 are labeled correct and steps 5 and 6 incorrect.

A verifier trained on natural-language proofs could check them cheaply, but training it requires a correctness label on every step, and such labels are scarce for open-ended proofs. Human annotation is expensive even for short solutions, as PRM800K needed about 800,000 step labels [Lightman et al., 2023], and proofs are harder to judge. Automatic labels that score a step by whether its continuations reach the correct final answer [Wang et al., 2023] do not apply when there is no final answer. We introduce LeanPRM, a framework that uses the Lean proof assistant [de Moura and Ullrich, 2021], an exact mechanical checker, to create these labels. Each natural-language step is paired with a formal step, Lean checks the formal step, and the result becomes the label of the natural-language step. Lean is used once, to build the training data, and the trained verifier reads only natural language.

We explain how we build the data in Figure 1 and give the full procedure in Section 2. For each theorem statement we ask a model to prove it in a single pass, writing each step in natural language together with its corresponding Lean step. The model never sees the output of running the Lean step it generated. If it could, it would repair its mistakes or give up, and we would lose the genuine errors we wish to label. As a result, the errors in LeanPRM are the model's own, and we don't have to prompt it in order to induce them. Following this we run Lean on the formal proof. Steps before the first failing Lean step are labeled correct, and the failing step and every later step are labeled incorrect. A step can also fail for purely formal reasons while the mathematics is sound, so we use a second model call to read the Lean error message, repair syntax errors once and classify the failure. We keep only proofs whose first failure is a mathematical error. In total we obtain 10,634 labeled proofs with 152,005 step labels and no human annotation, which we release together with LeanPRM-Bench, a held-out benchmark of 200 proofs.

In our experiments, we use LeanPRM to train verifier models for natural language. The results show improved performance relative to the same training process applied to the human labels of PRM800K. With the same model, training recipe and number of updates, LeanPRM-Verifier-4B beats the PRM800K-trained verifier on four of five benchmarks, by 14.4 points of exact step-label accuracy on LeanPRM-Bench and by 9.7 and 9.4 points on Hard2Verify and IMO-GradingBench. It also picks correct proofs more often than random selection in best-of-N on IMO-level problems, where the PRM800K verifier stays close to chance. Training on LeanPRM improves verifiers at every size we tried, from 0.6B to 8B parameters, on LeanPRM-Bench, Hard2Verify and IMO-GradingBench. We provide detailed results in Section 3.

We make three contributions.

• LeanPRM, to our knowledge the first framework that uses Lean to produce step-level correctness labels for natural-language proofs at scale, and its corpus of 10,634 labeled proofs (Section 2).

• LeanPRM-Bench, a held-out benchmark of 200 natural-language proofs with step labels, which we release for evaluating proof verifiers (Section 2.2).

  • A controlled evaluation showing that, with the same recipe and training budget, verifiers trained on Lean-grounded labels outperform verifiers trained on human labels on four of five benchmarks, select better proofs at test time on IMO-level problems, and improve at every model size from 0.6B to 8B on three of the five benchmarks (Section 3).

References (54)