lean-crush

4.7. Unfolding and Premises🔗

🔗option
crush.autoUnfold

Default value: true

Automatically fold the equation lemmas of @[crush_unfold]/@[crush_defeq] definitions reachable from the goal into each query (like always-on u[…]/d[…]).

This controls definitions marked with @[crush_unfold] or @[crush_defeq], as well as preprocessing-only normalization of predicates marked with Lean's standard @[reducible] attribute. Recursive reducible predicates use constructor-specific rewrite equations, and no reducible equation is asserted as a quantified SMT fact. Explicit u[...] and d[...] hints still apply when automatic unfolding is disabled.

🔗option
crush.premises

Default value: false

Use Lean's registered LibrarySuggestions engine to add relevant library theorems to crush calls. A hint list keeps premise selection; crush only [...] disables it, and -foo excludes one theorem.

🔗option
crush.premises.max

Default value: 32

Maximum number of LibrarySuggestions premises added when crush.premises is enabled.

Premise selection applies only to bare crush. Writing an explicit fact list, including crush [*], disables automatic library selection so the call remains reproducible and user-controlled.