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

Returns true if e occurs in t

Equations

Returns type for findExt? function argument.

@[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