Documentation

Lean.Data.KVMap

inductive Lean.DataValue :

Value stored in a key-value map.

Instances For
    @[export lean_data_value_beq]
    Equations
    @[export lean_mk_bool_data_value]
    Equations
    @[export lean_data_value_bool]
    Equations
    Equations
    • One or more equations did not get rendered due to their size.
    @[export lean_data_value_to_string]
    Equations
    • One or more equations did not get rendered due to their size.
    structure Lean.KVMap :

    A key-value map. We use it to represent user-selected options and Expr.mdata.

    Remark: we do not use RBMap here because we need to manipulate KVMap objects in C++ and RBMap is implemented in Lean. So, we use just a List until we can generate C++ code from Lean code.

    Instances For
      Equations
      Equations
      Equations
      Equations
      Equations
      Equations
      def Lean.KVMap.getNat (m : Lean.KVMap) (k : Lean.Name) (defVal : optParam Nat 0) :
      Equations
      def Lean.KVMap.getInt (m : Lean.KVMap) (k : Lean.Name) (defVal : optParam Int 0) :
      Equations
      Equations
      Equations
      @[inline]
      def Lean.KVMap.forIn {δ : Type w} {m : Type w → Type w'} [inst : Monad m] (kv : Lean.KVMap) (init : δ) (f : Lean.Name × Lean.DataValueδm (ForInStep δ)) :
      m δ
      Equations
      Equations
      • Lean.KVMap.instForInKVMapProdNameDataValue = { forIn := fun {β} [Monad m] => Lean.KVMap.forIn }
      Equations
      Equations
      def Lean.KVMap.eqv (m₁ : Lean.KVMap) (m₂ : Lean.KVMap) :
      Equations
      class Lean.KVMap.Value (α : Type) :
      Instances
        @[inline]
        def Lean.KVMap.get? {α : Type} [inst : Lean.KVMap.Value α] (m : Lean.KVMap) (k : Lean.Name) :
        Equations
        @[inline]
        def Lean.KVMap.get {α : Type} [inst : Lean.KVMap.Value α] (m : Lean.KVMap) (k : Lean.Name) (defVal : α) :
        α
        Equations
        @[inline]
        def Lean.KVMap.set {α : Type} [inst : Lean.KVMap.Value α] (m : Lean.KVMap) (k : Lean.Name) (v : α) :
        Equations
        Equations
        Equations
        Equations
        Equations
        Equations
        Equations
        Equations