6.1. Classify the Failure First
Do not increase every timeout and fuel bound at once. The user-visible result identifies the failing pipeline stage:
-
A missing-executable error means the selected backend's solver is not installed. Install it or select a backend that is; no query ran.
-
A
satresult means the emitted SMT problem is satisfiable. Check selected facts, unfolding, lowering coverage, and then the Lean statement. When the message also reports a refused command, the backend rejected part of the query and the model covers only the rest. -
An
unknownresult or timeout means translation completed but the backend did not decide the query. Reduce the query or change solver settings. -
An
unsatresult followed by a reconstruction error means solving succeeded. Change reconstruction inputs or algorithms, not the SMT encoding. -
A translation error naming a term or sort means the query could not be constructed. Add an equation, lowering, or sort handler.
-
A
kernel-rejectduring replay means a generated proof term was invalid. This is an implementation or extension defect, not a difficult proof.
Solver queries may omit a hypothesis that fails translation. The failed attempt
is rolled back, including generated declarations, retained encoding evidence,
and Lean metavariable assignments; trace.crush reports the omitted fact and
its error. This can reduce the facts available to the solver. Failure to
translate the negated goal remains fatal. Backend "none" also omits unsupported
hypotheses, with a warning for each omitted fact.
Checked reconstruction rejects transitive dependencies on sorryAx and
Crush.crushSorry, including dependencies in the goal's own definitions and in
hypotheses used by a proof. An error such as “depends on forbidden axiom sorryAx
through c” identifies a rejected proof candidate's dependency. Replace c with
a definition whose proof dependencies pass this policy, or provide a proof that
does not use it. Unrelated hypotheses do not block a successful checked proof.
If all attempts fail, reconstructOrTrust reports the same dependency in its
fallback warning. Its result trusts the solver for the whole goal, even when an
ordinary Lean tactic could prove the goal using only a definition whose
termination proof already depends on Crush.crushSorry.
Enable profiling before tuning performance:
set_option crush.profile true
For a capability failure, compare a local trusted run with a reconstructing run.
If both runs reach SMT and return unsat, but only "trust" closes the goal,
focus on proof recovery. Check the profiler or trace.crush.result first:
early checked proofs can bypass SMT, and requesting a certificate can change
the solver's behavior.
Use crush.backend "none" only to inspect translation; it never solves or
closes the goal.