law find2_view
import lawful-bytes@0.1.1.0/LAWS.bend as LAWSimport Base
import lawful-bytes@0.1.1.0/defs.bend as D
import lawful-bytes@0.1.1.0/bytes.bend as B
103law find2_view:
104 for b: D.Bytes
105 for d: Nat
106 for from: U32
107 for to: U32
108 for c1: U32
109 for c2: U32
110 for h: {D.ok(b, d) == True{} : Bool}
111 for hft: {U32.is_le(from, to) == True{} : Bool}
112 for ht: {Nat.is_le(U32.to_nat(to), D.size(b)) == True{} : Bool}
113 for hc1: {U32.is_lt(c1, 256) == True{} : Bool}
114 for hc2: {U32.is_lt(c2, 256) == True{} : Bool}
115 {U32.to_nat(Pair.snd(D.Bytes, U32, B.find2(b, from, to, c1, c2))) == D.first2(D.view(b), U32.to_nat(from), U32.to_nat(to), c1, c2) : Nat}
Uses (16)
Used by (0)
No other definition uses this definition.