LAWS.decb_fits: law of lawful-fields@0.1.1.0 Import: import lawful-fields@0.1.1.0/LAWS.bend as LAWS Lines 169-175 of lawful-fields@0.1.1.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=lawful-fields@0.1.1.0/LAWS.bend&start_line=169&end_line=175 import Base import lawful-fields@0.1.1.0/defs.bend as F # decb (with bound 2^32) is dec when the number fits. law decb_fits: for xs: List<&2, U32> for n: Nat for h: {F.dec(xs) == Some{n} : Maybe<&2, Nat>} for hn: {Nat.is_lt(n, Nat.pow(2n, 32n)) == True{} : Bool} {F.decb(xs, Nat.pow(2n, 32n)) == Some{n} : Maybe<&2, Nat>} 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=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.pow https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=lawful-fields@0.1.1.0/defs.bend&name=dec https://jend.leeeet.dev/definition.txt?path=lawful-fields@0.1.1.0/defs.bend&name=decb https://jend.leeeet.dev/definition.txt?path=lawful-fields@0.1.1.0/proof_list.bend&name=decb_fits