| # buf3 = n4 + n1 + (m0 ≤ m6 ⊃ m6 - m0;0), # buf2 = EB_PAGE_SIZE, # lpt0 = # avol1, # avol0 = # avol1, LEB_SIZE = n3 + # buf1, LEB_SIZE = n0 + # buf4, avol1[m2] = mapped(buf1), avol0[m2] = mapped(buf4), n2 + (m0 ≤ m6 ⊃ 0;m0 - m6) < EB_PAGE_SIZE, m2 < # avol1, (m0 ≤ m6 ⊃ 0;m0 - m6) < EB_PAGE_SIZE, abs(avol1, buffered(m2), mkwbuf(buf2, m6, n2 + (m0 ≤ m6 ⊃ 0;m0 - m6)), avol0, rofs), awbuf-inv(avol1, buffered(m2)), ebm-vol-inv(avol0), is-aligned(m6, EB_PAGE_SIZE), m0 ≤ m6 + n2 + (m0 ≤ m6 ⊃ 0;m0 - m6), m6 ≤ m0 + n1 + (m0 ≤ m6 ⊃ m6 - m0;0), # buf4 ≤ LEB_SIZE, # buf1 ≤ LEB_SIZE, m6 ≤ LEB_SIZE, (m0 ≤ m6 ⊃ m6 - m0;0) ≤ # buf3, (m0 ≤ m6 ⊃ 0;m0 - m6) + min(n1, n2) ≤ EB_PAGE_SIZE, min(n1, n2) ≤ n1 + n4, m0 + n1 + (m0 ≤ m6 ⊃ m6 - m0;0) ≤ LEB_SIZE, ¬ m0 ≤ m6 → m6 ≤ m0, rofs → m6 ≤ # buf4, ¬ rofs → # buf4 = m6 ⊦ copy (buf2, (m0 ≤ m6 ⊃ 0;m0 - m6), subarray(buf4 + mkempbuf(n0), m0, n1 + (m0 ≤ m6 ⊃ m6 - m0;0)) + subarray(buf3, n1 + (m0 ≤ m6 ⊃ m6 - m0;0), n4), (m0 ≤ m6 ⊃ m6 - m0;0), min(n1, n2)) = subarray(buf1 + mkempbuf(n3), m0, n1 + (m0 ≤ m6 ⊃ m6 - m0;0)) + subarray(buf3, n1 + (m0 ≤ m6 ⊃ m6 - m0;0), # buf3 - n1 + (m0 ≤ m6 ⊃ m6 - m0;0)) |
# avol0 = # avol1, # lpt0 = # avol1, # buf2 = EB_PAGE_SIZE, # buf3 = n4 + n1 + (m0 ≤ m6 ⊃ m6 - m0;0), # buf3 = n5 + n1 + (m0 ≤ m6 ⊃ m6 - m0;0), LEB_SIZE = n0 + # buf4, LEB_SIZE = n3 + # buf1, avol0[m2] = mapped(buf4), avol1[m2] = mapped(buf1), (m0 ≤ m6 ⊃ 0;m0 - m6) < EB_PAGE_SIZE, m2 < # avol1, n2 + (m0 ≤ m6 ⊃ 0;m0 - m6) < EB_PAGE_SIZE, abs(avol1, buffered(m2), mkwbuf(buf2, m6, n2 + (m0 ≤ m6 ⊃ 0;m0 - m6)), avol0, rofs), awbuf-inv(avol1, buffered(m2)), ebm-vol-inv(avol0), is-aligned(m6, EB_PAGE_SIZE), m0 + n1 + (m0 ≤ m6 ⊃ m6 - m0;0) ≤ LEB_SIZE, min(n1, n2) ≤ n1 + n4, (m0 ≤ m6 ⊃ 0;m0 - m6) + min(n1, n2) ≤ EB_PAGE_SIZE, (m0 ≤ m6 ⊃ m6 - m0;0) ≤ # buf3, m6 ≤ LEB_SIZE, # buf1 ≤ LEB_SIZE, # buf4 ≤ LEB_SIZE, m6 ≤ m0 + n1 + (m0 ≤ m6 ⊃ m6 - m0;0), m0 ≤ m6 + n2 + (m0 ≤ m6 ⊃ 0;m0 - m6), n1 + (m0 ≤ m6 ⊃ m6 - m0;0) ≤ # buf3, ¬ rofs → # buf4 = m6, rofs → m6 ≤ # buf4, ¬ m0 ≤ m6 → m6 ≤ m0 ⊦ copy (buf2, (m0 ≤ m6 ⊃ 0;m0 - m6), subarray(buf4 + mkempbuf(n0), m0, n1 + (m0 ≤ m6 ⊃ m6 - m0;0)) + subarray(buf3, n1 + (m0 ≤ m6 ⊃ m6 - m0;0), n4), (m0 ≤ m6 ⊃ m6 - m0;0), min(n1, n2)) = subarray(buf1 + mkempbuf(n3), m0, n1 + (m0 ≤ m6 ⊃ m6 - m0;0)) + subarray(buf3, n1 + (m0 ≤ m6 ⊃ m6 - m0;0), n5)
Used simplifier rules: nat0: ⊦ n0 = n1 + n → (n1 + m ≤ n0 ↔ m ≤ n);% ⊦ n + 0 = n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ 0 ≤ m; (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ n < m → (m - n) + n = m; (s)% ⊦ m ≤ m + n; (s)% ⊦ m < n → (n ≤ m ↔ false); (s)%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic%lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic%lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic% ⊦ m < n → n ≠ 0; (s)% ⊦ ¬ m + n < m; (s)% ⊦ # mkempbuf(n) = n; (s)%# buf ≤ n0, n0 + m ≤ # buf + # buf0 ⊦ subarray(buf + buf0, n0, m) = subarray(buf0, n0 - # buf, m); (s)%append-a: ⊦ (buf + buf0) + buf1 = buf + buf0 + buf1; from specification array-splice[buffer]% ⊦ # subarray(buf, m, n) = n; (s)% ⊦ m + m0 ≤ m ↔ m0 = 0; (s)%# buf ≤ m0 ⊦ copy(buf0, m, buf + buf1, m0, m1) = buf + copy(buf0, m, buf1, m0 - # buf, m1); (s)%n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: n1 + (m0 ≤ m6 ⊃ m6 - m0;0), # buf3, n