Bounded encoded sparse-store update — invariant internals #
Tape-layout views and frame lemmas used by the semantic update loop. In
particular, this file isolates the only controller-local mutation: changing
the canonical zero-valued found tape to canonical one after a hit.
View the update layout as an entry scanner whose count is remaining.
Instances For
View the update layout as an entry scanner whose count is resultCount.
Equations
- tapes.resultScan = { entry := tapes.entry, count := tapes.resultCount, count_ne := ⋯ }
Instances For
The remaining count is outside every entry-machine tape.
The replacement source is outside every entry-machine tape.
The found flag is outside every entry-machine tape.
The result count is outside every entry-machine tape.
The remaining count and replacement source are distinct.
The remaining count and found flag are distinct.
The remaining and result counts are distinct.
The replacement source and found flag are distinct.
The replacement source and result count are distinct.
The found flag and result count are distinct.
The hit-marking update changes exactly the found tape.
The hit-marking update preserves every tape other than the found tape.
Writing 1 over the parked canonical zero flag produces canonical one.
Canonical natural-number tapes are parked away from the left marker.
Marking a canonical zero found flag preserves parkedness of the complete work family.
The marked found flag exposes 1 directly under its parked head.
The frame component of an entry-ready endpoint can be queried with one uniform proof that an index lies outside the nine entry-machine tapes.
The frame component of a readable match can be queried uniformly outside the nine entry-machine tapes.
Marking the external found flag preserves an entry-ready invariant while updating both sides of its exact frame.
Marking the external found flag preserves a readable matched-entry endpoint while updating both sides of its exact frame.
A frame-rich binary operation on the remaining-count tape preserves and rebases the entry-ready invariant.
A frame-rich binary operation on the result-count tape preserves and rebases the entry-ready invariant.