Clearing a binary work tape #
This module exposes a literal-frame contract for erasing a canonical Boolean work tape and returning its head to cell one. It also records the one-way-output discipline of the clearing, rewinding, and composite machines.
Main results #
clearWorkTM_hoareTime_frame— clear and rewind with a full external frame.clearWorkTM_hoareTimeSpace_frame— the corresponding all-prefix space contract.clearWorkTM_isTransducer— clearing never moves the output head left.
Clearing a canonical Boolean work tape preserves the input, output, and
every unrelated work tape literally, and resets the target to the standard
parked blank tape within 2 * bits.length + 5 steps.
Time-and-space form of clearWorkTM_hoareTime_frame. Starting from an
initialSpace budget, one extra cell per possible transition yields an honest
all-reachable bound.
Blanking a work tape never moves the output head left.
Rewinding a work tape never moves the output head left.
Clearing and rewinding a work tape never moves the output head left.