| # buf1 = n0 + ENCODED_ELEM_SIZE, # buf = n0 + ENCODED_ELEM_SIZE, subarray(buf1, ENCODED_ELEM_SIZE, n0) = subarray(buf, ENCODED_ELEM_SIZE, n0), is-encoded-nonempty(a, subarray(buf1, 0, ENCODED_ELEM_SIZE)), EB_PAGE_SIZE ≤ n0 + ENCODED_ELEM_SIZE, ENCODED_ELEM_SIZE ≤ EB_PAGE_SIZE ⊦ is-encoded-pagesize(a, subarray(buf1, 0, EB_PAGE_SIZE)) |
⊦ is-encoded-pagesize(a, buf) ↔ # buf = EB_PAGE_SIZE ∧ ENCODED_ELEM_SIZE ≤ EB_PAGE_SIZE ∧ is-encoded-nonempty(a, subarray(buf, 0, ENCODED_ELEM_SIZE)) ∧ ¬ isempty(buf)
# buf = n0 + ENCODED_ELEM_SIZE, # buf1 = n0 + ENCODED_ELEM_SIZE, subarray(buf1, ENCODED_ELEM_SIZE, n0) = subarray(buf, ENCODED_ELEM_SIZE, n0), is-encoded-nonempty(a, subarray(buf1, 0, ENCODED_ELEM_SIZE)), ENCODED_ELEM_SIZE ≤ EB_PAGE_SIZE, EB_PAGE_SIZE ≤ n0 + ENCODED_ELEM_SIZE ⊦ # subarray(buf1, 0, EB_PAGE_SIZE) = EB_PAGE_SIZE ∧ ENCODED_ELEM_SIZE ≤ EB_PAGE_SIZE ∧ is-encoded-nonempty(a, subarray(subarray(buf1, 0, EB_PAGE_SIZE), 0, ENCODED_ELEM_SIZE)) ∧ ¬ isempty(subarray(buf1, 0, EB_PAGE_SIZE))
Used terms: subarray(buf1, 0, EB_PAGE_SIZE), a