Interval tensors of a choice-string run #
The local pieces of the block-counting identity, Lemma 2.2 of the note Deterministic
simulations of nondeterministic and randomized time (30 October 2026) formalized in issue #1833,
which builds on the blocking of Hopcroft, Paul and Valiant [HPV77] in the
three-block form of CslibFrontier.Computability.Machines.Turing.MultiTape.Probabilistic.Blocks
(compare [Wil25], Lemma 2.1 and §3.2). The proof idea is original to that note.
Fix a block length b > 0. A configuration of a fair-coin table over Bool is seen through
- its block indices
Turing.Cfg.blockIndex: the blockp / bof every head; - its control record
Turing.Cfg.blockControl: its state, the offsetp mod bof every head in its block, and the track (Turing.MultiTapeNTM.ChoiceTable.OutputTrack) of its output; - its window contents
Turing.Cfg.windowContents: the contents of the three blocksJ - 1, J, J + 1around given block indicesJon every work tape.
Conversely, Turing.embedCfg builds a configuration from block indices, a control record and
window contents, with blank cells outside the windows and an output of the right track. The
interval step Turing.MultiTapePTM.IntervalStep replays the bits of a time interval from such
an embedded configuration and compares the record, window contents and block indices it leaves
with prescribed ones. The interval tensor Turing.MultiTapePTM.intervalCount counts the bit
strings u ∈ {0,1}^b doing so: the entry F_i of the note's equation (3).
Matching the true run (Turing.MultiTapePTM.intervalStep_view_iff). Embedding the view of a
configuration c gives a configuration that agrees with c on its state, its heads and its
windows, and whose output has the same track. By the locality of runs
(Turing.MultiTapePTM.agreeOn_blockWindow_stepCoins), an interval step from the view of c
holds exactly when the true replay from c leaves the prescribed record, contents and block
indices. The input tape is not blocked as a word: it is fixed by input, which the embedded
configuration shares.
Splitting the count by schedules (Turing.MultiTapePTM.acceptCount_eq_sum_card_schedule).
The accepting count A_M(x) on q * b bits is the sum, over the movement schedules σ of q
intervals, of the number of accepting choice strings with schedule σ. The bits of interval i
of a choice string y : Fin (q * b) → Bool are y (finProdFinEquiv (i, r)) for r < b
(Turing.MultiTapePTM.intervalStart_succ_ofFn).
Main definitions #
Turing.Cfg.blockIndex,Turing.Cfg.blockContents,Turing.Cfg.windowContents: block indices and block contents.Turing.BlockControl,Turing.Cfg.blockControl: control records.Turing.embedCfg: the configuration with given block indices, record and window contents.Turing.MultiTapePTM.IntervalStep,Turing.MultiTapePTM.intervalCount: interval steps and interval tensors.
Main results #
Turing.MultiTapePTM.acceptCount_eq_sum_card_schedule: the accepting count split by schedules.Turing.MultiTapePTM.intervalStart_succ_ofFn: the bits of each interval.Turing.agreeOn_embedCfg_view: an embedded view agrees with the configuration on its windows.Turing.MultiTapePTM.intervalStep_view_iff: interval steps from a view are the true replay.Turing.MultiTapePTM.intervalCount_le: interval tensor entries are at most2 ^ b.
References #
Views of a configuration #
The control record of a configuration: its state, the offset p mod b of every head, and the
track of its output.
The configuration with block indices J, control record c and window contents w: every
head at b * J + offset, the work tapes holding w on the windows and blank elsewhere, and an
output with the track of c.
An embedded view agrees with the configuration. Embedding the block indices, control
record and window contents of c gives a configuration with the state, heads and window contents
of c.
Interval steps and interval tensors #
An interval step. Replaying coins from the configuration embedded at block indices J
with entering control record cIn and window contents wIn leaves the control record cOut,
the contents wOut of the same windows, and moves the block of every head h by δ h.
The interval tensor: the number of bit strings u ∈ {0,1}^b whose replay is an interval
step from the entering record cIn and contents wIn at block indices J to the leaving record
cOut and contents wOut, moving the blocks by δ. This is the entry F_i of the note's
equation (3).
An interval tensor entry is at most the number 2 ^ b of bit strings.
Interval steps from a view are the true replay. For at most b bits, an interval step
from the view of c (its block indices, control record and window contents) holds exactly when
replaying the bits from c itself leaves the prescribed record and window contents and moves the
blocks by δ.
Splitting the accepting count #
The accepting count split by schedules. The accepting choice strings of q intervals of
b bits are counted schedule by schedule.
The bits of an interval. For a choice string y of q intervals of b bits, interval
i replays the bits y (finProdFinEquiv (i, r)), r < b.