Additional dependent tree map operations #
This file defines more operations on Std.DTreeMap
.
We currently do not provide lemmas for these functions.
Updates the values of the map by applying the given function to all mappings, keeping
only those mappings where the function returns some
value.
Equations
- Std.DTreeMap.filterMap f t = { inner := (Std.DTreeMap.Internal.Impl.filterMap f t.inner ⋯).impl, wf := ⋯ }
Instances For
Updates the values of the map by applying the given function to all mappings.
Equations
- Std.DTreeMap.map f t = { inner := Std.DTreeMap.Internal.Impl.map f t.inner, wf := ⋯ }
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the smallest key that is greater than or equal to the given key.
Equations
- t.getEntryGE k h = Std.DTreeMap.Internal.Impl.getEntryGE k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the smallest key that is greater than the given key.
Equations
- t.getEntryGT k h = Std.DTreeMap.Internal.Impl.getEntryGT k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the largest key that is less than or equal to the given key.
Equations
- t.getEntryLE k h = Std.DTreeMap.Internal.Impl.getEntryLE k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the smallest key that is less than the given key.
Equations
- t.getEntryLT k h = Std.DTreeMap.Internal.Impl.getEntryLT k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the smallest key that is greater than or equal to the given key.
Equations
- t.getKeyGE k h = Std.DTreeMap.Internal.Impl.getKeyGE k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the smallest key that is greater than the given key.
Equations
- t.getKeyGT k h = Std.DTreeMap.Internal.Impl.getKeyGT k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the largest key that is less than or equal to the given key.
Equations
- t.getKeyLE k h = Std.DTreeMap.Internal.Impl.getKeyLE k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the smallest key that is less than the given key.
Equations
- t.getKeyLT k h = Std.DTreeMap.Internal.Impl.getKeyLT k t.inner ⋯ h
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the smallest key that is greater than or equal to the given key.
Equations
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the smallest key that is greater than the given key.
Equations
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the largest key that is less than or equal to the given key.
Equations
Instances For
Given a proof that such a mapping exists, retrieves the key-value pair with the smallest key that is less than the given key.