Time intervals and tape blocks of a choice-string run #
The blocking idea of Hopcroft, Paul and Valiant [HPV77], in the form of
Lemma 2.1 of the note Deterministic simulations of nondeterministic and randomized time
(30 October 2026) formalized in issue #1833. It uses three neighbouring tape blocks instead of
making the machine block-respecting (compare [Wil25], Lemma 2.1 and §3.2). The
statements here are the run-level facts of that lemma, for the replay
Turing.MultiTapePTM.stepCoins of a fair-coin table on a list of choice bits.
Time is cut into intervals of b steps: interval i starts at
Turing.MultiTapePTM.intervalStart b coins c i, after the first i * b bits. Each tape is cut
into blocks B_j = [b j, b (j + 1)), so a head at coordinate p (Turing.Cfg.headPos) is in
block p / b at offset p % b. The blocked heads are the input head and the k work heads;
the write-only output tape is never read and is not blocked.
- Three blocks. Within
bsteps a head moves at mostbcells, so it stays in the blocksB_{j-1}, B_j, B_{j+1}around its starting blockB_j(Turing.MultiTapePTM.headPos_stepCoins_mem_Ico), and its block index changes by at most one (Turing.MultiTapePTM.abs_blockIndex_stepCoins_sub_le). - Schedules. The movement schedule of a run (
Turing.MultiTapePTM.schedule) records this change in{-1, 0, 1}for every interval and head. There are3 ^ ((k + 1) * q)schedules ofqintervals (Turing.MultiTapePTM.card_schedule), every run has exactly one, and it determines all block indices from the starting ones (Turing.MultiTapePTM.blockIndex_intervalStart). - Locality. An interval only reads and writes the window
Turing.Cfg.blockWindowof three blocks around each work head. Two configurations agreeing on their control, heads and window contents still agree afterbsteps on the same bits, and emit the same output (Turing.MultiTapePTM.agreeOn_blockWindow_stepCoins). So the interval is determined by its bits, its entering state and head positions and the contents of its windows. Cells outside the window are unchanged (Turing.MultiTapePTM.workTapes_stepCoins_eq_of_notMem_blockWindow), and a cell lying outside the windows of a range of intervals is untouched throughout that range (Turing.MultiTapePTM.workTapes_intervalStart_eq_of_notMem_blockWindow).
All statements hold for every block length b > 0 and number q of intervals; the choice
q = ⌈t / b⌉ and the bound 2 ≤ b ≤ t of the note only matter for counting.
Main definitions #
Turing.Cfg.blockWindow: the three blocks around each work head.Turing.MultiTapePTM.intervalStart: the configuration at the start of a time interval.Turing.MultiTapePTM.Schedule,Turing.MultiTapePTM.schedule: movement schedules.
Main results #
Turing.MultiTapePTM.abs_headPos_stepCoins_sub_le: a head moves at most one cell per bit.Turing.MultiTapePTM.headPos_stepCoins_mem_Ico: withinbsteps, three blocks.Turing.MultiTapePTM.abs_blockIndex_stepCoins_sub_le: block indices change by at most one.Turing.MultiTapePTM.card_schedule: there are3 ^ ((k + 1) * q)schedules.Turing.MultiTapePTM.coe_schedule: a schedule entry is the change of block index.Turing.MultiTapePTM.blockIndex_intervalStart: schedules determine block indices.Turing.MultiTapePTM.agreeOn_stepCoins: locality of a run on cells containing its heads.Turing.MultiTapePTM.agreeOn_blockWindow_stepCoins: an interval is determined by its window.Turing.MultiTapePTM.workTapes_stepCoins_eq_of_notMem_blockWindow: cells outside the window are unchanged.Turing.MultiTapePTM.workTapes_intervalStart_eq_of_notMem_blockWindow: blocks outside the windows of a range of intervals are untouched.
References #
Block arithmetic #
Head movement #
A head moves at most one cell per replayed bit.
Three blocks. Within b replayed bits, a head stays in the three blocks of length b
around its starting block.
Within b replayed bits, the block index of a head changes by at most one.
A work-tape cell farther from the head than the number of replayed bits is unchanged.
Locality of a run. If two configurations agree on cells W, and the work heads of the
first stay in W before each replayed bit, then after replaying the same bits they still agree
on W and have appended the same word to their outputs.
An interval is determined by its window. Two configurations agreeing on the three blocks
around each work head of the first still agree there after at most b replayed bits, and have
appended the same word to their outputs.
Within b replayed bits, a work-tape cell outside the three blocks around its head is
unchanged.
Time intervals and schedules #
The configuration at the start of time interval i, of b steps each: replay the first
i * b bits.
Interval i + 1 starts after replaying the b bits of interval i.
A movement schedule of q intervals: the change, in {-1, 0, 1}, of the block index of
the input head (none) and of each work head (some i) across each interval.
There are 3 ^ ((k + 1) * q) movement schedules of q intervals.
The movement schedule of the run replaying coins from c, in q intervals of b bits:
the change of the block index of every head across every interval.
A schedule entry is the change of block index across the interval.
Schedules determine block indices. At the start of interval i ≤ q, the block index of a
head is its starting block index plus the schedule entries of the earlier intervals.
Across interval i, a work-tape cell outside the window of interval i is unchanged.
Untouched blocks. A work-tape cell outside the windows of intervals i₁, …, i₂ - 1 has
the same contents at the start of interval i₂ as at the start of interval i₁.