Exact memory output of native Chan–He traversal #
The pointer table is an unsigned word list. Each pointed-to block contains the existing
Node.oneArray, encoded with the signed integer encoding, at the common finite length 4N.
This reuses the generic block/list realization API and introduces no alternative convolution
predicate or execution model.
Main definitions #
StoredNodes: exact pointer-table and packed-array readback for the emitted preorder.OutputLayout: live table and packed-array endpoints below a separate allocation frontier.
Main results #
StoredNodes.congr: transfer exact readback along a frame on its live cells.StoredNodes.frame: preserve every live output under a frame below its allocation frontier.StoredNodes.append: one actual pointer-table store appends a represented native node.
The concrete output invariant and proofs are original.
The exact finite output table and its signed-encoded packed node arrays.
The table contains exactly the native base pointers in emitted order.
- cells (i : Fin ns.length) : { base := ns[↑i].1, length := 4 * N }.Realizes mem fun (u : Fin { base := ns[↑i].1, length := 4 * N }.length) => WordRAM.Signed.encode (ns[↑i].2.oneArray U ↑u)
Every pointed-to word equals the existing mathematical packed array cell.
The live output regions lie below a frontier, independently of their stored values. This bounds the table and payloads needed by later callers, not all temporary cells ever touched.
The complete pointer table precedes the available workspace.
Every emitted payload precedes the available workspace.
Empty traversal output imposes no pointed-to array obligations.
Pointer-table and packed-array readback survive a frame on all their live cells.
Keeping the prefix below the live frontier retains every table entry and packed payload.
Appending one native pointer preserves all packed readback. The stored pointer lies below both the old arrays and the fresh array, so the actual store cannot overwrite array data.