Documentation

Lean.Meta.MatchUtil

@[inline]
Instances For
    @[inline]
    def Lean.Meta.matchHelper? {α : Type} (e : Expr) (p? : ExprMetaM (Option α)) :
    Instances For

      Matches e with lhs = (rhs : α) and returns (α, lhs, rhs).

      Instances For

        Return some (α, lhs, rhs) if e is of the form @Eq α lhs rhs or @HEq α lhs α rhs

        Instances For

          Return some (α, lhs) if e is of the form @Eq α lhs rhs or @HEq α lhs β rhs

          Instances For
            Instances For
              Instances For