Better Pseudorandom Generators from Milder Pseudorandom Restrictions
Parikshit Gopalan, Raghu Meka, Omer Reingold, Luca Trevisan, Salil Vadhan
Introduction
These results, however, remain conditional on a circuit complexity assumption whose proof seems far off at present. Since s that fool a class of Boolean circuits also imply lower bounds for that class, we cannot hope to remove the assumption. Thus unconditional generators are only possible for restricted models of computation for which we have lower bounds.
Bounded-depth circuits and bounded-space algorithms are two models of computations for which we know how to construct s with seed length [Nis91, Nis92]. Known constructions for these classes have found several striking applications including the design of streaming algorithms [Ind06], algorithmic derandomization [Siv02], randomness extractors [Tre01], hashing [CRSW11], hardness amplification [HVV06], almost -wise independent permutations [KNR05], and cryptographic s [HHR06]. Arguably, constructing s with the optimal seed length for these classes are two of the outstanding open problems in derandomization.
Indeed, there are few models of computations for which we know how to construct s with the optimal seed length or even . The most prominent examples are bounded-degree polynomials over finite fields [NN93, AGHP92, BV10a, Lov08, Vio08], with parities (which are fooled by small-bias distributions [NN93]) as a special case, and models that can be reduced to these cases, such as width-2 branching programs [SZ95, BDVY09].
In summary, there are several interesting models of computation for which a polylogarithmic dependence on and is known, and the dependence on one parameter is logarithmic on its own (e.g. seed length ), but a logarithmic bound in both parameters together has been elusive. Finally, we remark that not having a logarithmic dependence on the error is often a symptom of a more fundamental bottleneck. For instance, s with constant error for width branching programs imply s with polynomially small error for width branching programs, so achieving the latter is a natural first step towards the former. A polynomial-time computable for s with seed length would imply the existence of a problem in exponential time that requires depth-3 circuits of size and that cannot be solved by general circuits of size and depth , which is a long-standing open problem in circuit complexity [Val77].
2 Our Results
s for combinatorial rectangles. Previously, it was known how to construct s with seed length [LLSZ97], but the best seed length for s was [Lu02].
s for read-once and formulas. Previously, De, Etesami, Trevisan, and Tulsiani [DETT10] and Klivans, Lee and Wan [KLW10] had constructed s with seed length .
s for width 3 branching programs. Previously, Sima and Zak [SZ11] had constructed hitting set generators for width 3 branching programs with seed length in case the error parameter is very large (greater than 5/6).
As a corollary of our for combinatorial rectangles we get improved hardness amplification in NP by combining our results with those of Lu Tsai and Wu [LTW07] - we refer to Section 5 for detailsWe thank an anonymous referee for pointing out this application..
3 Techniques
Our generators are all based on a general new technique — the iterative application of “mild” (pseudo)random restrictions.
We illustrate our technique below with a toy example.
Consider a read-once formula of width with clauses in which the variables appear in order (aka the Tribes function of [BL85]). That is,
where each is the OR function. has constant bias and can be computed both by a combinatorial rectangle and a width-3 branching program. De et al. showed that fooling this function with error using small-bias spaces requires seed-length .
Assume we partition the input bits into two parts: which contains the first variables of each clause and which contains the rest. Let denote the concatenation of the two strings. We would like to show that for a small-bias distribution and the uniform distribution,
A naive approach might be to view setting as applying a random restriction with probability . If this simplified the function to the extent that it can be fooled by small-bias spaces, we would be done. Unfortunately, this is too much to hope for; it is not hard to see that such a random restriction is very likely to give another Tribes-like function with width , which is not much easier to fool using small bias than itself.
Rather, we need to shift our attention to the bias function of . For each partial assignment , we define the bias function as
Our key insight is that for restrictions as above, the function is in fact easy to fool using a small-biased space. This is despite the fact that is an average of functions (by Equation (1.2)), most of which are Tribes-like and hence are not easy to fool.
Let us give some intuition for why this happens. Since ,
where is the bias function of the clause. But note that over a random choice of , is set to with probability and is a clause of width otherwise. Hence
As a consequence, over a random choice of , we now have
where denotes the elementary symmetric polynomial and .In the toy example we are currently studying, an alternative and simpler approach is to write , where is the indicator for whether already satisfies the ’th clause on its own. Then expands as a power series in , and higher moment bounds can be used to analyze what happens when we truncate this expansion. However, this expansion is rather specific to the highly symmetric Tribes function, whereas we are able to apply the expansion in terms of symmetric polynomials much more generally.
Under the uniform distribution, one can show that
Towards this end, we prove the following inequality for any real numbers :
The proof uses the Newton–Girard formulas (see [CLO07]) which relate the symmetric polynomials and power sums. This lets us repeat the same truncation argument, provided that and are tightly concentrated even under small-bias distributions. We prove this concentration holds via suitable higher moment inequalities.These inequalities actually require higher moment bounds for the ’s. We ignore this issue in this description for clarity, and because we suspect that this requirement should not be necessary.
This lets us show that small bias fools . By iterating this argument times, we get a for with polynomially small error and seed-length .
Read-Once 𝖢𝖭𝖥𝖢𝖭𝖥\mathsf{CNF}s.
Combinatorial Rectangles.
A combinatorial rectangle is a function of the form for some Boolean functions . Thus, here we know which parts of the input correspond to which clauses (like the toy example above), but our clauses are arbitrary functions rather than ORs. To handle this, we use a more powerful family of gradual restrictions. Rather than setting bits of each co-ordinate, we instead (pseudo)randomly restrict the domain of each to a set of size . More precisely, we use a small-bias space to pseudorandomly choose hash functions and replace with the restricted function .
Width 333 Branching Programs.
For width 3 branching programs, inspired by Sima and Zak [SZ11] we reduce the task of constructing s for width 3 to that of constructing s for read-once formulas where we also allow some clauses to be parities. Our construction for read-once s directly extends to also handle such formulas with parities (intuitively because small-bias spaces treat parities just like individual variables). The first step of our reduction actually works for any width , and shows how to reduce the the task of constructing s for width to constructing hitting set generators for width branching programs with sudden death, where the states in the bottom level are all assumed to be Reject states.
Organization.
Section 5 describes our construction for combinatorial rectangles. The reduction from hitting sets for width branching programs to hitting sets for s with parity is in Section 6. The generator for read-once s and for s with parity are presented in Section 7 and Section 8 respectively.
Preliminaries
We shall make extensive use of small-bias spaces, introduced in the seminal work of Naor and Naor [NN93]. Usually these are defined as distributions over , but it is more convenient for us to work with .
There exist explicit constructions of -biased spaces which can be sampled from with random bits [NN93]. These give efficient pseudorandom generators for the class of parity functions.
Let . We say a distribution on on is -almost independent with bias if satisfies the following conditions:
For any distinct indices and ,
There exist explicit constructions of distributions in as above which only need random bits [NN93]. We will write for short whenever is sampled from a -almost independent distribution with bias as above.
Sandwiching Approximators.
It is easy to see that the existence of such approximations implies that is fooled by any -biased distribution. In fact, as was implicit in the work of Bazzi [Baz09] and formalized in the work of De et. al. [DETT10], being fooled by small-bias spaces is essentially equivalent to the existence of good sandwiching approximators.
Pseudorandom Generators for 𝖢𝖭𝖥𝖢𝖭𝖥\mathsf{CNF}s.
A Conjunctive normal form formula () is a conjunction of disjunctions of literals. Throughout we view s as functions on , where we identify with and with . We say a is a read-once (), if no variable appears (by itself or as is its negation) more than once. We call the size of and the maximum number of variables in the width of . We shall also use the following results of [DETT10], [KLW10] which say that s with small number of clauses have very good sandwiching approximators.
Let be a with at most clauses. Then, for every , has -sandwiching polynomials with -norm at most .
Let be a with at most clauses and width at most . Then, for every , has -sandwiching polynomials with -norm at most .
Sandwiching Approximators for Symmetric Functions
Our main result on sandwiching approximators for symmetric functions is the following:
Let and and be such that
Let be a symmetric multilinear function of the s that computes a bounded function , with for all . Then,
For every -biased distribution , we have
has sandwiching approximations of norm .
As an illustration of this theorem, we state the following immediate corollary which formalizes the argument for the toy example in the introduction.
To derive Theorem 3.2 from Theorem 3.1, observe that in the notation from Section 1.3, , and all the other conditions hold.
In the rest of this section, we prove the first statement of Theorem 3.1. The second statement follows from the first by Lemma 2.6. We first sketch the steps involved in the proof.
Let be as in the theorem and let be a -biased distribution. Let . We will prove the theorem by showing that cannot distinguish the uniform distribution from by a series of inequalities:
To do this, we first show that there is an event that happens with high probability under any -biased distribution, and conditioned on which is a very good approximation for . We then prove the last inequality by conditioning on the event and using Cauchy-Schwarz to bound the error when does not occur. The event will correspond to , being small, which we show happens with high probability using classical moment bounds. Finally, we show that approximates well if happens by using the Newton-Girard Identities for symmetric polynomials (see Lemma 3.6).
Our first task will be to show that under the assumptions of the theorem, and are small with high probability. We do so by first bounding the ’th moments of these variables and applying Markov’s inequality. For this we will use Rosenthal’s inequalities ([Ros72], [JSZ85], [Pin94]) which state the following:
Let , . Then, ’s are independent mean-zero variables. Now, by Rosenthal’s inequality, Equation (3.2),
The second bound follows similarly by applying Rosenthal’s inequality,Equation (3.3), to the non-negative random variables :
A consequence of Lemma 3.4 is the following:
For all , under any -biased distribution ,
Next we show that , being small implies the smallness in absolute value of for every . Note that there is no probability involved in this statement.
Let be real numbers that satisfy
To prove this lemma, we first bound the power sums which are defined as
Hence we have .
The relation between the power sums and elementary symmetric polynomials is given by the Newton-Girard identities (see [CLO07], Chapter 7.1 for instance) discovered in the 17th century.
We use these to show by induction on that . For , we have
Assume we have proved the bound up to . Using the Newton-Girard formula,
denote the truncation of to degree . We use the following bounds for .
We observe that the symmetric polynomials on are mutually orthogonal under the uniform distribution, i.e., for ,
For brevity, we shall omit writing out the argument in the following. For , we have
Therefore, assuming that ,
Since , we have
which guarantees . By Equation (3.1) we have
Finally, for all small enough so that , the following bounds will hold under the assumptions of Theorem 3.1, by Corollary 3.5 and Lemma 3.7,
We now proceed to prove Statement (1) in Theorem 3.1, which we restate below with specific constants.
With the notation from Theorem 3.1, we have
We will show that under any -biased distribution ,
Note that is -biased for , so the above bound applies to it. We derive Equation (3.16) from Equation (3.17) as follows:
The first and last terms are bounded using Equation (3.17). We bound the middle term by
Equation (3.16) follows by plugging these bounds into Equation (3.18):
We now prove Equation (3.17). Define a good event containing those for which the following bounds hold:
We now bound the probability of using Markov’s inequality applied to a ’th moment bound obtained from Equations (3.14) and (3.15):
Let and denote the indicators of and respectively. We have
Plugging Equations (3.23) and (3.1) into Equation (3.22) we get Equation (3.17). ∎
An XOR Lemma for ε𝜀\varepsilon-biased spaces
Let be functions on disjoint input variables such that each has -sandwiching approximations of norm . Let be a multilinear function in its inputs. Let be defined as . Then has -sandwiching approximations of norm .
We will show using a hybrid argument, that
For simplicity, we only do the case . We define a sequence of polynomials where
To construct a lower-sandwiching approximator, we observe that
Finally, let denote the indicator vector of the set . Since is multilinear, we can write
A 𝖯𝖱𝖦𝖯𝖱𝖦\mathsf{PRG} for Combinatorial Rectangles
We start by defining combinatorial rectangles (s).
A combinatorial rectangle is a function of the form , where , and each .We refer to the s as the co-ordinate functions of . We refer to as the sizeThis is usually referred to as the dimension in the literature; we use this terminology for the analogy. of and as the width.
There is an explicit pseudorandom generator for the class of combinatorial rectangles of width and size with error at most and seed-length .
Consider the following two-step process for generating a uniformly element from .
Choose a sequence of multi-sets each of size by picking elements of independently and uniformly at random.
Sample and set .
Our final generator is obtained by iterating the one-step procedure for steps: At step we choose multi-sets each of cardinality exactly using small-bias. After steps, we are left with a rectangle of width . Such rectangles can be fooled by -bias spaces where . The total randomness used over all the steps is .
In the following, let be a of width and coordinate functions . We describe a restriction of which reduces the width from to .
For every , we sample string .
For , we define restricted co-ordinate functions on inputs by .
Define the restricted rectangle on by
Note that each only depends on column of . Define the bias function of as
The main lemma of this section shows that this bias function can be fooled by small-bias spaces.
For the sample average functions defined as in Equation (5.2), we have
where the last inequality holds for any Boolean function on input bits. The bound on the expectation follows directly from Equation (5.2). ∎
The justification for the name bias function comes from the following lemma.
For and as defined in Equation (5.1) and Equation (5.3),
We will need the following technical lemma, which helps us show that the functions satisfy the moment conditions needed to apply Theorem 3.1. For brevity, let denote in the remainder of this section.
W start by bounding the moments of . We have
which is the sum of i.i.d -biased random variables with mean . Hence we can apply Rosenthal’s inequality (Equation (3.2)) to get
For , let so that . We will construct sandwiching approximations for each and then combine them via Theorem 4.1. We assume without loss of generality that . Else, the ’th coordinate has bias and can be ignored without changing the rest of the proof.
We show that is itself small. Observe that , which implies that . Thus, by Claim 5.4,
Hence Theorem 3.1 implies the existence of ( and ) sandwiching approximations with norm bounded by where
By Theorem 3.1, has sandwiching approximations with norm bounded by where
Sandwiching F𝐹F.
The last inequality holds since at each step, we at most double the acceptance probability of the chosen co-ordinate, and hence of the overall formula. Hence we have
2 A Recursive Sampler for Combinatorial Rectangles
We now use Lemma 5.3 recursively to prove Theorem 5.2. Our generator is based on a derandomized recursive sampling procedure which we describe below. The inputs are the width and the size of the rectangles we wish to fool and an error parameter .
Let , .
While we sample according to an -biased distribution for for some large constant .
Assume that at step (where ), . Sample an input from an -biased distribution where, for some large constant ,
We next describe how we use to output an element of . For we denote by the recursive sampling function which takes strings for and and produces an output string . Set . Fix and let be already defined. To define , we will use to look up entries from the matrix , so that the ’th coordinate of will be the entry of in the ’th row and ’th column:
The above definition, though intuitive is a bit cumbersome to work with. It will be far easier for analysis to fix the input combinatorial rectangle and study the effect of the samplers on . Let . Each matrix gives a restriction of : it defines restricted co-ordinate functions and a corresponding restricted rectangle . We only use the following property of the s:
To analyze the last step, we use the following corollary that follows from [DETT10].
Every combinatorial rectangle is -fooled by -bias spaces for .
Each co-ordinate function can be expressed as a formula with clauses of width . Hence we can write as a formula with clauses of width . Now apply Theorem 2.8. ∎
be the domain of as defined in the generator construction.
Let denote the distribution on where are sampled from an -biased distribution for and uniformly for . Then, is the uniform distribution on whereas is the output of our Recursive Sampler.
Let be a combinatorial rectangle with width and size . For distributions and defined above, we have
Let . We will show by a hybrid argument that for all
In both and , is drawn from an -biased distribution for , and from the uniform distribution for . The only difference is which is sampled uniformly in and from an -biased distribution in .
We couple the two distributions by drawing for according to an -biased distribution. By Equation (5.4), we get
Define the bias function of the rectangle as in Equation (5.3). The string defines a restricted rectangle . Applying Claim 5.5 we get
In both distributions and , are distributed uniformly at random, hence are uniformly distributed, and this variable is independent of . So we have
For , note that this is equivalent to showing that -bias fools the rectangle . By Corollary 5.7, is fooled by -biased spaces where
Plugging these back into Equation (5.5), the error is bounded by . ∎
To complete the proof of Theorem 5.2, we observe that the total seed-length is
𝖧𝖲𝖦𝖧𝖲𝖦\mathsf{HSG}s for Read-Once Branching Programs
In thsi section, we reduce the problem of constructing an for width branching programs to the problem of construction for formulas which are allowed to have parity functions as clauses. We start with some definitions.
A read-once branching program (ROBP) of width has a vertex set partitioned into layers where
for .
The vertex is referred to as the Start state, while and are referred to as Acc and Rej, respectively. Each vertex in has two out-edges labeled and , which lead to vertices and respectively in . We refer to the set of states as the top level and as the bottom level.
Let denote the set of all that can be computed by width ROBPs. Our hitting set generator for uses a reduction to the problem of hitting formulas where clauses can be disjunctions of variables or parity functions.
Let denote the class of read once formulas of the form where each is either a disjunction of literals or a parity function of literals and the s are on disjoint variables.
Given this reduction, we get a for by using the for that we construct in Theorem 8.2:
For every , there exists an explicit - for with a seed-length of .
We remark that using similar techniques, we can also achieve a seed-length of which is better than the above bound for large values of . We defer the details of this to the full version.
The reduction in Theorem 6.2 is carried out in three steps.
The first step (for the sake of s) reduces arbitrary width programs to “sudden death” width programs, where the last state in every layer is a Rej state. (This step in fact works for all widths.)
The second step reduces “sudden death” width programs to intersections of width programs.
The third step reduces intersections of width programs to formulae.
A width BP with sudden death is a BP where the bottom level states are all states. Formally this means for all . Let denote the set of functions computable by such programs.
We reduce the problem of constructing hitting sets for width BPs to for ones with sudden death.
We first setup some notation. For a vertex let denote the probability of reaching Acc starting from over a uniformly random choice of . We call a state such that a Rej state. We order states in so that
Observe that, if is such that , then for all .
Let . Let be a set of states such that and let be the first layer such that . Let be obtained from by converting all states in into Rej states by redirecting the edges out of , , to . Let denote the accepting probabilities of vertices in . Then for all , we have .
If the claim is trivial, so fix such that . Let denote the event that we visit a vertex in if we follow from in and let denote the first vertex in that is visited by this path. Let denote the event that accepts. We have
where we use for all . But then
Finally, note that if we accept without ever reaching in , then is also accepted by . Hence . ∎
Thus, a random walk starting at reaches the top level with probability at least (since this is a necessary condition for to accept). For , let denote the probability that we reach the top level for the first time at layer . So
Hence there exists so that .
We now make the following modifications to to get a program which is a width program with sudden death:
For we convert the states into Rej states.
For we convert the states into Rej states.
We don’t need to add an additional layer for making these modifications since we are turning one state in each layer to a Rej state.
It is clear that computes a function . Our goal is to show that accepts a large subset of inputs accepted by . Indeed, we claim that
We observe that the probability that a random walk starting at reaches the top level for the first time in layer is the same in as in , hence it equals . Further, using Lemma 6.6 (to the sub-program of starting at ) we claim that
where we use the fact that . Note that the probability that accepts is at least , which comes from strings which reach state and then reach Acc.
The theorem now follows by setting . By definition, and
We now reduce width programs with sudden death to intersections of width programs.
Throughout this section, we are given computing . Let denote the set of non-reject states that have an out-edge leading to a state (which are all states such that ). Further for each , let denote the number of states visited by .
Suppose that . For , let denote the number of vertices in visited by in the first layers. Then, . We claim that,
This is because, if , then with probability at least , is a Rej state, in which case is a Rej state for every .
Further, if , then there must be an index , where , and (for instance can be the least such that ). Therefore,
where the last two inequalities follow from Equation (6.1) and the fact that ’s are non-decreasing. The claim now follows by induction. ∎
Let . Then
The rest of our argument is specific to . We restrict our attention to the accepting strings . For each vertex let . Each layer has three states and . We assume that (since accepting strings never visit a state). We first bound the probability mass on states in the set .
We partition the set based on the value of :
Since for all , we have . Sort the vertices in according to layer, so that . We have
Note that if then . Hence conditioning on not visiting is the same as conditioning on visiting . Further, conditioning on visiting is the same as conditioning on . Therefore,
because . Hence we have
where we used the fact that for , and . ∎
We only need to argue that and hence is an intersection of width branching programs. Note that is a width program but with Rej states for every vertex in . But we can view as an intersection of branching programs for , where has start state and accept state . This completes the proof of the claim. ∎
We now perform the final step in our sequence of reductions to prove Theorem 6.2.
Let be computed by a read-once, width branching program that reads variables for . Then is computable by a decision list of the following form.
reads variables for some of size .
We derive two consequences of Theorem 6.13.
4 𝖧𝖲𝖦𝖧𝖲𝖦\mathsf{HSG} for 𝖡𝖯(𝟥,𝗇)𝖡𝖯3𝗇\mathsf{BP(3,n)}
We now combine the previous sections to prove Theorems 6.2, 6.3.
Follows immediately from combining Theorem 6.5, 6.7, 6.12. ∎
Define, as follows:
Sample and .
Output s followed by the first bits of .
We claim that is a - for .
𝖯𝖱𝖦𝖯𝖱𝖦\mathsf{PRG}s for Read-Once 𝖢𝖭𝖥𝖢𝖭𝖥\mathsf{CNF}s
For every , there exists an explicit that fools all s on -variables with error at most and seed-length .
The core of our construction will be a structural lemma that can be summarized as follows: The bias function of a random restriction of where each variable has a small constant probability of being set has small -norm sandwiching approximators.
For a function , a subset and , define by
where denotes the appropriate concatenation: if and if . We call the “bias function” of the restriction .
We will show that for a , and chosen in an almost -wise independent manner, the bias function has small -norm sandwiching approximators with very high probability (over the choice of ).
There exists a constant and such that the following holds for every and . Let be a and . Then, with probability at least , has -sandwiching approximators with -norm at most
Let . By abuse of notation, we will let denote the set of variables appearing in as well. In our analysis we shall group the clauses based on their widths. Let .
Fix a . Note that has clauses. Without loss of generality, suppose that . Let .
For brevity, suppose that and let . For , and , define by
Let . Then,
By expanding the above expression we can write where the coefficients are at most in absolute value. We will show that satisfy the conditions of Theorem 3.2.
Clearly, are on disjoint subsets of . Note that . Hence, as , for . Now, as , . Thus, for ,
Finally, note that each has -norm at most . This is because any clause, and hence , has -norm at most . Therefore, the functions satisfy the conditions of Theorem 3.2. Thus,
We are almost done, but for . We will show that with high probability over , has clauses. To do so we will follow a standard argument for showing large deviation bounds using bounded independence.
For and , let be the indicator variable that is if the variable corresponding to the ’th literal in the ’th clause of is included in and otherwise. Let
To see this observe that whenever , is at least . Let us first calculate this expectation when the variables are truly independent. In this case, as , and each clause has at most variables,
for for a sufficiently large constant. Combining the above equations and applying Theorem 2.7, we get that with probability at least , has -sandwiching polynomials with -norm at most
Therefore, from Equation (7.3) and Theorem 4.1, with probability at least ,
A careful examination of the argument for reveals that we used two main properties: there are at most clauses in and every clause has length at least . Both of these are trivially true for with . Thus, the same argument applies. In particular, with probability at least ,
Therefore, we can apply Theorem 4.1. In particular, by Equations 7.2, 7.4, 7.5, and a union bound, for we have: with probability at least , has -sandwiching polynomials with -norm at most
The lemma now follows by setting .
Handling Small Bias Case.
2 Restrictions Simplify 𝖱𝖢𝖭𝖥𝖱𝖢𝖭𝖥\mathsf{RCNF}s
We next argue that for restrictions where are chosen from almost-independent distributions as in the previous section, s simplify significantly and in particular have few surviving clauses with very high probability.
Let have clauses, where , otherwise there is nothing to prove. Without loss of generality, suppose that and . Let be the indicator variable that is if survives in (i.e., is not fixed to be true) and otherwise. We first do the calculations assuming that the variables in and are truly independent and later transfer these bounds to the almost independent case.
Here, the first inequality follows from observing that if , then is at least . Therefore,
Now, setting for a sufficiently small constant and using the fact that , it follows that
where the first inequality follows from the power-mean inequality. The claim now follows. ∎
In our recursive analysis we will also have to handle s that need not have high acceptance probabilities. The following corollary will help us do this.
3 A Recursive 𝖯𝖱𝖦𝖯𝖱𝖦\mathsf{PRG} Construction for 𝖱𝖢𝖭𝖥𝖱𝖢𝖭𝖥\mathsf{RCNF}s
We now use Lemmas 7.2 and 7.3 recursively to prove Theorem 7.1. The main intuition is as follows.
Fix and let constants be as in Lemma 7.2. Let be a -almost independent distribution on with bias . Finally, let denote -biased and -biased distributions on respectively for to be chosen later. Let for to be chosen later. Consider the following randomized algorithm for generating a string .
For , generate independent samples and .
Let and for . This is equivalent to sampling from a -almost independent distribution with bias from the set of subsets of as yet “uncovered” elements .
Let . This is equivalent to sampling using a -biased distribution over .
Let and be the appropriate concatenation: for , if .
Let . The final generator output is defined by
To analyze our generator we first show that the restriction preserves the bias of s. Let be the bound from Lemma 7.2.
For defined as above, with probability at least over the choice of , for every ,
We will prove the claim by a hybrid argument. For , let and let denote the distribution of (the concatenation is done as in the definition of ). Note that and differ only in the ’th concatenation element, . Further, is uniformly distributed on and is the distribution of . We will show that with probability at least , over the choice of ,
We couple the distributions and by drawing for and let . Now, as are chosen uniformly at random,
Consider any fixing of the variables and and let be the obtained from under this fixing. Then, by Lemma 7.2, is fooled by small-bias spaces: with probability over the choice of ,
Combining the above three equations, we have with probability at least over ,
The claim now follows by taking a union bound for . ∎
We are now ready to prove our main construction. The idea is to combine Lemmas 7.3, 7.5. For chosen as in Lemma 7.5 we do not change the bias of the restricted function, on the other hand by iteratively applying 7.3 we can show that the resulting restricted has clauses and hence is fooled by -biased distributions.
Let be as defined in Equation (7.6). Fix a . Let be the obtained by from by fixing the variables in to . Let . Note that
Finally, note that for any ,
Combining the above two equations with Lemma 7.5, we get
Therefore, by setting the above error is at most . The number of bits used by the generator is
The theorem now follows by rescaling for a large constant . ∎
We construct a for the class of . The generator will be the same as in Theorem 7.1. The analysis will also be similar and in fact follow easily from Theorem 7.1. To do this, we shall use the following simple claim.
Let be a conjunction of parity constraints on variables. Then, has -norm at most .
Let be the subsets defining the parity constraints in . Then,
For every , there exists an explicit that fools all formulas on -variables with error at most and seed-length .
Let be the generator from Theorem 7.1. We will show that fools as well. This does not follow in a black-box manner from Theorem 7.1, but we will show analogues of Theorem 2.7, Lemma 7.2 and Lemma 7.3 hold so that the rest of the proof of Theorem 7.1 can be used as is.
Let be a of size . Let , where has all the parity constraints of and the clauses.
Note that for any subset , is a constant function. Therefore, , where . Thus, by applying Lemma 7.2 to , we get an analogous statement for .
Finally, we show an analogue of Lemma 7.3. Suppose that has acceptance probability at least . Then, has at most clauses. Therefore, by Lemma 7.3 applied to , we also get a similar statement for with a slightly worse constant of . By arguing as in the proof of Corollary 7.4, we get a similar statement for .
Examining the proof of Lemma 7.1 shows that given the above analogues of Theorem 2.7, Lemma 7.2 and Lemma 7.3, the rest of the proof goes through. The theorem follows. ∎