Lean-STaR

Bootstraps interleaved informal thoughts and formal Lean tactics via expert iteration and best-first proof search verified by the Lean kernel.

Read the paper

The loop

  1. Proposes

    A language model generates a rationale thought followed by a formal Lean tactic at each node of the proof tree.

  2. Judged by

    The Lean proof assistant checks whether the tactic advances or closes the goal.

  3. Steers

    Best-first tree search explores multiple thought-tactic branches, and verified trajectories are used to fine-tune the model in STaR expert-iteration rounds.

Headline result

Improved miniF2F-test pass@64 in Lean from 30.8% to 46.3%, outperforming tactic-only search baselines.

What this does not prove

Generating natural-language thoughts before every tactic increases token count per node during tree search.

How it generalizes the harness

Best-first proof search and Lean kernel verification filter thought-augmented tactic trajectories to retrain the generator.

Classification

Classification of Lean-STaR
What it proposesProof tactic
Generative modelInternLM2-Math-Base 7B with thought-tactic policy
Algorithmic authorityLean theorem prover and best-first search tree
FeedbackProof state
What gets updatedSearch tree and model weights
When it runsDuring training
ValidityFormal (machine-checked)
EvidenceCode released
LineageOriginal system