Bounded encoded sparse-store update #
This module exposes the complete fixed-controller implementation of one canonical sparse-store write. The machine scans a runtime-counted old store, copies misses, replaces or deletes the unique hit, and appends a fresh nonzero entry exactly when the address was absent.
The encoded source cursor may move during an update, but its complete cell contents are read-only.
Update one runtime-sized canonical sparse store. The output appends exactly
the encoding of RegisterStore.write; input, the replacement source, and every
work tape outside the thirteen-tape assignment retain their checked frames.
Redirect an encoded sparse-store update into a fresh last work tape. This is the stable seam used by the multi-step RAM interpreter: the real output is left blank while the updated store becomes an ordinary work-tape buffer.
The sparse-store update controller is append-only on its output tape.
Coarse all-prefix auxiliary-space envelope for one complete update.
A complete sparse update is charged by the entries actually traversed and the query, replacement, and remaining-count widths reserved at each iteration. This avoids the former product of entry count with a squared run-wide width.