The tables of an explicit block-counting network, on numbers #
The tables of the explicit block-counting network of a schedule
(Turing.MultiTapePTM.explicitBlockNetwork) are values of the tensors of the block-counting
network (Turing.MultiTapePTM.blockNetwork) at letters read from the bits of a table index. This
module computes them from numbers, the form in which a polynomial-time construction produces
them.
- Letters from numbers. A letter is read as its number (
Turing.MultiTapePTM.letterEquiv), and every natural number is decoded to a letter (Turing.MultiTapePTM.decodeLetter), inverting the numbering (Turing.MultiTapePTM.decodeLetter_letterEquiv). The control record of a number is computed on plain data by division and remainder (Turing.MultiTapePTM.decodeControlData), and so are the cells of block contents (Turing.MultiTapePTM.contentsCellNum) and the accepting weight (Turing.MultiTapePTM.acceptNum). - The window entering an interval. The previous appearance of a block in windows is a search
over the earlier intervals (
Turing.MultiTapePTM.lastBeforeNum_eq), and its window entry is a digit-count difference (Turing.MultiTapePTM.portOfNum). - The tensors on numbers. Given the numbers of the letters on all edges, the tensor of an
interval is an interval count on plain data (
Turing.MultiTapePTM.localIntervalCount) when the letters leaving it have the right kinds, and zero otherwise; the sinks are the accepting weight or1(Turing.MultiTapePTM.blockNetwork_tensor_decodeLetter).
Main definitions #
Turing.MultiTapePTM.decodeControlData,Turing.MultiTapePTM.decodeLetter,Turing.MultiTapePTM.contentsCellNum,Turing.MultiTapePTM.acceptNum: decoding letters.Turing.MultiTapePTM.lastBeforeNum,Turing.MultiTapePTM.portOfNum: previous appearances and window entries on numbers.Turing.MultiTapePTM.intervalEntryNum,Turing.MultiTapePTM.oldEntryNum: the tensors of the block-counting network on numbers.
Main results #
Turing.MultiTapePTM.decodeControlData_controlEquiv,Turing.MultiTapePTM.decodeLetter_letterEquiv: decoding inverts the numberings.Turing.MultiTapePTM.card_intervalHolds: the tensor of an interval is an interval count.Turing.MultiTapePTM.blockNetwork_tensor_decodeLetter: the tensors on numbers.
Products of numberings #
Decoding letters #
The number of control records, which come first among the letters.
The control record of a number, on plain data: the state from the quotient by
b ^ (k + 1) * 3 (capped at s), the offsets as digits in base b and the output track from the
remainder.
Decoding control records inverts their numbering.
The control record entering an interval from a letter number: the decoded record of a control letter, and the default record of block contents.
The cell r of the block contents numbered n, blank for a control record.
The accepting weight of the letter numbered n: one for a control record with output track
accept.
The letter of a number: the control record of that number for a number below
controlCount, and otherwise the block contents of the remainder of n - controlCount modulo
3 ^ b. Below letterCount this inverts Turing.MultiTapePTM.letterEquiv.
Decoding letters inverts their numbering.
Below letterCount, the letter of a number is the numbered letter.
The window entering an interval, on numbers #
The last interval before i whose window contains the block δ of interval i's window,
for the head with digit offset c, found by searching the earlier intervals from the latest.
Previous appearances on numbers.
The window entry, in the window of interval i', of the block δ of interval i's window,
for the head with digit offset c: b(i) + δ - b(i') mod 3 from the digit counts.
Window entries on numbers.
The tensor of an interval #
The tensor of an interval is an interval count when the letters leaving it are a control record and block contents.
The tensor of an interval vanishes when a letter leaving it has the wrong kind.
The tensors on numbers #
The tensor of interval i on numbers, from the letter numbers L of the edges: the
interval count on plain data when the control edge leaving i carries a control record and its
block edges carry block contents, and zero otherwise.
The tensor of an old vertex on numbers: an interval (v < q), or the sink of the edge
numbered v - q, which accepts the last control record and is 1 otherwise.
The tensors of the block-counting network on numbers #
A decoded letter is a control record exactly below controlCount.
A decoded letter is block contents exactly from controlCount on.
The tensors of the block-counting network on numbers. At the letters decoded from numbers
L of the edges (Turing.MultiTapePTM.decodeLetter), the tensor of an old vertex of the explicit
network is Turing.MultiTapePTM.oldEntryNum at its number.
Reading letters from table indices #
Bits are the code of a letter exactly when they write its number.
Reading a letter code: bits are the code of a letter exactly when the number they write is
below letterCount.
The letter read from the code bits is the decoded letter of their number.
The tables on numbers #
The first number of the explicit edges of the block edge numbered n at the old vertex
numbered v: its source halves when v is the interval it leaves, and its target halves
otherwise.
Whether every block edge at the old vertex numbered v carries a letter number, read from
the table index j and the ports P, below letterCount.
The table entry on numbers of the vertex numbered v with ports P at the table index
j: for an old vertex, its tensor at the letters read from j when they are all valid, and zero
otherwise; for the subdivision vertex of a copy, equality of the bits on its two halves.
The table on numbers of the vertex numbered v: its entries at all indices below
2 ^ (number of ports).
The vertices of the explicit network on numbers: the ports and the table of every vertex number.
The tables of the explicit network on numbers: the table of every vertex of the
binarized, subdivided network, with the edges numbered by explicitEdgeEquiv, is
explicitTableNum at the number of the vertex.
The explicit block-counting network on numbers: 2 q (3 k + 1) m edges and the vertices
explicitVerticesNum.
The explicit block-counting network is computed on numbers: for the schedule of σ,
explicitBlockNetwork is explicitNetworkNum.
Port counts #
The degree bound on numbers: every vertex number has at most
2 (3 k + 1) (letterBits k s b) ports.