Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- instReprTMap = { reprPrec := instReprTMap.repr }
Equations
- instInhabitedTMap = { default := instInhabitedTMap.default }
Let k ∈ α and v, d ∈ β. The function TMap.get(k) returns either the value v assigned to k or d as the default value if no assignment to k.
Instances For
Accumulate the keys of a TMap onto list, used by getKeys.
Equations
- (TMap.empty a).getKeysAux list = list
- (a ↦ a_1; a_2).getKeysAux list = a_2.getKeysAux (a :: list)
Instances For
Accumulate the values of a TMap onto list, used by getValues.
Equations
- (TMap.empty a).getValuesAux list = list
- (a ↦ a_1; a_2).getValuesAux list = a_2.getValuesAux (a_1 :: list)
Instances For
Equations
- instReprTMapOfToString = { reprPrec := fun (t : TMap α β) (x : Nat) => Std.Format.text t.toString }
Notation (k ↦ v; m) for inserting the binding k ↦ v into the total map m.
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.
- instReprPMap.repr PMap.empty prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "PMap.empty")).group prec✝
Instances For
Equations
- instReprPMap = { reprPrec := instReprPMap.repr }
Equations
- instInhabitedPMap = { default := instInhabitedPMap.default }
Let k ∈ α and v ∈ β, then PMap.get(k) returns some v (v wrapped inside an option object), when k is assigned to some v. Return none, else.
Equations
Instances For
Accumulate the keys of a PMap onto list, used by getKeys.
Equations
- PMap.empty.getKeysAux list = list
- p(a ↦ a_1; a_2).getKeysAux list = a_2.getKeysAux (a :: list)
Instances For
Equations
- instReprPMapOfToString = { reprPrec := fun (p : PMap α β) (x : Nat) => Std.Format.text p.toString }
Notation p(k ↦ v; m) for inserting the binding k ↦ v into the partial map m.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If a total map [t] is updated with some k ∈ α and v ∈ β (k ↦ v; t), and we search for some key [k'] with k ≠ k', we get the same result as when we would just search [t] for [k'].
If a partial map [p] is updated with some k ∈ α and v ∈ β (k ↦ v; p), and we search for some key [k'] with k ≠ k', we get the same result as when we would just search [t] for [k'].