| # pebs0 = n0 + m1, # pebs = n0 + m1, pebs[m1] = mkpeb(buf, m, true), mtd-cons(pebs0), mtd-cons(pebs), n ≤ m1, n < m1 → ubi-io-peb-initial(pebs[n]) ⊦ n0 = 0, ubi-io-peb-initial(subarray(pebs, 0, m1 + 1)[n]) |
⊦ n0 < n → subarray(pebs, m, n)[n0] = pebs[m + n0]
# pebs = n0 + m1, # pebs0 = n0 + m1, pebs[m1] = mkpeb(buf, m, true), n < m1 + 1, mtd-cons(pebs), mtd-cons(pebs0), n ≤ m1, n < m1 → ubi-io-peb-initial(pebs[n]) ⊦ n0 = 0, ubi-io-peb-initial(pebs[0 + n])
Used simplifier rules: ⊦ m + n = m + n0 ↔ n = n0; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ m < n + 1 ↔ ¬ n < m; (s)% ⊦ m ≤ n → (n < m ↔ false); (s)%# pebs = n ⊦ subarray(pebs, 0, n) = pebs; (s) Used terms: n, m1 + 1, 0, pebs