Interval counts on list data #
The interval tensor of the block-counting networks of #1833
(Turing.MultiTapePTM.intervalCount) takes a control record with offsets in ZMod b and window
contents indexed by ZMod b. This module restates it on plain data, the form in which a
polynomial-time construction of the networks computes it: a control record with offsets as
natural numbers (Turing.MultiTapePTM.ControlData, Turing.MultiTapePTM.controlData) and the
window of each work tape as the list of its 3 b cells (Turing.MultiTapePTM.windowCells).
On such data, the finite storage of the embedded window is
Turing.MultiTapePTM.localStartData, and the interval condition
(Turing.MultiTapePTM.LocalIntervalStepData) compares the state and output track after the
replay, the coordinate of every head with its prescribed block start plus offset, and the cells
of every window with the given lists. Block indices and offsets need no division: a coordinate z
has block index q and offset r modulo b exactly when r < b and z = b q + r. The interval
count (Turing.MultiTapePTM.localIntervalCount) counts the coin strings of the enumeration
Cslib.BitString.enumList b satisfying the condition, and agrees with the interval tensor
(Turing.MultiTapePTM.localIntervalCount_eq_intervalCount).
Main definitions #
Turing.MultiTapePTM.ControlData,Turing.MultiTapePTM.controlData: control records on plain data.Turing.MultiTapePTM.localStartData: the finite storage of an embedded window.Turing.MultiTapePTM.LocalCfg.headCoord,Turing.MultiTapePTM.LocalCfg.windowCellsAt: the coordinates of the heads and the cells of a window on finite storage.Turing.MultiTapePTM.LocalIntervalStepData,Turing.MultiTapePTM.localIntervalCount: the interval condition and the interval count on plain data.
Main results #
Turing.MultiTapePTM.localIntervalStepData_iff: the condition on plain data is the interval condition on finite storage.Turing.MultiTapePTM.localIntervalCount_eq_intervalCount: the count on plain data is the interval tensor.
Plain data #
A control record on plain data: the state, the offset of every head as a natural number, and the output track.
A control record as plain data: its offsets by their values.
The finite storage of the configuration embedded at block indices J with the control
record cIn and the window cells wIn (the 3 b cells of each window, left to right): each
work tape holds the cells of its window with its head on cell b + offset.
On the data of a control record and window contents, localStartData is localStart.
Block indices and offsets without division #
The offsets and block indices of finite storage, compared with a control record's offsets and prescribed block indices, are its head coordinates.
The window contents of finite storage are w exactly when the cells of every window are the
window cells of w.
The interval condition and count on plain data #
The interval condition on plain data: replaying coins on the finite storage of the
embedded window leaves the state and the output track of cOut, puts every head at its
prescribed block start b (J + δ) plus its offset in cOut, which is below b, and leaves the
window cells wOut.
Instances For
The interval condition on plain data is the interval condition on finite storage.
The interval count on plain data: the number of coin strings of b bits satisfying the
interval condition.
The interval count on plain data is the interval tensor.