Hammering with Vampire in Lean
Using automated theorem provers as hammers in dependent-type-theory ITPs such as Lean is hard. Goals must be translated into first- or higher-order logic, and the external proofs must be reconstructed so the kernel can check them.
Vampire-Hammer is a Lean tactic. It first tries lightweight Lean-native reasoning. If that fails, it uses Lean-auto to monomorphize goals and premises and export them to higher-order (THF) or first-order (TF0) TPTP. Vampire is extended to output annotated TSTP proofs, which are reconstructed in Lean as compositions of local lemmas and checked by the kernel.
With a 10-second budget on 196,083 eligible Mathlib theorems, given proof-derived premises, Vampire-Hammer solves 21,158 problems that no other evaluated tool solves. The comparison tools are Duper, Lean-auto, Aesop, simp_all and grind.
