LAWS.hmap_get_put_other_key: law of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/LAWS.bend as LAWS Lines 582-595 of bend-kit-collections@0.1.4.1/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/LAWS.bend&start_line=582&end_line=595 import Base import bend-kit-collections@0.1.4.1/hmap.bend as M law hmap_get_put_other_key: for ~K: Data for ~V: Data for ~hash: K -> U32 for ~eq: K -> K -> Bool for ~sound: @x: K -> @y: K -> {eq(x, y) == True{} : Bool} -> {x == y : K} for m: M.HMap for wf: {hmap_wf(~K, ~V, ~hash, ~eq, m) == True{} : Bool} for +k2: K for +k: K for ne: {k2 != k : K} for +v: V {M.HMap.get(~K, ~V, ~hash, ~eq, M.HMap.put(~K, ~V, ~hash, ~eq, m, k2, v), k) == M.HMap.get(~K, ~V, ~hash, ~eq, m, k) : Maybe<&2, V>} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/LAWS.bend&name=hmap_wf https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/PROOF.bend&name=h.gp_other https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/PROOF.bend&name=h.ne_f https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap.get https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap.put