| # buf2 = EB_PAGE_SIZE, # lpt0 = # avol1, # avol0 = # avol1, n3 + m0 = n4 + # buf, LEB_SIZE = n0 + # buf, LEB_SIZE = n1 + # buf1, avol0[n2] = mapped(buf), avol1[n2] = mapped(buf1), n4 < n0, # buf < LEB_SIZE, n2 < # avol1, m4 < EB_PAGE_SIZE, n3 < # buf3, n3 + m0 < LEB_SIZE, n3 < n, n3 + m0 < # buf1, awbuf-inv(avol1, buffered(n2)), ebm-vol-inv(avol0), is-aligned(m6, EB_PAGE_SIZE), # buf ≤ n3 + m0, m0 + n ≤ LEB_SIZE, n ≤ # buf3, # buf1 ≤ LEB_SIZE, rofs → m6 = # buf ∧ buf1 = buf + subarray(buf2, 0, m4) ∨ m6 < # buf ∧ m6 + m4 < # buf ∧ buf1 = buf ∧ subarray(buf2, 0, m4) = subarray(buf, m6, m4), ¬ rofs → buf1 = buf + subarray(buf2, 0, m4), rofs → m6 ≤ # buf, ¬ rofs → # buf = m6 ⊦ empty = buf1[n3 + m0], m0 ≤ m6 + m4 ∧ m6 ≤ m0 + n |
# buf2 = EB_PAGE_SIZE, # lpt0 = # avol1, # avol0 = # avol1, n3 + m0 = n4 + # buf, LEB_SIZE = n0 + # buf, LEB_SIZE = n1 + # buf1, avol0[n2] = mapped(buf), avol1[n2] = mapped(buf1), # buf < # buf1, n4 < n0, # buf < LEB_SIZE, n2 < # avol1, m4 < EB_PAGE_SIZE, n3 < # buf3, n3 + m0 < LEB_SIZE, n3 < n, n3 + m0 < # buf1, awbuf-inv(avol1, buffered(n2)), ebm-vol-inv(avol0), is-aligned(m6, EB_PAGE_SIZE), # buf ≤ n3 + m0, m0 + n ≤ LEB_SIZE, n ≤ # buf3, # buf1 ≤ LEB_SIZE, rofs → m6 = # buf ∧ buf1 = buf + subarray(buf2, 0, m4) ∨ m6 < # buf ∧ m6 + m4 < # buf ∧ buf1 = buf ∧ buf2 = subarray(buf, m6, m4), ¬ rofs → buf1 = buf + subarray(buf2, 0, m4), rofs → m6 ≤ # buf, ¬ rofs → # buf = m6 ⊦ empty = buf1[n3 + m0], m0 ≤ m6 + m4 ∧ m6 ≤ m0 + n
Used simplifier rules: ⊦ m < n → n ≠ 0; (s)%fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat%fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat%lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic%# buf = n ⊦ subarray(buf, 0, n) = buf; (s)% ⊦ m ≤ n → (n < m ↔ false); (s)