LAWS.byte_put_other: law of lawful-words@0.1.0.0 Import: import lawful-words@0.1.0.0/LAWS.bend as LAWS Lines 337-346 of lawful-words@0.1.0.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=lawful-words@0.1.0.0/LAWS.bend&start_line=337&end_line=346 import Base import lawful-words@0.1.0.0/defs.bend as D # Setting byte j leaves every other byte as it was (from j = 4 up, # put_byte changes nothing). law byte_put_other: for w: U32 for i: Nat for j: Nat for b: U32 for hb: {U32.is_lt(b, 256) == True{} : Bool} for hij: {Nat.is_eq(i, j) == False{} : Bool} {D.byte(D.put_byte(w, j, b), i) == D.byte(w, i) : U32} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=lawful-words@0.1.0.0/defs.bend&name=byte https://jend.leeeet.dev/definition.txt?path=lawful-words@0.1.0.0/defs.bend&name=put_byte https://jend.leeeet.dev/definition.txt?path=lawful-words@0.1.0.0/proof_bytes.bend&name=byte_put_other