Documentation

Lean.Level

def Nat.imax (n : Nat) (m : Nat) :
Equations
def Lean.Level.Data :
Type

Cached hash code, cached results, and other data for Level. hash : 32-bits hasMVar : 1-bit hasParam : 1-bit depth : 24-bits

Equations
Equations
def Lean.Level.mkData (h : UInt64) (depth : optParam Nat 0) (hasMVar : optParam Bool false) (hasParam : optParam Bool false) :
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
structure Lean.LevelMVarId :
Type

Universe level metavariable Id

Instances For
    @[inline]
    abbrev Lean.LMVarId :
    Type

    Short for LevelMVarId

    Equations
    Equations
    def Lean.LMVarIdSet :
    Type
    Equations
    instance Lean.instForInLMVarIdSetLMVarId {m : Type u_1Type u_2} :
    Equations
    def Lean.LMVarIdMap (α : Type) :
    Type
    Equations
    Equations
    instance Lean.instForInLMVarIdMapProdLMVarId {m : Type u_1Type u_2} {α : Type} :
    Equations
    Equations
    • Lean.instInhabitedLMVarIdMap = { default := }
    inductive Lean.Level :
    Type
    Instances For
      @[implementedBy Lean.Level.data._override]
      Equations
      @[export lean_level_hash]
      Equations
      @[export lean_level_mk_zero]
      Equations
      Equations
      Equations
      Equations
      Equations
      Equations
      Equations
      Equations
      Equations
      • One or more equations did not get rendered due to their size.
      Equations
      Equations
      @[extern lean_level_eq]

      occurs u l return true iff u occurs in l.

      Equations
      Equations
      • One or more equations did not get rendered due to their size.

      A total order on level expressions that has the following properties

      • succ l is an immediate successor of l.
      • zero is the minimal element. This total order is used in the normalization procedure.
      Equations

      Return true if u and v denote the same level. Check is currently incomplete.

      Equations
      Equations
      • One or more equations did not get rendered due to their size.
      Equations
      • One or more equations did not get rendered due to their size.
      Equations
      • One or more equations did not get rendered due to their size.

      The update functions try to avoid allocating new values using pointer equality. Note that if the update*! functions are used under a match-expression, the compiler will eliminate the double-match.

      @[implementedBy _private.Lean.Level.0.Lean.Level.updateSucc!Impl]
      Equations
      • One or more equations did not get rendered due to their size.
      @[implementedBy _private.Lean.Level.0.Lean.Level.updateMax!Impl]
      Equations
      • One or more equations did not get rendered due to their size.
      @[implementedBy _private.Lean.Level.0.Lean.Level.updateIMax!Impl]
      Equations
      • One or more equations did not get rendered due to their size.
      @[specialize #[]]
      Equations
      @[inline]
      abbrev Lean.LevelMap (α : Type) :
      Type
      Equations
      @[inline]
      abbrev Lean.PersistentLevelMap (α : Type) :
      Type
      Equations
      Equations
      @[inline]
      abbrev Nat.toLevel (n : Nat) :
      Equations