# LeanHammer (Carnegie Mellon University)

> 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.

- Kind: hammer
- Access: open-source
- Output: A Lean 4 tactic script (for example aesop, duper or smt calls) that replaces the hammer call
- Checked by: lean4
- In the trusted base: no — 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.
- Domains: mathematics

## Claims

| Claim | Evidence | As of | Source |
|---|---|---|---|
| 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. | self-reported | 2026-02 | [source](https://arxiv.org/abs/2506.07477) |
| LeanPremise lets LeanHammer solve 21% more goals than existing premise selectors. | self-reported | 2026-02 | [source](https://arxiv.org/abs/2506.07477) |

---
Last checked 2026-11-26. Data: [JSON](/automation/leanhammer.json) · Page: [HTML](/automation/leanhammer/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
