lean-crush

1.1. What Happens During crush🔗

  1. Collect. Select local hypotheses, explicit lemmas, relevant defining equations, and optional library premises.

  2. Try an early proof. Reuse selected facts or apply bounded, kernel-checked Lean reasoning.

  3. Normalize. Rewrite selected definitions and expose constructor structure with proofs of the rewrites.

  4. Specialize. Instantiate polymorphic facts at concrete types, then generate bounded ground instances of eligible quantified facts.

  5. Translate. Produce SMT sorts, terms, declarations, and axioms. Functions without an encoding or defining equations remain uninterpreted.

  6. Solve. Ask the selected backend whether the facts contradict the negated goal. A ground-only query may retry with retained quantifiers.

  7. Discharge. Accept unsat under the trust policy, replay an Alethe certificate, or reconstruct from the unsat core. sat reports a model; unknown leaves the goal open.

An early proof skips SMT even under the default trusting policy. Backend "none" and checked Alethe-only mode bypass that shortcut. The early pass is otherwise independent of the trust policy; its optional rule search is controlled by crush.preReconstruct.ruleSearch. Requesting a certificate can also affect solver time, so the cost of checked proofs is not confined to the final stage.