Canonical binary count-up loops — control proofs #
This module supplies the local proof interface for TM.binaryForTM. It lifts
runs of the composite body-plus-successor iteration through the outer control
state and gives exact, full-frame transition lemmas for scanning, rewinding,
entering an iteration, and returning from a completed iteration.
The canonical multi-step comparison run and loop induction are intentionally left to later proof layers.
Embed a composite iteration configuration into the iteration phase of
binaryForTM.
Equations
Instances For
Every nonhalting composite-iteration step is simulated exactly by one
binaryForTM step.
Exact runs of the composite iteration lift through the iteration phase of
binaryForTM.
Away from the common terminating blank, one scanner step compares the current symbols and advances both designated tapes, preserving the full off-start frame.
At the common terminating blank, one scanner step enters rewind and moves both designated tapes left, preserving the full off-start frame.
One ordinary rewind step moves both designated tapes left, preserving the full off-start frame.
When an equal comparison rewinds to both left markers, one preserving step returns both designated heads to cell one and halts the loop.
When an unequal comparison rewinds to both left markers, one preserving step returns both designated heads to cell one and enters the composite iteration.
A halted composite iteration takes one preserving outer seam step back to a fresh equality scan.