Fixed-width binary block-computation values #
An outer bit distinguishes FAIL from a valid leaving view. The payload stores the finite control
state by a binary rank, each of the k+1 head residues in b.size bits, the output track in two
bits, and every cell of the three work-tape windows in two bits. Window cells use canonical
row-major blocks: tape, window port, residue, then cell bit. No rank of the whole view or unary
encoding of window contents is used.
The supplied equivalence enumerates only the fixed machine's finite control states. The width
is 1 + (s+1).size + (k+1)*b.size + 2 + 6*k*b. The positive block-width assumption is essential:
ZMod 0 is infinite. Unused state/cell/track words decode to a halted state, blank cell or
other output track respectively; a false outer bit always decodes to FAIL.
These are explicit semantic codecs, not native runtime codec certificates.
Main results #
Turing.MultiTapePTM.BlockComputation.Encoding.decode_encode: encoding then decoding is exact.Turing.MultiTapePTM.BlockComputation.Encoding.width_eq: the precise width calculation.Turing.MultiTapePTM.BlockComputation.Encoding.width_le: a linear bound for fixed machine data.
Width of the three two-bit-cell windows on every work tape.
Width of the payload before the outer FAIL tag.
Width of one optionally failing block-computation value.
An unused state rank represents the halted control state.
The binary value of a head residue, padded to the runtime block-width bit length.
Read the binary value and reduce modulo the positive block width.
Read the fixed-width residues of all work heads and the input head.
Two bits separate blank, written zero and written one. The fourth word is unused.
Decode a cell tag, treating both words with a false first bit as blank.
The source output track has three cases: empty, exactly [true], and other.
Decode the output summary, assigning the unused word to other.
The explicit row-major two-bit encoding of all three windows on all work tapes.
Read all window cells in the same tape/port/residue order as the encoder.
Encode the control record and all window cells with fixed field boundaries.
Read the control fields and window cells at their fixed field boundaries.