<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Log-Seed Pseudorandom Generators via Iterated Restrictions</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>07/17/2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10201040</idno>
					<idno type="doi"></idno>
					<title level='j'>Leibniz international proceedings in informatics</title>
<idno>1868-8969</idno>
<biblScope unit="volume">169</biblScope>
<biblScope unit="issue">2020</biblScope>					

					<author>Dean Doron</author><author>Pooya Hatami</author><author>William Hoza</author><author>Shubhangi Saraf</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[There are only a few known general approaches for constructing explicit pseudorandom generators (PRGs). The "iterated restrictions" approach, pioneered by Ajtai and Wigderson [Ajtai and Wigderson, 1989], has provided PRGs with seed length polylog n or even Õ(log n) for several restricted models of computation. Can this approach ever achieve the optimal seed length of O(log n)? In this work, we answer this question in the affirmative. Using the iterated restrictions approach, we construct an explicit PRG for read-once depth-2 AC⁰[⊕] formulas with seed length O(log n) + Õ(log(1/ε)). In particular, we achieve optimal seed length O(log n) with near-optimal error ε = exp(-Ω̃(log n)). Even for constant error, the best prior PRG for this model (which includes read-once CNFs and read-once 𝔽₂-polynomials) has seed length Θ(log n ⋅ (log log n)²) [Chin Ho Lee, 2019]. A key step in the analysis of our PRG is a tail bound for subset-wise symmetric polynomials, a generalization of elementary symmetric polynomials. Like elementary symmetric polynomials, subset-wise symmetric polynomials provide a way to organize the expansion of ∏_{i=1}^m (1 + y_i). Elementary symmetric polynomials simply organize the terms by degree, i.e., they keep track of the number of variables participating in each monomial. Subset-wise symmetric polynomials keep track of more data: for a fixed partition of [m], they keep track of the number of variables from each subset participating in each monomial. Our tail bound extends prior work by Gopalan and Yehudayoff [Gopalan and Yehudayoff, 2014] on elementary symmetric polynomials.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The famous "L vs. BPL" problem asks whether randomness is ever truly necessary for space-efficient computation. To prove L = BPL, it suffices to design a suitable pseudorandom generator (PRG), i.e., an efficient algorithm that stretches a short truly random seed to a long bitstring that "looks random". To be more specific, the action of a small-space algorithm on its random bits can be modeled by a read-once branching program (ROBP). Therefore, to prove L = BPL, it suffices to design an efficient PRG with seed length O(log n) that fools polynomial-width ROBPs.</p><p>A large and growing body of work has made significant progress toward this ambitious goal. Most work on L vs. BPL can be broadly divided into two main approaches.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">The "Seed Recycling" Approach</head><p>The "classical" approach to L vs. BPL is based on the observation that there is limited communication between the first half of an ROBP and its second half. Therefore, after using a few truly random bits to generate the first half of a pseudorandom string, the truly random bits can be efficiently recycled to generate the second half of the pseudorandom string. This insight is essentially due to Nisan <ref type="bibr">[26]</ref>.</p><p>Of the line of work that uses this approach, some highlights include PRGs for polynomialwidth ROBPs with seed length O(log 2 n) <ref type="bibr">[26,</ref><ref type="bibr">20,</ref><ref type="bibr">15]</ref>; PRGs for constant-width "regular" ROBPs with seed length O(log n) <ref type="bibr">[7,</ref><ref type="bibr">11,</ref><ref type="bibr">21,</ref><ref type="bibr">32,</ref><ref type="bibr">6]</ref>; and derandomization techniques that go beyond the construction of PRGs <ref type="bibr">[27,</ref><ref type="bibr">31]</ref>. More recently, this "seed recycling" approach has been used to obtain improved generators for polynomial-width ROBPs when the error parameter &#949; is very small <ref type="bibr">[5,</ref><ref type="bibr">19]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">The "Iterated Restrictions" Approach</head><p>The more "modern" approach to L vs. BPL is to design a pseudorandom generator by iterated pseudorandom restrictions. That is, we pseudorandomly assign values to a pseudorandomly chosen subset of the variables, and then repeat the process to assign values to all variables. Intuitively, designing a pseudorandom restriction for some function f is easier than fooling f outright, because designing a pseudorandom restriction amounts to fooling a "smoothed out" version of f <ref type="bibr">[16]</ref>, or equivalently, designing a PRG that would fool f if some noise were added <ref type="bibr">[18]</ref>. This "iterated restrictions" approach goes back to early work by Ajtai and Wigderson <ref type="bibr">[2]</ref>, but its modern incarnation is largely due to Gopalan et al. <ref type="bibr">[16]</ref>.</p><p>Of the line of work that takes this approach, some highlights include PRGs for arbitrarilyordered ROBPs with seed length polylog n <ref type="bibr">[33,</ref><ref type="bibr">9,</ref><ref type="bibr">14]</ref>; PRGs for width-3 ROBPs with seed length O(log n) <ref type="bibr">[16,</ref><ref type="bibr">33,</ref><ref type="bibr">24]</ref>; PRGs for bounded-depth read-once formulas with seed length O(log n) <ref type="bibr">[16,</ref><ref type="bibr">10,</ref><ref type="bibr">13]</ref>; and near-optimal PRGs for arbitrary-order product tests <ref type="bibr">[18,</ref><ref type="bibr">22]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3">Log-Seed PRGs and Our Main Result</head><p>At two extremes, one can either try to derandomize all of BPL as efficiently as possible (e.g. <ref type="bibr">[26,</ref><ref type="bibr">31]</ref>), or else one can try to optimally derandomize as much of BPL as possible (e.g. <ref type="bibr">[28,</ref><ref type="bibr">29]</ref>). Let us adopt the second goal.</p><p>In some cases, the "seed recycling" approach has indeed yielded PRGs with truly optimal seed length, at least for moderate error. For example, PRGs are known with seed length O(log n) that fool all O(log n)-space algorithms that use only polylog(n) random bits in the first place <ref type="bibr">[1,</ref><ref type="bibr">28,</ref><ref type="bibr">19]</ref>. For another example, PRGs for constant-width "permutation" ROBPs are known with seed length O(log n) <ref type="bibr">[11,</ref><ref type="bibr">21,</ref><ref type="bibr">32]</ref>. D. Doron, P. Hatami, and W. M. Hoza</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:3</head><p>The present work considers the question of whether the "iterated restrictions" approach can also yield a PRG with seed length O(log n) for some interesting class of tests. At first glance, this might seem doubtful, since after all we must pay for many pseudorandom restrictions. Nevertheless, we answer in the affirmative, proving the following theorem.</p><p>Theorem 1. For all n &#8712; N and &#949; &gt; 0, there is an explicit &#949;-PRG for read-once depth-2 AC 0 [&#8853;] formulas on n input bits with seed length</p><p>Specifically, the seed length of our PRG is O log n + log(1/&#949;) &#8226; (log log(1/&#949;)) 5 . One can prove a lower bound of &#8486;(log n + log(1/&#949;)) on the seed length of any PRG for this model. 1   </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.4">Read-Once Depth-2 AC 0 [&#8853;] Formulas</head><p>The class of functions that is fooled by our PRG (read-once depth-2 formulas over the basis {&#8743;, &#8744;, &#8853;}, with negations allowed at the inputs for free) is certainly of interest. It includes read-once CNFs and read-once F 2 -polynomials as special cases. The problems of fooling these classes have both received a lot of attention <ref type="bibr">[12,</ref><ref type="bibr">16,</ref><ref type="bibr">4,</ref><ref type="bibr">23,</ref><ref type="bibr">24,</ref><ref type="bibr">22]</ref>. Previously, even for read-once CNFs, PRGs with seed length O(log n) were only known for constant error <ref type="bibr">[8,</ref><ref type="bibr">12]</ref>, whereas our PRG maintains seed length O(log n) with near-optimal error &#949; = exp(-&#8486;(log n)). Meanwhile, for read-once F 2 -polynomials, no PRGs with seed length O(log n) were known at all prior to our work.</p><p>Gopalan et al. did give a PRG with near-optimal seed length O(log(n/&#949;)) for read-once CNFs, and more generally for read-once depth-2 AC 0 [&#8853;] formulas with the property that the output gate is not &#8853; <ref type="bibr">[16]</ref>. They used their PRG to construct a near-optimal hitting set for width-3 ROBPs <ref type="bibr">[16]</ref>. A subsequent line of work provided near-optimal PRGs for all read-once depth-2 AC 0 [&#8853;] formulas <ref type="bibr">[23,</ref><ref type="bibr">24,</ref><ref type="bibr">22]</ref>. 2  Conversely, a read-once depth-2 AC 0 [&#8853;] formula can be simulated by a width-4 ROBP (after suitably permuting the variables). The problems of designing improved PRGs for width-4 ROBPs and for read-once AC 0 [&#8853;] formulas of any constant depth are two major frontiers in unconditional pseudorandomness <ref type="bibr">[24,</ref><ref type="bibr">13]</ref>. The model we study in this paper is an interesting special case.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.5">Overview of Our Approach</head><p>Let us focus on the problem of designing a PRG with seed length O(log n), with &#949; as small as possible. For simplicity, assume the test function is a read-once</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.5.1">One Restriction</head><p>Ultimately, we wish to design a full PRG via iterated pseudorandom restrictions. To begin, we will explain how to construct just one pseudorandom restriction that assigns values to a constant fraction of the inputs. We use almost O(log n)-wise independence to select the subset of inputs to keep "alive" for each coordinate, where the probability of staying alive is a constant p &#8776; 1. We use a small-bias distribution to assign values to the remaining inputs. Sampling this pseudorandom restriction only costs O(log n) truly random bits.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.5.1.2">Argument 2: The Forbes-Kelley Approach [14]</head><p>Building on prior work <ref type="bibr">[30,</ref><ref type="bibr">18,</ref><ref type="bibr">9]</ref>, Forbes and Kelley showed that a restriction based on &#948;-biased distributions preserves the expectation of any arbitrary-order constant-width ROBP to within error 1/n, where log(1/&#948;) = O(log n log log n) <ref type="bibr">[14]</ref>. Our test function f can be simulated by a width-4 ROBP under some variable order. Unfortunately, given our budget of O(log n) truly random bits, we can only afford to sample from a (1/ poly(n))-biased distribution.</p><p>To move forward, let us turn things around a little: the analysis of Forbes and Kelley shows that a restriction based on &#948;-biased distributions preserves the expectation to within error &#949;, where &#949; = exp(-&#8486;(log(1/&#948;)/ log log(1/&#948;))). The point is that this latter statement holds even for a relatively large &#948;, assuming the ROBP reads at most 1/&#949; variables. Therefore, if we assume that our test function f only reads a few variables (say, polylog n many), then the Forbes-Kelley approach shows that our pseudorandom restriction preserves the expectation of f to within error &#949; = exp(-&#8486;(log n/ log log n)).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.5.1.3">Argument 3: Subset-Wise Symmetric Polynomials</head><p>Assume this time that the degree of every term of f is in the interval [C log log n, C log n] for some appropriate constant C. Assume also that for every w, there are at most 3 w terms of degree w. For this case, we return to an older approach based on symmetric polynomials <ref type="bibr">[16,</ref><ref type="bibr">17,</ref><ref type="bibr">24]</ref>, introduced by Gopalan et al. <ref type="bibr">[16]</ref>. The idea is as follows. Let Z &#8712; {0, 1} n indicate which variables will remain alive. For convenience, for any {0, 1}-valued function f , let f = (-1) f . Having already sampled Z, our remaining task is to argue that the small-bias distribution Y fools the "bias function" defined by</p><p>D. Doron, P. Hatami, and W. M. Hoza</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:5</head><p>Translating {0, 1} to {&#177;1}, the &#8853; operation becomes multiplication, i.e., f = i f i . For independent random variables, product and expectation can be interchanged, so the bias function of f is the product of the bias functions of the f i -s. Define f i so that the bias function of</p><p>The approach used in prior work <ref type="bibr">[16,</ref><ref type="bibr">17,</ref><ref type="bibr">24]</ref> is to expand Equation (1) in terms of elementary symmetric polynomials. Recall that for y &#8712; R m , the k-th elementary symmetric polynomial S k (y) is defined by</p><p>We can expand Equation (1) as</p><p>Therefore, the error of our pseudorandom restriction is captured by</p><p>). Now we can reason as follows. Pick a cutoff point k 0 .</p><p>For k &#8804; k 0 , we do a Fourier L 1 calculation to show that S k ( f 1 , . . . , f m ) has near-zero expectation even under the small-bias distribution Y .</p><p>For k &#8776; k 0 , we do a variance calculation to show that S k ( f 1 , . . . , f m ) is small with high probability under the uniform distribution, hence also under Y by the previous L 1 calculation.</p><p>Finally we invoke a tail bound <ref type="bibr">[17]</ref>, which says that if S k0 and S k0+1 are both small, then the sum of all subsequent values is also small. How should we choose the cutoff point k 0 ? If f is a homogeneous F 2 -polynomial of degree w, then we should pick k 0 = &#920;( log n w ). That way, k 0 is small enough for the L 1 calculation to work out, because the number of monomials in S k0 (y 1 , . . . , y m ) is</p><p>But at the same time, k 0 is large enough to sufficiently dampen</p><p>In fact, one can show that</p><p>. This is small enough for the tail bound to give an overall error of 1/ poly(n).</p><p>The difficulty, of course, is that f is not necessarily homogeneous, i.e., the terms of f do not necessarily all have the same degree. To address this difficulty, following prior work, let us partition the terms of</p><p>there is a suitable cutoff point k 0 , so our restriction preserves the expectation of F q . C C C 2 0 2 0 6:6</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Log-Seed Pseudorandom Generators via Iterated Restrictions</head><p>At this point, the approach taken by prior work has been to invoke a generic XOR lemma (see <ref type="bibr">Lemma 6)</ref> to argue that our restriction must also preserve the expectation of the parity of the F q 's, i.e., our test function f . This XOR lemma is a suitable generalization of the fact that the Fourier L 1 norm is submultiplicative. Unfortunately, invoking the XOR lemma would require us to start with a smaller-bias distribution Y . Effectively, to invoke the XOR lemma, we would have to pay a factor of Q in the seed length, which we cannot afford.</p><p>Therefore, we take a different approach. Our observation is that ideally, the cutoff point k 0 should guarantee that every product i&#8712;I f i appearing in S k0 ( f 1 , . . . , f m ) involves &#920;(log n) of the input variables x 1 , . . . , x n . Intuitively, that's why the right choice is k 0 = &#920;( log n w ) for degree w. When the terms of f do not all have the same degree, the products i&#8712;I f i appearing in S k ( f 1 , . . . , f m ) do not all involve the same number of input variables x 1 , . . . , x n , hence there isn't a well-defined correct choice of k 0 . This suggests that Equation (2) is simply not the best expansion of Equation <ref type="bibr">(1)</ref>.</p><p>These observations motivate the definition of subset-wise symmetric polynomials. We defer to Section 2 for the precise definition, but the point is that they allow us to give a more refined expansion of Equation <ref type="bibr">(1)</ref>, where instead of just keeping track of k (the number of f i -s participating in each monomial of S k ) we keep track of a whole vector k giving the numbers of f i -s from each bucket participating in each monomial of S k . This allows us to define a norm k that measures the number of input variables x 1 , . . . , x n that participate in each monomial of S k ( f 1 , . . . , f m ).</p><p>We expand Equation (1) in terms of subset-wise symmetric polynomials by summing over all vectors k:</p><p>Now we can cut off this sum at k = &#920;(log n). To complete the argument, we extend known tail bounds for elementary symmetric polynomials <ref type="bibr">[17]</ref> to the case of subset-wise symmetric polynomials.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.5.2">Iterating the Restriction to Get a Full PRG</head><p>So far, we have outlined the proof that our pseudorandom restriction preserves the expectation of the test function f . Our pseudorandom restriction costs O(log n) truly random bits. But our goal is to design a full PRG with seed length O(log n). It seems that one restriction already uses up our entire budget of truly random bits, so how can we afford to iterate the process?</p><p>A key insight is that if f only reads n variables (n &#8804; n), then a pseudorandom restriction for f ought to only cost O(log n ) truly random bits rather than O(log n). This intuition can be justified using standard constructions of n -wise small-bias distributions <ref type="bibr">[25,</ref><ref type="bibr">3]</ref>, provided n &#8805; log n. (A similar insight was used previously by Lee and Viola <ref type="bibr">[23]</ref>.) Let C be a constant such that one pseudorandom restriction costs C log n truly random bits.</p><p>To simplify the discussion, assume f is homogeneous of degree w = &#920;(log n). Each restriction keeps approximately a p-fraction of variables alive. For simplicity, assume that in each term, exactly a p-fraction of variables remain alive, i.e., assume that after i pseudorandom restrictions, the restricted F 2 -polynomial is homogeneous of degree p i w.</p><p>We divide into two cases. For the first case, suppose that the number of terms is always at most exponential in the degree. Specifically, suppose the number of terms is at most 16 w , where w is the degree at that stage. In this case, our pseudorandom restrictions get cheaper and cheaper as we go. Quantitatively, after i restrictions, the restricted polynomial reads only n variables, where n = p i w &#8226; 16 p i w . Therefore, the cost of restriction i + 1 is only</p><p>Therefore, if we do a total of t pseudorandom restrictions, the total cost is bounded by</p><p>This geometric sum is bounded by O(w) = O(log n), regardless of t. To optimize the error of our PRG, we choose t = O(log log log n); after this many restrictions, the number of living variables is small enough that we can stop the iteration and apply a prior near-optimal PRG by Lee <ref type="bibr">[22]</ref> to finish the job.</p><p>For the second case, suppose that at some stage the number of terms is enormous compared to the degree: the degree is w and the number of terms is more than 16 w . This setting was studied previously by Meka, Reingold, and Tal <ref type="bibr">[24]</ref>, who gave an optimal PRG for any function that can be written as a parity of an enormous number of functions on small disjoint variable sets. Therefore, in this case, we can stop doing pseudorandom restrictions, and instead fool the function outright using the PRG by Meka et al. <ref type="bibr">[24]</ref>.</p><p>Of course we do not know in advance which case we are in, but this difficulty can be resolved by straightforward XORing.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Subset-Wise Symmetric Polynomials</head><p>In this section, we will formally define subset-wise symmetric polynomials and prove suitable tail bounds for them. This section can be read on its own, independent of the application to PRGs. We start by recalling known tail bounds for elementary symmetric polynomials.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Gopalan and Yehudayoff's Bounds for Symmetric Polynomials</head><p>As a reminder, the k-th elementary symmetric polynomial is defined by</p><p>We rely on the following tail bound by Gopalan and Yehudayoff <ref type="bibr">[17]</ref>. As discussed in Section 1.5.1, the bound says that if two S k -s in a row are small, then all subsequent S k -s are small. </p><p>, we define the following polynomial:</p><p>We name these polynomials as subset-wise symmetric polynomials, since for every q &#8712; [Q], S k (y) when restricted to the B q variables is a degree k[q] symmetric polynomial.</p><p>Throughout this section we fix B = (B 1 , ..., B Q ) to be a partition of <ref type="bibr">[m]</ref>. When the partition B is clear from the context, we will simply write S k instead of S k,B . To formulate our tails bounds for the subset-wise symmetric polynomials, we will need the following auxiliary polynomials:</p><p>Given c &gt; 1, we will assign each vector k &#8712; N Q a weight, defined as</p><p>(In our PRG application, B q will be the set of terms with approximately c q input variables, so k (c) will be approximately the number of input variables participating in each monomial of S k , as outlined in Section 1.5.1.) It is easy to verify that the above weight function is indeed a norm; however, we will not be using this observation.</p><p>The main result of this section is a tail-bound for subset-wise symmetric polynomials. In Lemma 3, the parameter A is analogous to the "cutoff point" k 0 discussed in Section 1.5.1.</p><p>Then, except with probability</p><p>Lemma 3 is similar in spirit to Theorem 2: it says that if the "early" subset-wise symmetric polynomials are small (with high probability), then the "late" subset-wise symmetric polynomials are all small (with high probability).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Non-probabilistic Tail Bound</head><p>Before moving to the proof of Lemma 3 in the next subsection, here we first give a tail-bound in the case when the input y satisfies some useful properties. We will later prove Lemma 3, by showing that a random Y satisfies these properties with high probability. Given a vector</p><p>Our non-probabilistic tail bound goes as follows.</p><p>Lemma 4. Suppose c &gt; 1 and Q, A &#8712; N satisfy A &gt; max</p><p>Then,</p><p>Proof. For a fixed &#8712; N and q &#8712; [Q], define</p><p>which is the -th elementary symmetric polynomial applied to (y i ) i&#8712;Bq . Similarly, define</p><p>1}, and for each q &#8712; Q, let &#952; q &gt; 0 be the smallest 4 number satisfying</p><p>By Theorem 2,</p><p>. 4 It is possible that &#952;q = 0 satisfies Equation (3). In this degenerate case, we must have S k[q],q = 0. This implies S k (y) = 0, hence Equation (4) trivially holds.</p><p>C C C 2 0 2 0 6:10</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Log-Seed Pseudorandom Generators via Iterated Restrictions</head><p>Subset-wise symmetric polynomials by design can be expressed as a product of elementary symmetric polynomials, hence</p><p>. By our choice of &#952; q ,</p><p>Therefore, there exist disjoint sets</p><p>and that for every q &#8712; Q,</p><p>Multiplying over q &#8712; Q, we get</p><p>As a result,</p><p>To see the second inequality, observe that when</p><p>&#8804; (8e 2/10 5 ) k [q] , and otherwise 8e k</p><p>&#8804; (8e) &#955; . Summing up over all choices of k we get,</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4">Probabilistic Tail Bound: Proof of Lemma 3</head><p>Proof. Let k, Q 1 , and Q 2 be as in the statement of Lemma 4. Using the Cauchy-Schwarz inequality and the concavity of (&#8226;) 1/4 , we get</p><p>Therefore, by Markov's inequality, except with probability at most 2 -k (c) /256 &#8804; 2 -A/2560000 , we have</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>32</head><p>.</p><p>C C C 2 0 2 0 6:12</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Log-Seed Pseudorandom Generators via Iterated Restrictions</head><p>The above analysis was done for a fixed choice of k, Q 1 , and Q 2 . The number of choices for such k is A Q (which is subexponential in A), and the number of such Q 1 , Q 2 is at most 3 Q (which is a polynomial in A), thus Lemma 3 follows by a union bound. More precisely, one can check that since</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Pseudorandomness Preliminaries</head><p>Having completed our analysis of subset-wise symmetric polynomials, we now move on to setting the groundwork for our PRG construction and analysis.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Probability Basics</head><p>Let U n denote the uniform distribution over {0, 1} n . We will simply write</p><p>We say that X &#949;-fools a family F of functions, if it &#949;-fools every f &#8712; F.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Small Bias</head><p>A parity function is a function of the form f (x) = i&#8712;I x i for some set I &#8838; [n]. We say that a random variable Y &#8712; {0, 1} n is &#948;-biased if it &#948;-fools all parity functions. We say that Y is n -wise &#948;-biased if it &#948;-fools all parity functions on at most n bits, i.e., all parity functions with |I| &#8804; n . There are explicit constructions of n -wise &#948;-biased distributions that can be sampled with O(log(n /&#948;) + log log n) truly random bits <ref type="bibr">[25,</ref><ref type="bibr">3]</ref>.</p><p>Recall that for a function f :</p><p>Functions with bounded L 1 norm are fooled by small-bias distributions:</p><p>We will also rely on the following "XOR lemma" for small-bias distributions.</p><p>Lemma 6 <ref type="bibr">([16, 24]</ref>).</p><p>depend on disjoint variable sets, and define</p><p>If every &#948;-biased distribution &#949;-fools every f i , then every &#948; k -biased distribution fools f with error 16 k &#8226; 2&#949;. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Limited Independence</head><p>For p &#8712; [0, 1], let Bernoulli(p) &#8855;n denote the distribution over {0, 1} n where the bits are i.i.d. and each bit has expectation p. For example, U n = Bernoulli(1/2) &#8855;n . For a set</p><p>We say that Z &#8712; {0, 1} n is &#947;-almost k-wise independent with marginals p if for every set I &#8838; [n] with |I| &#8804; k, the total variation distance between Z| I and Bernoulli(p) &#8855;|I| is at most &#947;. Claim 7. For every n, k, C &#8712; N and &#947; &gt; 0, there is an explicit &#947;-almost k-wise independent distribution with marginals p = 1-2 -C that can be sampled with O(Ck +log(1/&#947;)+log log n) truly random bits.</p><p>Proof. Sample Y &#8712; {0, 1} Cn from a (Ck)-wise (2 -Ck/2-1 &#947;)-biased distribution. Note that as discussed above Y can be sampled using</p><p>truly random bits. Divide Y into n blocks Y (1) , . . . , Y (n) &#8712; {0, 1} C , and set</p><p>To prove correctness, let f : {0, 1} n &#8594; {0, 1} be any test function depending on only k variables. There is a function g : {0, 1} Cn &#8594; {0, 1} depending on only Ck variables such that</p><p>The expectation parameter p can be "amplified" by drawing independent samples and combining with a coordinate-wise conjunction: Claim 8. Let Z be &#947;-almost k-wise independent with marginals p. Draw t independent samples z (1) , . . . , z (t) &#8764; Z, and let Z = z (1) </p><p>Proof sketch. The proof is a simple hybrid argument. Draw t independent samples r (1) , . . . , r (t) &#8764; Bernoulli(p) &#8855;n , and let</p><p>One can show by induction on i that Z (i) is (i&#947;)-almost k-wise independent with marginals p t .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">PARITY &#8226; AND Formulas</head><p>Recall that our main result (Theorem 1) is a PRG for read-once depth-2 AC 0 [&#8853;]. For most of the paper, we will focus on the special case that the root gate is &#8853; and its immediate children are &#8743; gates. That is, define a PARITY &#8226; AND formula to be a function of the form</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Log-Seed Pseudorandom Generators via Iterated Restrictions</head><p>where each f i is a conjunction of literals, i.e., variables or their negations. We refer to f 1 , . . . , f m as the terms of f . We say that the formula is read-once if each variable x i appears in at most one term. Most of our effort will be spent fooling read-once PARITY &#8226; AND formulas. Note that this is a slight generalization of read-once F 2 -polynomials due to the availability of &#172; gates. We will explain in Section 5.6 why it is sufficient to focus on this special case.</p><p>The width of a term is the number of variables in the term; the width of f is the maximum width of its terms. The length of f is m, the number of its terms.</p><p>For convenience, if f is a function taking values in {0, 1}, we let f = (-1) f . That way, if f is a PARITY &#8226; AND formula,</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">Restrictions</head><p>A restriction is a string x &#8712; {0, 1, } n ; intuitively, x i = means that x i has still not been assigned a value. We define an associative composition operation on restrictions by the formula</p><p>For a function f on {0, 1} n , the restricted function f | x on {0, 1} n is defined by</p><p>A restriction x can be specified by two strings y, z &#8712; {0, 1} n using the following notation <ref type="foot">5</ref> . Define Res : {0,</p><p>In words, z indicates the positions, and y provides the bits in the non-positions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.6">Pseudorandom Restrictions</head><p>Let Y, Z be distributions over {0, 1} n , and let X = Res(Y, Z). For a function f : {0, 1} n &#8594; R, we say that the distribution X preserves the expectation of f with error &#949; if</p><p>where + denotes addition over F n 2 and &#8743; denotes coordinate-wise conjunction. This second condition is the "pseudorandomness plus noise" perspective <ref type="bibr">[18]</ref> (the string Z &#8743; U can be thought of as a noise vector.)</p><p>If f takes on values in {0, 1}, for each particular value z that Z might take on, we define the bias function <ref type="bibr">[16]</ref> </p><p>(We use f rather than f simply for convenience.) The statement that X preserves the expectation of f with error &#949; is also equivalent to the condition</p><p>When z is clear from context, we will just write f instead of f z .</p><p>If X is a distribution over {0, 1, } n and t &#8712; N, let X &#8226;t denote the distribution over x &#8712; {0, 1, } n obtained by drawing independent samples x (1) , . . . , x (t) &#8764; X and composing them, x = x (1) </p><p>Suppose F is a class of Boolean functions that is closed under restriction. If X preserves the expectation of every f &#8712; F with error &#949;, then X &#8226;t preserves the expectation of every f &#8712; F with error t&#949;. Furthermore, informally, if X "has -probability p", then X &#8226;t "has -probability p t ". To be precise, we can consider the case X = Res(Y, Z) where Z is &#947;-almost k-wise independent with marginals p. Then the distribution of positions in X &#8226;t is described by Claim 8.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Applying a Single Restriction</head><p>In this section, we prove that the expectation of a PARITY &#8226; AND formula is preserved under a suitable pseudorandom restriction. The cost of the restriction is only O(log n) truly random bits, the error is exp(-&#8486;(log n)) (near-optimal), and the restriction assigns values to a constant fraction of the inputs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Restriction Construction</head><p>Set C = 500, C = 2000C, c = 1.1, and &#946; = 0.95, and consider the following two distributions.</p><p>Let Y be a &#948; 3 -biased distribution over {0, 1} n for &#948; = min n -12C , 1 2 n -5c c-1 -1</p><p>= n -12,000,000 . 6  Let Z be a &#947;-almost k-wise independent distribution over {0, 1} n with marginals p = 1 -2 -C , for k = 6 log n and &#947; = n -9 . Our restriction is Res(Y, Z), i.e., Z indicates where to put and Y fills in the non-bits. Lemma 9. Let f be a read-once PARITY &#8226; AND formula over n variables of width at most C log n. Then, Res(Y, Z) preserves the expectation of f to within error 2 -C log n log log n , i.e.,</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Buckets</head><p>Toward proving Lemma 9, we first set some preliminary notations. Recall that f is of the form</p><p>where every literal ij is either some variable in {x 1 , . . . , x n } or its negation. 6 No attempt was made to optimize the constants.</p><p>C C C 2 0 2 0</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:16</head><p>Log-Seed Pseudorandom Generators via Iterated Restrictions</p><p>We partition the terms of f into Q buckets according to their width. Namely, for each q &#8712; [Q] we define the interval I q = [c q-1 , c q ) and define B q &#8838; [m] to be the set of indices i such that w i &#8712; I q . Also, for q &#8712; [Q] we define</p><p>We divide into two cases (Section 4.3 and Section 4.4) depending on whether there exists a bucket with substantially many terms. Lemma 9 will follow immediately from Lemma 10 and Lemma 15, which cover these two cases respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Case I -There Exists a Heavy Bucket</head><p>Say that bucket q &#8712; [Q] is heavy if both m q &gt; 3 c q and m q &gt; log C n. The first case is that there exists a heavy bucket (i.e., there are many terms of roughly the same width, even relative to q). In this case, we will argue that f itself is balanced and also that it stays balanced, w.h.p., after a pseudorandom restriction.</p><p>Lemma 10. Let f be a read-once PARITY &#8226; AND formula over n variables of width at most C log n. Suppose there exists a heavy bucket as defined above. Then, with probability at least 1 -</p><p>Toward proving Lemma 10, let us define a few more auxiliary notations. Write</p><p>where q is a heavy bucket.</p><p>Claim 11. It holds that E[f ] &#8804; 1 4n .</p><p>Proof. By the read-once property and the fact that f rest is bounded,</p><p>Each term in F q has width at least c q-1 , so</p><p>Recalling that m q &#8805; 3 c q , we have 2 -c q-1 &#8805; m &#947; q for &#947; = log 3 2 c -1 &lt; 3 4 . Thus, using that fact that m q &#8805; log C n,</p><p>Next, we must analyze the bias of f after the pseudorandom restriction. Let n q be the number of variables read by F q . Let b = log 3 n q . We will group the terms of F q into blocks, each of which reads roughly b variables. To define this grouping, first observe that b &#8805; log 3 m q , as each term reads at least one variable. Recalling that c q &lt; log 3 m q , we know that b &gt; c q . Therefore, since each term in F q has width at most c q , we can write</p><p>where each block g i reads b i variables for b i &#8712; b -1 2 c q , b + 1 2 c q . Let us now estimate B, the number of blocks. Since b &gt; c q , b i &#8712; b 2 , 3b 2 . Also, m q &gt; log C n so b &gt; C 2 log log n. Thus, on the one hand,</p><p>and on the other hand, B &#8804; n q &#8804; 3 b . Toward arguing that f is balanced after pseudorandom restrictions, we wish to show that with high probability, z &#8764; Z keeps many variables in many terms alive.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Definition 12. For z &#8712; {0, 1}</head><p>n and a formula f , we say f is good under z if z assigns 1 to at least a (1 -&#946;)-fraction of the variables f reads.</p><p>Claim 13. For a fixed z &#8712; {0, 1} n , let X z &#8838; [B] be the set of blocks g i that are not good under z. Then, with probability at least 1 -1 2n over z &#8764; Z,</p><p>be some subset of cardinality k 0 . We first bound the probability p that every block g i for i &#8712; S is bad under z &#8764; Z. For a truly random z &#8764; Bernoulli(1 -2 -C ) &#8855;n , the above probability is bounded by</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Now, for every i &#8712; [B]</head><p>, k &#8805; k 0 b i so for z &#8764; Z, we get that p &#8804; n -8 + &#947; &#8804; 2n -8 . Thus, by the union bound, with probability at most</p><p>there will be some S whose all blocks are bad. Taking the contrapositive, we infer that with probability at least 1 -1 2n over z &#8764; Z, at most k 0 of the g i -s are bad under z.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 14. With probability at least</head><p>Proof. Fix a good z, for which at most 4 log n b of the g i -s are not good under it. By Claim 13, z is good with probability at least 1</p><p>For every i &#8712; B alive , set the following notations. Define the function h i so that h i (y) = 1 if g y i is a nonconstant function, and 0 otherwise. Namely,</p><p>where y j is either y j or &#172;y j depending on whether y j appears positively or negatively in g i . Also, define</p><p>where the sum is over the reals. Denote</p><p>The spectral norm of the AND function is 1, and so by the sub-additivity we get that</p><p>By the sub-multiplicativity of the spectral norm we have that</p><p>. By Claim 5, Y &#949;-fools the function &#8710;S , so</p><p>Next, observe that &#8710;S(U ) is the sum of zero-mean independent random variables, as the h i -s are supported over disjoint set of variables. Set A = |B alive | &#8226; 2 -4&#946;b . By the Chernoff bound, 2 . Next, we observe that</p><p>As b &#8804; Cb log n log B &#8804; C log n, we can conclude that 2 b &#8805; 4&#946;b and so e</p><p>Using Equation (5) and the above bound yields a bound on E &#8710;S(Y ) . By Markov's inequality,</p><p>where we have used the fact that b &#8805; C log n 4 . Overall, with probability at least 1 -1 2n over y &#8764; Y , g y i is nonconstant for at least &#181; 2 of the i-s, and recall that each such g y i is over at least (1 -&#946;)b i variables. Fix such a good y, and let G &#8838; [B alive ] be the set of nonconstant g y i -s. Again, we can write</p><p>Similarly to Claim 11, in order to bound the bias of f | Res(Y,Z) it is sufficient to bound the bias of t 1 , and so</p><p>Using the fact that &#181;</p><p>200 b , we get</p><p>Proof of Lemma 10. Finally, the fact that with probability at least 1-</p><p>n , follows immediately from Claim 11 and Lemma 14.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Case II -There Are No Heavy Buckets</head><p>In this subsection, we prove that a single pseudorandom restriction preserves the expectation in the case where there is no such a heavy B q . Namely, for every q &#8712; [Q], either m q &#8804; 3 c q or m q &#8804; log C n (or both).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 15.</head><p>Let f be a read-once PARITY &#8226; AND formula over n variables in which the width of every term is at most C log n, and in which there are no heavy buckets as described above. Then, with probability at least 1</p><p>Toward proving Lemma 15, we partition the Q buckets into two sets and treat terms that fall into each set of buckets separately. Namely, define the two sets as follows.</p><p>A = q &#8712; [Q] : m q &#8804; log 2C n . We refer to these buckets as the sparse buckets.</p><p>We refer to these buckets as the well-behaved buckets.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C C C 2 0 2 0 6:20</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Log-Seed Pseudorandom Generators via Iterated Restrictions</head><p>For each set T &#8712; {A, B} we denote</p><p>and so f = f A &#8853; f B . The next two subsections will be devoted to proving that the expectation of each f T is preserved after a single pseudorandom restriction. In Section 4.4.3 we will combine the two results using the XOR lemma for small-bias distributions (Lemma 6) to prove Lemma 15.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.1">Handling Sparse Buckets</head><p>For the sparse buckets, we will follow the Forbes-Kelley approach <ref type="bibr">[14]</ref> to prove the following.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 16. With probability at least</head><p>As outlined in Section 1.5.1, Lemma 16 follows readily from the work by Forbes and Kelley <ref type="bibr">[14]</ref>. We require our restriction to work with high probability over z &#8764; Z, not merely in expectation, so we must redo some of Forbes and Kelley's analysis. (No substantial modification is needed.) The details follow.</p><p>Proof of Lemma 16. First, recall that each term in f A is of width at most C log n. There are at most log 2C n terms in each bucket, and at most Q = O(log log n) such buckets, so overall f A reads at most n = log 2C+2 n variables.</p><p>Note that f A can be computed by a width-4 ROBP of length n . We follow <ref type="bibr">[14]</ref> and let G : {0, 1}</p><p>n &#8594; R 4&#215;4 encode the transition of the branching program. Namely, perhaps after renumbering the variables, we have </p><p>where L has degree 7 less than k 0 , H i is of degree exactly k 0 , G &gt;i is a width-4 ROBP, and H i and G &gt;i are on disjoint set of variables. More specifically,</p><p>and</p><p>where </p><p>Just as in <ref type="bibr">[14]</ref>, the low-degree term L is dealt with a &#948;-biased distribution. From the work of Chattopadhyay, Hatami, Reingold, and Tal <ref type="bibr">[9]</ref> we know that</p><p>for some universal constant c CHRT &#8805; 1. Thus, by Claim 5, we get that the first term of Equation ( <ref type="formula">7</ref>) is bounded by</p><p>taking into account the fact that E[L(U )] = 0.</p><p>For each i of the second term of Equation ( <ref type="formula">7</ref>), we use sub-multiplicativity and the fact that H i and G &gt;i are on disjoint set of variables to get</p><p>Continuing the above bound, by Cauchy-Schwarz we get</p><p>Following [14, Lemma 7.1] 8 , using the bound by Chattopadhyay et al. <ref type="bibr">[9]</ref> and Parseval's identity [14, Proposition 3.1], we get</p><p>Overall, we get that</p><p>and we can choose the encoding G so that f A (x) = G(x) 1,1 . Markov's inequality completes the proof. 8 Forbes and Kelley <ref type="bibr">[14]</ref> take the bits of Z to have marginals p = 1 2 , but one can extend the lemma easily for the case of a general p. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.2">Handling Well-Behaved Buckets</head><p>We will use our tail bounds for subset-wise symmetric polynomials to prove the following lemma.</p><p>Lemma 17. With probability at least 1 -1 2n over z &#8764; Z, f B can be written as f B = f B &#8853; f B , where f B and f B are over disjoint set of variables, and for every g &#8712; {f B , f B } it holds that</p><p>The proof of Lemma 17 will follow immediately from Claim 20 and Lemma 21. Toward proving the above lemma, let us set some preliminaries.</p><p>Proof. The upper bound on c q follows immediately from the assumption in Lemma 15 that every term has width at most C log n. Also, m q &gt; log 2C n since q / &#8712; A. Since we are at Case II, m q &gt; log 2C n implies that m q &#8804; 3 c q . From the fact that log 2C n &lt; 3 c q we get c q &gt; log 3 (log 2C n) &gt; C log log n.</p><p>Recall that a term f i is good under z if the variables read by f i intersects with z in at least 1 -&#946; fraction.</p><p>Claim 19. For a fixed z &#8712; {0, 1} n , let X z &#8838; [m] be the set of terms in f B that are not good under z. Then, with probability at least 1 -1 2n over z &#8764; Z,</p><p>Proof. The proof is very similar to Claim 13. Fix a bucket q &#8712; B, set k q = 3 log n c q and observe that k &#8805; k q . Let S &#8838; B q be some subset of cardinally k q . We first bound the probability p that every term f i for i &#8712; S is bad under z &#8764; Z.</p><p>For a truly random z &#8764; Bernoulli(1 -2 -C ) &#8855;n , the above probability is bounded by</p><p>For z &#8764; Z, we get that p &#8804; n -9 + &#947; &#8804; 2n -9 . Thus, with probability at most mq kq p over z &#8764; Z there exists a set of k q terms in B q whose all terms are bad under z. By using Claim 18, we get</p><p>Moreover, with probability at most |B|n -3 &#8804; n -2 over z &#8764; Z there exists a q &#8712; B and a set of k q terms in B q whose all terms are bad under z. Taking the contrapositive, we infer that with probability at least 1 -n -2 &#8805; 1 -1 2n over z &#8764; Z, we have at most</p><p>terms that are bad for z.</p><p>D. Doron, P. Hatami, and W. M. Hoza</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:23</head><p>From here onwards, we fix a z satisfying</p><p>where</p><p>is the set of all terms that belong to B's buckets. Simply put, we divide f B to the parity of exceptional terms f B and non-exceptional terms f B for whom we will refer to as good terms. We stress that both f B and f B depend on z.</p><p>Claim 20 (Exceptional terms).</p><p>Proof. For brevity, let g = f B . For a fixed w &#8712; {0, 1} n , let g w (x) = g(x + w). The proof will follow from bounding the spectral norm of g w . Indeed, g w is a multiplication of at most 3c c-1 log n terms, each of which has spectral norm at most 3. By sub-multiplicativity,</p><p>Fooling g w is sufficient to fool g z . To see this, note that</p><p>where U is an independent copy of U .</p><p>Next, we prove:</p><p>Lemma 21 (Good terms).</p><p>Proof. For brevity, let g = f B and recall that its set of terms is given by C \ X z . Shifting the bias function g = g z to mean zero, recall that we define</p><p>Thus, we can write</p><p>I&#8838;C\Xz i&#8712;I</p><p>where by K(I) = k we mean that for every q &#8712; [Q], there are k[q] terms in I that belong to the q-th bucket, i.e., |I &#8745; B q | = k[q]. For simplicity, we reorder the terms of g and write</p><p>is the set of terms in g that belong to the q-th bucket. We abbreviate g = ( g 1 , . . . , g m ), and write</p><p>C C C 2 0 2 0 6:24</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Log-Seed Pseudorandom Generators via Iterated Restrictions</head><p>Let I g (x) be the Boolean-valued function which is 1 if and only if</p><p>where</p><p>. Section 4.4.4 will be devoted to showing that E[I g (Y )] is very close to 1. Namely, Lemma 22. The following two inequalities hold.</p><p>For now, let us take Lemma 22 as given and continue with the proof of Lemma 21. We proceed by writing</p><p>By Lemma 22, we have that Pr</p><p>and set</p><p>We bound &#8710; as follows.</p><p>By definition, the second term is at most 2 -A 1024 . The first term, call it &#8710; 1 , can be split into two terms as follows.</p><p>D. Doron, P. Hatami, and W. M. Hoza 6:25</p><p>where the last inequality follows from the triangle inequality followed by Cauchy-Schwarz. By Lemma 22, the second term of Equation ( <ref type="formula">11</ref>), &#8710; 1,2 , is at most</p><p>To finish bounding &#8710; 1 , it is left to bound the first term of Equation ( <ref type="formula">11</ref>), denoted by &#8710; 1,1 .</p><p>Proof. The proof goes by bounding the spectral norm of the function S k ( g(x)). As for every k &#8712; N Q with k (c) = 0, E[S k ( g(U ))] = 0, the claim will follow by using Claim 5, together with sub-additivity and sub-multiplicativity. First, note that:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof. Consider the function h</head><p>we get L 1 ( h i ) &#8804; 1 as every shift of h i is a negated conjunction of literals. Thus, L 1 ( h i ) &#8804; 3 and L 1 ( g i ) &#8804; 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Then, for every such</head><p>Recall that Claim 18 tells us that m q &#8804; 3 c q , so</p><p>Finally,</p><p>and the claim follows by observing that &#948; &#8804; </p><p>and the desired result.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.3">Putting It Together</head><p>Here we finally incorporate Lemma 16 and Lemma 17.</p><p>Proof of Lemma 15. By Lemma 16 and Lemma 17, with probability at least 1</p><p>where the three functions are over disjoint set of variables, and it holds that for each T &#8712; {A, B, B },</p><p>for any &#948;-biased distribution Y . Using the XOR lemma for small-biased spaces (see <ref type="bibr">Lemma 6)</ref>, taking into account that our distribution Y is in fact &#948; 3 -biased, we conclude that</p><p>and the lemma follows.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.4">I g Almost Always Happens</head><p>We keep using the notations of Section 4.4.2. Specifically, recall that g = f B = i&#8712;[m ] g i for m = |C \ X z |, and for q &#8712; [Q], B q &#8838; [m ] is the set of terms in g that belong to the q-th bucket. Also, for g = ( g 1 , . . . , g m ),</p><p>Recall that I g (x) &#8712; {0, 1} is 1 if and only if</p><p>where</p><p>Proof of Lemma 22. As in Section 2, we define</p><p>By Lemma 3, to prove the bound on Pr[I g (Y ) = 0] it is sufficient to prove that for every</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:27</head><p>By now a standard course of action, we aim at bounding the spectral norm of the function R k ( g), together with its expectation under the uniform distribution. To this end, let us define, for q &#8712; [Q] and an integer ,</p><p>First, we record that:</p><p>Proof. Let V i &#8838; [n] be the set of variables read by g i , of cardinality w i , and let i = |V i &#8745; {j &#8712; [n] : z j = 1}| be the number of live variables read by g i . Note that</p><p>Then,</p><p>and note that</p><p>The fact that Var[</p><p>finishes the proof.</p><p>Now,</p><p>Plugging it in our expression for R k , we get</p><p>Finally, let us bound L 1 (R k ( g)). In Equation ( <ref type="formula">12</ref>) we established the fact that L 1 (S k ( g)) &#8804; 12 k (c) &#8804; 12 A . Thus,</p><p>C C C 2 0 2 0 6:28</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Log-Seed Pseudorandom Generators via Iterated Restrictions</head><p>Note that &#948; &#8804; 1 32 n -10C 2 -A 4 . Thus, by Claim 5,</p><p>and we are done with bounding Pr</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Full PRG via Iterated Restrictions</head><p>So far, we have shown how to pseudorandomly assign values to a constant fraction of the inputs of any read-once PARITY &#8226; AND formula using O(log n) truly random bits, preserving the expectation of the formula to within near-optimal error. In this section, to complete the of Theorem 1, we show how to pseudorandomly assign values to all the inputs, i.e., we give a genuine PRG.</p><p>For convenience, we make the following definitions.</p><p>Definition 26. Let w &gt; 0. A w-proper formula is a read-once PARITY &#8226; AND formula of width at most w and length most 2 8w . We say that such a formula is short if its length is at most 2 4w ; otherwise, we say that the formula is long.</p><p>Our main goal is to fool (C log n)-proper formulas, but along the way, we will obtain a PRG for w-proper formulas with seed length O(w) and error exp(-&#8486;(w)), even for w substantially smaller than log n.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Restrictions for Proper Formulas</head><p>Recall that Lemma 9 provides a pseudorandom restriction that uses only O(log n) truly random bits. We now generalize this fact in two respects. First, in the case of w-proper formulas (log log n &#8804; w &#8804; C log n), we improve the seed length to O(w). Second, in the case of short w-proper formulas, we argue that the restriction simplifies the formula, in the sense that it transforms it into a (w/2)-proper formula.</p><p>Lemma 27. For every w, n &#8712; N with w &#8804; C log n, there is a distribution X over {0, 1, } n with the following properties.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">(Seed length)</head><p>There is an explicit algorithm to sample from X using just O(w + log log n) truly random bits.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">(Expectation preservation)</head><p>If f is a w-proper formula, then X preserves the expectation of f with error exp(-&#8486;(w/ log w)).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">(Simplification</head><p>Proof. Let n = 2 8w &#8226; w. Let Y be an n -wise &#948; 3 -biased distribution where &#948; = (n ) -12C , and let Z be &#947;-almost k-wise independent with marginals 1 -2 -C , where k = 6 log n and &#947; = (n ) -9 . Our restriction is X = Res(Y, Z) &#8226;2 C+4  .</p><p>By standard constructions <ref type="bibr">[25,</ref><ref type="bibr">3]</ref> and Claim 7, X can be explicitly sampled using O(w + log log n) truly random bits. Now, to prove expectation preservation, let f be a w-proper formula. By w-properness, there is some set of indices I &#8838; [n], |I| &#8804; n , such that f (x) only depends on x| I . Let g : {0, 1} |I| &#8594; {0, 1} be the w-proper formula such that f (x) = g(x| I ). Since Y | I is &#948; 3biased and Z| I is &#947;-almost k-wise independent with marginals 1 -2 -C , Lemma 9 implies that Res(Y | I , Z| I ) preserves the expectation of g with error exp(-&#8486;( log n log log n )), which is exp(-&#8486;(w/ log w)). It follows that Res(Y, Z) preserves the expectation of f with the same error. The error of X is only larger by a constant factor 2 C+4 , because any restriction of a w-proper formula is trivially another w-proper formula.</p><p>Finally, to prove simplification, let f be a short w-proper formula, and let f i be a term. Since k &gt; w/2, by Claim 8, the probability that more than w/2 variables from f i are assigned by X is bounded by</p><p>The number of terms in f is at most 2 4w , so by the union bound, except with probability 2 -w , f | X has maximum width at most w/2. Furthermore, restricting cannot increase the number of terms, so the number of terms is still bounded by 2 4w = 2 8(w/2) . Therefore, in this case, f | X is (w/2)-proper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Full PRGs for Long Proper Formulas [24]</head><p>The simplification clause of Lemma 27 only applies if f is short. If f is long, we will therefore need a different approach. We will take a similar approach as Meka, Reingold, and Tal <ref type="bibr">[24]</ref>.</p><p>A full PRG for long w-proper formulas follows readily from their work.</p><p>Lemma 28 <ref type="bibr">([24]</ref>). For every w, n &#8712; N, there is an explicit (2 -w )-PRG for long w-proper formulas with seed length O(w + log log n).</p><p>Proof sketch. In short, the PRG is one of the PRGs by Meka et al. <ref type="bibr">[24,</ref> full version, Lemma 6.2], except we replace every &#948;-biased distribution with a (&#8226;)-wise &#948;-biased distribution to optimize the seed length.</p><p>In more detail, let n = 2 8w &#8226; w. Sample v &#8712; {0, 1} wn from an (n w)-wise (c -w MRT )-biased distribution, where c MRT is a suitable constant. Think of v as n blocks of w bits. Define a set I &#8838; [n] as follows: include i in I if and only if the i-th block of v is 1 w . Sample x (0) , x (1) , . . . , x (16) &#8712; {0, 1} n independently from an (n )-wise (c -w MRT )-biased distribution. The PRG outputs the string x defined by</p><p>By standard constructions <ref type="bibr">[25,</ref><ref type="bibr">3]</ref>, the seed length of this PRG is</p><p>As for correctness, let f be a long w-proper formula. Let J &#8838; [n] be the set of indices of variables that f reads, so there is some long w-proper formula g on |J| input bits such that f (x) = g(x| J ). Let X be the distribution output by the PRG. Since |J| &#8804; n , the w &#8804; log |J|. Therefore, X| J fools g with error 2 -w , and hence X fools f with error 2 -w .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Full PRGs for Width-O(log n) Formulas</head><p>For short proper w-formulas, to get a full PRG, we will iterate the restriction of Lemma 27 several times, assigning values to more and more variables. Eventually, we'll stop this recursive process and use a different PRG. Specifically, for the "base case," we'll use a PRG by Lee <ref type="bibr">[22]</ref> with minor modifications: Lemma 29 <ref type="bibr">([22]</ref>). For every w, n &#8712; N and every &#949; &gt; 0, there is an explicit &#949;-PRG for w-proper formulas with seed length O((w + log(1/&#949;)) &#8226; (log w + log log(1/&#949;)) 2 ) + poly(log log(n/&#949;)).</p><p>Proof sketch. In short, the PRG is one of the PRGs by Lee <ref type="bibr">[22,</ref><ref type="bibr">Theorem 6</ref>], except we replace every &#948;-biased distribution with a (&#8226;)-wise &#948;-biased distribution to optimize the seed length, just like the proofs of Lemma 27 and Lemma 28.</p><p>To give a little more detail, let n = 2 8w &#8226; w; a w-proper formula only reads n variables. Lee's PRG <ref type="bibr">[22,</ref><ref type="bibr">Theorem 6</ref>] is designed to fool arbitrary-order combinatorial checkerboards, i.e., parities of functions on disjoint variable sets of size at most w. This class includes w-proper formulas as a special case. Lee's original PRG has seed length O((w + log(n/&#949;)) &#8226; (log w + log log(n/&#949;)) 2 ).</p><p>After making suitable replacements, one can show that the seed length is reduced to O((w + log(n /&#949;)) &#8226; (log w + log log(n /&#949;)) 2 ) + poly(log log(n/&#949;)).</p><p>(We omit the full proof, since it repeats much of Lee's analysis <ref type="bibr">[22]</ref>.) Plugging in the value of n , we get the claimed seed length.</p><p>We now give our full PRG for general formulas of width at most C log n. The PRG follows a similar approach to one of the PRGs by Meka et al. <ref type="bibr">[24,</ref> full version, Algorithm 3]: iteratively apply the restriction of Lemma 27, but at each step, XOR with the PRG of Lemma 28 in case the formula is long. We recursively define a PRG G w for w-proper formulas, w 0 &#8804; w &#8804; C log n, as follows.</p><p>(Base case) If w &#8804; 2w 0 , then G w is the (2 -w0 )-PRG of Lemma 29 based on Lee's work <ref type="bibr">[22]</ref>. (Recursive case) If w &gt; 2w 0 , sample X &#8712; {0, 1, } n from the distribution guaranteed by Lemma 27 based on the work in Section 4. Sample Y &#8712; {0, 1} n using the PRG of Lemma 28 based on Meka et al.'s work <ref type="bibr">[24]</ref>. Recursively sample G w/2 , and set</p><p>For the analysis, observe first that in the base case w &#8804; 2w 0 , G w fools w-proper formulas with error 2 -w0 . Now, for the inductive step, consider some w &gt; 2w 0 . Assume G w/2 fools w/2 -proper formulas with error &#949; w/2 ; we will show that G w fools w-proper formulas with error &#949; w , where &#949; w = &#949; w/2 + 2 -&#8486;(w/ log w) .</p><p>Let f be a w-proper formula, and for brevity, let G = G w/2 . For the first case, suppose f is long. Any shift of f is also a long w-proper formula, so</p><p>For the second case, suppose f is short. For each y &#8712; {0, 1} n , define f y (x) = f (y &#8853; x), another short w-proper formula. Fix y &#8764; Y , and let E be the event that f y | X is (w/2)-proper, so whether E occurs depends only on X. Then Let &#949; w be the final right-hand side, so indeed &#949; w = &#949; w/2 + exp(-&#8486;(w/ log w)).</p><p>Then</p><p>Now, let us add up all these errors. Since w &#8805; w 0 always holds, we have &#949; w &#8804; &#949; w/2 + exp(-&#8486;(w 0 / log w 0 )). Starting at w = C log n, we only need to halve w a total of O(log log log n) times to reach the base case w &#8804; 2w 0 . Therefore, the total error of G C log n is bounded by 2 -w0 + 2 -&#8486;(w0/ log w0) &#8226; O(log log log n) = 2 Finally, let us bound the seed length of G w . In the base case w &#8804; 2w 0 , by our choice of w 0 , the seed length s w of G w is bounded by some value s base &#8804; O(log n). In the recursive case w &gt; 2w 0 , the seed length s w of G w is bounded by s w = s w/2 + O(w + log log n) = s w/2 + O(w).</p><p>The point is that this is essentially a geometric series. More precisely, let c seed be a constant such that s w &#8804; s w/2 + c seed &#8226; w for all w &gt; 2w 0 . Then by induction, for all w &#8805; w 0 , we have </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_0"><p>The careful reader will notice a slight discrepancy between the exact constants of Theorem 2 on the one hand and the statements by Gopalan and Yehudayoff<ref type="bibr">[17]</ref> and Meka et al.<ref type="bibr">[24]</ref> on the other. This discrepancy reflects a minor mistake in the original paper by Gopalan and Yehudayoff<ref type="bibr">[17]</ref> that we have here corrected.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_1"><p>With apologies, we here flip the order of the arguments to Res compared to the notation used in the authors' prior work<ref type="bibr">[13]</ref>.</p></note>
		</body>
		</text>
</TEI>
