Documentation

CslibFrontier.Computability.Complexity.Classes.LogSpace.Randomized.BPP

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 #

References #

theorem Cslib.Complexity.RL_subset_RP {α : Type} {enc : α ↪ List Bool} :
RL enc ⊆ RP enc

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.

theorem Cslib.Complexity.BPL_subset_BPP {α : Type} {enc : α ↪ List Bool} :
BPL enc ⊆ BPP enc

Randomized logspace with two-sided error is within BPP: the polynomial-clock run of a BPL machine is a probabilistic polynomial-time program with error at most 1/3.

theorem Cslib.Complexity.BPL_subset_PSPACE {α : Type} {enc : α ↪ List Bool} :
BPL enc ⊆ PSPACE enc

Randomized logspace with two-sided error is within polynomial space, through BPP ⊆ IP ⊆ PSPACE.