Documentation

Lean.Util.FindExpr

@[extern lean_find_expr]
opaque Lean.Expr.findImpl? (p : ExprBool) (e : Expr) :
@[inline]
def Lean.Expr.find? (p : ExprBool) (e : Expr) :
Equations
Instances For

    Returns true if e occurs in t

    Equations
    Instances For

      Returns type for findExt? function argument.

      Instances For
        @[extern lean_find_ext_expr]
        @[inline]

        Similar to find?, but p can return FindStep.done to interrupt the search on subterms. Remark: Differently from find?, we do not invoke p for partial applications of an application.

        Equations
        Instances For