Randomized logarithmic space is within randomized polynomial time #
A fair-coin machine of Cslib.Complexity.RL or Cslib.Complexity.BPL halts on every branch, so
it halts within a polynomial clock (Cslib.Complexity.exists_polyClock_of_mem_BPL). Run for that
clock and followed by the polynomial-time test of whether its output is [true], it is a
uniform strict probabilistic polynomial-time program
(Cslib.Probability.IsPPTOn), accepting with the probability acceptCoins input t / 2 ^ t
(Turing.MultiTapePTM.acceptCoins_eq_mul_eval). The characterizations of RP and BPP by such
programs (Cslib.Complexity.mem_PromiseRP_iff_exists_isPPTOn,
Cslib.Complexity.mem_PromiseBPP_iff_exists_isPPTOn) then give RL ⊆ RP and BPL ⊆ BPP
Arora and Barak, Section 7.7. With BPP ⊆ IP ⊆ PSPACE
(Cslib.Complexity.BPP_subset_IP, Cslib.Complexity.IP_subset_PSPACE) this gives
BPL ⊆ PSPACE.
The stronger inclusion BPL ⊆ P, by exact evaluation of the configuration matrix, is
Cslib.Complexity.BPL_subset_P in
CslibFrontier.Computability.Complexity.Classes.LogSpace.Randomized.PolyTime.
Main results #
Cslib.Complexity.RL_subset_RP: randomized logspace with one-sided error is withinRP.Cslib.Complexity.BPL_subset_BPP: randomized logspace with two-sided error is withinBPP.Cslib.Complexity.BPL_subset_PSPACE: and within polynomial space.
References #
Randomized logspace with one-sided error is within RP: the polynomial-clock run of an
RL machine is a probabilistic polynomial-time program that accepts members with probability at
least 1/2 and never accepts non-members.