← All papers
First page of LeanPRM: Lean-Grounded Process Supervision for Natural Language Proof Verification

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

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

cs.LG Oct 13, 2026 · v3 cs.AI cs.LO
Uses the Lean 4 compiler to check paired formal tactic steps, producing step-level correctness labels for natural-language proofs that train verifiers.
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.

Training step-level verifiers (process reward models) for natural-language proofs needs a correctness label on every step. Such labels are costly to get from humans and cannot be derived from final answers, because proofs have none.

A model writes each proof as numbered natural-language steps, each paired with a Lean tactic, in one shot and without checker feedback. The seed statements come from formal corpora such as NuminaMath-LEAN and Lean-Workbook. Lean compiles the formal proof, and a second model decides whether the first failure is a mathematical error or only a formal-syntax error; syntax failures are patched and rechecked once. Steps are labeled by their tactic outcomes up to the first failure, and Qwen3 verifiers that read only natural language are trained on these labels with GRPO.

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

The resulting corpus has 10,634 proofs with 152K labeled steps and no human annotation. A Qwen3-4B verifier trained on it raises exact step-label accuracy on LeanPRM-Bench from 48.2 to 74.7, compared with 60.3 when trained on PRM800K. It also beats the PRM800K-trained verifier on three of four external benchmarks and improves best-of-N selection on IMO-level problems.

ModelLeanPRM-BenchHard2VerifyProcessBenchPRMBenchIMO-GB
Qwen3-4B (initial)48.237.174.342.553.8
PRM800K-Verifier-4B60.363.183.043.357.0
LeanPRM-Verifier-4B74.772.874.947.466.4
Qwen3-4B verifiers on step-verification benchmarks