Complexitylib: a blueprint for computational complexity in Lean

13 Analysis of Boolean functions

This chapter covers the Fourier analysis of Boolean functions, following O’Donnell’s Analysis of Boolean Functions. These tools are aimed at small-depth circuit lower bounds and at property testing. So far only the property-testing side is used elsewhere in the library: the BLR soundness theorem is used by the Hadamard tester in the PCP development. Everything formalized here lives in Complexitylib.BooleanAnalysis (the FourierExpansion surface, with FourierExpansion.Defs and FourierExpansion.Internal). The following are formalized: the parity basis, the Fourier expansion, Plancherel and Parseval, the degree decomposition, the BLR linearity test with soundness and local correction, the spectral definitions and basic identities of noise stability, noise sensitivity, the noise operator, derivatives, and influence (O’Donnell, Chapter 1 and parts of Chapter 2), the reading of influence as the probability of a pivotal flip, and the one-bit base case of the Bonami inequality. The correlated-input readings of the noise quantities, monotone functions, \(L^p\) norms, and hypercontractivity are not yet formalized. Hypercontractivity is the main open direction: its tensorization step is what the level-1 inequality, FKN, KKL, and Friedgut’s junta theorem all need. The Linial–Mansour–Nisan concentration bound for \(\mathsf{AC^0}\) needs instead the Fourier degree bound for decision trees and a Fourier-side restriction API.

Conventions.

The cube is \(\mathbb {F}_2^n\), written Cube n = Fin n -> ZMod 2. The encoding is \(\chi (0) = 1\), \(\chi (1) = -1\), so bit \(0\) is the value \(+1\) in O’Donnell’s \(\{ -1,1\} ^n\) picture. “Boolean-valued” always means \(\{ -1,1\} \)-valued. Noise stability, the noise operator, noise sensitivity, the derivative, and the influences are all defined spectrally. Some combinatorial readings are theorems: influence is the probability that flipping a coordinate changes a Boolean-valued function, and the derivative is a twisted pointwise difference (Theorems 530 and 531). The correlated-input readings of the noise quantities are planned (Proposition 526).

13.1 The cube and the Fourier basis

\(\mathrm{BooleanFunction}(n)\) is the real vector space of functions \(f : \mathbb {F}_2^n \to \mathbb {R}\). Its inner product space structure comes from the uniform-measure inner product \(\langle f, g \rangle = 2^{-n} \sum _x f(x) g(x)\). The uniform expectation \(\mathbb {E}[f]\) is the average of \(f\) over the cube, so \(\mathbb {E}[f] = 2^{-n} \sum _x f(x)\) and \(\langle f, g \rangle = \mathbb {E}_x[f(x) g(x)]\). The type is a def rather than an abbrev, so the \(L^2\) norm does not clash with Mathlib’s sup norm on function types.

\(\chi : \mathbb {F}_2 \to \mathbb {R}\) sends \(b \mapsto (-1)^b\). For \(S \subseteq [n]\), the parity function is \(\chi _S(x) = \prod _{i \in S} \chi (x_i)\), so \(\chi _\emptyset = 1\). A function is Boolean-valued if every value is \(1\) or \(-1\).

\(\langle \chi _S, \chi _T \rangle = [S = T]\) and \(\mathbb {E}[\chi _S] = [S = \emptyset ]\). Moreover, \(\chi _S \chi _T = \chi _{S \triangle T}\) pointwise, \(\chi _S(x + y) = \chi _S(x) \chi _S(y)\), every \(\chi _S\) is Boolean-valued, and \(S \mapsto \chi _S\) is injective.

Proof ▶

If \(j \in S\), translating by the unit vector \(e_j\) permutes the cube and negates \(\chi _S\), so \(\sum _x \chi _S(x) = -\sum _x \chi _S(x) = 0\). Orthonormality then follows from \(\chi _S \chi _T = \chi _{S \triangle T}\), since \(S \triangle T = \emptyset \) iff \(S = T\).

The Fourier coefficient of \(f\) on \(S\) is \(\widehat{f}(S) = \langle f, \chi _S \rangle \), and its Fourier weight is \(\widehat{f}(S)^2\). The weight at degree \(k\) is \(W^k[f] = \sum _{|S| = k} \widehat{f}(S)^2\).

Every \(f : \mathbb {F}_2^n \to \mathbb {R}\) satisfies \(f(x) = \sum _S \widehat{f}(S) \chi _S(x)\), so the parities span. The coefficients are unique: if \(f = \sum _S c_S \chi _S\) pointwise, then \(c_S = \widehat{f}(S)\) for all \(S\). In particular, two functions are equal iff all their Fourier coefficients agree, and \(f = 0\) iff every coefficient vanishes.

Proof ▶

Substituting \(\widehat{f}(S) = 2^{-n} \sum _y f(y) \chi _S(y)\) and \(\chi _S(y)\chi _S(x) = \chi _S(x + y)\) gives \(\sum _S \widehat{f}(S)\chi _S(x) = 2^{-n} \sum _y f(y) \sum _S \chi _S(x + y)\), and \(\sum _S \chi _S(z)\) is \(2^n\) at \(z = 0\) and \(0\) elsewhere. Uniqueness comes from taking inner products with each \(\chi _T\). Two functions with the same coefficients have the same expansion.

\(\langle f, g \rangle = \sum _S \widehat{f}(S) \widehat{g}(S)\) and \(\lVert f \rVert _2^2 = \langle f, f \rangle = \sum _S \widehat{f}(S)^2\). If \(f\) is Boolean-valued, then \(\sum _S \widehat{f}(S)^2 = 1\), so \(|\widehat{f}(S)| \le 1\) for every \(S\).

Proof ▶

The parities are orthonormal and span, so they form an orthonormal basis, and Plancherel is Parseval’s identity for that basis. For Boolean-valued \(f\), \(\langle f, f \rangle = \mathbb {E}[f^2] = 1\).

\(\mathrm{Var}[f] = \mathbb {E}[f^2] - \mathbb {E}[f]^2\) and \(\mathrm{Cov}[f,g] = \mathbb {E}[fg] - \mathbb {E}[f]\mathbb {E}[g]\). The uniform probability of a predicate \(P\) is \(\Pr [P] = \mathbb {E}[1_P]\), where \(1_P\) is the \(0\)–\(1\) indicator of \(P\), and the relative Hamming distance is \(\mathrm{dist}(f,g) = \Pr _x[f(x) \neq g(x)]\).

\(\mathbb {E}[f] = \widehat{f}(\emptyset )\), \(\mathrm{Var}[f] = \sum _{S \neq \emptyset } \widehat{f}(S)^2\), and \(\mathrm{Cov}[f,g] = \sum _{S \neq \emptyset } \widehat{f}(S)\widehat{g}(S)\). For Boolean-valued \(f\) and \(g\), \(\mathrm{Var}[f] = 1 - \mathbb {E}[f]^2\) and \(\langle f, g \rangle = 1 - 2\, \mathrm{dist}(f,g)\).

Proof ▶

Take \(\chi _\emptyset = 1\) in the definition of \(\widehat{f}(\emptyset )\), then apply Plancherel and split off the empty set. For Boolean-valued functions, \(f^2 = 1\) pointwise, and \(f(x) g(x)\) is \(1\) where \(f\) and \(g\) agree and \(-1\) where they differ.

Every \(f\) has \(\mathrm{Var}[f] \ge 0\). If \(f\) is Boolean-valued, then \(\mathrm{Var}[f] = 4 \Pr [f = 1] \Pr [f = -1]\) and \(0 \le \mathrm{Var}[f] \le 1\). Moreover, with \(\varepsilon = \min (\mathrm{dist}(f, 1), \mathrm{dist}(f, -1))\), the distance to the nearer constant function, \(2\varepsilon \le \mathrm{Var}[f] \le 4\varepsilon \).

Proof ▶

The variance is a sum of squared Fourier coefficients. For Boolean-valued \(f\), let \(p = \Pr [f = 1]\) and \(q = \Pr [f = -1]\). Then \(p + q = 1\) and \(\mathbb {E}[f] = p - q\), so \(\mathrm{Var}[f] = 1 - (p - q)^2 = 4pq\). Also \(\mathrm{dist}(f, 1) = q\) and \(\mathrm{dist}(f, -1) = p\), and \(2\min (p,q) \le 4pq \le 4\min (p,q)\).

The convolution is \((f * g)(x) = \mathbb {E}_y[f(y)\, g(x + y)]\). A density is a nonnegative \(\varphi \) with \(\mathbb {E}[\varphi ] = 1\). The density of a nonempty set \(A\) is \(\varphi _A = 1_A / \mathbb {E}[1_A]\). For \(A = \emptyset \) the Lean definition divides by zero and returns the zero function, so theorems about \(\varphi _A\) assume \(A\) is nonempty.

\(\widehat{f * g}(S) = \widehat{f}(S)\, \widehat{g}(S)\). The convolution of two densities is a density. For nonempty \(A\), \(\varphi _A\) is a density and \(\widehat{\varphi _A}(S) = |A|^{-1} \sum _{x \in A} \chi _S(x)\). In particular, \(\varphi _{\{ 0\} } = \sum _S \chi _S\), and every Fourier coefficient of \(\varphi _{\{ 0\} }\) is \(1\).

Proof ▶

Substitute \(x = y + z\) and use \(\chi _S(y + z) = \chi _S(y)\chi _S(z)\). The density claims follow by exchanging the two averages in \(\mathbb {E}[\varphi * \psi ]\) and by computing \(\mathbb {E}[1_A] = |A|/2^n\).

13.2 Degree structure

The degree-\(k\) part of \(f\) is \(f^{=k} = \sum _{|S| = k} \widehat{f}(S) \chi _S\), and \(f^{\le k} = \sum _{|S| \le k} \widehat{f}(S) \chi _S\). The weight above degree \(k\) is \(W^{{\gt}k}[f] = \sum _{|S| {\gt} k} \widehat{f}(S)^2\). The degree of \(f\) is \(\max \{ |S| : \widehat{f}(S) \neq 0\} \), valued in \(\mathbb {N} \cup \{ \bot \} \) with \(\bot \) for \(f = 0\). For Boolean-valued \(f\), the spectral sample is the probability distribution \(S \mapsto \widehat{f}(S)^2\) on subsets of \([n]\).

\(f = \sum _{k=0}^{n} f^{=k}\) and \(\widehat{f^{=k}}(T) = [|T| = k]\, \widehat{f}(T)\). For \(j \neq k\) the parts \(f^{=j}\) and \(g^{=k}\) are orthogonal. Also \(\lVert f^{=k} \rVert _2^2 = W^k[f]\), \(\sum _{k=0}^n W^k[f] = \langle f, f \rangle \) (which is \(1\) for Boolean-valued \(f\)), \(f^{\le k} = \sum _{j \le k} f^{=j}\), and \(\langle f^{\le k}, f^{\le k} \rangle = \sum _{j \le k} W^j[f]\). Finally, \(f^{=0}\) is the constant \(\mathbb {E}[f]\), \(\mathrm{Var}[f] = \sum _{k=1}^n W^k[f]\), and \(\deg f \le n\).

Proof ▶

Regroup the Fourier expansion and Parseval’s sum by \(|S|\). The projection \(f^{=k}\) keeps exactly the coefficients with \(|S| = k\).

13.3 Linearity testing

\(f\) is linear if \(f = \chi _S\) for some \(S\). It is multiplicative if \(f(x + y) = f(x) f(y)\) for all \(x, y\). It is \(\varepsilon \)-close to \(g\) if \(\mathrm{dist}(f, g) \le \varepsilon \), and \(\varepsilon \)-close to a property \(P\) if it is \(\varepsilon \)-close to some \(g\) satisfying \(P\). The BLR acceptance probability is \(\Pr _{x,y}[f(x) f(y) = f(x + y)]\) for independent uniform \(x\) and \(y\).

Theorem 519 Linear iff multiplicative
✓

A Boolean-valued \(f\) is linear if and only if it is multiplicative.

Proof ▶

A multiplicative \(\pm 1\)-valued function is a character of \(\mathbb {F}_2^n\). Take \(S = \{ i : f(e_i) = -1\} \) and write each \(x\) as a sum of unit vectors.

For Boolean-valued \(f\), the BLR test accepts with probability \(\frac{1}{2} + \frac{1}{2} \sum _S \widehat{f}(S)^3\). A linear \(f\) is accepted with probability \(1\).

Proof ▶

The acceptance probability is \(\frac{1}{2} + \frac{1}{2} \langle f, f * f \rangle \). Then apply the convolution theorem.

Theorem 521 BLR soundness
✓

If a Boolean-valued \(f\) passes the BLR test with probability at least \(1 - \varepsilon \), then \(f\) is \(\varepsilon \)-close to linear.

Proof ▶

Bound \(\sum _S \widehat{f}(S)^3 \le \max _S \widehat{f}(S)\) using Parseval, and convert the largest coefficient to a distance with \(\langle f, \chi _S \rangle = 1 - 2\, \mathrm{dist}(f, \chi _S)\).

Proposition 522 Local correction
✓

If a real-valued \(f\) on \(\{ 0,1\} ^n\) is \(\varepsilon \)-close to \(\chi _S\) (it differs from \(\chi _S\) on at most an \(\varepsilon \) fraction of inputs), then for every \(x\), \(\Pr _y[f(y) f(x + y) = \chi _S(x)] \ge 1 - 2\varepsilon \). No Boolean-valuedness is needed.

Proof ▶

\(y\) and \(x + y\) are each uniform. Apply a union bound to the two events where \(f\) disagrees with \(\chi _S\).

13.4 Noise

All four are defined spectrally, for \(\rho \in \mathbb {R}\):

  • \(\mathrm{Stab}_\rho [f] = \sum _S \rho ^{|S|} \widehat{f}(S)^2\);

  • \(\mathrm{Stab}_\rho [f,g] = \sum _S \rho ^{|S|} \widehat{f}(S)\widehat{g}(S)\);

  • the noise (Bonami–Beckner) operator \(T_\rho f = \sum _S \rho ^{|S|} \widehat{f}(S) \chi _S\);

  • \(\mathrm{NS}_\rho [f] = (\langle f, f \rangle - \mathrm{Stab}_\rho [f])/2\).

\(\widehat{T_\rho f}(S) = \rho ^{|S|} \widehat{f}(S)\), \(T_1 f = f\), and \(T_0 f = \mathbb {E}[f] \cdot 1\). Also \(\mathrm{Stab}_\rho [f] = \langle f, T_\rho f \rangle \) and \(\mathrm{Stab}_\rho [f,g] = \langle f, T_\rho g \rangle \). The bilinear form is symmetric, restricts to \(\mathrm{Stab}_\rho [f]\) on the diagonal, and equals \(\langle f, g \rangle \) at \(\rho = 1\). Combining symmetry with \(\mathrm{Stab}_\rho [f,g] = \langle f, T_\rho g \rangle \) shows that \(T_\rho \) is self-adjoint; this corollary is not stated as a separate declaration.

Proof ▶

Read off coefficients using orthonormality, then apply Plancherel. The identities for \(T_1\) and \(T_0\) compare Fourier coefficients.

\(\mathrm{Stab}_\rho [f] = \sum _{k=0}^n \rho ^k W^k[f]\). Moreover \(\mathrm{Stab}_1[f] = \langle f, f \rangle \), \(\mathrm{Stab}_0[f] = \mathbb {E}[f]^2\), and \(\mathrm{NS}_1[f] = 0\). For \(\rho \ge 0\), \(0 \le \mathbb {E}[f]^2 \le \mathrm{Stab}_\rho [f]\). On \(0 \le \rho _1 \le \rho _2\), \(\mathrm{Stab}_{\rho _1}[f] \le \mathrm{Stab}_{\rho _2}[f]\) and \(\mathrm{NS}_{\rho _2}[f] \le \mathrm{NS}_{\rho _1}[f]\). For \(\rho \in [0,1]\), \(\mathrm{Stab}_\rho [f] \le \langle f, f \rangle \) (so \(\mathrm{Stab}_\rho [f] \le 1\) for Boolean-valued \(f\)) and \(\mathrm{NS}_\rho [f] \ge 0\). Always, \(\mathrm{Stab}_\rho [f] + 2\, \mathrm{NS}_\rho [f] = \langle f, f \rangle \).

Proof ▶

Term-by-term comparison of the spectral sums.

Proposition 526 Correlated-input form of noise

Let \(y \sim N_\rho (x)\) mean that each \(\chi (y_i)\) independently equals \(\chi (x_i)\) with probability \(\frac{1+\rho }{2}\) and is flipped otherwise, for \(\rho \in [-1,1]\). Then \(T_\rho f(x) = \mathbb {E}_{y \sim N_\rho (x)}[f(y)]\) and \(\mathrm{Stab}_\rho [f] = \mathbb {E}_{x,\, y \sim N_\rho (x)}[f(x) f(y)]\). In particular, for Boolean-valued \(f\) and \(\delta \in [0,1]\), \(\mathrm{NS}_{1-2\delta }[f] = \Pr [f(x) \neq f(y)]\) when each bit is flipped independently with probability \(\delta \).

Proof ▶

Compute \(\mathbb {E}_{y \sim N_\rho (x)}[\chi _S(y)] = \rho ^{|S|}\chi _S(x)\) and extend by linearity. The first step is to define the product distribution \(N_\rho (x)\) as a finite weighted average.

13.5 Influence and derivatives

Definition 527 Influence and total influence
✓

Spectrally, \(\mathrm{Inf}_i[f] = \sum _{S \ni i} \widehat{f}(S)^2\) and \(\mathbf{I}[f] = \sum _S |S|\, \widehat{f}(S)^2\).

\(\mathbf{I}[f] = \sum _i \mathrm{Inf}_i[f] = \sum _{k=0}^n k\, W^k[f]\). Each influence satisfies \(0 \le \mathrm{Inf}_i[f] \le \mathbf{I}[f]\) and \(\mathrm{Inf}_i[f] \le \langle f, f \rangle \), which is \(1\) for Boolean-valued \(f\). Also \(\mathbf{I}[f] \le n \langle f, f \rangle \), which is \(n\) for Boolean-valued \(f\). If every coefficient on sets of size greater than \(d\) vanishes, then \(\mathbf{I}[f] \le d \langle f, f\rangle \), hence \(\mathbf{I}[f] \le d\) for Boolean-valued \(f\). For parities, \(\mathbf{I}[\chi _S] = |S|\) and \(\mathrm{Inf}_i[\chi _S] = [i \in S]\).

Proof ▶

Exchange the sums over \(i\) and \(S\), and bound \(|S|\) by \(n\) or \(d\).

\(x^{\oplus i}\) flips coordinate \(i\) of \(x\). This is an involutive equivalence of the cube. The derivative is defined spectrally: \(D_i f = \sum _{S \ni i} \widehat{f}(S)\, \chi _{S \setminus \{ i\} }\). The sensitivity operator is \(L_i f(x) = (f(x) - f(x^{\oplus i}))/2\). These are different operators: by Theorem 530, \(D_i\) removes \(i\) from each frequency, while \(L_i\) keeps only the frequencies that contain \(i\).

The flip preserves expectations, \(\mathbb {E}_x[g(x^{\oplus i})] = \mathbb {E}[g]\), and \(\chi _S(x^{\oplus i}) = (-1)^{[i \in S]} \chi _S(x)\). Precomposing with the flip gives \(\widehat{f \circ \oplus _i}(T) = (-1)^{[i \in T]} \widehat{f}(T)\). Moreover \(\widehat{D_i f}(T) = [i \notin T]\, \widehat{f}(T \cup \{ i\} )\) and \(\widehat{L_i f}(T) = [i \in T]\, \widehat{f}(T)\). Hence \(\mathrm{Inf}_i[f] = \lVert D_i f \rVert _2^2 = \lVert L_i f \rVert _2^2\) and \(L_i f = \chi _{\{ i\} } \cdot D_i f\).

Proof ▶

The flip is measure-preserving and negates exactly the parities containing \(i\). Then apply Parseval, and compare Fourier coefficients for \(L_i f = \chi _{\{ i\} } \cdot D_i f\).

For Boolean-valued \(f\), \(\mathrm{Inf}_i[f] = \Pr _x[f(x) \neq f(x^{\oplus i})]\) and \(\mathbf{I}[f] = \mathbb {E}_x\bigl[\# \{ i : f(x) \neq f(x^{\oplus i})\} \bigr]\). The Lean statements write the probability as the expectation of the \(0\)–\(1\) indicator.

Proof ▶

For Boolean-valued \(f\), \((L_i f)^2\) is the indicator that \(i\) is pivotal at \(x\).

Theorem 532 Poincaré inequality
✓

\(\mathrm{Var}[f] \le \mathbf{I}[f]\) for every \(f : \mathbb {F}_2^n \to \mathbb {R}\).

Proof ▶

Every nonempty \(S\) has \(|S| \ge 1\).

Proposition 533 Noise sensitivity is bounded by influence
✓

For \(\rho \in [0,1]\), \(\langle f, f \rangle - \mathrm{Stab}_\rho [f] \le (1 - \rho )\, \mathbf{I}[f]\). Equivalently, \(\mathrm{NS}_\rho [f] \le \frac{1-\rho }{2}\, \mathbf{I}[f]\).

Proof ▶

Use \(1 - \rho ^k \le (1 - \rho ) k\) term by term.

\(\widehat{f}(\{ i\} )^2 \le \mathrm{Inf}_i[f]\) and \(\sum _i \widehat{f}(\{ i\} )^2 = W^1[f] \le \mathbf{I}[f]\). These are not the hypercontractive level-1 inequality of Theorem 543.

Proof ▶

The singletons are exactly the sets of size \(1\). Each inequality drops nonnegative terms from a spectral sum.

13.6 Monotone functions

Definition 535 Monotone functions

Order the cube coordinatewise by the values \(\chi (x_i) \in \{ -1, 1\} \). So \(x \le y\) iff \(y\) is obtained from \(x\) by changing some coordinates from \(1\) to \(0\). A function \(f\) is monotone if \(x \le y\) implies \(f(x) \le f(y)\). This is O’Donnell’s order on \(\{ -1,1\} ^n\). It is the reverse of the bitwise order on \(\mathbb {F}_2^n\), and the Lean definition must record the choice explicitly. The circuit library’s IsMonotoneBoolFun is a different notion: monotonicity of \(\{ 0,1\} \)-valued functions on bit strings in the bitwise order.

Theorem 536 Influences of monotone functions

If \(f\) is Boolean-valued and monotone, then \(\mathrm{Inf}_i[f] = \widehat{f}(\{ i\} )\) for every \(i\), and \(\mathbf{I}[f] \le \sqrt{n}\).

Proof ▶

\(\widehat{f}(\{ i\} ) = \mathbb {E}[f(x)\chi (x_i)]\). By monotonicity this equals the probability that \(i\) is pivotal. For the second claim, apply Cauchy–Schwarz to \(\sum _i \widehat{f}(\{ i\} )\) and use \(W^1[f] \le 1\).

Theorem 537 Margulis–Russo formula

Let \(\mu _p\) be the product measure on the cube in which each coordinate independently has \(\chi (x_i) = 1\) with probability \(p\). For monotone Boolean-valued \(f\), \(\frac{d}{dp} \mu _p(f = 1) = \sum _i \Pr _{x \sim \mu _p}[f(x) \neq f(x^{\oplus i})]\).

Proof ▶

Differentiate the multilinear polynomial \(p \mapsto \mu _p(f = 1)\) one coordinate at a time. The first step is a \(p\)-biased expectation, which the library does not yet have (it has only the uniform measure).

13.7 Hypercontractivity

Lemma 538 Bonami base case
✓

For all real \(a, b\), \(\frac{1}{2}\bigl((a + b/\sqrt{3})^4 + (a - b/\sqrt{3})^4\bigr) \le (a^2 + b^2)^2\). Read on one bit, this says \(\lVert T_{1/\sqrt{3}} f \rVert _4^4 \le \lVert f \rVert _2^4\) for \(f(x) = a + bx\). The Lean statement is only the real inequality; the library has no \(L^4\) norm or one-bit noise operator.

Proof ▶

Expand. The slack is \(8b^4/9 \ge 0\).

Definition 539 \(L^p\) norms

For real \(p \ge 1\), \(\lVert f \rVert _p = \mathbb {E}[|f|^p]^{1/p}\) under the uniform measure. It should agree with the existing \(L^2\) norm at \(p = 2\) and satisfy Hölder’s inequality.

Theorem 540 \((2,4)\)-hypercontractivity

For every \(n\) and every \(f : \mathbb {F}_2^n \to \mathbb {R}\), \(\lVert T_{1/\sqrt{3}} f \rVert _4 \le \lVert f \rVert _2\).

Proof ▶

Induct on \(n\). Write \(f = g + x_n h\), where \(g\) and \(h\) do not depend on \(x_n\). Apply the base case pointwise, then the induction hypothesis to \(g\) and \(h\), with Cauchy–Schwarz. The noise operator factors as a product of one-bit operators, so a coordinate-restriction API for \(T_\rho \) is needed first.

Corollary 541 Bonami lemma

If \(f\) has degree at most \(k\), then \(\lVert f \rVert _4 \le \sqrt{3}^{\, k}\, \lVert f \rVert _2\).

Proof ▶

Apply the theorem to \(T_{\sqrt{3}} f\), whose coefficients are at most \(\sqrt{3}^{\, k}\) times those of \(f\).

Corollary 542 Dual \((4/3, 2)\)-hypercontractivity

\(\lVert T_{1/\sqrt{3}} f \rVert _2 \le \lVert f \rVert _{4/3}\) for every \(f\).

Proof ▶

\(T_{1/\sqrt{3}}\) is self-adjoint, and \(4/3\) and \(4\) are Hölder conjugates.

13.8 Consequences of hypercontractivity

Theorem 543 Level-1 inequality

If \(f : \mathbb {F}_2^n \to \{ 0, 1\} \) has mean \(\alpha \le 1/2\), then \(W^1[f] \le O(\alpha ^2 \log (1/\alpha ))\).

Proof ▶

Let \(\ell = f^{=1}\). Bound \(W^1[f] = \langle f, \ell \rangle \) by splitting on whether \(|\ell |\) exceeds a threshold. The tail is controlled by hypercontractive concentration of the linear form \(\ell \).

Theorem 544 Friedgut–Kalai–Naor

If \(f\) is Boolean-valued and \(W^1[f] \ge 1 - \delta \), then \(f\) is \(O(\delta )\)-close to \(\chi _{\{ i\} }\) or to \(-\chi _{\{ i\} }\) for some \(i\).

Proof ▶

\(\ell = f^{=1}\) has \(\ell ^2\) close to \(1\) in \(L^2\). The Bonami lemma applied to the degree-2 polynomial \(\ell ^2 - 1\) forces one coefficient of \(\ell \) to dominate.

Theorem 545 Kahn–Kalai–Linial

There is an absolute constant \(c {\gt} 0\) such that for every \(n \ge 1\), every Boolean-valued \(f : \mathbb {F}_2^n \to \mathbb {R}\) has a coordinate \(i\) with \(\mathrm{Inf}_i[f] \ge c \cdot \mathrm{Var}[f] \cdot \frac{\log n}{n}\).

Proof ▶

Apply the \((4/3, 2)\) bound to each \(D_i f\). For Boolean-valued \(f\), \(\lVert D_i f \rVert _{4/3}^{4/3} = \mathrm{Inf}_i[f]\), which gives \(\sum _i \mathrm{Stab}_{1/3}[D_i f] \le \sum _i \mathrm{Inf}_i[f]^{3/2}\). Compare with the low-degree part of \(\mathbf{I}[f]\).

Theorem 546 Friedgut’s junta theorem

Call \(g\) a \(k\)-junta if it depends on at most \(k\) coordinates. For every Boolean-valued \(f\) and \(0 {\lt} \varepsilon \le 1\), \(f\) is \(\varepsilon \)-close to a Boolean-valued \(2^{O(\mathbf{I}[f]/\varepsilon )}\)-junta.

Proof ▶

Let \(J\) be the coordinates with influence above \(2^{-O(\mathbf{I}[f]/\varepsilon )}\). Hypercontractivity bounds the Fourier weight outside \(J\) and above degree \(O(\mathbf{I}[f]/\varepsilon )\). Round the restriction of \(f\) to \(J\) to \(\pm 1\). The junta predicate has to be defined first.

13.9 Fourier concentration of constant-depth circuits

These nodes connect this chapter to the circuit lower-bound chapter. The Linial–Mansour–Nisan argument consumes the switching lemma formalized there (random restrictions collapse small-depth circuits to shallow decision trees), together with the fact that a shallow decision tree has low Fourier degree. Nothing in this section is formalized yet.

Definition 547 Real-valued view of a Boolean function on bit strings

Every \(F : \{ 0,1\} ^n \to \{ 0,1\} \) on bit strings determines the Boolean-valued function \(x \mapsto \chi (F(x))\) on the cube. This must be a public bridge. The PCP development has only a related map, Complexity.signOf in an internal module, which sends an \(\mathbb {F}_2\)-valued function on the cube to its \(\pm 1\) encoding. It does not act on bit strings.

Theorem 548 Decision trees have low degree

If \(F\) is computed by a decision tree of depth \(t\), then the real-valued view of \(F\) has degree at most \(t\).

Proof ▶

\(F\) is a sum over leaves of the leaf label times the indicator of the path. The indicator of a depth-\(t\) path is a product of \(t\) functions \((1 \pm \chi (x_i))/2\).

Suppose \(F\) is computed by an unbounded fan-in AND/OR circuit with negations of size \(s\) and depth \(d\). Then its real-valued view satisfies \(W^{{\gt}k}[F] \le s \cdot 2^{-\Omega (k^{1/d})}\) for every \(k\).

Proof ▶

Relate \(W^{{\gt}k}[F]\) to the expected high-degree weight of a random restriction of \(F\). The restriction formula is \(\widehat{F_{J \mid z}}(S) = \sum _{T \subseteq \bar J} \widehat{F}(S \cup T)\chi _T(z)\). By the switching lemma, the restricted circuit is a shallow decision tree with high probability. A Fourier-side restriction API on the cube is needed first.

Corollary 550 Parity is not in \(\mathsf{AC^0}\), via LMN

For each fixed \(d\), every unbounded fan-in circuit of depth \(d\) computing the parity of \(n\) bits has size \(2^{\Omega (n^{1/d})}\). Håstad’s bound (Theorem 337) improves the exponent to \(n^{1/(d-1)}\).

Proof ▶

The real-valued view of parity is \(\chi _{[n]}\), whose entire Fourier weight sits at degree \(n\).