<?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'>The Polynomial Method Strikes Back: Tight Quantum Query Bounds via Dual Polynomials</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>10/24/2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10205756</idno>
					<idno type="doi">10.1145/3188745.3188784</idno>
					<title level='j'>Theory of computing</title>
<idno>1557-2862</idno>
<biblScope unit="volume">16</biblScope>
<biblScope unit="issue">2020</biblScope>					

					<author>Mark Bun</author><author>Robin Kothari</author><author>Justin Thaler</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The approximate degree of a Boolean function f is the least degree of a real polynomial that approximates f pointwise to error at most 1/3. The approximate degree of f is known to be a lower bound on the quantum query complexity of f (Beals et al., FOCS 1998 and J. ACM 2001).We find tight or nearly tight bounds on the approximate degree and quantum query complexities of several basic functions. Specifically, we show the following.k-Distinctness: For any constant k, the approximate degree and quantum query complexity of the k-distinctness function is Ω(n3/4−1/(2k)). This is nearly tight for large k, as Belovs (FOCS 2012) has shown that for any constant k, the approximate degree and quantum query complexity of k-distinctness is O(n3/4−1/(2k+2−4)).Image size testing: The approximate degree and quantum query complexity of testing the size of the image of a function [n]→[n] is Ω~(n1/2). This proves a conjecture of Ambainis et al. (SODA 2016), and it implies tight lower bounds on the approximate degree and quantum query complexity of the following natural problems.k-Junta testing: A tight Ω~(k1/2) lower bound for k-junta testing, answering the main open question of Ambainis et al. (SODA 2016).Statistical distance from uniform: A tight Ω~(n1/2) lower bound for approximating the statistical distance of a distribution from uniform, answering the main question left open by Bravyi et al. (STACS 2010 and IEEE Trans. Inf. Theory 2011).Shannon entropy: A tight Ω~(n1/2) lower bound for approximating Shannon entropy up to a certain additive constant, answering a question of Li and Wu (2017).Surjectivity: The approximate degree of the surjectivity function is Ω~(n3/4). The best prior lower bound was Ω(n2/3). Our result matches an upper bound of O~(n3/4) due to Sherstov (STOC 2018), which we reprove using different techniques. The quantum query complexity of this function is known to be Θ(n) (Beame and Machmouchi, Quantum Inf. Comput. 2012 and Sherstov, FOCS 2015).Our upper bound for surjectivity introduces new techniques for approximating Boolean functions by low-degree polynomials. Our lower bounds are proved by significantly refining techniques recently introduced by Bun and Thaler (FOCS 2017).]]></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"><p>1 Introduction Approximate degree. The approximate degree of a Boolean function f : {-1, 1} n &#8594; {-1, 1}, denoted deg( f ), is the least degree of a real polynomial p such that |p(x)f (x)| &#8804; 1/3 for all x &#8712; {-1, 1} n . Approximate degree is a basic measure of the complexity of a Boolean function, and has diverse applications throughout theoretical computer science.</p><p>Upper bounds on approximate degree are at the heart of the most powerful known learning algorithms in a number of models <ref type="bibr">[10,</ref><ref type="bibr">46,</ref><ref type="bibr">47,</ref><ref type="bibr">49,</ref><ref type="bibr">50,</ref><ref type="bibr">63,</ref><ref type="bibr">68]</ref>, algorithmic approximations for the inclusion-exclusion principle <ref type="bibr">[45,</ref><ref type="bibr">70]</ref>, and algorithms for differentially private data release <ref type="bibr">[35,</ref><ref type="bibr">87]</ref>. A recent line of work <ref type="bibr">[84,</ref><ref type="bibr">85]</ref> has used approximate degree upper bounds to show new lower bounds on the formula and graph complexities of explicit functions.</p><p>Lower bounds on approximate degree have enabled progress in several areas of complexity theory, including communication complexity <ref type="bibr">[27,</ref><ref type="bibr">36,</ref><ref type="bibr">38,</ref><ref type="bibr">39,</ref><ref type="bibr">41,</ref><ref type="bibr">64,</ref><ref type="bibr">69,</ref><ref type="bibr">72,</ref><ref type="bibr">74,</ref><ref type="bibr">77]</ref>, circuit complexity <ref type="bibr">[60,</ref><ref type="bibr">71]</ref>, oracle separations <ref type="bibr">[15,</ref><ref type="bibr">21]</ref>, and secret-sharing <ref type="bibr">[20]</ref>. Most importantly for this paper, approximate degree lower bounds have been critical in shaping our understanding of quantum query complexity <ref type="bibr">[1,</ref><ref type="bibr">3,</ref><ref type="bibr">13]</ref>,</p><p>In spite of the importance of approximate degree, major gaps remain in our knowledge. In particular, the approximate degrees of many basic functions are still unknown. Our goal in this paper is to determine the approximate degrees of several natural functions for which there were significant gaps between known upper and lower bounds.</p><p>Quantum query complexity. While determining the approximate degree of basic functions of interest is a test of our understanding of approximate degree, it is also motivated by the study of quantum algorithms. In the quantum query model, a quantum algorithm is given query access to the bits of an input x, and the goal is to compute some function f of x while minimizing the number of queried bits. Quantum query complexity captures much of the power of quantum computing, and most quantum algorithms were discovered in or can easily be described in the query setting.</p><p>Approximate degree was one of the first general lower bound techniques for quantum query complexity. In 1998, Beals et al. <ref type="bibr">[13]</ref> observed that the bounded-error quantum query complexity of a function f is lower bounded by (one half times) the approximate degree of f . Since polynomials are sometimes easier to understand than quantum algorithms, this observation led to a number of new lower bounds on quantum query complexity. This method of proving quantum query lower bounds is called the polynomial method.</p><p>After several significant quantum query lower bounds were proved via the polynomial method (including the work of Aaronson and Shi <ref type="bibr">[3]</ref>, who proved optimal lower bounds for the collision and element distinctness problems), the polynomial method took a back seat. Since then, the positive-weights adversary method <ref type="bibr">[5,</ref><ref type="bibr">12,</ref><ref type="bibr">52,</ref><ref type="bibr">92]</ref> and the newer negative-weights adversary method <ref type="bibr">[44,</ref><ref type="bibr">55,</ref><ref type="bibr">66]</ref> have become the tools of choice for proving quantum query lower bounds (with some notable exceptions, such as Zhandry's recent tight lower bound for the set equality problem <ref type="bibr">[91]</ref>). This leads us to our second goal for this work.</p><p>In this article, we seek to resolve several open problems in quantum query complexity using approximate degree as the lower bound technique. A distinct advantage of proving quantum query lower bounds with the polynomial method is that any such bound can be "lifted" via Sherstov's pattern matrix method <ref type="bibr">[72]</ref> to a quantum communication lower bound (even with unlimited shared entanglement <ref type="bibr">[56]</ref>); THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp.  Best prior upper bound Our lower bound Best prior lower bound k-Distinctness O(n 3/4-1/(2 k+2 -4) ) <ref type="bibr">[16]</ref> &#937;(n 3/4-1/(2k) ) &#937;(n 2/3 ) <ref type="bibr">[3]</ref> Image size testing</p><p>Table <ref type="table">1</ref>: Our lower bounds on quantum query complexity and approximate degree vs. prior work. such a result is not known for any other quantum query lower bound technique. More generally, using approximate degree as a lower bound technique for quantum query complexity has other advantages, such as the ability to show lower bounds for zero-error and small-error quantum algorithms <ref type="bibr">[24]</ref>, unbounded-error quantum algorithms <ref type="bibr">[13]</ref>, and time-space tradeoffs <ref type="bibr">[48]</ref>.</p><p>Quantum query complexity and approximate degree. We illustrate the power of the polynomial method by proving optimal or nearly optimal bounds on several functions studied in the quantum computing literature. These results are summarized in Table <ref type="table">1</ref>, and definitions of the problems considered can be found in Section 1.1. Since the upper bounds for these functions were shown using quantum algorithms, our results determine both the quantum query complexity and approximate degree of these functions.</p><p>For most of the functions studied in this paper, the positive-weights adversary bound provably cannot show optimal lower bounds due to the certificate complexity barrier <ref type="bibr">[83,</ref><ref type="bibr">92]</ref> and the property testing barrier <ref type="bibr">[44]</ref>. While these barriers do not apply to the negative-weights variant (which is actually capable of proving tight quantum query lower bounds for all functions <ref type="bibr">[55,</ref><ref type="bibr">66]</ref>), the negative-weights adversary method is often challenging to apply to specific problems, and tight bounds for the problems we consider have remained unknown for a long time.</p><p>For the functions presented in Table <ref type="table">1</ref>, the approximate degree and quantum query complexity are essentially the same. This is not the case for the surjectivity function, which has played an important role in the literature on approximate degree and quantum query complexity. Specifically, Beame and Machmouchi <ref type="bibr">[14]</ref> showed that surjectivity has quantum query complexity &#920;(n). On the other hand, Sherstov recently showed that surjectivity has approximate degree &#213;(n 3/4 ) <ref type="bibr">[78]</ref>. Surjectivity is the only known example of a "natural" function separating approximate degree from quantum query complexity; prior examples of such functions <ref type="bibr">[2,</ref><ref type="bibr">7]</ref> were contrived, and (unlike surjectivity) specifically constructed to separate the two measures.</p><p>Our final result gives a nearly tight estimate of the approximate degree of surjectivity. We prove a new lower bound of &#937;(n 3/4 ), which matches Sherstov's upper bound up to logarithmic factors. We also give a new construction of an approximating polynomial of degree &#213;(n 3/4 ), using very different techniques than <ref type="bibr">[78]</ref>. We believe that our proof of this &#213;(n 3/4 ) upper bound is of independent interest. In particular, our lower bound proof for surjectivity is specifically tailored to showing optimality of our upper bound construction, in a sense that can be made formal via complementary slackness. We are optimistic that our THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp.  Prior upper bound Our upper bound Our lower bound Prior lower bound Surjectivity &#213;(n 3/4 ) <ref type="bibr">[78]</ref> &#213;(n 3/4 ) &#937;(n 3/4 ) &#937;(n 2/3 ) <ref type="bibr">[3]</ref> Table <ref type="table">2</ref>: Our bounds on the approximate degree of surjectivity vs. prior work. approximation techniques will be useful for showing additional tight approximate-degree bounds in the future.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Our results</head><p>We now describe our results and prior work on these functions in more detail.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.1">Functions considered</head><p>We now informally describe the functions studied in this paper. These functions are formally defined in Section 2.4. Let R be a power of two and N &#8805; R, and let n = N &#8226; log 2 R. Most of the functions that we consider interpret their inputs in {-1, 1} n as a list of N numbers from a range [R], and determine whether this list satisfies various natural conditions. We let the frequency f i of range item i &#8712; R denote the number of times i appears in the input list.</p><p>In this paper we study the following functions in which the input is N numbers from a range [R]:</p><p>&#8226; Surjectivity (SURJ): Do all range items appear at least once?</p><p>&#8226; k-Distinctness: Is there a range item that appears k or more times?</p><p>&#8226; Image size testing: Decide if all range items appear at least once or if at most &#947; &#8226; R range items appear at least once, under the promise that one of these is true. &#8226; Statistical distance from uniform (SDU): Interpret the input as a probability distribution p, where p i = f i /N. Compute the statistical distance of p from the uniform distribution over R up to some small additive error &#949;. &#8226; Shannon entropy: Interpret the input as a probability distribution p, where p i = f i /N. Compute the Shannon entropy &#8721; i&#8712;R p i &#8226; log(1/p i ) of p up to additive error &#949;.</p><p>An additional function we consider that does not fit neatly into the framework above is k-junta testing.</p><p>&#8226; k-Junta testing: Given an input in {-1, 1} n representing the truth table of a function {-1, 1} log n &#8594; {-1, 1}, determine whether this function depends on at most k of its input bits, or is at least &#949;-far from any such function.</p><p>We give tight or nearly tight bounds on the quantum query complexities and/or approximate degrees of all of the functions above. Our lower bounds for SURJ, k-distinctness, image size testing, SDU, and entropy approximation all require N to be "sufficiently larger" than R, by a certain constant factor. For simplicity, throughout this introduction we do not make this requirement explicit, and for this reason we label the theorems in this introduction informal.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.2">Results in detail</head><p>Surjectivity. In the surjectivity problem we are given N numbers from [R] and must decide if every range item appears at least once in the input.</p><p>The quantum query complexity of this problem was studied by Beame and Machmouchi <ref type="bibr">[14]</ref>, who proved a lower bound of &#937;(n), which was later improved by Sherstov to the optimal &#920;(n) <ref type="bibr">[80]</ref>. Beame and Machmouchi <ref type="bibr">[14]</ref> explicitly leave open the question of determining the approximate degree of surjectivity. Recently, Sherstov <ref type="bibr">[78]</ref> showed an upper bound of &#213;(n 3/4 ) on the approximate degree of this function. The best prior lower bound was &#937;(n 2/3 ) <ref type="bibr">[3,</ref><ref type="bibr">33]</ref>.</p><p>We give a completely different construction of an approximating polynomial for surjectivity with degree &#213;(n 3/4 ). We also prove a matching lower bound, which shows that the approximate degree of the surjectivity function is &#920;(n 3/4 ).</p><p>Theorem 1.1 (Informal). The approximate degree of SURJ is &#920;(n 3/4 ). k-Distinctness. In this problem, we are given N numbers in [R] and must decide if any range item appears at least k times in the list (i. e., is there an i &#8712; [R] with f i &#8805; k?). This generalizes the well-studied element distinctness problem, which is the same as 2-distinctness.</p><p>Ambainis <ref type="bibr">[8]</ref> first used quantum walks to give an O(n k/(k+1) ) upper bound on the quantum query complexity of any problem with certificates of size k, including k-distinctness and k-sum. <ref type="foot">1</ref> Later, Belovs introduced a beautiful new framework for designing quantum algorithms <ref type="bibr">[17]</ref> and used it to improve the upper bound for k-distinctness to O(n 3/4-1/(2 k+2 -4) ) <ref type="bibr">[16]</ref>. Several subsequent works have used Belovs' k-distinctness algorithm as a black-box subroutine for solving more complicated problems (e. g., <ref type="bibr">[58,</ref><ref type="bibr">61]</ref>).</p><p>As for lower bounds, Aaronson and Shi <ref type="bibr">[3]</ref> established an &#937;(n 2/3 ) lower bound on the approximate degree of k-distinctness for any k &#8805; 2. Belovs and &#352;palek used the adversary method to prove a lower bound of &#8486;(n k/(k+1) ) on the quantum query complexity of k-sum, showing that Ambainis' algorithm is tight for k-sum. They asked whether their techniques can prove an &#969;(n 2/3 ) quantum query lower bound for k-distinctness. We achieve this goal, but using the polynomial method instead of the adversary method. Our main result is the following: Theorem 1.2 (Informal). For any k &#8805; 2, the approximate degree and quantum query complexity of k-distinctness is &#937;(n 3/4-1/(2k) ). This is nearly tight for large k, as it approaches Belovs' upper bound of O(n 3/4-1/(2 k+2 -4) ). Note that the exponent in both bounds approaches 3/4. It remains an intriguing open question to close the gap between n 3/4-1/(2 k+2 -4) and n 3/4-1/(2k) , especially for small values of k &#8805; 3.</p><p>Our k-distinctness lower bound also implies an &#937;(n 3/4-1/(2k) ) lower bound on the quantum query complexity of approximating the maximum frequency, F &#8734; , of any element up to relative error less than 1/k <ref type="bibr">[61]</ref>, improving over the previous best bound of &#937;(n 2/3 ).</p><p>Image size testing. In this problem, we are given N numbers in [R] and 0 &lt; &#947; &lt; 1, and must decide if every range item appears at least once or if at most &#947; &#8226; R range items appear at least once. We show for any &#947; &gt; 0, the problem has approximate degree and quantum query complexity &#937;( &#8730; n). This holds as long as N = c &#8226; R for a certain constant c &gt; 0.</p><p>Theorem 1.3 (Informal). The approximate degree and quantum query complexity of image size testing is</p><p>This lower bound is tight, matching a quantum algorithm of Ambainis, Belovs, Regev, and de Wolf <ref type="bibr">[9]</ref>, and confirms a conjecture from their work. The previous best lower bound was &#8486;(n 1/3 ) <ref type="bibr">[9]</ref> obtained via reduction to the collision lower bound <ref type="bibr">[3]</ref>. The classical query complexity of this problem is &#920;(n/ log n) <ref type="bibr">[89]</ref>.</p><p>The version of image size testing we define is actually a special case of the one studied in <ref type="bibr">[9]</ref>. The version we define is solvable via the following simple algorithm making O( &#8730; n) queries: pick a random range item, and Grover search for an instance of that range item. The fact that our lower bound holds even for this special case of the problem considered in prior work obviously only makes our lower bound stronger.</p><p>This lower bound also serves as a starting point to establish the next three lower bounds.</p><p>k-Junta testing. In this problem, we are given the truth table of a Boolean function and have to determine if the function depends on at most k variables or if it is &#949;-far from any such function.</p><p>The best classical algorithm for this problem uses O(k log k + k/&#949;) queries <ref type="bibr">[19]</ref>. The problem was first studied in the quantum setting by At&#305;c&#305; and Servedio <ref type="bibr">[11]</ref>, who gave a quantum algorithm making O(k/&#949;) queries. This was later improved by Ambainis et al. <ref type="bibr">[9]</ref> to &#213;( k/&#949;). They also proved a lower bound of &#8486;(k 1/3 ). Via a connection established by Ambainis et al., our image size testing lower bound implies a &#937;( &#8730; k) lower bound on the approximate degree and quantum query complexity of k-junta testing (for some &#949; = &#8486;(1)).</p><p>Theorem 1.4 (Informal). The approximate degree and quantum query complexity of k-junta testing is</p><p>This matches the upper bound of <ref type="bibr">[9]</ref>, resolving the main open question from their paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Statistical distance from uniform (SDU).</head><p>In this problem, we are given a list of N numbers in [R], which we interpret as a probability distribution p, where p i = f i /N, the fraction of times i appears. The goal is to compute the statistical distance between p and the uniform distribution to error &#949;. This problem was studied by Bravyi, Harrow, and Hassidim <ref type="bibr">[23]</ref>, who gave an O( &#8730; n)-query quantum algorithm approximating the statistical distance between two input distributions to additive error &#949; = &#8486;(1). We show that the approximate degree and quantum query complexity of this task are &#937;( &#8730; n), even when one of the distributions is known to be the uniform distribution.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Theorem 1.5 (Informal).</head><p>There is a constant c &gt; 0 such that the approximate degree and quantum query complexity of approximating the statistical distribution of a distribution over a range of size n from the uniform distribution over the same range to additive error c is is</p><p>This matches the upper bound of Bravyi et al. <ref type="bibr">[23]</ref> and answers the main question left open from that work. Note that the classical query complexity of this problem is &#920;(n/ log n) <ref type="bibr">[89]</ref>.</p><p>Entropy approximation. As in the previous problem, we interpret the input as a probability distribution, and the goal is to compute its Shannon entropy to additive error &#949;. The classical query complexity of this problem is &#920;(n/ log n) <ref type="bibr">[89]</ref>. We show that, for some &#949; = &#8486;(1), the approximate degree and quantum query complexity are &#937;( &#8730; n).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Theorem 1.6 (Informal).</head><p>There is a constant &#949; &gt; 0 such that the approximate degree and quantum query complexity of approximating the Shannon entropy of a distribution over a range of size n to additive error</p><p>This too is tight, answering a question of Li and Wu <ref type="bibr">[58]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Prior work on lower bounds for approximate degree</head><p>A relatively new lower-bound technique for approximate degree called the method of dual polynomials plays an essential role in our paper. This method of dual polynomials dates back to work of Sherstov <ref type="bibr">[75]</ref> and &#352;palek <ref type="bibr">[82]</ref>, though dual polynomials had been used earlier to resolve longstanding questions in communication complexity <ref type="bibr">[36,</ref><ref type="bibr">57,</ref><ref type="bibr">71,</ref><ref type="bibr">72,</ref><ref type="bibr">81]</ref>. To prove a lower bound for a function f via this method, one exhibits an explicit dual polynomial for f , which is a dual solution to a certain linear program capturing the approximate degree of f . A notable feature of the method of dual polynomials is that it is lossless, in the sense that it can exhibit a tight lower bound on the approximate degree of any function f (though actually applying the method to specific functions may be highly challenging). Prior to the method of dual polynomials, the primary tool available for proving approximate degree lower bounds was symmetrization, introduced by Minsky and Papert <ref type="bibr">[60]</ref> in the 1960s. Although powerful, symmetrization is not a lossless technique.</p><p>Most prior work on the method of dual polynomials can be understood as establishing hardness amplification results. Such results show how to take a function f that is "somewhat hard" to approximate by low-degree polynomials, and turn f into a related function g that is much harder to approximate. Here, harder means either that g requires larger degree to approximate to the same error as f , or that approximations to g of a given degree incur much larger error than do approximations to f of the same degree.</p><p>Results for block-composed functions. Until very recently, the method of dual polynomials had been used exclusively to prove hardness amplification results for block-composed functions. That is, the harder function g would be obtained by block-composing f with another function h, i. e., g = h &#8226; f . Here, a function g :</p><p>its input as a sequence of n blocks, applies f to each block, and then feeds the n outputs into h.</p><p>The method of dual polynomials turns out to be particularly suited to analyzing block-composed functions, as there are sophisticated ways of "combining" dual witnesses for h and f individually to give an effective dual witness for h &#8226; f <ref type="bibr">[21,</ref><ref type="bibr">29,</ref><ref type="bibr">30,</ref><ref type="bibr">73,</ref><ref type="bibr">75,</ref><ref type="bibr">[79]</ref><ref type="bibr">[80]</ref><ref type="bibr">[81]</ref><ref type="bibr">86]</ref>. Prior work on analyzing block-composed functions has, for example, resulted in the determination of the approximate degree of the function f (x) = n i=1 m j=1 x i j , known as the AND-OR tree, which had been open for 19 years <ref type="bibr">[29,</ref><ref type="bibr">73]</ref>, established new lower bounds for AC 0 under basic complexity measures including discrepancy <ref type="bibr">[30,</ref><ref type="bibr">79,</ref><ref type="bibr">80,</ref><ref type="bibr">86]</ref>, THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71 sign-rank <ref type="bibr">[32]</ref>, and threshold degree <ref type="bibr">[79,</ref><ref type="bibr">80]</ref>, and resolved a number of open questions about the power of statistical zero knowledge proofs <ref type="bibr">[21]</ref>.</p><p>Beyond block-composed functions. While the aforementioned results led to considerable progress in complexity theory, many basic questions require understanding the approximate degree of non-blockcomposed functions. One prominent example with many applications is to exhibit an AC 0 circuit over n variables with approximate degree &#8486;(n). Until very recently, the best result in this direction was Aaronson and Shi's well-known &#937;(n 2/3 ) lower bound on the approximate degree of the element distinctness function (which is equivalent to k-distinctness for k = 2) <ref type="bibr">[3]</ref>. However, Bun and Thaler <ref type="bibr">[33]</ref> recently achieved a near-resolution of this problem by proving the following theorem.</p><p>Theorem 1.7 (Bun and Thaler <ref type="bibr">[33]</ref>). For any constant &#948; &gt; 0, there is an AC 0 circuit with approximate degree &#8486;(n 1-&#948; ).</p><p>The reason that Theorem 1.7 required moving beyond block-composed functions is the following result of Sherstov <ref type="bibr">[76]</ref>.</p><p>Theorem 1.8 <ref type="bibr">(Sherstov)</ref>. For any Boolean functions f and h, deg(h</p><p>Theorem 1.8 implies that the approximate degree of h &#8226; f (viewed as a function of its input size) is never higher than the approximate degree of f or h individually (viewed as a function of their input sizes). For example, if f and h are both functions on n inputs, and both have approximate degree O(n 1/2 ), then h &#8226; f has N := n 2 inputs, and by Theorem 1.8, deg(h</p><p>This means that block-composing multiple AC 0 functions does not result in a function of higher approximate degree (as a function of its input size) than that of the individual functions. Bun and Thaler <ref type="bibr">[33]</ref> overcome this hurdle by introducing a way of analyzing functions that cannot be written as a block-composition of simpler functions.</p><p>Bun and Thaler's techniques set the stage to finding the approximate degrees of many basic functions using the method of dual polynomials. However, they were not refined enough to accomplish this on their own. Our lower bounds in this paper are obtained by refining and extending the methods of <ref type="bibr">[33]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3">Our techniques</head><p>In order to describe our techniques, it is helpful to explain the process by which we discovered the tight &#920;(n 3/4 ) lower and upper bounds for surjectivity (cf. Theorem 1.1). It has previously been observed <ref type="bibr">[29,</ref><ref type="bibr">33,</ref><ref type="bibr">86]</ref> that optimal dual polynomials for a function f tend to be tailored (in a sense that can be made precise via complementary slackness) to showing optimality of some specific approximation technique for f . Hence, constructing a dual polynomial for f can provide a strong hint as to how to construct an optimal approximation for f , and vice versa.</p><p>Upper bound for surjectivity. In <ref type="bibr">[33]</ref>, Bun and Thaler constructed a dual polynomial witnessing a suboptimal bound of &#937;(n<ref type="foot">foot_3</ref>/<ref type="foot">foot_4</ref> ) for SURJ. Even though this dual polynomial is suboptimal, it still provided a major clue as to what an optimal approximation for SURJ should look like: it curiously ignored all inputs failing to satisfy the following condition. Condition 1.9. Every range item has frequency at most T , for a specific threshold T = O(N 1/3 ) N.</p><p>This suggested that an optimal approximation for SURJ should treat inputs satisfying Condition 1.9 differently than other inputs, leading us to the following multi-phase construction (for clarity and brevity, this overview is simplified). The first phase constructs a polynomial p of degree O(n 3/4 ) approximating SURJ on all inputs satisfying Condition 1.9. However, p may be exponentially large on other inputs. The second phase constructs a polynomial q of degree O(n 3/4 ) that is exponentially small on inputs x that do not satisfy Condition 1.9 (in particular, q(x) 1/p(x) for such x), and is close to 1 otherwise. The product p &#8226; q still approximates SURJ on inputs satisfying Condition 1.9, and is exponentially small on all other inputs. Notice that deg(p &#8226; q) &#8804; deg(p) + deg(q) = O(n 3/4 ). Combining the above with an additional averaging step (the details of which we omit from this introduction) yields an approximation to SURJ that is accurate on all inputs.</p><p>Lower bound for surjectivity. With the O(n 3/4 ) upper bound in hand, we were able to identify the fundamental bottleneck preventing further improvement of the upper bound. This suggested a way to refine the techniques of <ref type="bibr">[33]</ref> to prove a matching lower bound. Once the tight lower bound for SURJ was established, we were able to identify additional refinements to analyze the other functions that we consider. We now describe this in more detail.</p><p>Bun and Thaler's <ref type="bibr">[33]</ref> (suboptimal) lower bound analysis for SURJ proceeds in two stages. In the first stage, proving a lower bound for SURJ (on N input list items and R range items) is reduced to the problem of proving a lower bound for the block-composed function AND R &#8226; OR N , 2 under the promise that the input has Hamming weight at most N. 3 In this paper, we use this stage of their analysis unmodified.</p><p>The second stage proves an &#937;(R 2/3 ) lower bound for the latter problem by leveraging much of the machinery developed to analyze the approximate degree of block-composed functions <ref type="bibr">[29,</ref><ref type="bibr">65,</ref><ref type="bibr">73]</ref>. To describe this machinery, we require the following notion. A dual polynomial that witnesses the fact that deg &#949; ( f n ) &#8805; d is a function &#968; : {-1, 1} n &#8594; [-1, 1] satisfying the following three conditions.</p><p>If &#968; satisfies this condition, it is said to be well correlated with f .</p><p>&#8226; For all polynomials p : {-1, 1} n &#8594; R of degree less than d, we have &#8721; x&#8712;{-1,1} n p(x) &#8226; &#968;(x) = 0. If &#968; satisfies this condition, it is said to have pure high degree at least d.</p><p>In more detail, the second stage of the analysis from <ref type="bibr">[33]</ref> itself proceeds in two steps. First, the authors consider a dual witness &#968; for the high approximate degree of AND R &#8226; OR N that was constructed in prior work <ref type="bibr">[29]</ref>. &#968; is constructed by taking dual witnesses &#966; and &#947; for the high approximate degrees of AND R and OR N individually, and "combining" them in a specific way <ref type="bibr">[54,</ref><ref type="bibr">75,</ref><ref type="bibr">81]</ref> to obtain a dual witness for the high approximate degree of their block composition AND R &#8226; OR N .</p><p>Unfortunately, &#968; only witnesses a lower bound for AND R &#8226; OR N without the promise that the Hamming weight of the input is at most N. To address this issue, it is enough to "post-process" &#968; so that it no longer "exploits" any inputs of Hamming weight larger than N (formally, &#968;(x) should equal zero for any inputs in {-1, 1} R&#8226;N of Hamming weight more than N). The authors accomplish this by observing that &#968; "almost ignores" all such inputs (i. e., it places exponentially little total mass on all such inputs), and hence it is possible to perturb &#968; to make it completely ignore all such inputs.</p><p>Key to this step is the fact that the "inner" dual witness &#947; for the high approximate degree of the OR N function satisfies a "Hamming weight decay" condition:</p><p>for a suitable polynomial function.</p><p>To improve the lower bound for SURJ from &#937;(n 2/3 ) to the optimal &#937;(n 3/<ref type="foot">foot_5</ref> ), we observe that &#947; in fact satisfies a much stronger decay condition: while the inverse-polynomial decay property of Equation (1.1) is tight for small Hamming weights |x|, |&#947;(x)| actually decays exponentially quickly once |x| is larger than a certain threshold t. This observation is enough to obtain the tight &#937;(n 3/4 ) lower bound for SURJ.</p><p>For intuition, it is worth mentioning that a primal formulation of the dual decay condition that we exploit shows that any low-degree polynomial p that is an accurate approximation to OR N on low Hamming-weight inputs requires large degree, even if |p(x)| is allowed to be exponentially large for inputs of Hamming weight more than t. 4 This is precisely the bottleneck that prevents us from improving our upper bound for SURJ to o(N 3/4 ). In this sense, our dual witness is intuitively tailored to showing optimality of the techniques used in our upper bound.</p><p>Other lower bounds. To obtain the lower bound for k-distinctness, the first stage of the analysis of <ref type="bibr">[33]</ref> reduces to a question about the approximate degree of the block-composed function OR R &#8226; THR k N , under the promise that the input has Hamming weight at most N. Here THR k N : {-1, 1} N &#8594; {-1, 1} denotes the function that evaluates to -1 if and only if the Hamming weight of its input is at least k. By constructing a suitable dual witness for THR k N , and combining it with a dual witness for OR N via similar techniques as in our construction for SURJ, we are able to prove our &#8486;(n 3/4-1/(2k) ) lower bound for k-distinctness. (This description glosses over several significant technical issues that must be dealt with to ensure that the combined dual witness is well-correlated with OR R &#8226; THR k N ). <ref type="foot">5</ref>Recall that our lower bounds for k-junta testing, SDU, and entropy approximation are derived as consequences of our lower bound for image size testing. The connection between image size testing and junta testing was established by Ambainis et al. <ref type="bibr">[9]</ref>. The reason that the image testing lower bound implies lower bounds for SDU is the following. Consider any distribution p over [R] such that all probabilities p i are integer multiples of 1/N for some N = O(R). Then if p has full support, p is guaranteed to be somewhat close to uniform, while if p has small support, p must be very far from uniform. We obtain our lower bound for entropy approximation using a simple reduction from SDU due to Vadhan <ref type="bibr">[88]</ref>.</p><p>To obtain our lower bound for image size testing, we observe that the first stage of the analysis of <ref type="bibr">[33]</ref> reduces to a question about the approximate degree of the block-composed function GapAND R &#8226; OR N , under the promise that the input has Hamming weight at most N. Here, GapAND R is the promise function that outputs -1 if all of its inputs equal -1, outputs +1 if fewer than &#947; &#8226; R of its inputs are -1, and is undefined otherwise.</p><p>Roughly speaking, we obtain the desired &#937;(n 1/2 ) lower bound by combining a dual witness for GapAND R &#8226; OR N from prior work <ref type="bibr">[30]</ref> with the same techniques as in our construction for SURJ. However, additional technical refinements to the analysis of <ref type="bibr">[33]</ref> are required to obtain our results. In particular, the analysis of <ref type="bibr">[33]</ref> only provides a lower bound for SURJ if N = &#8486;(R &#8226; log 2 (R)). But in order to infer our lower bound for SDU and entropy approximation (as well as k-junta testing for &#949; = &#8486;(1)), it is essential that the lower bound hold for N = O(R). This is because a distribution with full support is guaranteed to be &#8486;(1)-close to uniform if all probabilities are integer multiples of 1/N with N = O(R), but this is not the case otherwise. (Consider, e. g., a distribution that places mass 1 -1/ log 2 (R) on a single range item, and spreads out the remaining mass evenly over all other range items). Refining the methods of <ref type="bibr">[33]</ref> to yield lower bounds even when N = O(R) requires a significantly more delicate analysis than in <ref type="bibr">[33]</ref>.</p><p>A diagram indicating how we obtain our results and the relationships that we establish between problems is given in Figure <ref type="figure">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.4">Outline for the rest of the paper</head><p>Section 2 covers preliminary definitions and lemmas. Section 3 presents the &#213;(n 3/4 ) upper bound for SURJ, while Section 4 presents the matching &#937;(n 3/4 ) lower bound. Section 5 gives the &#937;(n 3/4-1/(2k) ) lower bound for k-distinctness. Section 6 presents the lower bound for image size testing, and its implications for junta testing, SDU, and Shannon entropy approximation. Section 7 concludes by briefly describing some additional consequences of our results, as well as a number of open questions and directions for future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Notation</head><p>For a natural number N, let [N] = {1, 2, . . . , N} and [N] 0 = {0, 1, 2, . . . , N}. All logarithms are taken in base 2 unless otherwise noted. As is standard, we say that a function</p><p>We will frequently work with Boolean functions under the promise that their inputs have low Hamming weight. To this end, we introduce the following notation for the set of low Hamming-weight inputs.</p><p>&#8804;T denote the subset of {-1, 1} n consisting of all inputs of Hamming weight at most T . We use |x| to denote the Hamming weight of an input x &#8712; {-1, 1} n , so</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Two variants of approximate degree and their dual formulations</head><p>There are two natural notions of approximate degree for promise problems (i. e., for functions defined on a strict subset X of {-1, 1} n ). One notion requires an approximating polynomial p to be bounded in absolute value even on inputs in {-1, 1} n \ X . The other places no restrictions on p outside of the promise X . We make use of both notions. Hence, we must introduce some (non-standard) notation to distinguish the two. Definition 2.2 (Approximate degree with boundedness outside of the promise required). Let &#949; &gt; 0 and X &#8838; {-1, 1} n . The &#949;-approximate degree of a Boolean function f : X &#8594; {-1, 1}, denoted deg &#949; ( f ), is the least degree of a real polynomial p : X &#8594; R such that |p(x)f (x)| &#8804; &#949; for all x &#8712; X and |p(x)| &#8804; 1 + &#949; for all x &#8712; {-1, 1} n \ X . We use the term approximate degree without qualification to refer to deg( f</p><p>The following standard dual formulation of this first variant of approximate degree can be found in, e. g., <ref type="bibr">[31]</ref>.</p><p>Proposition 2.3. Let X &#8838; {-1, 1} n , and let f : X &#8594; {-1, 1}. Then deg &#949; ( f ) &#8805; d if and only if there THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71 exists a function &#968; : {-1, 1} n &#8594; R with the following properties.</p><p>for every polynomial p :</p><p>We will refer to functions &#968; : {-1, 1} n &#8594; R as dual polynomials. We refer to &#8721; x&#8712;{-1,1} n |&#968;(x)| as the 1 -norm of &#968;, and denote this quantity by &#968; 1 . If &#968; satisfies Equation (2.3), it is said to have pure high degree at least d.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Given a function</head><p>and refer to this as the correlation of f and &#968;. So Condition (2.1) is equivalent to requiring &#968; and f to have correlation great than &#949;. Definition 2.4 (Approximate degree with unboundedness permitted outside of the promise). Let &#949; &gt; 0 and X be a finite set. The &#949;-unbounded approximate degree of a Boolean function f :</p><p>is a strict subset of a larger domain, then no constraints are placed on p(x) for x &#8712; X ). We use the term unbounded approximate degree without qualification to refer to ubdeg( f ) = ubdeg 1/3 ( f ).</p><p>The following standard dual formulation of this second variant of approximate degree can be found in, e. g., <ref type="bibr">[72]</ref>. A dual polynomial &#968; : {-1, 1} n &#8594; [-1, 1] witnessing the fact that ubdeg &#949; ( f ) &#8805; d is the same as a dual witness for deg &#949; ( f ) &#8805; d, but with the additional requirement that &#968;(x) = 0 outside of X . Proposition 2.5. Let X &#8838; {-1, 1} n , and let f : X &#8594; {-1, 1}. Then ubdeg &#949; ( f ) &#8805; d if and only if there exists a function &#968; : {-1, 1} n &#8594; R satisfying the following conditions.</p><p>For every polynomial p :</p><p>Observe that deg( f ) and ubdeg( f ) coincide for total functions f . To avoid notational clutter, when referring to the approximate degree of total functions, we will use the shorter notation deg( f ).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Basic facts about polynomial approximations</head><p>The seminal paper of Nisan and Szegedy <ref type="bibr">[62]</ref> gave tight bounds on the approximate degree of the AND n and OR n functions. Lemma 2.6. For any constant &#949; &#8712; (0, 1), the functions AND and OR on n bits have &#949;-approximate degree &#920;(n 1/2 ), and the same holds for their negations.</p><p>Approximate degree is invariant under negating the inputs or output of a function, and hence the result for AND implies the result for NAND, OR, etc.</p><p>The following lemma, which forms the basis of the well-known symmetrization argument, is due to Minsky and Papert <ref type="bibr">[60]</ref>.</p><p>Lemma 2.7. Let p : {-1, 1} n &#8594; R be an arbitrary polynomial and let [n] 0 denote the set {0, 1, . . . , n}. Then there is a univariate polynomial q : R &#8594; R of degree at most deg(p) such that</p><p>for all t &#8712; [n] 0 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4">Functions of interest</head><p>We give formal definitions of the surjectivity and k-distinctness we consider, as well as several variations that will be helpful in proving our lower bounds. The formal definitions of the other functions we study, including image size testing, SDU, and the Shannon entropy functions, are deferred to Section 6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.1">Surjectivity</head><p>Definition 2.8.</p><p>there exists an i such that s i = j.</p><p>When N and R are clear from context, we will often refer to the function SURJ without the explicit dependence on these parameters. It will sometimes be convenient to think of the input to SURJ N,R as a function mapping {-1, 1} n &#8594; {-1, 1} rather than [R] N &#8594; {-1, 1}. When needed, we assume that R is a power of 2 and an element of [R] is encoded in binary using log R bits. In this case we will view surjectivity as a function on n = N log R bits, i. e., SURJ : {-1, 1} n &#8594; {-1, 1}.</p><p>For technical reasons, when proving lower bounds, it will be more convenient to work with a variant of SURJ where the range [R] is augmented by a "dummy element" 0 that is simply ignored by the function. That is, while any of the items s 1 , . . . , s N may take the dummy value 0, the presence of a 0 in the input is not required for the input to be deemed surjective. We denote this variant of surjectivity by dSURJ. More formally:</p><p>there exists an i such that s i = j.</p><p>The following simple reduction shows that a lower bound on the approximate degree of dSURJ implies a lower bound for SURJ itself.</p><p>Proposition 2.10. Let &#949; &gt; 0 and N &#8805; R. Then</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71 Proof. Let p : {-1, 1} (N+1)&#8226;log(R+1) &#8594; {-1, 1} be a polynomial of degree d that &#949;-approximates SURJ N+1,R+1 . We will use p to construct a polynomial of degree d that &#949;-approximates dSURJ N,R . Recall that an input to dSURJ N,R takes the form (s 1 , . . . , s N ) where each s i is the binary representation of a number in [R] 0 . Define the transformation T :</p><p>Note that as a mapping between binary representations, the function T is exactly computed by a vector of polynomials of degree at most log(R + 1). For every</p><p>Hence, the polynomial p(T (s 1 ), . . . ,</p><p>As with surjectivity, it will be convenient to work with a variant of k-distinctness where [R] is augmented with a dummy item: Definition 2.12. For integers k, N, R with k &#8804; N, define the function</p><p>For k &#8805; 2, a lower bound on the approximate degree of dDIST k implies a lower bound on the approximate degree of DIST k . The restriction that k &#8805; 2 is essential, because the function DIST 1 is the constant function that evaluates to TRUE on any input (since at least one range item must always have frequency at least one), whereas dDIST 1 contains OR N as a subfunction, and hence has approximate degree at least &#8486;( &#8730; N).</p><p>Proposition 2.13. Let &#949; &gt; 0, N, R &#8712; N, and k &#8805; 2. Then</p><p>Proof. The proof is similar to that of Proposition 2.10, but uses a slightly more involved reduction. Let p : {-1, 1} 2N&#8226;log(R+N) &#8594; R be a polynomial of degree d that &#949;-approximates DIST k N,R+N . We will use p to construct a polynomial of degree d that &#949;-approximates</p><p>As a mapping between binary representations, the function T = (T 1 , . . . , T N ) is exactly computed by a vector of polynomials of degree at most log(R + 1). For every (s 1 , . . . , s N ) &#8712; [R] N 0 , observe that</p><p>Hence, the polynomial p(T (s 1 ), . . . , T (s N ))</p><p>is a polynomial of degree d &#8226; log(R + 1) that &#949;-approximates dSURJ N,R .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5">Connecting symmetric properties and block-composed functions</head><p>An important ingredient in <ref type="bibr">[33]</ref> is the relationship between the approximate degree of a property of a list of numbers (such as SURJ) and the approximate degree of a simpler block-composed function, defined as follows.</p><p>Definition 2.14. For functions f :</p><p>Suppose g is a symmetric function, in the sense that for any x &#8712; {-1, 1} N and any permutation &#963; :</p><p>Equivalently, the value of g on any input x depends only on its Hamming weight |x|.</p><p>The functions f and g give rise to two functions. The first, which we denote by</p><p>The second, which we denote by</p><p>, is the block composition of f and g restricted to inputs of Hamming weight at most N. Formally, these functions are defined as</p><p>The following proposition from <ref type="bibr">[33]</ref>, which in turn relies heavily on a clever symmetrization argument due to due to Ambainis <ref type="bibr">[6]</ref>, relates the approximate degrees of the two functions F prop and F &#8804;N . Theorem 2.15. Let f : {-1, 1} R &#8594; {-1, 1} be any function and let g : {-1, 1} N &#8594; {-1, 1} be a symmetric function. Then for F prop and F &#8804;N defined above, and for any &#949; &gt; 0, we have</p><p>In the case where f = AND R and g = OR N , the function F prop (s 1 , . . . , s N ) is the surjectivity function augmented with a dummy item, dSURJ N,R (s 1 , . . . , s N ). Hence, Corollary 2.16. Let N, R &#8712; N. Then for any &#949; &gt; 0,</p><p>Definition 2.17. For integers k, N with k &#8804; N, define the function</p><p>where G &#8804;N :</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.6">The dual block method</head><p>This section collects definitions and preliminary results on the dual block method <ref type="bibr">[54,</ref><ref type="bibr">75,</ref><ref type="bibr">81]</ref> for constructing dual witnesses for a block-composed function F &#8226; f by combining dual witnesses for F and f . Definition 2.19. Let &#936; : {-1, 1} M &#8594; R and &#968; : {-1, 1} m &#8594; R be functions that are not identically zero. Let x = (x 1 , . . . , x M ) &#8712; ({-1, 1} m ) M . Define the dual block composition of &#936; and &#968;, denoted</p><p>Proposition 2.20 <ref type="bibr">([33, 75]</ref>). The dual block composition satisfies the following conditions.</p><p>Preservation of 1 -norm:</p><p>Multiplicativity of pure high degree: If &#936;, P = 0 for every polynomial P : {-1, 1} M &#8594; R of degree less than D, and &#968;, p = 0 for every polynomial p : {-1, 1} m &#8594; R of degree less than d, then for every polynomial q</p><p>(2.9)</p><p>(2.10)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.7">A refinement of a technical lemma from prior work</head><p>The following technical proposition refines techniques of Bun and Thaler <ref type="bibr">[33]</ref>. This proposition is useful for "zeroing out" the mass that a dual polynomial &#958; places on inputs of high Hamming weight, if &#958; is obtained via the dual-block method.</p><p>Definition 2.21. Let M &#8712; N and &#945;, &#946; &gt; 0. A function &#969; :</p><p>)</p><p>(2.13) Proposition 2.22. Let R &#8712; N be sufficiently large, and let &#934; : </p><p>)</p><p>The key refinement of Proposition 2.22 relative to the analysis of Bun and Thaler is that Proposition 2.22 applies when N = &#920;(R) (assuming &#945; = O(1)). In contrast, the techniques of Bun and Thaler required N = &#8486;(R &#8226; log 2 R). As indicated in Section 1.3, this refinement will be essential in obtaining our lower bounds for SDU, entropy approximation, and junta testing for constant proximity parameter.</p><p>The proof of Proposition 2.22 occurs in two steps. First, in Proposition 2.23, we show that &#958; = &#934; &#968; places an exponentially small amount of mass on inputs outside of H N&#8226;R &#8804;N . Second, in Proposition 2.25, we construct a correction object &#957; that zeroes out the mass &#958; places outside of H N&#8226;R &#8804;N without decreasing its pure high degree. Combining &#958; with &#957; yields the desired object &#950; .  </p><p>(2.20)</p><p>By the definition of dual block composition, we have</p><p>Consequently,</p><p>Observe that for any</p><p>we may rewrite Expression (2.21) as</p><p>To control this quantity, we appeal to the following combinatorial lemma, whose proof we delay to Section 2.7.1 (this lemma is a substantial refinement of <ref type="bibr">[33,</ref><ref type="bibr">Lemma 32]</ref>).</p><p>, and let R be sufficiently large. Let N = 20</p><p>be a sequence of non-negative functions where for every i,</p><p>(2.23)</p><p>where &#8710; &#8805; &#946; &#8730; &#945;R/(4 ln 2 R).</p><p>Observe that the functions &#969; z i satisfy Condition (2.22) (cf. Equation (2.20)) and Condition (2.23) (cf. Property (2.13)). We complete the proof by bounding</p><p>Here, the equality appeals to the condition that &#934; 1 = 1.</p><p>Our final dual witness &#950; is obtained by modifying &#958; = &#934; &#968; to zero out all of the mass it places on inputs of total Hamming weight larger than N. The following proposition gives sufficient conditions under which this postprocessing step can be done. Proposition 2.25 ( [33, Proposition 34], building on <ref type="bibr">[65]</ref>). Let N &#8805; R &gt; D and let &#958; :</p><p>Then there exists a function &#957; :</p><p>Remark 2.26. Proposition 2.25 is framed exclusively in the language of dual polynomials: it states that if a dual polynomial &#958; places very little mass on inputs of Hamming weight more than N, then there exists another dual polynomial &#957; with certain useful properties (we ultimately use &#957; to zero out the mass that &#958; places on inputs of Hamming weight more than N). Proposition 2.25 also has a clean primal formulation. Roughly speaking, it is equivalent to a bound on the growth rate of any polynomial of degree at most D that is bounded at all inputs of Hamming weight at most D. We direct the interested reader to <ref type="bibr">[90]</ref> for details of this primal formulation.</p><p>We are now ready to combine Proposition 2.23 and Proposition 2.25 to complete the proof of Proposition 2.22.</p><p>Proof of Proposition 2.22. Let &#958; = &#934; &#968;. By Proposition 2.23, we have</p><p>where &#8710; &#8805; &#946; &#8730; &#945;R/(4 ln 2 R). By Proposition 2.25, there exists a function &#957; :</p><p>)</p><p>(2.26)</p><p>Observe that &#958;&#957; 1 &gt; 0, as &#958; 1 = 1 (cf. Equation (2.8)) and &#957; 1 &#8804; 1/10 (cf. Inequality (2.25)). Define the function</p><p>Since &#957;(x) = &#958; (x) whenever |x| &gt; N (cf. Equation (2.26)), the function &#950; is supported on the set H N&#8226;R &#8804;N , establishing <ref type="bibr">(2.18)</ref>. We establish (2.16) by computing</p><p>Equation (2.17) is immediate from the definition of &#950; . Finally, (2.15) follows from (2.14), (2.24), and linearity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.7.1">Proof of Lemma 2.24</head><p>Our final task is to prove Lemma 2.24, restated here for the reader's convenience. </p><p>be a sequence of non-negative functions where for every i,</p><p>(2.23)</p><p>where</p><p>Proof. Using the fact that the function 1/ &#8730; t is decreasing, we may estimate</p><p>Proof. Let T = N 2M . For each s &#8712; {T, . . . , R}, let</p><p>We begin with a simple, but important, structural observation about the set P.</p><p>Then we claim that there exists an s &#8712; {T . . . , R} such that t i &#8805; C(s) for at least s indices i &#8712; [R]. To see this, assume without loss of generality that the entries of t are sorted so that t 1 &#8805; t 2 &#8805; &#8226; &#8226; &#8226; &#8805; t R . Then there must exist an s &#8805; T such that t s &#8805; C(s). Otherwise, because no t i can exceed M, we would have:</p><p>where the last inequality follows from Lemma 2.29 and the fact that &#8721; m s=1 s -1 &#8804; ln m + 1 (and R is sufficiently large). Since the entries of t are sorted, the preceding values t 1 , . . . ,t s-1 &#8805; C(s) as well.</p><p>For each subset S &#8838; [R], define</p><p>The observations above guarantee that for every t = (t 1 , . . . ,t R ) &#8712; P, there exists some set S of size at least s &#8712; {T, . . . , R} such that t i &#8805; C(s) for all i &#8712; S. Hence</p><p>s by Properties (2.22) and (2.23)</p><p>by Lemma 2.27</p><p>by Lemma 2.28</p><p>where</p><p>holds for sufficiently large R by the restrictions placed on &#945; and &#946; in the statement of the lemma.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Upper bound for surjectivity</head><p>The goal of this section is to prove that the approximate degree of the surjectivity function (Definition 2.8) is &#213;(N 3/4 ).</p><p>For the remainder of the section, we focus on proving Theorem 3.1 in the case that R = &#920;(N). This is without loss of generality by the following argument. If R &gt; N, then surjectivity is identically false, and hence has (exact) degree 0. And if R = o(N), then we can reduce to the case R = &#920;(N) as follows. Let N = 2N and R = R + N; clearly R = &#920;(N). Given an input x to SURJ N,R , obtain an input x to SURJ N ,R by appending range elements R + 1, . . . , R + N to x. This construction guarantees that SURJ N,R (x) = SURJ N ,R (x ). It follows that an approximation of degree &#213;(N 3/4 ) for SURJ N ,R implies an approximation of the same degree for SURJ N,R .</p><p>Section Outline. This section is structured as follows. Section 3.1 introduces some notation that is specific to this section. Section 3.2 provides some intuition for the construction of the polynomial approximation for surjectivity using the simpler function NOR as a warmup example. Section 3.3 introduces some terminology that is useful for providing intuitive descriptions of our final polynomial construction using the language of algorithms. Finally, in Section 3.4 we formally apply our strategy to surjectivity in order to prove Theorem 3.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Notation</head><p>In this section, we make a few departures from the notation used in the introduction and later sections in order to more easily convey the algorithmic intuition behind our polynomial constructions. First, we will consider Boolean functions f : {0, 1} n &#8594; {0, 1}, where 1 corresponds to logical TRUE and 0 corresponds to logical FALSE. For such a Boolean function, we say that a polynomial p :</p><p>For such a polynomial p, it will be useful to think of p(x) as representing the probability that a randomized or quantum algorithm accepts when run on input x.</p><p>By extension, throughout this section we will use deg &#949; ( f ) to denote the least degree of a real polynomial p that &#949;-approximates f in the sense described above, and we will write deg( f</p><p>Given an input x &#8712; {0, 1} n , we will use |x| to denote its Hamming weight (i. e., |x| = &#8721; i x i ).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Warmup: Approximating NOR</head><p>To convey the intuition behind our polynomial construction for surjectivity, we start by considering a much simpler function as an illustrative example. Consider the negation of the OR function on n bits, NOR : {0, 1} n &#8594; {0, 1}. We will give a novel construction of an approximating polynomial for NOR of degree &#213;( &#8730; n). Of course, this is not terribly interesting since it is already known that deg(NOR) = &#920;( &#8730; n) (cf. Lemma 2.6). But this construction highlights the main idea behind the more involved constructions to follow.</p><p>In many models of computation, such as deterministic or randomized query complexity, the NOR function remains just as hard if we restrict to inputs with |x| = 0 or |x| = 1 (where |x| denotes the Hamming weight of x &#8712; {0, 1} n ). This is fairly intuitive, since distinguishing these two types of inputs essentially requires finding a single 1 among n possible locations. The fact that these inputs represent the "hard case" is true for approximate degree as well: any polynomial that uniformly approximates NOR to error 1/3 on Hamming weights 0 and 1, and merely remains bounded in [0, 1] on the rest of the hypercube, has degree &#8486;( &#8730; n) <ref type="bibr">[62]</ref>.</p><p>However, if we remove the boundedness constraint on inputs of Hamming weight larger than 1, then there is a polynomial of degree one that exactly equals the NOR function on inputs of Hamming weight 0 and 1, namely, the polynomial 1 -&#8721; i x i . That is, if we view NOR as a promise function mapping H n &#8804;1 to {-1, 1}, then its approximate degree is &#920;(n 1/2 ), but its unbounded approximate degree is just 1.</p><p>More generally, suppose that we only want the polynomial to approximate the NOR function on all inputs of Hamming weight up to T &#8804; n, and we place no restrictions on the polynomial when evaluated at inputs of Hamming weight larger than T . This can be achieved by a polynomial of degree O( &#8730; T ) (see Lemma 3.3 for a proof).</p><p>Let us refer to the set of low Hamming-weight inputs as P, i. e.,</p><p>The above discussion shows that we can construct a polynomial p of degree O( &#8730; T ) that tightly approximates NOR on inputs x &#8712; P, though |p(x)| may be exponentially large for x / &#8712; P. On the other hand, distinguishing inputs with |x| = 0 from inputs with x / &#8712; P also seems "easy". For example, a randomized algorithm that simply samples &#920;(n/T ) bits and declares |x| = 0 if and only if it does not see a 1 is correct with high probability. Analogously, we can construct a low-degree polynomial q which distinguishes between |x| = 0 or x / &#8712; P (and is bounded in [0, 1] for all inputs in {0, 1} n ): it is not hard to show (via an explicit construction involving Chebyshev polynomials, or by appeal to a quantum algorithm called quantum counting <ref type="bibr">[22]</ref>) that there exists a polynomial q of degree O( n/T ) that accomplishes this.</p><p>To summarize the above discussion, we can construct polynomials p and q, of degree O( &#8730; T ) and O( n/T ), respectively, with the following properties.</p><p>Now consider the polynomial p(x) &#8226; q(x). This polynomial approximates NOR on |x| = 0, since its value is in [0.81, 1]. It also approximates NOR on 1 &#8804; |x| &#8804; T , since its value is in [0, 1/10]. However, when x / &#8712; P, although q(x) is small, we cannot ensure that the product p(x) &#8226; q(x) is small, since we have no control over p(x) for such x.</p><p>To fix this, we will construct a new polynomial q that behaves like q for x &#8712; P and is extremely small when x / &#8712; P (in particular 0 &#8804; q(x) 1/|p(x)| for such x). To understand how small we need q to be, we need to determine just how large p(x) can be on inputs with x / &#8712; P. To understand the behavior of p(x) outside of P, we can either analyze the behavior of an explicit polynomial of our choice for the NOR function or we can appeal to a general result about the growth of polynomials that are bounded in a region (see <ref type="bibr">Lemma 3.3)</ref>. In either case, we get that there exists an upper bound M = exp(O( &#8730; T log n)) such that for all x / &#8712; P, |p(x)| &#8804; M. This leads us to design a new polynomial q, which has the same behavior as q for all x &#8712; P, but is at most 1/(3M) when x / &#8712; P. We can construct the polynomial q from q by applying standard error reduction to reduce the approximation error of q to &#949; = 1/(3M), which increases the degree by a multiplicative factor of O(log</p><p>In summary, we have now constructed polynomials p and q with the following behavior:</p><p>Caricatures of these polynomials are depicted in Figure <ref type="figure">2</ref> and Figure <ref type="figure">3</ref>. It is now easy to see that the product r(x) = p(x) &#8226; q(x) is a (1/3)-error approximation to NOR for all x &#8712; {0, 1} n . The degree of the constructed polynomial is deg(r)</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71</p><p>Figure <ref type="figure">2</ref>: Caricature of the polynomial p(x) Figure <ref type="figure">3</ref>: Caricature of the polynomial q(x)</p><p>Thus our constructed polynomial, r, has degree &#213;( &#8730; n) and approximates NOR to error 1/3, which is optimal by Lemma 2.6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Informal terminology: polynomials as algorithms</head><p>Before moving on to surjectivity, we briefly introduce some terminology that will allow us convey the intuition of more involved constructions by reasoning about polynomials as if they were algorithms.</p><p>Consider three Boolean functions p 1 : {0, 1} n &#8594; {0, 1}, p 2 : {0, 1} n &#8594; {0, 1} and p 3 : {0, 1} n &#8594; {0, 1}, and suppose there are deterministic algorithms A 1 , A 2 , and A 3 that compute these Boolean functions exactly. Now it makes sense to say "run algorithm A 1 in input x; if it accepts then output A 2 (x), and if it rejects, then output A 3 (x)." The Boolean function computed by this is A 2 (x) if A 1 (x) = 1 and A 3 (x) if A 1 (x) = 0. Observe that the following polynomial composition of p 1 , p 2 , p 3 computes the same Boolean function: p 1 (x)p 2 (x) + (1p 1 (x))p 3 (x).</p><p>We would like to use this terminology to discuss combining polynomials more generally. For polynomials p that approximate Boolean functions by outputting a value in [0, 1] on any input x, we can imagine p(x) as representing the probability that a randomized (or quantum) algorithm accepts on input x, and the same interpretation goes through. We will also use the same terminology for polynomials that output values greater than 1, in which case we cannot interpret the output as a probability, but expressions like p 1 (x)p 2 (x) + (1p 1 (x))p 3 (x) still make sense.</p><p>For example, in the previous section we had two polynomials p and q and we constructed the polynomial r(x) = p(x) &#8226; q(x) by multiplying the two polynomials together. Another way to think of this is that r is the polynomial obtained when we "run" the polynomial q and output p if it accepts and output 0 if it rejects. This yields the polynomial q(x)p(x) + (1q(x)) &#8226; 0 = q(x)p(x). We would like to informally describe polynomial constructions using this language, which will be especially useful when the constructions become more involved. So for example, we would informally describe the polynomial we constructed for the NOR function as follows (Polynomial 1):</p><p>Polynomial 1 An informal description of the polynomial approximation for NOR 1: Using q, check if |x| &gt; T (with exponentially small probability of error if indeed |x| &gt; T ). If so, halt and output 0. 2: Using p, compute NOR under the promise that 0 &#8804; |x| &#8804; T and output the result.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Approximating surjectivity</head><p>We now construct a polynomial that approximates surjectivity using the strategy described above. Recall that SURJ : [R] N &#8594; {0, 1} is defined by SURJ(x 1 , . . . , x N ) = 1 if and only if for all r &#8712; [R] there exists an i &#8712; [N] such that x i = r.</p><p>In this section, we will use the notation</p><p>to denote the number of times the range element r appears in the input x. Note that the surjectivity function evaluates to 1 if and only if # r (x) &#8805; 1 for all r &#8712; [R].</p><p>Finally, we will also need to consider a generalized version of surjectivity, R-surjectivity for some set R &#8838; [R], which we denote SURJ R . As with surjectivity,</p><p>and SURJ R (x 1 , . . . , x N ) = 1 if and only if for all r &#8712; R there exists an i &#8712; [N] such that x i = r. In other words, SURJ R (x) = 1 if and only if for all r &#8712; R we have # r (x) &#8805; 1. Note that SURJ [R] = SURJ. Our construction will actually show more generally that deg</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.1">Approximating surjectivity on the hard inputs</head><p>To implement the strategy described in Section 3.2 in the context of surjectivity, we first choose a set P of inputs that we consider to be "hard". Since surjectivity can be phrased as asking whether all range items appear at least once in the input, it is natural to consider the hard inputs to be those that have few occurrences of each range item. Intuitively, this is because on such inputs, evidence that any given range item r appears at least once in the input is hard to find.</p><p>To this end, we define P as the set of inputs for which every range item appears at most T times, for a parameter T to be chosen later:</p><p>More generally, when we consider R-surjectivity, we denote the set of hard inputs P R and define it as</p><p>In this section, we will construct a polynomial p R that approximates SURJ R on P R to bounded error, but may be exponentially large outside of P R . The value of T in the definition of P R will be chosen later; for now we only assume that our choice will satisfy T = N &#920; (1) , which simplifies some expressions since we have log T = &#920;(log N).</p><p>Overview of the construction of p R . To construct a polynomial that works on the hard inputs, P R , we first express SURJ R as</p><p>where 1[x i = r] is the indicator function that takes value 1 when x i = r and 0 otherwise. Observe that for any fixed r &#8712; R, the function 1[x i = r] depends on only log R bits of x and hence can be exactly computed by a polynomial of degree at most log R.</p><p>Since our goal in this section is to construct a polynomial p R that approximates SURJ R on all inputs in P R and may be exponentially large outside of P R , we can assume that each inner OR gate in Equation (3.8) is fed an input of Hamming weight at most T . Hence, our approach will be to first construct a low-degree polynomial q that approximates AND |R| &#8226; OR N for inputs in H N &#8804;T |R| . We then obtain the polynomial p R that approximates SURJ R at all inputs in P R by composing q with the indicator functions {1[x i = r]} i&#8712;[N],r&#8712;R . Notice that the degree of p R is at most deg(q) &#8226; log R.</p><p>To construct q, our approach is as follows. First, we construct a polynomial V T of degree O(T 1/2 log N) that approximates OR N to error O(1/N) at all inputs of Hamming weight at most T . (However, V T (x) may be as large as exp(T 1/2 log N) for inputs x of larger Hamming weight). Invoking Lemma 2.6, we let w be a polynomial of degree &#920;(N 1/2 ) that approximates AND |R| to error 1/20, and finally we define q := w &#8226;V T . A simple and elegant analysis of Buhrman et al. <ref type="bibr">[25]</ref> (cf. Lemma 3.4) allows us to argue that q indeed approximates AND |R| &#8226; OR N on H N &#8804;T |R| .</p><p>Preliminary lemmas. Before formally defining and analyzing p R , we record a few important facts about Chebyshev polynomials that will be useful throughout the remainder of this section.  (2) For any polynomial p : R &#8594; R of degree d with |p(x)| &#8804; 1 for all x &#8712; [-1, 1], we have that for any x with |x| &gt; 1,</p><p>where T d is the Chebyshev polynomial of degree d.</p><p>Proof. To establish property (1), we use the fact that for &#181; &gt; 0, the value of the degree-d Chebyshev polynomial can be written [37, &#167;3.2 Problem 8(f)] as</p><p>Property (2) appears as [37, 3.2 <ref type="bibr">Problem 19]</ref>.</p><p>We are now ready to establish the existence of a low-degree polynomial that approximates OR at all inputs of low Hamming weight.</p><p>Because p is bounded in [0, 1], this implies</p><p>completing the proof.</p><p>Formal definition of p R . Let w be a (1/20)-approximating polynomial for AND |R| of degree O(|R| 1/2 ) whose existence is guaranteed by Lemma 2.6. We may assume that w(x) &#8712; [0, 1] for all x &#8712; {0, 1} n (we will exploit this assumption in the proof of Lemma 3.7 below, as it allows us to apply Lemma 3.6 below to w). Let q := w &#8226; V T,1/(20n) . Finally, let us define p R to be the composition of q with the indicator functions {1[</p><p>Showing p R approximates SURJ R on P R . Lemma 3.4 implies that: </p><p>) . This bound relies on the following elementary lemma.</p><p>Lemma 3.6. Let p : R n &#8594; R be a multilinear polynomial with p(x) &#8712; [0, 1] for all x &#8712; {0, 1} n . Then for x &#8712; R n , we have</p><p>Proof. We prove the lemma by induction on the number of variables n. If n = 0, then p is a constant in the interval [0, 1] and the claim is true. Now suppose the claim is true for n -1 variables, and let p : R n &#8594; R with p(x) &#8712; [0, 1] for x &#8712; {0, 1} n . We begin by decomposing</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71 where q 0 and q 1 are themselves multilinear polynomials. Since p(x) &#8712; [0, 1] for all x &#8712; {0, 1} n , this is in particular true when x n = 0. Hence q 0 (x ) &#8712; [0, 1] for all x &#8712; {0, 1} n-1 . Similarly, setting x n = 1 reveals that q 1 (x ) &#8712; [0, 1] for all x &#8712; {0, 1} n-1 . Now for any x &#8712; R n with x = (x 1 , . . . , x n-1 ) we have</p><p>where the final inequality uses the inductive hypothesis. This proves the claim. Lemma 3.7. There exists a function a</p><p>Proof. The first two cases are an immediate consequence of Lemma 3.5.</p><p>To upper bound the value of |p R (x)| for x / &#8712; P R , we exploit the structure of p R as a multilinear polynomial w of degree O( &#8730; N) over the variables z 1 , . . . , z |R| , where each z r is the output of the r th polynomial from Lemma 3.3. That is,</p><p>If b R (x) range items appear greater than T times, this means that up to b R (x) of the variables z r might take values outside [0, 1]. However, by Lemma 3.3, each of these b R (x) variables is still at most exp( &#213;( &#8730; T )). By Lemma 3.6,</p><p>since each z r that is in [0, 1] contributes a factor of exactly 1 to the product, whereas each of the remaining b R (x) variables contributes a factor of at most exp( &#213;( &#8730; T )) to the product.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.2">Controlling the easy inputs</head><p>Intuition. Unlike the example of the NOR function, where all the inputs outside the "hard" set P (cf. Equation (3.1)) were in NOR -1 (1), for surjectivity there are both 0-and 1-inputs outside of the hard set P (cf. Equation (3.6)) . So our remaining task is not simply a matter of constructing a polynomial that detects if the input is outside of P, as it was in the case of the NOR function. However, we will show that, for surjectivity, the inputs outside of P are easy to handle in a different sense-they are easy because we can construct a reduction from inputs outside of P to inputs in P. To gain some intuition, consider the task of designing a randomized algorithm for surjectivity where we want to reduce the general case to the case where there is a set R &#8838; [R] such that all range items r &#8712; R have # r (x) &#8804; T . To do this, we can simply sample a large number of elements x i and remove from consideration all range items appearing at least once in the sample, because we know these range items all appear in the input at least once. After this step, we have a new set R &#8838; [R] consisting of all range items that have not been seen in the sampling stage. Every r &#8712; R is likely to have # r (x) &#8804; T because elements that appeared too frequently would have (with high probability) been observed in the sampling stage. Thus it now suffices to solve SURJ R on the input under the assumption that all range items r &#8712; R have # r (x) &#8804; T .</p><p>Informally, the above discussion states that we want to construct the polynomial described in Polynomial 2.</p><p>Polynomial 2 Informal description of the polynomial approximation for SURJ We now have to construct a polynomial that represents this algorithmic idea. We have already constructed an (unbounded approximating) polynomial for SURJ R under the promise P R in the previous section, so the second step of this construction is done.</p><p>For Step 1 of Polynomial 2, we need to construct a polynomial to represent the idea of sampling input elements and evaluating a polynomial that depends on the sampled elements. To build up to this, consider a deterministic algorithm that queries a subset S &#8838; [N] of input elements, checks if the sampled string equals another fixed string y and outputs 1 if true and 0 if false. If we denote the input x &#8712; [R] N restricted to the subset S &#8838; [N] as x S , then this algorithm outputs 1 if and only if x S = y. Interpreting the input as an element of {0, 1} N log R rather than [R] N , it is easy to see that a deterministic query algorithm querying |S| log R bits of x can solve this problem. Consequently, there is a polynomial of degree |S| log R that outputs 1 if x S = y and outputs 0 otherwise. For any fixed S &#8838; [N] and y &#8712; [R] |S| , we denote this polynomial by 1 y (x S ).</p><p>Now we can construct a polynomial which samples S elements of the input and then outputs a bit depending on the elements seen. Let S &#8838; [N] be a subset of indices with |S| = S. Let f (S, x S ) be an arbitrary Boolean function that tells us whether to output 0 or 1 on seeing the sample (S, x S ). Then the following polynomial samples a random set S of size S, reads the input x restricted to the set S, and outputs the bit f (S, x S ):</p><p>1</p><p>Note that for any function f , this is a polynomial of degree S log R in the variables x 1 , . . . , x N , because 1 y (x S ) is a multilinear polynomial over those variables, and f (S, y) is simply a hard-coded bit that does not depend on x. The value of this polynomial on an input x equals</p><p>We can now generalize this construction to allow for the possibility that the function f is itself a polynomial. This is what we need to implement Polynomial 2, in which we sample a random set S &#8838; [N] of size S, query x S (using S log R queries), and then run a polynomial that depends on the results. Specifically, if we sample the set S &#8838; [N], and learn that x S equals the string y &#8712; [R] |S| , then we want to run the polynomial p R (y) from Lemma 3.7 for the set R(y) of all elements in [R] that do not appear in y, i. e., R(y) = [R] \ {r : &#8707;i y i = r}.</p><p>(3.15)</p><p>Formal description of the approximation to surjectivity. Using the tools from Section 3.4.1 and the above discussion, we can now construct a polynomial that corresponds to the informal description in Polynomial 2:</p><p>This is a polynomial of degree S log R+max y {deg(p R(y) )} = &#213;(S+ &#8730; NT ) = &#213;(N 3/4 ), using S = &#920;(N 3/4 ) and T = &#920;( &#8730; N) (where the factors hidden by the &#920; notation will be chosen later). The value of the polynomial on input x is</p><p>where recall that R(x S ) is as defined in Equation (3.15). The right hand side of Equation (3.17) is precisely the expected value of the polynomial p R(x S ) (x) when S is a uniformly random set of size S.</p><p>We will now show that r(x) is an approximating polynomial for surjectivity, i. e., that for all</p><p>is the number of range items r &#8712; R that appear in x greater than T times (cf. Equation (3.12)), we compute the value of the polynomial r(x) on an input x: </p><p>We now need to compute the value of Pr S [b R(x S ) (x) = b] for each b. Intuitively, this roughly corresponds to the probability that we sample S = &#920;(N 3/4 ) elements from the input and miss all bT elements that correspond to the T = &#920;( &#8730; N) copies of the b range items that appear at least T times. If we were to sample N/(bT ) elements, the probability of seeing none of the bT elements would be &#920;(1). Since we are sampling S = &#920;(N 3/4 ) N/(bT ) elements, the probability of not seeing one of the bT elements is exp(-bST /N) = exp(-b &#8226; &#937;(N 1/4 )). We make this heuristic calculation formal in the following lemma. </p><p>is the number of range items r &#8712; R that appear in x more than T times, but do not appear in x S .</p><p>Proof. To calculate the probability of interest, we begin by analyzing a simplified experiment. Suppose there are b range items r 1 , . . . , r b each appearing greater than T times in x. We compute the probability that none of the items r 1 , . . . , r b appear in the sample x S . If T &#8805; N -S, then this probability is zero. Otherwise, by direct calculation, we have for each i = 1, . . . , b,</p><p>Hence the probability that none of r 1 , . . . , r b appear is</p><p>Now fix an arbitrary x, and let r 1 , . . . , r k be the range items appearing greater than T times in x. Observe that k &#8804; N/T . We estimate the probability of interest by taking a union bound over all subsets of r 1 , . . . , r k of size b: </p><p>by choosing T = &#920;( &#8730; N) and S = &#920;(N 3/4 ) appropriately. This shows that the term in (3.21) does not significantly influence the value of the polynomial for any input x.</p><p>Thus we have for any input x,</p><p>By Lemma 3.7, we know that if b R(x S ) (x) = 0 (and hence x &#8712; P R(x S ) ), then p R(x S ) (x) is a (1/10)approximation to SURJ(x). Applying Lemma 3.8 once again shows that</p><p>This completes the proof of Theorem 3.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Lower bound for surjectivity</head><p>The goal of this section is to show the following improved lower bound on the approximate degree of the surjectivity function.</p><p>Theorem 4.1. For some N = O(R), the (1/3)-approximate degree of SURJ N,R is &#937;(R 3/4 ).</p><p>To prove Theorem 4.1, we combine the following theorem with the reductions of Proposition 2.10 and Corollary 2.16.</p><p>The proof of Theorem 4.2 entails using dual witnesses for the high approximate degree of AND R and OR N to construct a dual witness for the higher approximate degree of F &#8804;N . As indicated in Section 1.3, the construction is essentially the same as in <ref type="bibr">[33]</ref>, except that we observe that a dual witness for OR constructed and used in prior work satisfies an exponentially stronger decay condition than has been previously realized.</p><p>The construction can be thought of as consisting of three steps:</p><p>Step 1. We begin by constructing a dual witness &#968; for the fact that the unbounded approximate degree of the OR N function is &#8486; &#8730; T even when promised that the input has Hamming weight at most T = &#920;( &#8730; R). The dual witness &#968; is a small variant of the one in <ref type="bibr">[33]</ref>, but we give a more careful analysis of its tail decay. In particular, we make use of the fact that for all t &#8805; 1, the 1 weight that &#968; places on the t-th layer of the Hamming cube is upper bounded by exp(-&#8486;(t/ &#8730; T ))/t 2 .</p><p>Step 2. We combine &#968; with a dual witness &#934; for AND R to obtain a preliminary dual witness &#934; &#968; for F = AND R &#8226; OR N . The dual witness &#934; &#968; shows that F has approximate degree</p><p>). However, &#934; &#968; places weight on inputs of Hamming weight larger than N, and hence does not give an unbounded approximate degree lower bound for the promise variant F &#8804;N .</p><p>Step 3. Using Proposition 2.22 we zero out the mass that &#934; &#968; places on inputs of Hamming weight larger than N, while maintaining its pure high degree and correlation with F &#8804;N . This yields the final desired unbounded approximate degree dual witness &#950; for F &#8804;N , as per Proposition 2.5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Step 1: A dual witness for OR N</head><p>We begin by constructing a univariate function which captures the properties we need of our inner dual witness for OR N . The construction slightly modifies the dual polynomial for OR N given by &#352;palek <ref type="bibr">[82]</ref>. We provide a careful analysis of its decay as a function of the input's Hamming weight. For all univariate polynomials q : R &#8594; R,</p><p>Proof of Proposition 4.3. By renormalizing, it suffices to construct a function &#969; :</p><p>For all univariate polynomials q : R &#8594; R,</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71</p><p>Let c = 8/&#948; below. We will freely use the fact that since &#948; &#8804; 1/2, we have c &#8804; c 2 /(c -1) &#8804; 10/&#948; . Let m = T /2c and define the set</p><p>Note that |S| &#8805; c 1 &#8730; &#948; T for some absolute constant c 1 &gt; 0. Define the function</p><p>Property (4.6) follows from the following well-known combinatorial identity.</p><p>Fact 4.4 (e. g., <ref type="bibr">[43]</ref> Equation <ref type="bibr">(5.23)</ref> or <ref type="bibr">[63]</ref>). Let T &#8712; N, and let p be a polynomial of degree less than T . Then</p><p>Expanding the binomial coefficient in the definition of &#969; reveals that</p><p>We now use this characterization to establish the improved tail decay property (4.7). This clearly holds for t = 1 with c 2 = 1/10, since |&#969;(1)| &#8804; &#969; 1 and 170</p><p>For t = c, we have</p><p>where the first inequality follows from the fact that</p><p>. Thus (4.7) holds for t = c, recalling that c 2 = 1/10. For t = 2c j 2 with j &#8805; 1, we get</p><p>For j &#8805; 1, the first factor is bounded by</p><p>using the fact that c &#8805; 2. We control the second factor by</p><p>where the last inequality uses the fact that 1x &#8804; e -x for all x. Since</p><p>this establishes (4.7). What remains is to perform the correlation calculation to establish (4.5). For t = 1, we observe</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71</p><p>Next, we observe that the total contribution of t &gt; c to &#969; 1 /&#969;(0) is at most</p><p>Next, we calculate</p><p>120c by (4.9)</p><p>On the other hand,</p><p>Combining (4.10) and (4.11), and using the fact that -&#969;(1) &#8805; &#969;(0) shows that</p><p>This establishes (4.5), completing the proof.</p><p>The following construction of a dual polynomial for OR N , with N &#8805; T , is an immediate consequence of Minsky-Papert symmetrization (Lemma 2.7), combined with Proposition 4.3. </p><p>For any polynomial p :</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>4.2</head><p>Step 2: Constructing a preliminary dual witness for AND R &#8226; OR N</p><p>The following proposition, when combined with Proposition 2.20, shows that there is a function &#934; :</p><p>, 1] such that the dual block composition &#934; &#968; is a good dual polynomial for AND R &#8226; OR N . In the next section, we will modify &#934; &#968; to zero out the weight it places outside</p><p>be a function such that</p><p>Then there exists a function</p><p>The proof of Proposition 4.6 is implicit in the results of <ref type="bibr">[29,</ref><ref type="bibr">73]</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Step 3: Constructing the final dual witness</head><p>)</p><p>For every polynomial p : ({-1, 1} N ) R &#8594; R of degree less than D, we have p, &#950; = 0. (</p><p>Proof. We start by fixing choices of several key parameters:</p><p>is the pure high degree of the dual witness &#934; for AND R in Proposition 4.6,</p><p>, where c 1 is the constant from Proposition 4.3,</p><p>&#8226; &#945; = 170/&#948; = 3400,</p><p>), where c 2 is the constant from Proposition 4.3,</p><p>be the function constructed in Proposition 4.5 with &#948; := 1/20. Let &#934; : {-1, 1} R &#8594; [-1, 1] be the function constructed in Proposition 4.6, and define &#958; = &#934; &#968;. Then by Proposition 2.20, &#958; satisfies the following conditions:</p><p>)</p><p>For every polynomial p of degree less than D, we have &#958; , p = 0. (</p><p>Recall that &#968; was obtained by symmetrizing the function &#969; constructed in Proposition 4.3. Proposition 2.22 guarantees that for some</p><p>), the function &#958; can be modified to produce a function &#950; :</p><p>For every polynomial p of degree less than min{ D, &#8710;}, we have &#950; , p = 0.</p><p>Observing that</p><p>shows that the function &#950; satisfies the conditions necessary to prove Proposition 4.7.</p><p>Theorem 4.2 follows by combining Proposition 4.7 with the dual characterization of unbounded approximate degree given in Proposition 2.5. By Corollary 2.16, we conclude that deg(dSURJ N,R ) = &#937;(R 3/4 ). Theorem 4.1 follows by Proposition 2.10.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Lower bound for k-distinctness</head><p>Our goal is to prove the following lower bound on the approximate degree of the k-distinctness function.</p><p>Theorem 5.1. For k &#8805; 2 and some N = O k (R), the (1/3)-approximate degree of DIST k N,R is</p><p>The same lower bound holds for the quantum query complexity of DIST k N,R .</p><p>Here, the notation O k hides factors depending only on k, and &#937;k hides factors logarithmic in R and factors depending only on k.</p><p>Theorem 5.1 is a consequence of applying the reductions of Proposition 2.13 and Corollary 2.18 to the following, which is the ultimate goal of this section.</p><p>The proof of Theorem 5.2 will follow the same basic outline as the proof of Theorem 4.2. We will construct a dual polynomial for G &#8804;N via the following three steps:</p><p>Step 1. We first construct a dual witness &#968; showing that the unbounded-approximate degree of the</p><p>, even when promised that the input has Hamming weight at most</p><p>Moreover, this dual witness satisfies additional conditions that are exploited in Step 2 below.</p><p>Step 2. We combine &#968; with a dual witness &#934; for OR R to obtain a preliminary dual witness &#934; &#968; for</p><p>). However, &#934; &#968; places weight on inputs of Hamming weight larger than N, and hence does not give an unbounded approximate degree lower bound for the promise variant G &#8804;N .</p><p>Step 3. Using Proposition 2.22 we zero out the mass that &#934; &#968; places on inputs of Hamming weight larger than N, while maintaining its pure high degree and correlation with G &#8804;N . This yields the final desired dual witness &#950; for G &#8804;N . Additional Notation. For functions f : X &#8594; {-1, 1} and &#968; : X &#8594; R, define the error regions</p><p>These are the regions where &#968; disagrees in sign with f . We refer to E + as the set of "false positive" errors made by &#968;, and E -as the set of "false negative" errors.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Step 1: A dual witness for THR k N</head><p>We begin by constructing a univariate version of our dual witness for THR k N . Properties (5.1) and (5.2) below amount to more refined conditions on the correlation between &#969; and the (symmetrized) THR k N function. These properties will be needed in order to execute Step 2 of the construction in Section 5.2. Proposition 5.3. Let k, T, N &#8712; N with k &#8804; T . There exist constants c 1 , c 2 &#8712; (0, 1] and a function &#969; :</p><p>&#8721;</p><p>)</p><p>For all univariate polynomials q : R &#8594; R,</p><p>)</p><p>Proof. If k = 1, then the function defined by &#969;(0) = 1 2 and &#969;(1) = -1 2 satisfies the conditions of the proposition for c 1 = c 2 = 1. In what follows, we treat the complementary case where k &#8805; 2.</p><p>Let E + := {t : &#969;(t) &gt; 0,t &#8805; k}, and E -:= {t : &#969;(t) &lt; 0,t &lt; k}. By normalizing, it suffices to construct a function &#969; :</p><p>For all univariate polynomials q : R &#8594; R,</p><p>)</p><p>Let c = 2k N 1/k , and let m = T /c . Define the set</p><p>Note that |S| = &#8486;(k -1/2 T 1/2 N -1/(2k) ). Define the polynomial</p><p>The signs are chosen so that &#969;(k) &lt; 0. It is immediate from Fact 4.4 that &#969; satisfies (5.8) for c 1 = 1/ &#8730; 2. We now show that (5.9) holds. For t = 1, . . . , k, we have</p><p>as long as c 2 &#8804; 1/2 and k &#8805; 2. Since |&#969;(t)| &#8804; &#969; 1 , the bound holds for t = 1, . . . , k.</p><p>For t = c j 2 with j &#8805; 1, we expand out the binomial coefficient in the definition of &#969; to obtain</p><p>For t &#8712; {0, 1, . . . , k}, we observe that</p><p>Meanwhile, for t = c j 2 with j &#8805; 1, we get</p><p>The first factor is bounded above by k! (ck) k j 2k+1 .</p><p>As long as c &#8805; 2k and k &#8805; 2, this expression is at most</p><p>We control the second factor by</p><p>where the last inequality uses the fact that 1x &#8804; e -x for all x. Hence,</p><p>This immediately yields</p><p>which establishes (5.9) for all t = c j 2 &gt; k. Moreover, by (5.11)</p><p>Hence, since &#969;(k) &lt; 0,</p><p>which gives (5.6). Finally, to establish (5.7), we combine (5.10) and (5.12) to obtain</p><p>We calculate</p><p>Rearranging and applying the bound (5.13),</p><p>Applying Minsky-Papert symmetrization (Lemma 2.7) to ensure that the resulting function has the appropriate pure high degree, Proposition 5. </p><p>For any polynomial p :</p><p>(5.18)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>5.2</head><p>Step 2: A preliminary dual witness for OR R &#8226; THR k N</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.1">Refined amplification lemmas</head><p>The dual witness &#934; for OR R that we construct will itself be obtained as a dual block composition &#961; &#981;.</p><p>Each constituent dual polynomial will play a distinct role in showing that &#934; &#968; is a good dual polynomial for OR R &#8226; THR k N . The first function &#981; is an "error amplifier" in the sense that &#981; &#968; is much better</p><p>The second function &#961;, on the other hand, is a "degree amplifier" in that it serves to increase the pure high degree of &#981; &#968;.</p><p>While the amplification results we need are new, they are relatively straightforward extensions of similar results in <ref type="bibr">[29,</ref><ref type="bibr">30,</ref><ref type="bibr">73]</ref>. Proofs appear below for completeness.</p><p>Amplifying error. The following proposition shows that if &#968; is a dual witness for the high approximate degree of a Boolean function f , then there is a dual witness of the form &#981; &#968; for OR M &#8226; f such that (a) &#981; &#968; may make slightly more false positive errors than &#968; (by at most a factor of M), and (b) &#981; &#968; makes significantly fewer false-negative errors than &#968; (exponentially smaller in M).</p><p>)</p><p>For every M &#8712; N, there exists a function &#981; : {-1, 1} M &#8594; [-1, 1] with &#981; 1 = 1 and pure high degree 1 such that</p><p>(5.23)</p><p>Proof. Let &#981; : {-1, 1} M &#8594; {-1, 1} be defined such that &#981;(1) = 1/2, &#981;(-1) = -1/2, and &#981;(x) = 0 for all other x. Notice that &#8721; (x 1 ,...,x M )&#8712;{-1,1} M &#981;(x 1 , . . . , x M ) = 0 (5.24) so &#936; has pure high degree 1, and that &#936; 1 = 1. We now prove that Equation <ref type="formula">5</ref>.22 holds. Let &#955; be the distribution on {-1, 1} m given by &#955; (x) = |&#968;(x)|, and let &#955; &#8855;M be the product distribution on ({-1, 1} m ) M given by &#955; &#8855;M (x 1 , . . . , x M ) = &#8719; M i=1 |&#968;(x i )|. Since &#968; is orthogonal to the constant polynomial, it has expected value 0, and hence the string (. . . , sgn(&#968;(x i )), . . . ) is distributed uniformly in {-1, 1} M when one samples (x 1 , . . . , x M ) according to &#955; &#8855;M . This allows us to write</p><p>(5.25)</p><p>Observe that for any bit b,</p><p>where for brevity, we have written A +1 = E + (&#968;, f ) and A -1 = E -(&#968;, f ). Therefore, as noted in <ref type="bibr">[75]</ref>, for any given z &#8712; {-1, 1} M , the following two random variables are identically distributed:</p><p>&#8226; The string (. . . , f (x i ), . . . ), when one chooses (. . . , x i , . . . ) from &#955; &#8855;M conditioned on (. . . , sgn(&#968;(x i )), . . . ) = z</p><p>&#8226; The string (. . . , y i z i , . . . ), where y &#8712; {-1, 1} M is a random string whose ith bit independently takes on value -1 with probability 2 &#8721; x&#8712;A z i |&#968;(x)|.</p><p>Thus, Expression (5.25) equals</p><p>where y &#8712; {-  <ref type="bibr">(5.22)</ref>. It now remains to prove the bound <ref type="bibr">(5.23)</ref>. By an identical argument as above, we have</p><p>The only term in the sum corresponds to z = -1, which we argue takes value 1  2 &#8226; (2&#948; -) M . Here, each It follows that Expression (5.27) is at most 1  2 &#8226; (2&#948; -) M , establishing <ref type="bibr">(5.22)</ref>. This completes the proof.</p><p>Amplifying degree. The following proposition states that if &#968; is a dual polynomial for a Boolean function f , then there is a dual polynomial &#961; &#968; for OR M &#8226; f with significantly larger pure high degree that does not make too many more false positive and false negative errors than does &#968; itself.</p><p>Proposition 5.6. Let f : {-1, 1} m &#8594; {-1, 1} and &#968; : {-1, 1} m &#8594; R be functions such that</p><p>)</p><p>For every M &#8712; N there exists a function &#961; : {-1, 1} M &#8594; R with &#961; 1 = 1 and pure high degree </p><p>where y &#8712; {-1, 1} M is a random string whose ith bit independently takes the value -1 with probability 2 &#8721; x&#8712;A z i |&#968;(x)|. (Here, we are using the abbreviated notation</p><p>We first consider the contribution of the term corresponding to z = 1 to the sum. Here, by a union bound,</p><p>Hence, the term z = 1 contributes &#981;(1) &#8226; (1 -4M&#948; + ) to the sum. Now we consider the contribution of any term corresponding to z = 1. Given such a z, let i * be an index such that z i * = -1. Then we have</p><p>We can now lower bound (5.33) by </p><p>Then there exists a function &#934; : {-1, 1} R &#8594; R with &#934; 1 = 1 and pure high degree</p><p>Proof. Using the construction of Proposition 5.5 with m = N, M = 4 k , and f = THR k N , we first obtain a function &#981; : {-1, 1} 4 k &#8594; R with &#981; 1 = 1 and pure high degree 1 such that </p><p>Let &#934; : {-1, 1} R &#8594; R be the dual block composition &#961; &#981;. Since the dual block composition preserves 1 -norms (Proposition 2.20, Condition (2.8)) and multiplies pure high degrees (Proposition 2.20, Condition (2.9)), the function &#934; itself has 1 -norm 1 and pure high degree &#8486;(2 -k &#8730; R). The claim now follows from the associativity of dual block composition (Proposition 2.20, Condition (2.10)) and the fact that OR R = OR R/4 k &#8226; OR 4 k .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Step 3: Completing the construction</head><p>We are now ready to apply Proposition 2.22 to zero out the mass that the construction of Proposition 5.7 places on inputs outside of H N&#8226;R &#8804;N .</p><p>Proposition 5.8. Let R be sufficiently large. There exist N = O((2k</p><p>)</p><p>For every polynomial p : ({-1, 1} N ) R &#8594; R of degree less than D, we have p, &#950; = 0.</p><p>(5.37)</p><p>Proof. We start by fixing choices of several key parameters:</p><p>is the pure high degree of the dual witness &#934; for OR R in Proposition 5.7,</p><p>, where c 1 is the constant from Proposition 5.3,</p><p>, where c 2 is the constant from Proposition 5.3.</p><p>be the function constructed in Proposition 5.7, and define &#958; = &#934; &#968;. Then by Proposition 2.20, &#958; satisfies the following conditions:</p><p>)</p><p>For every polynomial p of degree less than D, we have &#958; , p = 0.</p><p>(5.40)</p><p>Recall that &#968; was obtained by symmetrizing the function &#969; constructed in Proposition 5.3. Proposition 2.22 guarantees that for some</p><p>), the function &#958; can be modified to produce a function &#950; :</p><p>For every polynomial p of degree less than min{ D, &#8710;}, we have &#950; , p = 0.</p><p>Observing that</p><p>shows that the function &#950; satisfies the conditions necessary to prove Proposition 5.8.</p><p>Theorem 5.2 now follows by combining Proposition 5.8 with the dual characterization of unbounded approximate degree Proposition 2.5. The approximate degree lower bound in Theorem 5.1 is then a consequence of Proposition 2.13 and Corollary 2.18. The quantum query lower bound follows via the standard fact that the &#949;-error quantum query complexity of f is lower bounded by 1/2 &#8226; deg 2&#949; ( f ) <ref type="bibr">[13]</ref>.</p><p>6 Lower bound for image size testing and its implications</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Image size testing</head><p>The image size testing problem (IST for short) is defined as follows. Definition 6.1. Given an input s = (s 1 , . . . , s N ) &#8712; [R] N 0 , and i &#8712; [R], let f i = |{ j : s j = i}|. The image size of s is the number of i &#8712; [R] such that f i &gt; 0. For 0 &lt; &#947; &lt; 1, define:</p><p>Observe that the definition of IST ignores whether or not the range item 0 has positive frequency, just like the functions dSURJ and dDIST k . We choose to define IST in this manner to streamline our analysis.</p><p>The goal of this section is to prove the following lower bound.</p><p>Theorem 6.2. For some constant c &gt; 0, and any constant &#947; &#8712; (0, 1), deg</p><p>), where N = c &#8226; &#947; -1/2 &#8226; R. The same lower bound applies to the quantum query complexity of IST &#947; N,R . Remark 6.3. It is possible to refine our analysis to show that even the unbounded approximate degree of IST &#947; N,R is &#937;(R 1/2 ), and that this holds even if the error parameter is 1 -2 -n &#8486; (1) . However, for brevity we do not explicitly establish this stronger result. We direct the interested reader to the subsequent work <ref type="bibr">[34]</ref>, which shows that the threshold degree of SURJ N,R is &#937;(R 1/2 ) for R &#8804; N/2. The proof of that result can be extended with little difficulty to show that the threshold degree of IST &#947; N,R is &#937;(R 1/2 ).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1.1">Connecting symmetric promise properties and block compositions of partial functions</head><p>For any function f and symmetric function g, Section 2.5 described a connection between the symmetric property</p><p>and the partial function</p><p>For simplicity and clarity, that discussion was restricted to total functions f and g (in particular, this avoided having to address the possibility that f (g(x 1 ), . . . , g(x R )) is undefined in the definitions of F prop and F &#8804;N ). Because IST is a partial function, we need to explain that the same connection still holds even when f is a partial function. To do this, we need to introduce the notion of the double-promise approximate degree of F &#8804;N . Definition 6.4. Let Y &#8834; {-1, 1} R and f : Y &#8594; {-1, 1}, and let g : {-1, 1} N &#8594; {-1, 1} be a symmetric (total) function. Let G = {x 1 , . . . , x R : (g(x 1 ), . . . , g(x R )) &#8712; Y }. Let F &#8804;N be defined as above. Observe that F &#8804;N is defined at all inputs in H N&#8226;R &#8804;N &#8745; G. The double-promise &#949;-approximate degree of F &#8804;N , denoted dpdeg(F &#8804;N ) is the least degree of a real polynomial p such that:</p><p>Observe that in the definition above, no restriction is placed on p(x) for any inputs that are not in</p><p>Bun and Thaler's analysis from <ref type="bibr">[33]</ref> (cf. Theorem 2.15) applies to partial functions f in the following way. Theorem 6.5 (Bun and Thaler <ref type="bibr">[33]</ref>). Let Y &#8834; {-1, 1} R and let f : Y &#8594; {-1, 1} be any partial function. Let g : {-1, 1} N &#8594; {-1, 1} be any symmetric function. Then for F prop and F &#8804;N defined above, and for any &#949; &gt; 0, we have deg &#949; (F prop ) &#8805; dpdeg &#949; (F &#8804;N ).</p><p>We will require the following dual formulation of dpdeg &#949; (F &#8804;N ).</p><p>Proposition 6.6. Let F &#8804;N and G be defined as above. Then dpdeg &#949; (F &#8804;N ) &#8805; d if and only if there exists a function &#968; : {-1, 1} n &#8594; R satisfying the following conditions. purposes, it will not be essential to exploit such a strong correlation guarantee-rather, we are interested in &#934; &#968; because most of its " 1 -mass" lies on inputs either with full image or tiny image (i. e., most of its mass lies in the domain of GapAND &#947; R &#8226; OR N ). As in Corollary 6.8, let G denote the set of all inputs on which GapAND</p><p>The analysis in these prior works <ref type="bibr">[21,</ref><ref type="bibr">30]</ref> implies that &#934; &#968; satisfies the following three conditions.</p><p>For any polynomial p :</p><p>where c 1 is the constant from Proposition 4.5. Indeed, Properties (6.7) and (6.9) are immediate from Proposition 2.20 on the properties of dual block composition. For completeness, we prove that Property (6.8) holds in Section 6.1.3 below, making use of the fact that &#948; = &#947;/4 and taking R to be sufficiently large. Proposition 2.22 (with &#945; and &#946; set as above) guarantees that for some</p><p>For every polynomial p of degree less than D := min{ D, &#8710;}, we have &#950; , p = 0.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Observing that</head><p>shows that the function &#950; satisfies the conditions necessary to prove Theorem 6.2 via Proposition 6.6.</p><p>6.1.3 Proof of Condition (6.8) Lemma 6.9. Let &#948; &gt; 0, &#947; &gt; 2&#948; , and let</p><p>] be any dual witness for OR N such that &#968; 1 = 1, &#968;, 1 = 0, and &#968;,</p><p>The proof of Lemma 6.9 crucially relies on a special property, called one-sided error, that is satisfied by any dual polynomial for OR. Definition 6.10. Let f : {-1, 1} N &#8594; {-1, 1} and let &#968; : {-1, 1} N &#8594; R. We say that &#968; has one-sided error with respect to f if for all x &#8712; {-1, 1} N , f (x) = 1 =&#8658; &#968;(x) &gt; 0.</p><p>(6.10)</p><p>The following lemma shows that any dual witness for the OR N function has one-sided error.</p><p>Lemma 6.11 (Gavinsky and Sherstov <ref type="bibr">[41]</ref>). Let &#968; : {-1, 1} N &#8594; R be a function with pure high degree at least 1 such that &#968;, OR N &gt; 0. Then &#968; has one-sided error with respect to OR N .</p><p>In particular, if &#968; is such a dual witness for OR N , then we have</p><p>where the sets A +1 and A -1 are, respectively, the sets of false positive and false negative errors given by</p><p>Proof of Lemma 6.9. We begin by observing that the quantity of interest can be written as</p><p>We estimate each term of Expression (6.12) separately, beginning with the first term. Just as in the proofs of Proposition 5.5 and Proposition 5.6, we have</p><p>where y &#8712; {-1, 1} R is a random string whose ith bit independently takes the value -1 with probability 2 &#8721; x&#8712;A z i |&#968;(x)|. For z = -1, we have by (6.11) that 2 &#8721; x&#8712;A -1 |&#968;(x)| = 0, so the contribution of the corresponding term to the sum is 1/2. For z = 1, we use the fact that 2</p><p>Hence, the first summand of (6.12) is at least 1&#948; R .</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71</p><p>We now estimate the second summand, 2 &#8721; x / &#8712;G |(&#934; &#968;)(x)|. As in the proofs of Proposition 5.5 and Proposition 5.6, we let &#955; denote the distribution with probability mass function &#955;</p><p>We analyze each term of this sum separately. For the first term, observe that by one-sided error of &#968;, it follows that if x = (x 1 , . . . , x R ) is any input sgn(&#968;(x i )) = -1 for all i then OR N (x i ) = -1 for all i. Thus we are guaranteed that x &#8712; G, so the contribution of the first summand is zero. To analyze the second summand, let us denote by r i &#8712; {0, 1} the indicator random variable for the event OR N (x i ) = -1 when x i is drawn from the conditional distribution (&#955; | sgn(&#968;(x i )) = 1). Then</p><p>by the multiplicative Chernoff bound. <ref type="foot">6</ref> Thus, we have</p><p>Putting everything together, we see that Expression (6.12) is at least 1&#948; Rexp (-(&#947;&#948; )R/3) as we wanted to show.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Lower bound for junta testing</head><p>It follows from a reduction in Ambainis et al. <ref type="bibr">[9,</ref><ref type="bibr">Section 6</ref>] that for any N = O(R) and sufficiently small constant &#947; &gt; 0, a &#937;(R 1/2 ) lower bound for the approximate degree or quantum query complexity of IST &#947; N,R implies an &#937;(k 1/2 ) approximate degree or quantum query lower bound for k-junta testing for proximity parameter &#949; = 1/3. Hence, Theorem 6.2 has the following corollary. Corollary 6.12. Any quantum tester that distinguishes k-juntas from functions that are (1/3)-far from any k-junta with error probability at most 1/3 makes &#937;(k 1/2 ) queries to the function.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3">Lower bound for SDU</head><p>The goal of this section is to derive a lower bound for approximating the statistical distance of an input distribution from uniform up to some additive constant error. We formalize this problem as follows.</p><p>Given an input (s 1 , . . . , s N ) &#8712; [R] N , and i &#8712; [R], let f i = |{ j : s j = i}|, and let p be the probability distribution over</p><p>Above, 1  2 &#8721; R i=1 |p i -1/R| is the statistical distance between p and the uniform distribution. The SDU problem reduces to IST in the sense that any approximating polynomial for SDU implies the existence of an approximation to IST of the same degree. Hence, the approximate degree of SDU is at least as large as that of IST. For intuition as to why this is true, let us relate IST N,R (s 1 , . . . , s N ) = 1, then at most R/2 indices i &#8712; [R] appear in the input list, so the list represents a distribution with statistical distance at least 1/2 from uniform. Thus, an approximating polynomial for SDU 1/2,0 N,R is also an approximating polynomial for IST 1/2 N,R . We will actually need a more general relationship between the approximate degrees of SDU and IST to handle the fact that we cannot take N to be exactly equal to R in the IST lower bound, as well as to handle the occurrences of dummy items in the definition of IST. Theorem 6.14. For some N = O(R), and some constants 0 &lt; &#947;</p><p>The same lower bound applies to the quantum query complexity of SDU</p><p>Proof. Fix R &gt; 0, let c be the constant from Theorem 6.2, &#947; &lt; (2/3c) 2 be a sufficiently small constant, and</p><p>0 , we can equivalently interpret them as elements of [R + 1] N , i. e., as inputs to SDU</p><p>(-1), and  (-1) define a probability distribution over [R <ref type="bibr">+ 1]</ref> with support size at least R, with all probabilities being integer multiples of 1/N = &#947; 1/2 /(cR), the statistical distance between any such distribution and the uniform distribution is at most 1 -R/N = 1&#947; 1/2 /c. This follows from the following calculation. Amongst probability distributions (p 1 , . . . , p R+1 ) over [R <ref type="bibr">+ 1]</ref> with support size at least R and all probabilities p i being integer multiples of 1/N, it is not hard to see that one maximizes the statistical distance from the uniform distribution over [R + 1] by setting p 1 = 1 -R-1 N , p 2 = p 3 = &#8226; &#8226; &#8226; = p R = 1/N, and p R+1 = 0. The statistical distance from uniform is</p><p>where we have assumed that N &#8805; R + 1, which is true for sufficiently small choice of &#947;.</p><p>Similarly, since inputs in IST &#947; N,R -1</p><p>(1) define a probability distribution over [R + 1] with support size at most &#947; &#8226; R + 1, the statistical distance between any such distribution and the uniform distribution is at least 1 -3&#947;/2. To see this, let p = (p 1 , . . . , p R+1 ) be any distribution of support size at most &#947; &#8226; R, and let S = {i : p i = 0} and S be the complement of S. Then the statistical distance of p from uniform is at least</p><p>It is an easy consequence of the above that any &#949;-approximating polynomial of degree d for SDU</p><p>implies an approximation to IST &#947; N,R of the same degree (i. e., that deg &#949; (IST &#947; N,R ) &#8804; d). Theorem 6.14 then follows from Theorem 6.2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.4">Lower bound for entropy comparison and approximation</head><p>Given a distribution p over [R], the Shannon entropy of p, denoted H(p), is defined to be H(p) := &#8721; i&#8712;[R] p i log 2 (1/p i ). Following Goldreich and Vadhan <ref type="bibr">[42]</ref>, we define a partial function GapCmprEnt  4N,2R for some constants &#945;, &#946; such that &#945;&#946; = &#955; . This reduction (described next for completeness) implies that deg &#949; (SDU</p><p>For completeness, we sketch this transformation, closely following the presentation of Goldreich and Vadhan <ref type="bibr">[42]</ref>. At a high level, the reduction transforms an input in [R] N to SDU The entropy of p 1 is always v + 1, where v = 1 2 H(p) + 1 2 log 2 (R). As for the entropy of p 2 , if p is far from the uniform distribution, then the selection bit s will be essentially determined by the sample r. Hence, the entropy of p 2 will be approximately v, which is noticeably smaller than the entropy of p 1 . On the other hand, if the two input distributions are close then (even conditioned on the sample selected) the selection bit s will be almost random and so H(p 2 ) &#8776; v + 1, which is approximately the same as H(p 1 ). Quantitatively, Vadhan <ref type="bibr">[88]</ref> shows that if the statistical distance between p and the uniform distribution is &#948; , then 1&#948; &#8804; H(p 1 ) -H(p 2 ) &#8804; H((1 + &#948; )/2).</p><p>Since we are considering distributions specified as vectors in [R] N , this transformation can be equivalently described as follows. Assume for simplicity that R divides N. If p is specified by a vector u in [R] N , then p 2 is specified by a vector w in ([R] &#215; {0, 1}) 4N defined as follows. For all i &#8712; [N] and j &#8712; {0, 1}, w i, j = (u i , 0), and for j &#8712; {2, 3}, w i, j = ( Ri/N , 1). Similarly, p 1 is specified by a vector v in ([R] &#215; {0, 1}) 4N . For i &#8712; [R] and j &#8712; {0, 1}, v i, j = (u i , j), and for j &#8712; {2, 3}, v i, j = ( Ri/N , j -2). Observe that when representing u, v, and w as vectors in {-1, 1} N log 2 (R) or {-1, 1} 4N&#8226;log 2 (R) , each bit of v and w depends on at most one bit of u.</p><p>Recall that in the statement of Theorem 6.14, &#947; 1 = 1-3&#947;/2 and &#947; 2 = 1-&#947; 1/2 /c, where &#947; is an arbitrary constant less than (2/3c) 2 , where c &gt; 1 is the constant from Theorem 6.2. Clearly, H((1 + &#947; 1 )/2)) = H(1 -3&#947;/4) = H(3&#947;/4). Using the fact that for any p &#8712; [0, 1/2], H(p) = -p log 2 (p) -(1p) log 2 (1p) &#8804; -2p log 2 (p) &#8804; 6p 3/4 , it follows that for some constant &#947; &#8804; 1/(648c 4 ), we have H(3&#947;/4) &lt; &#947; 1/2 /c. Hence, Vadhan's reduction from SDU Clearly, a quantum query algorithm that approximates entropy up to additive error (&#945;&#946; )/4 can be used to solve GapCmprEnt &#945;,&#946; 4N,2R , by (approximately) computing the entropies of each of the two input THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71 distributions, and determining whether the difference is at most (&#946; + &#945;)/2. Hence, Theorem 6.15 implies the following lower bound for approximating entropy to additive error &#945;&#946; . Corollary 6.16. Let N = c &#8226; R for a sufficiently large constant c. Interpret an input in [R] N as a distribution p in the natural way (i. e., for each j &#8712; [R], p j = f j /N, where f j is the number of times j appears in the input). There is a constant &#949; &gt; 0 such that any quantum algorithm that approximates the entropy of p up to additive error &#949; with probability at least 2/3 requires &#937;(R 1/2 ) queries.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">Conclusion and open questions</head><p>We conclude by briefly describing some additional consequences of our results, as well as a number of open questions and directions for future work.</p><p>7.1 Additional consequences: approximate degree lower bounds for DNFs and AC 0 For any constant k &gt; 0, k-distinctness is computed by a DNF of polynomial size. Our &#937; n 3/4-1/(2k) is the best known lower bound on the approximate degree of polynomial size DNF formulae. The previous best was &#937;(n 2/3 ) for element distinctness (a.k.a., 2-distinctness) <ref type="bibr">[3]</ref>, although Bun and Thaler did establish, for any &#948; &gt; 0, an &#8486;(n 1-&#948; ) lower bound on the approximate degree of quasipolynomial size DNFs.</p><p>Similarly, for any constant k &#8805; 1, Bun and Thaler exhibited an AC 0 circuit of depth 2k -1 with approximate degree &#937; n 1-2 k-2 /3 k-1 . Our techniques can be used to give a polynomial improvement for any fixed k &#8805; 2, to &#937; n 1-2 -k (Theorem 1.1 is the special case of k = 2, as SURJ is computed by an AC 0 circuit of depth three). We omit further details of this result for brevity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.2">Open problems</head><p>The most obvious direction for future work is to extend our techniques to determine the approximate degree and quantum query complexity of additional problems of interest in the study of quantum algorithms. These include triangle finding problem <ref type="bibr">[53,</ref><ref type="bibr">59]</ref>, graph collision <ref type="bibr">[59]</ref>, and verifying matrix products <ref type="bibr">[26,</ref><ref type="bibr">51]</ref>. It would also be interesting to close the gap between our &#8486;(n 3/4-1/(2k) ) lower bound for k-distinctness and Belovs' O n 3/4-1/(2 k+2 -4 ) upper bound, especially for small values of k (e. g., k = 3). Note that Belovs' upper bound is known to be tight for k equal to 1 and 2 <ref type="bibr">[3]</ref>.</p><p>Although we prove a lower bound of &#937;(R 1/2 ) for SDU = &#937;(R 1/2 ). It may be tempting to suspect that Theorem 6.14 implies an &#937;(R 1/2 ) lower bound on SDU 2/3,1/3 N,R</p><p>, by invoking the well-known Polarization Lemma of Sahai and Vadhan <ref type="bibr">[67]</ref>. The Polarization Lemma reduces SDU &#947; 1 ,&#947; 2 N,R for any pair of constant &#947; 1 , &#947; 2 with &#947; 2 &lt; &#947; 2 1 to SDU 2/3,1/3 N ,R for an appropriate choice of N and R . Unfortunately, N and R may be polynomially larger than N and R, so this reduction does not give an &#937;(R 1/2 ) lower bound for SDU 2/3,1/3 N,R itself.</p><p>THEORY OF COMPUTING, Volume 16 <ref type="bibr">(10)</ref>, 2020, pp. 1-71 Another important direction is to determine the approximate degree of specific classes of functions, especially polynomial size DNF formulae, and AC 0 circuits. As mentioned in the previous subsection, our k-distinctness lower bound (Theorem 1.2) gives the best known lower bound on polynomial size DNFs. A compelling candidate for improving this lower bound is the k-sum function, which may have approximate degree as large as &#920;(n k/(k+1) ) (it is known that the quantum query complexity of k-sum is &#920;(n k/(k+1) ) <ref type="bibr">[8,</ref><ref type="bibr">18]</ref>). On the upper bounds side, it may be possible to extend the techniques underlying our &#213;(n 3/4 ) upper bound on the approximate degree of SURJ to yield a sublinear upper bound for every DNF formula of polynomial size. Open Problem 7.1. For every constant c &gt; 0 and every DNF formula f : {-1, 1} n &#8594; {-1, 1} of size at most n c , is there a &#948; &gt; 0 (depending only on c) such that deg( f ) = O(n 1-&#948; )?</p><p>A positive answer to Open Problem 7.1 would have major algorithmic consequences, including a subexponential time algorithm for agnostically learning DNF formulae <ref type="bibr">[46]</ref> (and PAC learning depth three circuits <ref type="bibr">[49]</ref>) of any fixed polynomial size.</p><p>For general AC 0 circuits, an &#8486;(n 1-&#948; ) approximate degree lower bound is already known <ref type="bibr">[33]</ref>. It would be very interesting to improve this lower bound to an optimal &#8486;(n). Until recently, SURJ was a prime candidate for exhibiting such a lower bound. However, owing to Sherstov's upper bound <ref type="bibr">[78]</ref> and Theorem 1.1, SURJ is no longer a candidate function. However, we are optimistic about the following closely related candidate. An approximate majority function is any total Boolean function that evaluates to -1 (or +1) whenever at least 2/3 of its inputs are -1 (+1, respectively). It is well-known (via the probabilistic method) that there are approximate majorities computable by depth 3 circuits of quadratic size and logarithmic bottom fan-in <ref type="bibr">[4]</ref>. It is possible that every approximate majority has approximate degree &#8486;(n); proving this would resolve a question of Srinivasan <ref type="bibr">[40]</ref>.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>THEORY OF COMPUTING, Volume 16<ref type="bibr">(10)</ref>, 2020, pp. 1-71</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_1"><p>In the k-sum problem, we are given N numbers in [R] and asked to decide if any k of them sum to 0 (mod R).THEORY OF COMPUTING, Volume 16<ref type="bibr">(10)</ref>,</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_2"><p>2020, pp. 1-71</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_3"><p>When it is not clear from context, we use subscripts to denote the number of variables on which a function is defined.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_4"><p>Note that a reduction the other direction is straightforward: to approximate SURJ, it suffices to approximate AND R &#8226; OR N on inputs of Hamming weight exactly N. This is because SURJ can be expressed as an AND R (over all range items r &#8712; [R]) of the OR N (over all input bits i &#8712; [N]) of "Is input x i equal to r"? Each predicate of the form in quotes is computed exactly by a polynomial of degree log R, since it depends on only log R of the inputs, and exactly N of these predicates (one for each i &#8712; [N]) evaluate to TRUE.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_5"><p>We do not formally describe this primal formulation of the dual decay condition, because it is not necessary to prove any of the results in this paper.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_6"><p>Specifically, our analysis requires the dual witness &#947; for THR k N to be very well-correlated with THR k N in a certain one-sided sense. Roughly, we need the probability distribution |&#947;| to have the property that, conditioned on &#947; outputting a negative value,</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_7"><p>The formulation we use here is as follows. Let r 1 , . . . , r R be independent {0, 1}-valued random variables, S = &#8721; R i=1 r i , and &#181; = E[S]. Then for &#951; &gt; 1, we have Pr[S &gt; (1 + &#951;)&#181;] &#8804; exp(-&#951; &#181;/3). In this application, we are taking &#181; &#8804; &#948; R and &#951; = &#947;R/&#181; -1 &gt; 1.</p></note>
		</body>
		</text>
</TEI>
