| subarray(buf, 0, EB_PAGE_SIZE) = emptypage, is-encoded(a, subarray(buf, 0, ENCODED_ELEM_SIZE)), EB_PAGE_SIZE ≤ # buf, ENCODED_ELEM_SIZE ≤ EB_PAGE_SIZE, ENCODED_ELEM_SIZE ≤ # buf ⊦ # subarray(buf, 0, ENCODED_ELEM_SIZE) = # mkempbuf(ENCODED_ELEM_SIZE) ∧ (∀ n. n < # subarray(buf, 0, ENCODED_ELEM_SIZE) → subarray(buf, 0, ENCODED_ELEM_SIZE)[n] = mkempbuf(ENCODED_ELEM_SIZE)[n]) |
subarray(buf, 0, EB_PAGE_SIZE) = emptypage, n < ENCODED_ELEM_SIZE, n < # buf, n < EB_PAGE_SIZE, is-encoded(a, subarray(buf, 0, ENCODED_ELEM_SIZE)), ENCODED_ELEM_SIZE ≤ # buf, ENCODED_ELEM_SIZE ≤ EB_PAGE_SIZE, EB_PAGE_SIZE ≤ # buf ⊦ buf[n] = empty
Used simplifier rules: ⊦ EB_PAGE_SIZE ≠ 0; (s)% ⊦ m < n → n ≠ 0; (s)% ⊦ ENCODED_ELEM_SIZE ≠ 0; (s)%fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic% ⊦ m < n → mkempbuf(n)[m] = empty; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ n + 0 = n; (s)% ⊦ n0 < n → subarray(buf, m, n)[n0] = buf[m + n0]; (s)% ⊦ # mkempbuf(n) = n; (s)% ⊦ # subarray(buf, m, n) = n; (s)