HammerCarnegie Mellon University
LeanHammer
Also known as LeanPremise
A hammer for Lean 4: it picks useful lemmas with a neural model, runs several proof searches in parallel, and suggests a tactic script the Lean kernel checks.
Its searches include Aesop, grind, the Zipperposition prover via Lean-auto with the proof rebuilt by Duper, and cvc5 via Lean-SMT. It was evaluated on Mathlib and on projects outside Mathlib.
Does it have to be trusted?
No.
It produces A Lean 4 tactic script (for example aesop, duper or smt calls) that replaces the hammer call, checked by Lean 4. A wrong or malicious answer is rejected by the checker, so a proof's trustworthiness rests on the checker, not on LeanHammer.
Zipperposition and cvc5 are not trusted. A Zipperposition proof is redone in Lean by Duper, and Lean-SMT replays cvc5's proof in Lean, returning any steps it cannot replay as open goals. The Lean kernel checks the final proof.
Claims
Public claims about what it can do, with how well each is backed.
-
On 500 held-out Mathlib theorems, LeanHammer proved 33.3% with its large premise-selection model (trying all four pipeline variants), and 37.3% when combining its three model sizes. The evaluated version used Aesop and Zipperposition with Duper; the current release also uses grind and cvc5.
-
LeanPremise lets LeanHammer solve 21% more goals than existing premise selectors.