Håstad's 3-Bit Linear Test and Spectral Decoding Weights #
This module formalizes Håstad's noisy 3-bit linear test on folded (odd, Cslib.BitString.IsOdd)
Long Code tables over a single projection π : β → γ, its exact Walsh–Fourier expansion, and the
Cauchy–Schwarz and Parseval soundness bound via low-degree spectral decoding weights [Has01].
The Long Code, folding and the mod-2 projection Cslib.BitString.projectSet live in
CslibFrontier.Foundations.BooleanAnalysis.LongCode.
Main definitions #
Cslib.PCP.Hastad.linearCorr,Cslib.PCP.Hastad.linearProb: correlation and acceptance probability of Håstad's 3-bit linear test on an edgeπ : β → γ.Cslib.PCP.Hastad.spectralWeight: low-degree Fourier decoding weights onα.
Main results #
Cslib.PCP.Hastad.linearCorr_longCode,Cslib.PCP.Hastad.linearProb_longCode: completeness1 - δfor 3-bit linear tests on valid Long Code tables.Cslib.PCP.Hastad.linearCorr_eq_sum: exact Walsh–Fourier expansion of Håstad's 3-bit test correlation.Cslib.PCP.Hastad.sum_spectralWeight_le_one: Parseval bound showing thatspectralWeight k Bis a sub-probability distribution onγ.Cslib.PCP.Hastad.linearCorr_sq_le: single-edge Cauchy–Schwarz + Parseval soundness bound.Cslib.PCP.Hastad.linearCorr_id_eq_sum: the noisy linearity test on one table Arora and Barak, Lemma 19.12.Cslib.PCP.Hastad.two_mul_sub_le_sum_lowDegree_cube_mul,Cslib.PCP.Hastad.two_mul_sub_le_sum_lowDegree_abs_cube: the low-degree cubic Fourier sums of a table the test accepts with probability1/2 + δare at least2 δ - ε, the corrected form of Arora and Barak, Corollary 19.13 and Exercise 19.2.
References #
- J. Håstad, Some optimal inapproximability results
- S. Arora, B. Barak, Computational Complexity: A Modern Approach, Chapter 22
- R. O'Donnell, Analysis of Boolean Functions, Chapter 7
- S. Arora, B. Barak, Computational Complexity: A Modern Approach, web draft 2007-01-08, Lemma 19.12, Corollary 19.13 (pp. 392–393 / PDF 408–409) and Exercise 19.2
Håstad's 3-bit linear test and its Fourier expansion #
The correlation of Håstad's 3-bit linear test on a projection π : β → γ at noise rate δ
between tables B : (γ → Bool) → Bool and A : (β → Bool) → Bool Håstad, Section 5:
the expected product of the ±1 signs of B f, A g, and A ((f ∘ π) + g + μ) over uniform
f : γ → Bool, uniform g : β → Bool, and δ-biased Bernoulli noise μ : β → Bool.
The acceptance probability of Håstad's 3-bit linear test: the probability that
(B f ^^ A g ^^ A ((f ∘ π) + g + μ)) = false under uniform f, g and δ-biased noise μ.
The acceptance probability of Håstad's 3-bit linear test is
1 / 2 + 1 / 2 * linearCorr π δ B A.
Completeness of Håstad's 3-bit linear test (correlation): on matching Long Code tables
longCode (π x) and longCode x, the correlation is 1 - 2 * δ.
Completeness of Håstad's 3-bit linear test (probability): matching Long Code tables
longCode (π x) and longCode x pass the test with probability 1 - δ.
Walsh–Fourier expansion of Håstad's 3-bit linear test
Håstad, proof of Lemma 5.2, Eqs. (9)–(12):
the correlation equals
∑ T : Finset β, (1 - 2 * δ) ^ #T * fourierCoeff F_A T ^ 2 * fourierCoeff F_B (projectSet π T).
Spectral decoding weights and Cauchy–Schwarz soundness bound #
The low-degree spectral decoding weight of x : α for table A : (α → Bool) → Bool at
degree cutoff k: ∑_{T : #T < k, x ∈ T} fourierCoeff F_A T ^ 2 / #T
Håstad, Proof of Lemma 5.2.
By Parseval's identity, the spectral decoding weights form a sub-probability distribution:
∑ x, spectralWeight k A x ≤ 1.
Cauchy–Schwarz and Parseval soundness bound for Håstad's 3-bit linear test
Håstad, Lemma 5.2: for any folded (odd) table B, any table A, noise rate
0 ≤ δ ≤ 1 / 2, and degree cutoff k, the squared correlation linearCorr π δ B A ^ 2 is
at most (1 - 2 * δ) ^ (2 * k) + k ^ 2 * ∑ x, spectralWeight k A x * spectralWeight k B (π x).
The linearity test and its low-degree cubic weight #
The noisy linearity test Arora and Barak, Lemma 19.12: testing one table
A against itself along the identity, the correlation is the noise-weighted cubic Fourier sum
∑ T, (1 - 2 δ) ^ #T * F̂(T) ^ 3.
Corollary 19.13 of Arora and Barak, corrected: the noise-weighted low-degree cubic sum.
If the noisy linearity test with noise rate ρ ∈ (0, 1/2] accepts A with probability at least
1/2 + δ, then for ε > 0 and every degree cutoff k ≥ ln (1/ε) / (2 ρ),
∑_{#T ≤ k} F̂(T) ^ 3 (1 - 2 ρ) ^ #T ≥ 2 δ - ε.
This is not the printed corollary, which claims the bound for the unweighted sum
∑_{#T ≤ k} F̂(T) ^ 3. That statement is false: for the table on three bits that is -1
exactly at 000 and 111, at ρ = ε = 1/4, the test accepts with probability 1/2 + 1/64,
but the unweighted sum is 1/8 - 3/8 = -1/4 < 1/32 - 1/4 for every k ≥ 2. The
coefficients of degree above k contribute at most (1 - 2 ρ) ^ k ≤ ε in absolute value, by
Parseval's identity and |F̂(T)| ≤ 1.
Corollary 19.13 of Arora and Barak, corrected: the low-degree absolute cubic sum. Under the
hypotheses of two_mul_sub_le_sum_lowDegree_cube_mul, ∑_{#T ≤ k} |F̂(T)| ^ 3 ≥ 2 δ - ε. This is
not the printed corollary, which has the signed sum ∑_{#T ≤ k} F̂(T) ^ 3.