| # buf1 = NODE_HEADER_SIZE, # buf2 = nd0.alignedsize, is-encoded(nd0, subarray(buf2, 0, node-size-headerless(nd0))), is-encoded(nodeheader(node-size-headerless(nd0), false), buf1), nd1.alignedsize ≤ nd0.alignedsize + # buf0, ∃ buf4, buf3. subarray((buf1 + buf2 + validtrailer) + buf0, 0, 2 * NODE_HEADER_SIZE + nd1.alignedsize) = buf4 + buf3 + validtrailer ∧ is-encoded(nodeheader(node-size-headerless(nd1), false), buf4) ∧ is-encoded(nd1, subarray(buf3, 0, node-size-headerless(nd1))) ∧ # buf3 = nd1.alignedsize ⊦ nd0 = nd1 |
# buf = nd1.alignedsize, # buf2 = nd0.alignedsize, # buf1 = NODE_HEADER_SIZE, # buf3 = NODE_HEADER_SIZE, subarray((buf1 + buf2 + validtrailer) + buf0, 0, 2 * NODE_HEADER_SIZE + nd1.alignedsize) = buf3 + buf + validtrailer, is-encoded(nodeheader(node-size-headerless(nd1), false), buf3), is-encoded(nd1, subarray(buf, 0, node-size-headerless(nd1))), is-encoded(nodeheader(node-size-headerless(nd0), false), buf1), is-encoded(nd0, subarray(buf2, 0, node-size-headerless(nd0))), nd1.alignedsize ≤ nd0.alignedsize + # buf0 ⊦ nd0 = nd1
Used simplifier rules: is-encoded-size: ⊦ is-encoded(ndhd, buf) → # buf = NODE_HEADER_SIZE; (forward) from specification encoding-fixed-size-nonempty[encoding-node-header]