Amplification for randomized logarithmic space with one-sided error #
Running an RL machine again on fresh coins when it does not accept
(Turing.MultiTapePTM.orElse) multiplies the probabilities of not accepting. Counted on coin
strings, the probability that first.orElse second does not accept is the product of those of
first and second (Turing.MultiTapePTM.acceptCoins_orElse); in particular it accepts nothing
when neither machine accepts anything. Repeating an RL machine r + 1 times therefore accepts
members on at least a 1 - 2 ^ (-r) fraction of the coin strings and non-members on none, in
logarithmic space and with every branch halting. Only a fixed number of repetitions is needed, so
the extra work tapes and control states are a constant overhead.
This is the error reduction for one-sided error Arora and Barak, Section 7.4.1,
carried out for logspace fair-coin machines with read-once coins. The acceptance threshold 1/2 in
the definition of Cslib.Complexity.RL can be replaced by any threshold 1 - 2 ^ (-r) with
r ≥ 1 (Cslib.Complexity.mem_RL_iff_error_le); with r = 2, members are accepted with
probability at least 3/4 ≥ 2/3, which gives RL ⊆ BPL.
Main results #
Turing.MultiTapePTM.runsInTime_toNTM_iff: halting on every branch is halting on every supported configuration of the closed fair-coin run.Turing.MultiTapePTM.acceptCoins_eq_mul_eval:acceptCoins input t / 2 ^ tis the probability that the closed fair-coin run outputs[true].Turing.MultiTapePTM.runsInTime_toNTM_orElse,Turing.MultiTapePTM.eval_runClosed_orElse_apply,Turing.MultiTapePTM.acceptCoins_orElse: halting time, acceptance probability and rejection count oforElse.Cslib.Complexity.mem_RL_iff_error_le: one-sided error amplification forRL.Cslib.Complexity.RL_subset_BPL: randomized logspace with one-sided error is withinBPL.
References #
Halting on every branch, in distribution. The nondeterministic view halts within t
steps exactly when every configuration supported by the closed fair-coin run with clock t is
halted.
The accepting coin strings measure the acceptance probability: once every branch halts
within t steps, acceptCoins input t / 2 ^ t is the probability that the closed fair-coin run
outputs [true].
first.orElse second halts on every branch within t₁ + (n + 2 + t₂) steps, where n is the
input length.
The acceptance probability of first.orElse second is q + p * (1 - q), where p and q
are those of first and second.
Rejections multiply under orElse. Counted on coin strings, the probability that
first.orElse second does not accept is the product of the probabilities that first and
second do not accept: with T = t₁ + (n + 2 + t₂),
(2 ^ T - acc) / 2 ^ T = (2 ^ t₁ - acc₁) / 2 ^ t₁ * (2 ^ t₂ - acc₂) / 2 ^ t₂.
One-sided error amplification for RL Arora and Barak, Section 7.4.1: for
every r ≥ 1, a language is in RL exactly when some logspace fair-coin machine that halts on
every branch accepts members on at least a 1 - 2 ^ (-r) fraction of the coin strings and
non-members on none. The machine for r runs an RL machine r + 1 times on fresh work tapes and
fresh coins and accepts if some run accepts (Turing.MultiTapePTM.orElse).