Bounded Turing-machine configurations in RAM registers #
This module exposes the first representation layer of the Turing-machine to RAM
simulation. The register layout is explicit, blank cells use value zero, and
decode_encode states the exact condition under which bounded decoding loses no
information.
The state field is register zero.
Symbol coding is lossless on the four-symbol tape alphabet.
Canonical finite-state coding is lossless.
Reading an encoded field returns exactly that field's value.
Every field address lies inside the explicit configuration prefix.
Distinct configuration fields occupy distinct registers.
Updating a scratch register beyond the configuration prefix preserves every represented field.
The canonical bounded encoding represents every one of its fields.
Any representing store decodes to its configuration when the omitted tape suffixes are blank. Scratch registers do not affect decoding.
Registers beyond the explicit bounded layout are zero.