- visitedConsts : Lean.NameHashSet
Instances For
@[inline, reducible]
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
unsafe def
Lean.Expr.FoldConstsImpl.fold
{α : Type}
(f : Lake.Name → α → α)
(size : USize)
(e : Lean.Expr)
(acc : α)
:
Equations
- Lean.Expr.FoldConstsImpl.fold f size e acc = Lean.Expr.FoldConstsImpl.fold.visit f size e acc
Instances For
unsafe def
Lean.Expr.FoldConstsImpl.fold.visit
{α : Type}
(f : Lake.Name → α → α)
(size : USize)
(e : Lean.Expr)
(acc : α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
unsafe def
Lean.Expr.FoldConstsImpl.foldUnsafe
{α : Type}
(e : Lean.Expr)
(init : α)
(f : Lake.Name → α → α)
:
α
Equations
Instances For
@[implemented_by Lean.Expr.FoldConstsImpl.foldUnsafe]
Apply f
to every constant occurring in e
once.
Equations
- Lean.Expr.getUsedConstants e = Lean.Expr.foldConsts e #[] fun (c : Lake.Name) (cs : Array Lake.Name) => Array.push cs c
Instances For
Like Expr.getUsedConstants
, but produce a NameSet
.
Equations
- Lean.Expr.getUsedConstantsAsSet e = Lean.Expr.foldConsts e ∅ fun (c : Lake.Name) (cs : Lean.NameSet) => Lean.NameSet.insert cs c
Instances For
Return all names appearing in the type or value of a ConstantInfo
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.