lean-crush

4.3. Trust and Reconstruction🔗

🔗option
crush.trust

Default value: trust

How to discharge the goal on unsat: trust (default), reconstruct, or reconstructOrTrust. On solver unsat, trust closes with Crush.crushSorry, trusting the solver and translation. Reconstruct requires a checked proof and fails if none is found; reconstructOrTrust allows a warned trusted fallback. A trusted discharge records Crush.crushSorry in #print axioms. Checked proofs found before SMT do not use this fallback, even under trust.

This policy applies to solver unsat results. It does not prevent an early checked proof from closing the goal before SMT. Inspect #print axioms to audit the resulting theorem's dependencies. A trusted discharge retains the proofs of asserted facts and evidence used to choose an encoding, including Nonempty and LawfulBEq proofs. Axioms used in that evidence therefore remain visible in the resulting theorem.

🔗option
crush.preReconstruct.ruleSearch

Default value: false

In the pre-SMT pass, search the selected facts for a backward rule that closes the goal, discharging the premises it generates with bounded Lean automation. Disabled by default: the pass then applies only a selected universal rule that closes the goal outright, generating no premises. The rest of the pass — empty-inductive elimination, existential witnesses, the datatype split — runs either way. Both settings apply under every trust policy, so the stages up to the solver call do not depend on whether a kernel-checked proof is required. Enabling it closes goals the solver would otherwise have to reach, and spends time on searches that fail.

With this option off, the early pass still reuses selected facts and premise-free local universal rules, eliminates empty inductive types, searches for existential witnesses, and tries bounded datatype splitting. Enabling it also allows backward application of selected rules with premises to discharge.

The pass runs under every trust policy except checked Alethe-only mode, and backend "none" bypasses it to ensure script emission. These exceptions apply regardless of the rule-search setting. Successful early proofs avoid SMT; unsuccessful searches still cost time.

🔗option
crush.reconstruct

Default value: auto

Which reconstruction path to use when crush.trust asks for one: auto (default — try the Alethe certificate, then the finisher ladder), alethe (cvc5 Alethe certificate only, no ladder fallback), or core (finisher ladder only, ignoring any certificate). Both paths end in a kernel-checked term and neither can close a goal on the solver's word; they differ in reach. Alethe replay handles long chains of trivial inferences (Boolean pigeonhole, deep EUF conflicts) but needs cvc5 ≥ 1.3; the ladder needs one Lean tactic to re-find the whole argument and an unsat core (available from Z3 and cvc5, but not currently Bitwuzla). Under alethe, a goal whose certificate cannot be replayed fails rather than falling back — useful when working on replay itself, where a silent fallback hides whether it worked.

Use "auto" for ordinary checked proofs. "core" uses Z3 or cvc5's unsat core and Lean finishers; Bitwuzla supplies neither a core nor a certificate, so reconstruction then starts from every asserted fact. Under "auto", Alethe replay and the kernel check of its proof may together use half of the heartbeats left, so the finishers still have the rest when replay is slow; "alethe" gives replay all of them. The limit is tested between kernel checks, not during one. The option is ignored under crush.trust "trust".

The configuration also decides what the solver is asked for. Under "trust", a query asks for the verdict alone, plus an unsat core when trace.crush.result is on. A reconstructing policy asks for an unsat core, and for cvc5 an Alethe proof unless crush.reconstruct is "core". Asking for cores and proofs changes solver heuristics, so a goal's verdict or time can differ between policies.

With a reconstructing trust policy, "alethe" bypasses early proofs and requires a replayed cvc5 certificate. It fails on missing certificates or replay errors even under "reconstructOrTrust". This makes it useful for testing replay extensions.

🔗option
crush.reconstruct.trustBvDecide

Default value: false

Allow reconstruction tactics to use bv_decide. This trusts the native code generator used to check bv_decide's LRAT certificate and records an auditable _native.bv_decide.ax_* dependency. Disabled by default, so reconstruction otherwise accepts only kernel-checkable generated declarations.

bv_decide adds a native LRAT-checking dependency, visible as _native.bv_decide.ax_* in #print axioms. This option permits only the standard bit-vector certificate checker with validated reflected inputs; it does not authorize arbitrary native Boolean assertions or custom implementation substitutions in those inputs.

🔗option
crush.reconstruct.trustNativeDecide

Default value: false

Allow core reconstruction to use native_decide. This trusts Lean's native compiler, runtime, and the executable definitions reached by the decision procedure, and records an auditable _native.native_decide.ax_* dependency. Disabled by default.

native_decide is broader: core reconstruction may execute any available decision procedure, trusting the native compiler, runtime, and definitions it reaches. The dependency appears as _native.native_decide.ax_*.

Both options are off by default. Leave them off for kernel-only proof generation; enable trustBvDecide first if a native bitvector checker is acceptable. Neither changes the SMT query or the trusting policy.