def li.len_append

bend-osdev-cipher-modes@0.1.0.0 · PROOF.bend:243

import bend-osdev-cipher-modes@0.1.0.0/PROOF.bend as PROOF
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B

243def li.len_append(+a: List<&2, U32>, +b: List<&2, U32>) -> {B.len(B.append(a, b)) == Nat.add(B.len(a), B.len(b)) : Nat}:
244  match a:
245    case Nil{}:
246      {==}
247    case Con{+h, +t}:
248      %li.len_append(t, b) : {1n+B.len(B.append(t, b)) == 1n+_ : Nat}
249      {==}

Uses (6)

Used by (2)