HammerŁukasz Czajka, Cezary Kaliszyk and contributors

CoqHammer

Also known as sauto

A hammer for Rocq: it sends goals to external provers, then rebuilds the proof with its own tactics, so the final proof is ordinary Rocq.

Open source mathematics, software

Its hammer tactic picks likely useful lemmas with machine learning, translates the goal to external provers (Vampire, CVC4, E or Z3), and, when one succeeds, suggests a replacement tactic built on CoqHammer's own sauto proof search. That tactic makes no external calls.

Does it have to be trusted?

No.

It produces A Rocq tactic call (sauto family) that replaces the hammer call, checked by Rocq. A wrong or malicious answer is rejected by the checker, so a proof's trustworthiness rests on the checker, not on CoqHammer.

The external provers are only used as hints. The proof is rebuilt in Rocq by the sauto tactics without extra axioms, and Rocq's kernel checks it. The translation to the external provers is not sound in general, but this only affects whether a proof is found, not whether an accepted proof is correct.

Claims

Public claims about what it can do, with how well each is backed.

  1. Proved 40.8% of the theorems of the Coq standard library in push-button mode, in about 40 s of real time on an 8-CPU machine.

    Self-reported · Feb 2018 · source

  2. With sauto for proof reconstruction, the hammer succeeded on 39.1% of problems from a collection of Coq libraries and 25.6% from CompCert; 87-97% of the problems solved by the external provers could be re-proved in Coq.

    Self-reported · Jun 2020 · source

esc