law of_list_view

lawful-bytes@0.1.1.0 · LAWS.bend:279

import lawful-bytes@0.1.1.0/LAWS.bend as LAWS
import Base
import lawful-bytes@0.1.1.0/defs.bend as D
import lawful-bytes@0.1.1.0/bytes.bend as B

279law of_list_view:
280  for d: Nat
281  for xs: List<&2, U32>
282  for hd: {Nat.is_le(d, 29n) == True{} : Bool}
283  for hn: {Nat.is_le(List.length(&2, U32, xs), Nat.mul(4n, Nat.pow(2n, d))) == True{} : Bool}
284  for hb: {D.all_bytes(xs) == True{} : Bool}
285  {D.view(B.of_list(d, xs)) == xs : List<&2, U32>}

Uses (12)

Used by (0)

No other definition uses this definition.