MapBridge.put_bit: def of bend-collections-laws-math@1.0.0.0
Import: import bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/map_bridge.bend as MapBridge
Lines 81-87 of bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/map_bridge.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/proofs/lib/lemmas/proofs/map_bridge.bend&start_line=81&end_line=87
import Base
def put_bit(-a: Quant, -V: Kind(a), x: V, p2: Nat, lo: Map, hi: Map, kb: String & Bool) -> Map:
(key2, b) = kb
match b:
case False{}:
MNode{p2, Map.put(a, V, lo, key2, x), hi}
case True{}:
MNode{p2, lo, Map.put(a, V, hi, key2, x)}
Uses (7):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.put
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String