The configuration matrix of a fair-coin machine #
A fair-coin machine moves each running view (Turing.FiniteCfg, the configuration with its work
tapes stored relative to their heads and its output summarized) to one of two views, selected by
the coin (Turing.MultiTapePTM.viewCoinStep); a halted view stays put. On a finite set V of
views closed under these steps, this gives two matrices indexed by V:
- the configuration matrix
Turing.MultiTapePTM.configMatrix, whose entry(x, y)counts the coins movingxtoy, so that half of it is the stochastic matrix of the run, with halted views absorbing; - the live configuration matrix
Turing.MultiTapePTM.liveConfigMatrix, the same rows at running views and zero rows at halted views, so that half of it is substochastic.
With e the indicator of the accepting halted views (Turing.FiniteCfg.acceptVec), the number of
accepting coin strings of length t is the entry at the initial view of N ^ t *ᵥ e
(Turing.MultiTapePTM.acceptCoins_eq_configMatrix_pow_mulVec), so the acceptance probability is
((N / 2) ^ t *ᵥ e)(start). Splitting the coin strings by the time they halt gives the
substochastic form ∑ t ≤ T, ((S / 2) ^ t *ᵥ e)(start)
(Turing.MultiTapePTM.acceptCoins_div_eq_sum_liveConfigMatrix). When every view of V is
reachable and every branch halts within T steps, S / 2 is nilpotent, and the acceptance
probability is ((1 - S / 2)⁻¹ *ᵥ e)(start)
(Turing.MultiTapePTM.acceptCoins_div_eq_inv_mulVec).
The reachable views form such a set (Turing.MultiTapePTM.exists_finset_reachable), with at most
2 ^ (2 * coreLengthBound k State n s + 1) elements under a space bound s, polynomially many
under a logarithmic one. So a BPL language is decided by the entry at the initial view of
(1 - S / 2)⁻¹ *ᵥ e for a polynomial-size matrix S
(Cslib.Complexity.exists_configMatrix_of_mem_BPL). This is the Markov chain of a probabilistic
machine on its configurations Gill. Borodin, Cook and Pippenger compute its powers
and inverse in parallel Borodin, Cook and Pippenger, which gives
BPSPACE(S) ⊆ DSPACE(S²) Hoza, Section 4.3; the inverse of 1 - W as the sum
W⁰ + W¹ + … of transition-matrix powers is the picture of Hoza, Section 3.2.
Exact evaluation of the polynomial-size matrix also gives BPL ⊆ P. The parallel algorithms are
not formalized; a sequential exact evaluation, which gives Cslib.Complexity.BPL_subset_P, is in
CslibFrontier.Computability.Complexity.Classes.LogSpace.Randomized.PolyTime.
The matrices are indexed by an arbitrary closed set of views rather than a set of
configurations of bounded size, and have no time layers: the model of Cslib.Complexity.BPL
requires every branch to halt, which already makes the live matrix nilpotent on the reachable
views. The form N ^ t with absorbing halted views is the one repeated squaring computes; the
form (1 - S / 2)⁻¹ with a nilpotent substochastic matrix is the one of matrix inversion.
Main definitions #
Turing.MultiTapePTM.viewCoinStep: the view reached under one coin.Turing.FiniteCfg.acceptVec: the indicator of the accepting halted views.Turing.MultiTapePTM.configMatrix,Turing.MultiTapePTM.liveConfigMatrix: the configuration matrix and its rows at running views.
Main results #
Turing.MultiTapePTM.viewRep_foldl_viewCoinStep: coin steps of views follow coin replays.Turing.MultiTapePTM.reflTransGen_viewStep_toNTM_iff: the reachable views are those reached by coin strings.Turing.MultiTapePTM.acceptCoins_eq_configMatrix_pow_mulVec: accepting coin strings are an entry of a power of the configuration matrix.Turing.MultiTapePTM.acceptCoins_div_eq_configMatrix_pow_mulVec: the acceptance probability is an entry of a power of the stochastic matrix.Turing.MultiTapePTM.acceptCoins_div_eq_sum_liveConfigMatrix: the substochastic form.Turing.MultiTapePTM.liveConfigMatrix_pow_eq_zero: under a halting time, the live matrix is nilpotent on reachable views.Turing.MultiTapePTM.acceptCoins_div_eq_inv_mulVec: the acceptance probability is an entry of(1 - S / 2)⁻¹ *ᵥ e.Turing.MultiTapePTM.exists_finset_reachable: the reachable views form a small closed set.Cslib.Complexity.exists_configMatrix_of_mem_BPL:BPLthrough polynomial-size configuration matrices.
References #
The view reached under one coin: a halted view stays put; a running view takes the action selected by the coin, and its output is summarized.
The configuration matrix on a set V of views: the entry at (x, y) counts the coins
that move x to y. Half of it is the stochastic matrix of the run, with halted views
absorbing.
The live configuration matrix: the rows of Turing.MultiTapePTM.configMatrix at running
views, and zero rows at halted views. Half of it is substochastic.
A halted view stays put.
Coin steps of views follow coin steps of configurations.
Coin strings replay on views as on configurations.
The steps of the views of the nondeterministic view are the coin steps.
The reachable views are those reached by coin strings.
A coin string is accepted exactly when its replay on views is: the replay of coins from
the initial configuration on input ends halted with output [true] exactly when the replay of
coins on views from the initial view ends in an accepting halted view.
Accepting coin strings are an entry of a power of the configuration matrix: on a set V
of views that contains the initial view and is closed under coin steps, the number of accepting
coin strings of length t is the entry at the initial view of N ^ t *ᵥ e.
The acceptance probability is an entry of a power of the stochastic matrix: with
P = N / 2 the stochastic matrix of the run, acceptCoins input t / 2 ^ t is the entry at the
initial view of P ^ t *ᵥ e.
The substochastic form: splitting the coin strings by the time the run halts,
acceptCoins input T / 2 ^ T is the entry at the initial view of ∑ t ≤ T, (S / 2) ^ t *ᵥ e,
with S the live configuration matrix. No halting time is needed.
The live matrix is nilpotent on reachable views: if every view of V is reachable and
every branch halts within T steps, then S ^ (T + 1) = 0.
The acceptance probability is an entry of (1 - S / 2)⁻¹ *ᵥ e: if every view of V is
reachable and every branch halts within T steps, then acceptCoins input T / 2 ^ T is the
entry at the initial view of (1 - S / 2)⁻¹ *ᵥ e, with S the live configuration matrix.
The reachable views form a small closed set: under a space bound s, the views reachable
from the initial view form a finite set, closed under coin steps, with at most
2 ^ (2 * coreLengthBound k State n s + 1) elements.
BPL through polynomial-size configuration matrices: a BPL machine has, on every
encoded instance of length n, a set V of at most T = polyClock d n views, all reachable from
the initial view and closed under coin steps, such that every branch halts within T steps, the
live configuration matrix S on V satisfies
S ^ (T + 1) = 0, and the entry at the initial view of (1 - S / 2)⁻¹ *ᵥ e is at least 2/3 on
members and at most 1/3 on non-members, with e the indicator of the accepting halted
views.