def off.len_of

bend-osdev-bytes@0.1.1.0 · PROOF.bend:934

import bend-osdev-bytes@0.1.1.0/PROOF.bend as PROOF
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B

934def off.len_of(xs: List<&2, U32>) -> {List.length(&2, B.OctByte, B.w8s.of_list(xs)) == B.len(xs) : Nat}:
935  match xs:
936    case Nil{}:
937      {==}
938    case Con{h, t}:
939      Equal.cong(Nat, Nat, k => 1n+k, List.length(&2, B.OctByte, B.w8s.of_list(t)), B.len(t), off.len_of(t))

Uses (8)

Used by (1)