Derandomization by enumerating the seeds of a generator #
A pseudorandom generator derandomizes a bounded-error verifier V by brute force: on an instance
x, run V on x and the string generated from each seed of some length k, and return the
strict majority of the answers Arora and Barak, Lemma 16.4,
Goldreich, Proposition 8.15. This file gives that decider for an arbitrary
seed map gen x : List Bool → List Bool, which may depend on the instance, and its two
properties.
- Correctness. If, on
x, the fraction of seeds on whichVaccepts the generated string is within1 / 6of the fraction of random strings thatVaccepts, then the majority vote gives the right answer (Cslib.Complexity.seedDecider_eq_true_iff): a bounded-error verifier accepts at least2 / 3or at most1 / 3of its random strings. - Running time. The decider is polynomial-time when the generator is and
2 ^ kis polynomially bounded (Cslib.Complexity.computableInPolyTime_seedDecider). For any seed lengthk(x)computable in unary in polynomial time, it runs within time and space2 ^ O(k(x))times a polynomial in the length ofx(Cslib.Complexity.exists_computableInO_seedDecider) when the generator is polynomial-time on the instance padded by2 ^ k(x), as a generator running in time2 ^ O(k)is: the decider is then polynomial-time on the padded instance (Turing.MultiTapeTM.ComputableInPolyTime.exists_computableInO_pad).
Its instances are the Nisan–Wigderson derandomization
(Cslib.Complexity.BPP_subset_P_of_isAverageCaseHard), the derandomization from circuit-secure
generators of polynomial stretch
(Cslib.Complexity.BPP_subset_DTIME_two_pow_rpow_of_polyStretch_circuitSecurePRG) and from
generators running in time exponential in the seed
(Cslib.Complexity.CanonicalDerandomizer.exists_mem_DTIME_of_mem_BPTIME).
Main definitions #
Cslib.Complexity.seedDecider: the strict majority of a verifier over the generated strings of all seeds of a computed length.
Main results #
Cslib.Complexity.seedDecider_eq_true_iff: correctness from a gap below1 / 6.Cslib.Complexity.seedDecider_eq_of_boundedError: the same for an expected Boolean answer.Cslib.Complexity.computableInPolyTime_seedDecider: polynomial time for logarithmic seeds.Cslib.Complexity.exists_computableInO_seedDecider: time2 ^ O(k)times a polynomial.
References #
The decider obtained from a verifier V by enumerating seeds: on an instance x, it runs V
on x and the string gen x z for each of the 2 ^ seed x seeds z of seed x bits, and
returns the strict majority of the answers.
Correctness #
Seed enumeration is correct when the generator fools the verifier on the instance. Let V
answer whether x ∈ A with bounded error on random strings of m bits: it accepts at least two
thirds of them if x ∈ A, and at most one third otherwise. If the fraction of the seeds z of
seed x bits on which V accepts gen x z is within 1 / 6 of the fraction of the random
strings of m bits that V accepts, then seedDecider V gen seed answers correctly on x.
Seed enumeration gives the expected answer. If V answers b with bounded error on random
strings of m bits at x (it accepts at least two thirds of them if b = true, at most one third
if b = false), and the seeds are within 1 / 6 of the random strings as in
seedDecider_eq_true_iff, then seedDecider V gen seed x = b.
Running time #
Seed enumeration in polynomial time. Let V and the generator be polynomial-time, and the
seed length seed x be computable in unary in polynomial time. When 2 ^ seed x is polynomially
bounded in the length of the instance, seedDecider V gen seed is polynomial-time.
Seed enumeration in time 2 ^ O(k). Let V be polynomial-time, and the seed length
seed x be computable in unary in polynomial time. Let the generator be polynomial-time on
instances padded to (x, N) with N = 2 ^ seed x in unary: gen' is polynomial-time on
((x, N), z) and agrees with gen x on seeds of seed x bits when N = 2 ^ seed x. A generator
running in time 2 ^ O(k) on seeds of k bits has such a padded form. Then
seedDecider V gen seed is computable within time and space C 2 ^ (D seed x) (|x| + 1) ^ D for
some constants C and D: on the padded instance it is polynomial-time.