TCSLib

76 Boolean Analysis — Low Degree

76.1 Overview

This module develops the theory of low-degree testing on the Boolean hypercube \(\{ 0,1\} ^n\). Starting from the XOR group structure, it defines the Gowers product (multiplicative derivative product), the Gowers uniformity norms, and the Reed–Muller code \(\mathrm{RM}(d,n)\) as the set of Boolean functions of degree \(\le d\). The main results are a Fourier-analytic characterisation of degree (\(\| \cdot \| _{U^{d+1}} = 1 \Leftrightarrow \deg \le d\)), completeness and soundness of the \((d{+}1)\)-fold derivative test, and a quantitative soundness bound showing that if \(f\) is \(\varepsilon \)-far from \(\mathrm{RM}(d,n)\) then the test rejects with probability at least \(\varepsilon \).

76.2 Declarations

76.2.1 Hypercube algebra

Lemma 76.1 Commutativity of XOR

For all \(x, y \in \{ 0,1\} ^n\), coordinate-wise XOR satisfies \(x \oplus y = y \oplus x\).

Lemma 76.2 XOR with zero vector

For all \(x \in \{ 0,1\} ^n\), we have \(x \oplus \mathbf{0} = x\), where \(\mathbf{0}\) denotes the all-zero vector.

Lemma 76.3 XOR self-inverse

For all \(x \in \{ 0,1\} ^n\), we have \(x \oplus x = \mathbf{0}\), so every element is its own inverse under XOR.

Lemma 76.4 Associativity of XOR

For all \(x, y, z \in \{ 0,1\} ^n\), coordinate-wise XOR is associative: \((x \oplus y) \oplus z = x \oplus (y \oplus z)\).

76.2.2 Gowers product

Definition 76.5 Multiplicative derivative

For a function \(f : \{ 0,1\} ^n \to \mathbb {R}\) and a direction vector \(h \in \{ 0,1\} ^n\), the multiplicative derivative is defined by \((\Delta _h f)(x) = f(x) \cdot f(x \oplus h)\).

Definition 76.6 Gowers product

For \(f : \{ 0,1\} ^n \to \mathbb {R}\), base point \(x \in \{ 0,1\} ^n\), and direction vectors \(h_1, \ldots , h_k \in \{ 0,1\} ^n\), the order-\(k\) Gowers product is defined recursively:

\[ \mathrm{GP}(f, 0, x, \emptyset ) = f(x),\quad \mathrm{GP}(f, k{+}1, x, h_1, \ldots , h_{k+1}) = \mathrm{GP}(f, k, x, h_1,\ldots ,h_k) \cdot \mathrm{GP}(f, k, x \oplus h_{k+1}, h_1,\ldots ,h_k). \]

It averages \(f\) over the \(2^k\) vertices of the combinatorial cube \(x + \mathrm{span}\{ h_1,\ldots ,h_k\} \).

Lemma 76.7 Gowers product base case

For any \(f : \{ 0,1\} ^n \to \mathbb {R}\) and \(x \in \{ 0,1\} ^n\), the order-\(0\) Gowers product satisfies \(\mathrm{GP}(f, 0, x, \emptyset ) = f(x)\).

Lemma 76.8 Gowers product recursive step

For any \(f\), \(k \ge 0\), \(x\), and direction vectors \(h_1,\ldots ,h_{k+1}\), the Gowers product unfolds as

\[ \mathrm{GP}(f, k{+}1, x, h_1,\ldots ,h_{k+1}) = \mathrm{GP}(f, k, x, h_1,\ldots ,h_k) \cdot \mathrm{GP}(f, k, x \oplus h_{k+1}, h_1,\ldots ,h_k). \]
Lemma 76.9 Order-1 Gowers product is multiplicative derivative

For \(f : \{ 0,1\} ^n \to \mathbb {R}\), \(x, h \in \{ 0,1\} ^n\), \((\Delta _h f)(x) = \mathrm{GP}(f, 1, x, h)\).

Lemma 76.10 Gowers product of \(\pm 1\) functions

If \(f : \{ 0,1\} ^n \to \{ 0,1\} \) and \(F = (-1)^f\) is its \(\pm 1\) lift, then for every \(k\), \(x\), and \(h_1,\ldots ,h_k\), \(\mathrm{GP}(F, k, x, h_1,\ldots ,h_k) \in \{ 1, -1\} \).

76.2.3 Multi-expectation

Definition 76.11 Multi-expectation
#

For \(g : (\{ 0,1\} ^n)^k \to \mathbb {R}\), the multi-expectation is the uniform average

\[ \mathbb {E}_{h_1,\ldots ,h_k}[g(h_1,\ldots ,h_k)] = \frac{1}{2^{nk}} \sum _{h_1,\ldots ,h_k \in \{ 0,1\} ^n} g(h_1,\ldots ,h_k). \]
Lemma 76.12 Cardinality of multi-hypercube

The number of \(k\)-tuples of vectors in \(\{ 0,1\} ^n\) is \(|(\{ 0,1\} ^n)^k| = 2^{nk}\).

Lemma 76.13 Multi-expectation of constant

For any constant \(c \in \mathbb {R}\), \(\mathbb {E}_{h_1,\ldots ,h_k}[c] = c\).

76.2.4 Polynomial degree

Definition 76.14 Degree \(\le d\) for \(\pm 1\) functions

A function \(f : \{ 0,1\} ^n \to \mathbb {R}\) has degree \(\le d\) if all its \((d{+}1)\)-fold multiplicative derivatives vanish: for every \(x\) and every \(h_1,\ldots ,h_{d+1}\), \(\mathrm{GP}(f, d{+}1, x, h_1,\ldots ,h_{d+1}) = 1\).

Definition 76.15 Degree \(\le d\) for Boolean functions

A Boolean function \(f : \{ 0,1\} ^n \to \{ 0,1\} \) has degree \(\le d\) if its \(\pm 1\) lift \((-1)^f\) has degree \(\le d\) in the sense of LowDegreeTest.is_degree_le_pm1.

Lemma 76.16 Degree monotone in \(d\)

If \(f\) has degree \(\le d\), then \(f\) also has degree \(\le d+1\).

Lemma 76.17 Degree \(\le 0\) iff constant

A Boolean function \(f : \{ 0,1\} ^n \to \{ 0,1\} \) has degree \(\le 0\) if and only if it is constant, i.e. \(f(x) = f(y)\) for all \(x, y \in \{ 0,1\} ^n\).

If \(f : \{ 0,1\} ^n \to \{ 0,1\} \) is \(\mathbb {F}_2\)-linear (i.e. \(f(x \oplus y) = f(x) \oplus f(y)\) for all \(x,y\)), then \(f\) has degree \(\le 1\).

If \(f : \{ 0,1\} ^n \to \{ 0,1\} \) has degree \(\le 1\), then \(f\) is affine: either \(f\) is \(\mathbb {F}_2\)-linear or \(\lnot f\) (bitwise negation) is \(\mathbb {F}_2\)-linear.

76.2.5 Reed–Muller codes

Definition 76.20 Reed–Muller code

The Reed–Muller code \(\mathrm{RM}(d, m)\) is the set of all Boolean functions \(f : \{ 0,1\} ^m \to \{ 0,1\} \) of degree \(\le d\):

\[ \mathrm{RM}(d, m) = \{ f : \{ 0,1\} ^m \to \{ 0,1\} \mid \deg (f) \le d \} . \]
Lemma 76.21 Reed–Muller code is monotone in degree

\(\mathrm{RM}(d, n) \subseteq \mathrm{RM}(d+1, n)\) for every \(d\) and \(n\).

Lemma 76.22 Zero function in every Reed–Muller code

The constant-false function \(\mathbf{0} : \{ 0,1\} ^n \to \{ 0,1\} \) belongs to \(\mathrm{RM}(d, n)\) for every \(d\).

Lemma 76.23 One function in every Reed–Muller code

The constant-true function \(\mathbf{1} : \{ 0,1\} ^n \to \{ 0,1\} \) belongs to \(\mathrm{RM}(d, n)\) for every \(d\).

Lemma 76.24 Linear functions in \(\mathrm{RM}(1,n)\)

Every \(\mathbb {F}_2\)-linear function \(f : \{ 0,1\} ^n \to \{ 0,1\} \) belongs to \(\mathrm{RM}(1, n)\).

Lemma 76.25 \(\mathrm{RM}(1,n)\) consists of affine functions

Every \(f \in \mathrm{RM}(1, n)\) is affine: either \(f\) is \(\mathbb {F}_2\)-linear or \(\lnot f\) is \(\mathbb {F}_2\)-linear.

76.2.6 Gowers norms

Definition 76.26 Gowers norm (power form)

The \(k\)-th Gowers uniformity norm to the \(2^k\)-th power is

\[ \| f\| _{U^k}^{2^k} = \mathbb {E}_{x \in \{ 0,1\} ^n}\, \mathbb {E}_{h_1,\ldots ,h_k}\! \left[ \mathrm{GP}(f, k, x, h_1,\ldots ,h_k)\right]. \]

For a Boolean function \(f : \{ 0,1\} ^n \to \{ 0,1\} \) and \(d \ge 0\),

\[ \| (-1)^f\| _{U^{d+1}}^{2^{d+1}} = 1 \; \iff \; \deg (f) \le d. \]

For \(f : \{ 0,1\} ^n \to \mathbb {R}\), \(\| f\| _{U^2}^4 = \| f * f\| _2^2\), where \(f * f\) denotes the convolution of \(f\) with itself.

Lemma 76.29 \(U^2\) norm in terms of Fourier coefficients

For \(f : \{ 0,1\} ^n \to \mathbb {R}\),

\[ \| f\| _{U^2}^4 = \sum _{S \subseteq [n]} \hat{f}(S)^4. \]
Lemma 76.30 Gowers norm at most 1 for \(\pm 1\) functions

For every Boolean function \(f : \{ 0,1\} ^n \to \{ 0,1\} \) and every \(k \ge 0\), \(\| (-1)^f\| _{U^k}^{2^k} \le 1\).

76.2.7 Gowers product algebra

Definition 76.31 Pointwise product of Boolean functions
#

The pointwise product of two real-valued functions on the hypercube: \((f \cdot g)(x) = f(x) \cdot g(x)\).

Lemma 76.32 Gowers product is multiplicative

For \(f, g : \{ 0,1\} ^n \to \mathbb {R}\), \(\mathrm{GP}(f \cdot g, k, x, h_1,\ldots ,h_k) = \mathrm{GP}(f, k, x, h_1,\ldots ,h_k) \cdot \mathrm{GP}(g, k, x, h_1,\ldots ,h_k)\).

Lemma 76.33 Degree absorption for Gowers product

If \(g\) has degree \(\le d\), then for any \(f\), \(\mathrm{GP}(f \cdot g, d{+}1, x, h_1,\ldots ,h_{d+1}) = \mathrm{GP}(f, d{+}1, x, h_1,\ldots ,h_{d+1})\): multiplying by a low-degree function does not change the \((d{+}1)\)-fold Gowers product.

Lemma 76.34 Gowers norm preserved under multiplication by low-degree function

If \(g\) has degree \(\le d\), then \(\| f \cdot g\| _{U^{d+1}}^{2^{d+1}} = \| f\| _{U^{d+1}}^{2^{d+1}}\).

76.2.8 Degree test

Definition 76.35 Degree test acceptance probability

The probability that the \((d{+}1)\)-fold derivative test accepts \(f\):

\[ \Pr [\text{accept}] = \mathbb {E}_{x}\, \mathbb {E}_{h_1,\ldots ,h_{d+1}} \bigl[\mathbf{1}[\mathrm{GP}((-1)^f,\, d{+}1,\, x,\, h_1,\ldots ,h_{d+1}) = 1]\bigr]. \]
Definition 76.36 \(\varepsilon \)-far from degree \(d\)

A function \(f : \{ 0,1\} ^n \to \{ 0,1\} \) is \(\varepsilon \)-far from degree \(\le d\) if \(0 \le \varepsilon \le 1\) and \(\operatorname{dist}(f, g) \ge \varepsilon \) for every Boolean function \(g\) of degree \(\le d\).

For every Boolean function \(f : \{ 0,1\} ^n \to \{ 0,1\} \),

\[ \Pr [\text{accept}] = \frac{1 + \| (-1)^f\| _{U^{d+1}}^{2^{d+1}}}{2}. \]
Lemma 76.38 Completeness of the degree test

If \(\deg (f) \le d\), then the degree-\(d\) test accepts \(f\) with probability \(1\).

If \(\deg (f) \gt d\), then the degree-\(d\) test accepts \(f\) with probability strictly less than \(1\).

76.2.9 Fourier analysis and degree

For every \(S \subseteq [n]\), the Fourier character \(\chi _S\) has degree \(\le 1\).

Lemma 76.41 Negated character has degree \(\le 1\)

For every \(S \subseteq [n]\), the function \(-\chi _S\) has degree \(\le 1\).

Lemma 76.42 Fourier characters have degree \(\le d\) for \(d \ge 1\)

For every \(S \subseteq [n]\) and \(d \ge 1\), the character \(\chi _S\) has degree \(\le d\).

Lemma 76.43 Negated character has degree \(\le d\) for \(d \ge 1\)

For every \(S \subseteq [n]\) and \(d \ge 1\), the function \(-\chi _S\) has degree \(\le d\).

Lemma 76.44 Fourier coefficients bounded when \(\varepsilon \)-far from degree \(d\)

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from every degree-\(\le d\) Boolean function, then for every \(S \subseteq [n]\), \(\hat{f}(S) \le 1 - 2\varepsilon \).

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from degree \(\le d\), then for every \(S \subseteq [n]\), \(-\hat{f}(S) \le 1 - 2\varepsilon \) (equivalently, \(\hat{f}(S) \ge -(1-2\varepsilon )\)).

Lemma 76.46 Absolute Fourier coefficients bounded when \(\varepsilon \)-far

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from degree \(\le d\), then for every \(S \subseteq [n]\), \(|\hat{f}(S)| \le 1 - 2\varepsilon \).

76.2.10 Quantitative soundness

Definition 76.47 \(\varepsilon \)-far from Reed–Muller

A function \(f\) is \(\varepsilon \)-far from \(\mathrm{RM}(d, n)\) if it is \(\varepsilon \)-far from degree \(\le d\) in the sense of LowDegreeTest.epsilon_far_from_degree.

Definition 76.48 Reed–Muller test acceptance probability

The acceptance probability of the Reed–Muller test, defined as the degree-test acceptance probability LowDegreeTest.degree_test_accept_prob.

For every Boolean function \(f : \{ 0,1\} ^n \to \{ 0,1\} \), \(\sum _{S \subseteq [n]} \hat{f}(S)^2 = 1\).

Lemma 76.50 \(U^2\) norm bounded when \(\varepsilon \)-far from degree \(d\)

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from degree \(\le d\), then \(\| (-1)^f\| _{U^2}^4 \le (1 - 2\varepsilon )^2\).

Lemma 76.51 Squaring bound
#

For \(\varepsilon \in [0, \tfrac {1}{2}]\), \((1 - 2\varepsilon )^2 \le 1 - 2\varepsilon \).

Lemma 76.52 \(\varepsilon \le 1/2\) when \(\varepsilon \)-far from degree \(\ge 1\)

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from degree \(\le d\), then \(\varepsilon \le 1/2\).

Lemma 76.53 \(U^2\) norm bounded by \(1 - 2\varepsilon \) when \(\varepsilon \)-far (base case)

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from degree \(\le d\), then \(\| (-1)^f\| _{U^2}^4 \le 1 - 2\varepsilon \).

Lemma 76.54 \(\varepsilon \)-far is monotone in \(d\)

If \(d' \le d\) and \(f\) is \(\varepsilon \)-far from degree \(\le d\), then \(f\) is also \(\varepsilon \)-far from degree \(\le d'\).

If \(d \ge 2\) and \(f : \{ 0,1\} ^n \to \{ 0,1\} \) is \(\varepsilon \)-far from degree \(\le d\), then there exists \(\delta \ge \varepsilon \) such that for every \(h \in \{ 0,1\} ^n\) there exists a Boolean function \(g\) of degree \(\le d{-}1\) with \(\operatorname{dist}(\Delta _h f, g) \ge \delta \). Intuitively, the multiplicative derivative \(\Delta _h f(x) = f(x) \oplus f(x \oplus h)\) is on average far from degree \(\le d{-}1\).

Lemma 76.56 Gowers norm bound when \(\varepsilon \)-far (inductive)

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from degree \(\le d\), then there exists a constant \(c \gt 0\) such that \(\| (-1)^f\| _{U^{d+1}}^{2^{d+1}} \le 1 - c\varepsilon \). For \(d = 1\) one may take \(c = 2\); the case \(d \ge 2\) follows by induction using the derivative distance lemma (BKSSZ 2010).

Lemma 76.57 Quantitative soundness of the degree test

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from every degree-\(\le d\) function, then \(\Pr [\text{degree test accepts } f] \le 1 - \varepsilon \).

Lemma 76.58 Completeness of the Reed–Muller test

Every codeword \(f \in \mathrm{RM}(d, n)\) is accepted by the degree-\(d\) test with probability \(1\).

Lemma 76.59 Soundness of the Reed–Muller test

If \(d \ge 1\) and \(f\) is \(\varepsilon \)-far from every codeword of \(\mathrm{RM}(d, n)\), then the Reed–Muller test accepts \(f\) with probability at most \(1 - \varepsilon \), i.e. it rejects with probability at least \(\varepsilon \).