| pebs[n] = mkpeb(buf0, m0, boolvar0), n0 < # pebs, n < # pebs ∧ # buf0 = PEB_SIZE ∧ (¬ boolvar0 → m0 ≤ PEB_SIZE ∧ is-aligned(m0, EB_PAGE_SIZE) ∧ range=(buf0, m0, emptypeb, m0, PEB_SIZE - m0)) ∧ (¬ boolvar0 → m0 = EB_PAGE_SIZE ∧ (∃ n0. is-encoded(echdr(n0), subarray(buf0, 0, EB_PAGE_SIZE)))) → # buf = PEB_SIZE ∧ (¬ boolvar → m ≤ PEB_SIZE ∧ is-aligned(m, EB_PAGE_SIZE) ∧ range=(buf, m, emptypeb, m, PEB_SIZE - m)) ∧ (¬ boolvar → m = EB_PAGE_SIZE ∧ is-encoded(echdr(n1), subarray(buf, 0, EB_PAGE_SIZE))), ∀ n0. n0 < # pebs → # pebs[n0].data = PEB_SIZE ∧ ( ¬ pebs[n0].bad → pebs[n0].fill ≤ PEB_SIZE ∧ is-aligned(pebs[n0].fill, EB_PAGE_SIZE) ∧ range=(pebs[n0].data, pebs[n0].fill, emptypeb, pebs[n0].fill, PEB_SIZE - pebs[n0].fill)) ∧ (¬ pebs[n0].bad → pebs[n0].fill = EB_PAGE_SIZE ∧ (∃ n. is-encoded(echdr(n), subarray(pebs[n0].data, 0, EB_PAGE_SIZE)))) ⊦ # pebs[n, mkpeb(buf, m, boolvar)][n0].data = PEB_SIZE ∧ ( ¬ pebs[n, mkpeb(buf, m, boolvar)][n0].bad → pebs[n, mkpeb(buf, m, boolvar)][n0].fill ≤ PEB_SIZE ∧ is-aligned(pebs[n, mkpeb(buf, m, boolvar)][n0].fill, EB_PAGE_SIZE) ∧ range= (pebs[n, mkpeb(buf, m, boolvar)][n0].data, pebs[n, mkpeb(buf, m, boolvar)][n0].fill, emptypeb, pebs[n, mkpeb(buf, m, boolvar)][n0].fill, PEB_SIZE - pebs[n, mkpeb(buf, m, boolvar)][n0].fill)) ∧ ( ¬ pebs[n, mkpeb(buf, m, boolvar)][n0].bad → pebs[n, mkpeb(buf, m, boolvar)][n0].fill = EB_PAGE_SIZE ∧ (∃ n1. is-encoded(echdr(n1), subarray(pebs[n, mkpeb(buf, m, boolvar)][n0].data, 0, EB_PAGE_SIZE)))) |
pebs[n] = mkpeb(buf0, m0, boolvar0), pebs[n, mkpeb(buf, m, boolvar)][n0] = mkpeb(buf1, m1, boolvar1), n0 < # pebs, n < # pebs ∧ # buf0 = PEB_SIZE ∧ (¬ boolvar0 → m0 ≤ PEB_SIZE ∧ is-aligned(m0, EB_PAGE_SIZE) ∧ range=(buf0, m0, emptypeb, m0, PEB_SIZE - m0)) ∧ (¬ boolvar0 → m0 = EB_PAGE_SIZE ∧ (∃ n0. is-encoded(echdr(n0), subarray(buf0, 0, EB_PAGE_SIZE)))) → # buf = PEB_SIZE ∧ (¬ boolvar → m ≤ PEB_SIZE ∧ is-aligned(m, EB_PAGE_SIZE) ∧ range=(buf, m, emptypeb, m, PEB_SIZE - m)) ∧ (¬ boolvar → m = EB_PAGE_SIZE ∧ is-encoded(echdr(n1), subarray(buf, 0, EB_PAGE_SIZE))), ∀ n0. n0 < # pebs → # pebs[n0].data = PEB_SIZE ∧ ( ¬ pebs[n0].bad → pebs[n0].fill ≤ PEB_SIZE ∧ is-aligned(pebs[n0].fill, EB_PAGE_SIZE) ∧ range=(pebs[n0].data, pebs[n0].fill, emptypeb, pebs[n0].fill, PEB_SIZE - pebs[n0].fill)) ∧ (¬ pebs[n0].bad → pebs[n0].fill = EB_PAGE_SIZE ∧ (∃ n. is-encoded(echdr(n), subarray(pebs[n0].data, 0, EB_PAGE_SIZE)))) ⊦ # buf1 = PEB_SIZE ∧ (¬ boolvar1 → m1 ≤ PEB_SIZE ∧ is-aligned(m1, EB_PAGE_SIZE) ∧ range=(buf1, m1, emptypeb, m1, PEB_SIZE - m1)) ∧ (¬ boolvar1 → m1 = EB_PAGE_SIZE ∧ (∃ n1. is-encoded(echdr(n1), subarray(buf1, 0, EB_PAGE_SIZE))))
Used simplifier rules: ⊦ (buf = peb.data ∧ m = peb.fill) ∧ (boolvar ↔ peb.bad) ↔ peb = mkpeb(buf, m, boolvar); (elim) Used terms: pebs[n, mkpeb(buf, m, boolvar)][n0], buf1, m1, boolvar1