Computing the Nisan–Wigderson generator #
The derandomization of BPP with the Nisan–Wigderson generator is uniform: a deterministic
machine runs the verifier on the output of the generator for every seed and takes the majority
[NW94], Arora and Barak, Chapter 20. This file certifies that
computation in polynomial time, Turing.MultiTapeTM.ComputableInPolyTime.
Polynomial time is measured in the length of the instance, while the seeds have logarithmic
length ℓ, the hard function is evaluated on words of logarithmic length n, and the hard function
is only computable in time T n, exponential in n. The certificates therefore take polynomial
bounds on 2 ^ ℓ and on T n as functions of the instance:
- a problem in
Cslib.Complexity.DTIME encBits thas a Boolean decider computable within time and spaceO(t n)(Cslib.Complexity.exists_computableInO_of_mem_DTIME); - such a decider, applied to words cut to a computed length
n, runs in polynomial time whenT nis polynomially bounded (Turing.MultiTapeTM.ComputableInO.computableInPolyTime_take); - the greedy design of
Cslib.Crypto.PRG.NisanWigderson.greedyMasksis a loop over the2 ^ ℓmasks of lengthℓthat keeps at most one more mask per step (Cslib.Crypto.PRG.NisanWigderson.computableInPolyTime_greedyMasks); - the generator on lists
Cslib.Crypto.PRG.NisanWigderson.listGeneratorreads each block withCslib.Crypto.PRG.NisanWigderson.restrictMaskand evaluates the hard function (Cslib.Crypto.PRG.NisanWigderson.computableInPolyTime_listGenerator).
On pairs of an instance and a seed, the generator with computed parameters is polynomial-time
(Cslib.Complexity.computableInPolyTime_listGenerator_greedyMasks), so the seed-enumeration
decider Cslib.Complexity.seedDecider over it runs in polynomial time
(Cslib.Complexity.computableInPolyTime_seedDecider). Its correctness is the subject of
Cslib.Complexity.BPP_subset_P_of_isAverageCaseHard.
Main results #
Cslib.Complexity.exists_computableInO_of_mem_DTIME: deterministic time classes have deciders within the same time and space bound, up to constant factors.Turing.MultiTapeTM.ComputableInO.computableInPolyTime_take: evaluation of a function computable in timeT non words of polynomially boundedT n.Cslib.Crypto.PRG.NisanWigderson.computableInPolyTime_greedyMasks,Cslib.Crypto.PRG.NisanWigderson.computableInPolyTime_listGenerator: the greedy design and the generator in polynomial time, when2 ^ ℓandT nare polynomially bounded.Cslib.Complexity.computableInPolyTime_listGenerator_greedyMasks: the generator with computed parameters, on pairs of an instance and a seed, in polynomial time.
References #
Deterministic time classes have deciders within time and space O(t n). A problem
decided within time O(t n), by a machine with any space bound, has a Boolean decider computable
within time and space O(t n): time bounds space up to a linear factor.
Evaluation on short words. Let g be computable within time and space O(T n) on words
of length n, for a monotone T. Then cutting a word to a computed length cut x and applying
g is polynomial-time in the pair of x and the word, provided T (cut x) is polynomially
bounded in the length of x.
The greedy design in polynomial time. With computed seed length seed x, block size
block x and overlap bound overlap x, the greedy design is polynomial-time in x when
2 ^ seed x is polynomially bounded: the loop runs over 2 ^ seed x masks and keeps at most as
many.
The generator on lists in polynomial time. Let g be computable within time and space
O(T n) on words of length n, for a monotone T. With computed block size block x,
masks masks x and seed seed x, the generator on lists is polynomial-time in x when
T (block x) is polynomially bounded.
The Nisan–Wigderson generator with computed parameters in polynomial time. Let g be
computable within time and space O(T n) on words of length n, for a monotone T. On pairs of
an instance x and a seed, the generator with blocks of block x positions, the first out x
masks of the greedy design with seeds of seed x bits and overlaps at most overlap x, is
polynomial-time when the parameters are polynomial-time in unary and 2 ^ seed x and T (block x)
are polynomially bounded in the length of the instance. With
Cslib.Complexity.computableInPolyTime_seedDecider this runs the Nisan–Wigderson derandomization
in polynomial time.