Documentation

Lean.Util.FoldConsts

Instances For
    @[reducible, inline]
    Instances For
      unsafe def Lean.Expr.FoldConstsImpl.fold {α : Type} (f : Lake.Nameαα) (e : Lean.Expr) (acc : α) :
      Instances For
        unsafe def Lean.Expr.FoldConstsImpl.fold.visit {α : Type} (f : Lake.Nameαα) (e : Lean.Expr) (acc : α) :
        Instances For
          @[inline]
          unsafe def Lean.Expr.FoldConstsImpl.foldUnsafe {α : Type} (e : Lean.Expr) (init : α) (f : Lake.Nameαα) :
          α
          Instances For
            @[implemented_by Lean.Expr.FoldConstsImpl.foldUnsafe]
            opaque Lean.Expr.foldConsts {α : Type} (e : Lean.Expr) (init : α) (f : Lake.Nameαα) :
            α

            Apply f to every constant occurring in e once.

            Equations
            Instances For

              Like Expr.getUsedConstants, but produce a NameSet.

              Equations
              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.
                • c.getUsedConstantsAsSet = c.type.getUsedConstantsAsSet ++ match c.value? with | some v => v.getUsedConstantsAsSet | none =>
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For