def li.mask_append

bend-osdev-mode-core@0.1.0.0 · PROOF.bend:137

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

137def li.mask_append(+a: List<&2, U32>, +b: List<&2, U32>) -> {B.mask(B.append(a, b)) == B.append(B.mask(a), B.mask(b)) : List<&2, U32>}:
138  match a:
139    case Nil{}:
140      {==}
141    case Con{+h, +t}:
142      %li.mask_append(t, b) : {Con{B.byte(h), B.mask(B.append(t, b))} == Con{B.byte(h), _} : List<&2, U32>}
143      {==}

Uses (5)

Used by (1)