| # buf2 = EB_PAGE_SIZE, # lpt0 = # avol1, # avol0 = # avol1, n1 + n5 = n4 + n2, # buf + n4 + n2 = # buf3, LEB_SIZE = n3 + n2 + # buf0 + # buf, avol1[m2] = mapped((buf0 + buf) + subarray(buf2, 0, n2)), avol0[m2] = mapped(buf0 + buf), n < n1, n < n4 + n2, n < n2 + n4, n2 < EB_PAGE_SIZE, m2 < # avol1, n < n2, n < n2 + n3, n < EB_PAGE_SIZE, n + 1 < EB_PAGE_SIZE, awbuf-inv(avol1, buffered(m2)), ebm-vol-inv(avol0), is-aligned(# buf0 + # buf, EB_PAGE_SIZE), n2 ≤ n1, # buf ≤ # buf3, n1 ≤ n2 + n3, # buf0 ≤ LEB_SIZE ⊦ buf2[n] = (subarray(buf2, 0, n2) + mkempbuf(n3))[n] |
⊦ n < # buf + # buf0 → (buf + buf0)[n] = (n < # buf ⊃ buf[n];buf0[n - # buf])
Used simplifier rules: ⊦ # subarray(buf, m, n) = n; (s)% ⊦ n0 < n → subarray(buf, m, n)[n0] = buf[m + n0]; (s)% ⊦ n + 0 = n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic%# buf = n ⊦ subarray(buf, 0, n) = buf; (s)%append-a: ⊦ (buf + buf0) + buf1 = buf + buf0 + buf1; from specification array-splice[buffer]% ⊦ # mkempbuf(n) = n; (s)% ⊦ m < n ↔ ¬ n ≤ m; (ss)% ⊦ m < n → (n ≤ m ↔ false); (s)% ⊦ EB_PAGE_SIZE ≠ 0; (s)%m ≠ 0, is-aligned(n1, m) ⊦ is-aligned(n0 + n1, m) ↔ is-aligned(n0, m); (s) Used terms: n, mkempbuf(n3), subarray(buf2, 0, n2)