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