LAWS.octets_slice_take: law of bend-osdev-bytes@0.1.1.0 Import: import bend-osdev-bytes@0.1.1.0/LAWS.bend as LAWS Lines 381-387 of bend-osdev-bytes@0.1.1.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bytes@0.1.1.0/LAWS.bend&start_line=381&end_line=387 import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B law octets_slice_take: for +m: Nat for +i: Nat for +n: Nat for +o: B.Octets for h: {Nat.is_le(Nat.add(i, n), m) == True{} : Bool} {B.Octets.slice(i, n, B.Octets.take(m, o)) == B.Octets.slice(i, n, o) : B.Octets} 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.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/PROOF.bend&name=p_slice_take https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.slice https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.take