Packed circuit fragments for one Turing-machine transition #
This module exposes an appendable raw circuit that evaluates every next-atom formula and packs the results into a contiguous successor-configuration block. The fragment preserves its input prefix, is topologically well formed, and has machine-dependent quadratic size in the trace horizon.
Main results #
length_stepFragment: exact fragment gate count.stepFragment_topologicallyWellFormed: all references point backward.evalAux?_stepFragment: exact packed successor-configuration semantics.stepFragmentSize_le: a machine-dependent quadratic size bound.
The canonical next-formula list has one formula per configuration atom.
Looking up the canonical next-formula list by an atom's explicit index recovers that atom's transition formula.
A packed one-step fragment emits exactly its named gate count.
Packed atom addresses are exactly configuration-wire addresses based at the packed successor block.
The packed successor block ends exactly at the end of the emitted fragment, so it can serve as the incoming block of the next unrolled step.
A packed step is topologically well formed when its choice wire and incoming configuration block lie in the existing prefix.
Evaluating a packed step appends its exact gate count, preserves the input prefix, and packs an encoding of the selected successor configuration.
Evaluate a packed step directly from an encoded configuration and the concrete value stored at its choice wire.
The exact packed one-step gate count is quadratic in the trace horizon, with a coefficient depending only on the fixed machine.
A bounded configuration block has width linear in the trace horizon.