Documentation

Lean.Meta.Tactic.Cbv.CbvEvalExt

@[cbv_eval] Attribute and Extension #

Environment extension for user-provided cbv rewrite rules. Each theorem is converted to a Sym.Simp.Theorem (precomputed Pattern + DiscrTree key) and indexed by the head constant on its LHS.

@[cbv_eval ←] inverts the theorem: an auxiliary lemma with swapped sides is created via mkAuxLemma.

Entry of the CbvEvalExtension. Consists of the precomputed Theorem object and a name of the head function appearing on the left-hand side of the theorem.

Instances For

    Create a CbvEvalEntry from a theorem declaration. When inv = true, creates an auxiliary lemma with swapped sides so the theorem can be used for right-to-left rewriting.

    Instances For
      @[reducible, inline]
      Instances For