lean-crush

4.2. Solver Process🔗

🔗option
crush.backend

Default value: z3

SMT backend to invoke: z3, cvc5, bitwuzla, or none (emit script only).

The available values are "z3", "cvc5", "bitwuzla", and "none". The "none" backend performs collection, normalization, monomorphization, instantiation, and translation, but does not start a solver or close the goal. It is intended for inspecting or exporting the generated SMT-LIB. Unsupported hypotheses are omitted with a warning naming the fact and its translation failure. Failure to translate the negated goal remains an error.

For example, crush can emit a query while an ordinary Lean proof closes the goal afterward:

set_option crush.backend "none" in example (p : Prop) (h : p) : p := p:Proph:p⊢ p crush: backend is `none`; emitted 4 commands, no solver run.p:Proph:p⊢ p All goals completed! 🐙
🔗option
crush.timeout

Default value: 10

Per-call solver wall-clock limit in seconds; 0 means no limit. Each query gets what is left of it as the solver's own limit, and every query of the call is killed 2 s after it. A ground-instance query that runs first gets at most half of it, in whole seconds; the quantified fallback after it is skipped when less than one second is left.

The timeout is a per-call limit. Each solver query gets what is left of it as the solver's own limit, and every query of the call is killed two seconds after it. A ground-instance query that runs first gets at most half of the timeout, rounded down to whole seconds but at least one, so the quantified fallback after it keeps the rest. The fallback is skipped when less than a second of the timeout remains. One crush call spends at most the timeout plus two seconds in solvers. A timeout of 0 means no limit: no backend gets a time-limit flag, and no query is killed.

🔗option
crush.save

Default value:

If nonempty, write the generated SMT-LIB script to this path before solving.

If a quantified fallback is needed, the saved file contains the final query. With backend "none", it contains the complete translated fact set because no solver verdict is available to justify omitting quantified fallbacks. An early checked proof produces no script and does not update this file; use "none" when script emission is required.

🔗option
crush.additionalArgs

Default value:

Extra space-separated command-line flags passed verbatim to the solver.

The string is split at literal spaces, with surrounding ASCII whitespace trimmed from each resulting argument. There is no shell-style quoting layer, so use this option for simple individual flags rather than arguments containing spaces.

🔗option
crush.logic

Default value:

Override the auto-detected SMT-LIB logic string (e.g. "UFNIA"). Empty = auto.

Leave this empty unless a solver requires a narrower logic or a generated query is being debugged. The automatic logic is ALL, or HO_ALL for native higher-order cvc5. Bitwuzla maps the automatic choice to QF_AUFBV, its supported fragment. An explicit crush.logic value is authoritative and is not rewritten for the selected backend.