Copying a value into virtual-input shape #
TM.retargetInputStartedCfg expects the virtual-input work tape in the exact
shape (Tape.init (y.map Γ.ofBool)).move Dir3.right — head parked at cell 1.
A value produced elsewhere lands with its head past its content, so one more
rewind closes the gap.
Main results #
TM.copyToVirtualInputTM— move a value into virtual-input positionTM.copyToVirtualInputTM_hoareTime— its contract
Copy the value held at src into dst, then rewind dst to cell 1 —
the exact shape retargetInputStartedCfg expects of a virtual input. Every
tape besides src/dst, the real input, and the real output are held at
fixed Parked values throughout.
Copy a work tape's value into another and park the result at cell 1.
Equations
- Complexity.TM.copyToVirtualInputTM src dst = (Complexity.TM.copyWorkToWorkTM src dst).seqTM (Complexity.TM.rewindWorkTM dst)
Instances For
The copy, with the whole tape family pinned down. The source keeps its
cells but ends with its head past the copied value; the destination holds the
value parked at cell 1; nothing else moves. This determined form is what
TM.seqTM_det chains.