[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 60 from proof decode-node (previous step)

m = align↑(m0, 2 * NODE_HEADER_SIZE) + 2 * NODE_HEADER_SIZE, is-encoded(nodeheader(m0, false), subarray(buf, n, NODE_HEADER_SIZE)), n + align↑(m0, 2 * NODE_HEADER_SIZE) + 2 * NODE_HEADER_SIZE ≤ # buf, n + NODE_HEADER_SIZE ≤ # buf ⊦ ⟪decode_node_headerless#(n + NODE_HEADER_SIZE, buf; nd, m; err); if err ≠ ESUCCESS then debug#("persistence: decode_node decoding failed") else if m ≠ m0 then {debug#("persistence: decode_node size of node unexpected"); err := EINVAL}; if err = ESUCCESS ∧ ¬ range=(buf, n + NODE_HEADER_SIZE + align↑(m0, 2 * NODE_HEADER_SIZE), validtrailer, 0, NODE_HEADER_SIZE) then {debug#("persistence: decode_node no validtrailer"); err := EIO}⟫ ( (err = ESUCCESS ∨ ⌊err⌋ ) ∧ ( err = ESUCCESS → (∃ buf0, buf1. subarray(buf, n, 2 * NODE_HEADER_SIZE + nd.alignedsize) = buf0 + buf1 + validtrailer ∧ is-encoded(nodeheader(node-size-headerless(nd), false), buf0) ∧ is-encoded(nd, subarray(buf1, 0, node-size-headerless(nd))) ∧ # buf1 = nd.alignedsize) ∧ align↑(m0, 2 * NODE_HEADER_SIZE) = nd.alignedsize))

User applied rule insert program lemma

And obtained the following new goals

Rule argument

spec: encoding, inst: encoding-node-headerless name: decode-contract seq: ⊦ ⟪decode_node_headerless#(n, buf; nd, n0; err)⟫ ( (err = ESUCCESS ∨ ⌊err⌋ ) ∧ ( err = ESUCCESS → is-encoded(nd, subarray(buf, n, n0)) ∧ n + n0 ≤ # buf ∧ n0 = node-size-headerless(nd))) subst: [buf, n, n0, nd, err] → [buf, n + NODE_HEADER_SIZE, m, nd, err] flags: <all paths>

Additional information