| # buf1 = ENCODED_NAT_SIZE, is-encoded(ns -- n, buf0), is-encoded(n, buf1), n ∈ ns, ∀ ns0, buf. # ns0 < # ns → is-encoded(ns0, buf) → # buf = # ns0 * ENCODED_NAT_SIZE ⊦ # ns = 0, ENCODED_NAT_SIZE + # buf0 = # ns * ENCODED_NAT_SIZE, ns = ∅ |
# buf1 = ENCODED_NAT_SIZE, # buf0 = #(ns -- n) * ENCODED_NAT_SIZE, is-encoded(n, buf1), is-encoded(ns -- n, buf0), n ∈ ns, ∀ ns0, buf. # ns0 < # ns → is-encoded(ns0, buf) → # buf = # ns0 * ENCODED_NAT_SIZE ⊦ # ns = 0, ENCODED_NAT_SIZE + # buf0 = # ns * ENCODED_NAT_SIZE, ns = ∅
Used simplifier rules: ⊦ n ∈ ns → #(ns -- n) = # ns - 1; (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ m < 1 ↔ m = 0; (s)%n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0; (s)% ⊦ m < n + 1 ↔ ¬ n < m; (s)% ⊦ ¬ n < n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic Used terms: ns -- n, buf0