def li.take_append

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

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

122def li.take_append(+a: List<&2, U32>, +b: List<&2, U32>) -> {B.take(B.len(a), B.append(a, b)) == a : List<&2, U32>}:
123  match a:
124    case Nil{}:
125      {==}
126    case Con{+h, +t}:
127      %Equal.sym(List<&2, U32>, B.take(B.len(t), B.append(t, b)), t, li.take_append(t, b)) : {Con{h, _} == Con{h, t} : List<&2, U32>}
128      {==}

Uses (6)

Used by (1)