Documentation

Lean.ConstMap

@[inline]

findExtraEntryCached? for constants.map₁.

Equations
Instances For
    @[inline]

    findExtraEntryCached? for constants.map₁.

    Equations
    Instances For
      structure Lean.ConstMap :

      The constants of an environment: the imported constants merged from the per-olean prefix trees plus the constants declared in the current module.

      Instances For
        @[instance_reducible]
        Equations

        Similar to find?, but searches the imported constants first. So, the result is correct only if imported constants are never overwritten.

        Equations
        Instances For
          Equations
          Instances For
            @[inline]
            def Lean.ConstMap.foldStage2 {σ : Type u_1} (f : σ → Name → ConstantInfo → σ) (s : σ) (m : ConstMap) :
            σ

            Folds over the constants declared in the current module.

            Equations
            Instances For
              def Lean.ConstMap.foldM {σ : Type} {m : Type → Type} [Monad m] (f : σ → Name → ConstantInfo → m σ) (init : σ) (map : ConstMap) :
              m σ
              Equations
              Instances For
                def Lean.ConstMap.fold {σ : Type u_1} (f : σ → Name → ConstantInfo → σ) (init : σ) (m : ConstMap) :
                σ
                Equations
                Instances For
                  def Lean.ConstMap.forM {m : Type → Type} [Monad m] (map : ConstMap) (f : Name → ConstantInfo → m PUnit) :
                  Equations
                  Instances For
                    @[instance_reducible]
                    Equations
                    • One or more equations did not get rendered due to their size.