Randomized logarithmic space is within polynomial time #
The number of accepting coin strings of length t from a view satisfies a recursion over the
two coin successors (Turing.MultiTapePTM.viewAcceptCount), and it is the entry of the power of
the configuration matrix (Turing.MultiTapePTM.configMatrix_pow_mulVec_acceptVec). A
deterministic algorithm evaluates it exactly: breadth-first search lists the reachable views
(Turing.MultiTapeNTM.exists_computableInPolyTime_search), and t rounds update a table of
binary counts, one per view, by adding the counts of the two coin successors. Under a logarithmic
space bound there are polynomially many views, and every count of round t has at most t + 1
bits, so the evaluation runs in polynomial time for any horizon computed in unary in polynomial
time (Turing.MultiTapePTM.computableInPolyTime_acceptCoins). Comparing the count at the
polynomial clock with 2 / 3 of the 2 ^ t coin strings decides a BPL language, so BPL ⊆ P
(Cslib.Complexity.BPL_subset_P), and with Cslib.Complexity.RL_subset_BPL also RL ⊆ P. This
is a sequential exact evaluation of the configuration matrix, whose powers Borodin, Cook and
Pippenger evaluate in parallel Borodin, Cook and Pippenger.
The certificates use only the plain polynomial-time calculus.
Main definitions #
Turing.MultiTapePTM.viewAcceptCount: the accepting coin strings of a given length from a view.
Main results #
Turing.MultiTapePTM.computableInPolyTime_viewCoinStep: coin steps of views are polynomial-time.Turing.MultiTapePTM.configMatrix_pow_mulVec_acceptVec: the count is an entry of the power of the configuration matrix.Turing.MultiTapePTM.acceptCoins_eq_viewAcceptCount: the count from the initial view is the number of accepting coin strings.Turing.MultiTapePTM.computableInPolyTime_acceptCoins: under a logarithmic space bound, the number of accepting coin strings is polynomial-time at any horizon computed in unary in polynomial time.Cslib.Complexity.BPL_subset_P,Cslib.Complexity.RL_subset_P: randomized logarithmic space is within polynomial time.
References #
The accepting coin strings from a view: the number of coin strings of length t whose
replay from the view ends in a halted view with output [true], by recursion over the two coin
successors.
At most all coin strings are accepted.
The count is an entry of the power of the configuration matrix on any set of views closed under coin steps.
The count from the initial view is the number of accepting coin strings.
Coin steps of views are polynomial-time.
Evaluation of the counts on a table of views #
Accepting coin strings are counted in polynomial time under a logarithmic space bound:
breadth-first search lists the polynomially many reachable views, and T a rounds of the count
recursion over a table of binary counts evaluate acceptCoins (enc a) (T a) exactly, for any
horizon T computed in unary in polynomial time. Halting is not needed.
Randomized logarithmic space with two-sided error is within polynomial time: the number of
accepting coin strings at the polynomial clock is computed exactly
(Turing.MultiTapePTM.computableInPolyTime_acceptCoins) and compared with two thirds of all coin
strings.