lean-crush

5.2. Equation-Based Support🔗

Exposing Definitions covers u[f], d[f], and their persistent attributes. They are the simplest extension when Lean's defining equations expose enough semantics. Attributes can also be local:

attribute [local crush_unfold] List.length example (xs : List Int) : xs.length = 0 ↔ xs = [] := xs:List Int⊢ xs.length = 0 ↔ xs = [] All goals completed! 🐙

Recursive equations may introduce quantifier loops; a direct theory lowering can avoid them when the Lean operation has an exact SMT counterpart.