← Latest papers
🤖 AI

Process-Verified Reinforcement Learning for Theorem Proving via Lean

This paper introduces a reinforcement learning framework that leverages the Lean proof assistant as a symbolic process oracle to provide dense, fine-grained, and sound tactic-level feedback, significantly improving theorem proving performance on benchmarks like MiniF2F and ProofNet compared to traditional outcome-only reward methods.

Original authors: Minsu Kim, Se-Young Yun

Published 2026-06-19
📖 4 min read☕ Coffee break read

Original authors: Minsu Kim, Se-Young Yun

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to solve complex math puzzles. In the past, the way we taught these robots (which are Large Language Models) was like playing a game of "Hot or Cold" with a very strict referee.

The Old Way: The "Pass or Fail" Coach
Previously, the robot would write out a full solution to a math problem. The referee (a computer program called Lean) would look at the final answer and say only one thing: "You got it right!" or "You got it wrong."

If the robot got it wrong, it had no idea why. Did it make a mistake in the very first step? Did it use the wrong formula in the middle? Or did it just run out of time? It was like a student getting an "F" on a test without seeing the graded paper. The robot had to guess what went wrong and try again, which is slow and inefficient.

The New Way: The "Step-by-Step" Coach
This paper introduces a smarter way to train the robot. Instead of just waiting for the final answer, the Lean referee watches the robot's thinking process step-by-step.

Think of a math proof like building a tower out of blocks.

  • The Old Way: You build the whole tower, and if it falls at the end, the coach just says, "Bad tower." You have to guess which block caused the collapse.
  • The New Way (This Paper): The coach watches you place every single block.
    • If you place a block correctly, the coach gives you a tiny "Good job!" (a positive signal).
    • If you place a block incorrectly, the coach immediately says, "Stop! That block is wrong."
    • Crucially: The coach explains that because that block was wrong, every single block you put on top of it is now invalid, even if they look okay on their own. This is called "First-Error Propagation." It teaches the robot that one mistake ruins the whole foundation.

How It Works in the Paper
The researchers used a method called Reinforcement Learning. Here is the breakdown of their "secret sauce":

  1. The Oracle: They used the Lean proof assistant not just as a final judge, but as a process oracle. This means it acts like a super-teacher that understands the rules of logic perfectly and can spot errors in real-time.
  2. The Feedback Loop: When the robot tries to solve a problem, Lean breaks the solution down into a sequence of "tactics" (small logical steps).
    • If the whole proof works, the robot gets a big reward.
    • If the proof fails, Lean tells the robot exactly which step failed. The robot learns that the steps before the failure were okay, but the step at the failure and everything after it are wrong.
  3. The Credit System: The paper found that the most important part of a step is the very first word (or token) of that step. It's like the "command word" (e.g., "Add," "Multiply," "Assume"). The researchers decided to give the reward or penalty specifically to that first word. This helps the robot learn to pick the right "command" for the job, rather than just memorizing the whole sentence.

The Results
When they tested this new method on famous math benchmarks (MiniF2F and ProofNet):

  • The robots learned faster and made fewer mistakes.
  • They became more stable and reliable than robots trained only on "Pass/Fail" feedback.
  • They performed better than robots that tried to use other, less precise methods to guess which steps were good.

The Big Picture
The main takeaway is that formal proof assistants (like Lean) shouldn't just be used to check answers at the end. They can be used as coaches during the training process. By giving the AI dense, specific feedback on how it thinks, rather than just what it concludes, we can build smarter, more reliable AI for solving hard logical problems.

What They Didn't Do
The paper is very specific about what it achieved. It did not claim to solve all math problems, nor did it claim this method works for writing stories or chatting with people. It is strictly about teaching AI to prove mathematical theorems using the Lean language. They also noted that they didn't compare their method to other "learned" coaches because those require huge amounts of human-written examples that don't exist yet for this specific type of math.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →