lean-crush

2.4. Results and Trust🔗

The solver can return three kinds of result:

  • unsat means the hypotheses together with the negated goal are inconsistent, so the goal follows.

  • sat means the solver found a model of the encoded facts. lean-crush reports that model and leaves the goal open. Because the encoding is incomplete in places, a model does not necessarily describe a Lean counterexample.

  • unknown, including a timeout, leaves the goal open and reports the solver's reason.

By default, an unsat result closes the goal with the auditable Crush.crushSorry axiom. This is the fast hammer workflow, but it trusts both the translation and solver. Use reconstruction when a kernel-checked proof is required:

set_option crush.trust "reconstruct" in example (x y : Int) (hxy : x = y) (hy : y = 3) : x = 3 := x:Inty:Inthxy:x = yhy:y = 3⊢ x = 3 All goals completed! 🐙

Inspect #print axioms to see which route a theorem used. A trusted SMT discharge lists Crush.crushSorry. An early checked proof can avoid the solver and that axiom even under the default policy; selecting "reconstruct" requires a checked proof when SMT is needed too.

Continue with Using the Tactic for fact selection, unfolding, and reconstruction hints. If a proof fails, follow the diagnostic workflow.