Documentation

CslibFrontier.Foundations.Data.Code.MultilinearitySoundness

Polynomial soundness of the multilinearity test #

This module proves the soundness theorem of Babai, Fortnow and Lund for the multilinearity test, both in the general δ-approximate form and at δ = 0: if in every direction fewer than an ε fraction of the axis-parallel lines fail to be δ-approximately affine, then f agrees with a multilinear function outside a 3 n ^ 2 (ε + δ + 1 / |F|) fraction of the points, when |F| ≥ 40 n ^ 2, 0 ≤ δ ≤ 1 / (400 n ^ 2) and ε ≤ 1 / (800 n ^ 3) (Cslib.Code.exists_isMultilinear_hammingDist_lt_of_approx) Babai, Fortnow, Lund, Theorem 5.13.

A line is δ-approximately affine (Cslib.Code.IsApproxAffine) when some affine function agrees with it outside at most δ |F| points. At δ = 0 this coincides with Cslib.Code.IsAffineFun, yielding Cslib.Code.exists_isMultilinear_hammingDist_lt without the δ term. For δ > 0, BFL's Definition 3.4 / Definition 5.3 uses strict inequality (< δ |F| disagreements), which implies IsApproxAffine δ, so their set of δ-wrong points contains Cslib.Code.wrongPointsApprox f δ i. Via Markov's inequality on a line-vs-point oracle (Cslib.Code.exists_isMultilinear_hammingDist_lt_of_lineOracle), this bounds the distance from multilinear when an affine line oracle agrees with f with error < ε * δ / n.

Note on citations: the primary PDF for [BFL91] was not re-verified on disk here; the section/definition/lemma/theorem numbers above follow Cslib.Code.Multilinearity (locator not re-verified against primary PDF).

The proof follows theirs.

Main definitions #

Main results #

References #

def Cslib.Code.IsApproxAffine {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (δ : ℝ) (g : F → F) :

A function of one variable is δ-approximately affine when some affine function agrees with it outside at most δ * |F| points. At δ = 0 this coincides with Cslib.Code.IsAffineFun; for δ > 0, any function satisfying the strict < δ * |F| condition of Babai, Fortnow, Lund, Definition 3.4 satisfies IsApproxAffine δ.

@[simp]
theorem Cslib.Code.isApproxAffine_zero {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {g : F → F} :

0-approximate affineness is exact affineness.

noncomputable def Cslib.Code.wrongPointsApprox {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n : ℕ} (f : (Fin n → F) → F) (δ : ℝ) (i : Fin n) :
Finset (Fin n → F)

The points whose axis-parallel line in direction i is not δ-approximately affine under f. Each δ-wrong line contributes all of its |F| points Babai, Fortnow, Lund, Definition 5.3.

@[simp]
theorem Cslib.Code.wrongPointsApprox_zero {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n : ℕ} (f : (Fin n → F) → F) (i : Fin n) :

At δ = 0, wrongPointsApprox f 0 i coincides with wrongPoints f i.

theorem Cslib.Code.IsMultilinear.hammingDist_le_of_two_mul_le_approx {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n : ℕ} {f g : (Fin n → F) → F} (hg : IsMultilinear g) {δ : ℝ} (hδ : 0 ≤ δ) (h : 2 * hammingDist f g ≤ Fintype.card F ^ n) :
↑(hammingDist f g) ≤ (2 * ↑n + 1) * (∑ i : Fin n, ↑(wrongPointsApprox f δ i).card + ↑n * δ * ↑(Fintype.card F) ^ n) + 2 * ↑n ^ 2 * ↑(Fintype.card F) ^ (n - 1)

The self-improvement lemma for δ-approximate affineness: a multilinear function g that agrees with f on at least half of the points agrees with it outside at most (2 n + 1) (∑ᵢ |Wᵢ| + n δ |F| ^ n) + 2 n ^ 2 |F| ^ (n - 1) points, where Wᵢ = wrongPointsApprox f δ i Babai, Fortnow, Lund, Lemma 5.10.

theorem Cslib.Code.IsMultilinear.hammingDist_le_of_two_mul_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n : ℕ} {f g : (Fin n → F) → F} (hg : IsMultilinear g) (h : 2 * hammingDist f g ≤ Fintype.card F ^ n) :
hammingDist f g ≤ (2 * n + 1) * ∑ i : Fin n, (wrongPoints f i).card + 2 * n ^ 2 * Fintype.card F ^ (n - 1)

The self-improvement lemma: a multilinear function g that agrees with f on at least half of the points agrees with it outside at most (2 n + 1) ∑ᵢ |Wᵢ| + 2 n ^ 2 |F| ^ (n - 1) points, where Wᵢ = wrongPoints f i Babai, Fortnow, Lund, Lemma 5.10.

theorem Cslib.Code.exists_isMultilinear_hammingDist_lt_of_approx {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n : ℕ} (f : (Fin n → F) → F) {ε δ : ℝ} (hn : 0 < n) (hq : 40 * n ^ 2 ≤ Fintype.card F) (hδ0 : 0 ≤ δ) (hδ : δ ≤ 1 / (400 * ↑n ^ 2)) (hε : ε ≤ 1 / (800 * ↑n ^ 3)) (hW : ∀ (i : Fin n), ↑(wrongPointsApprox f δ i).card < ε * ↑(Fintype.card F) ^ n) :
∃ (g : (Fin n → F) → F), IsMultilinear g ∧ ↑(hammingDist f g) < 3 * ↑n ^ 2 * (ε + δ + 1 / ↑(Fintype.card F)) * ↑(Fintype.card F) ^ n

Polynomial soundness of the multilinearity test (δ-approximate lines): if in every direction fewer than an ε fraction of lines fail to be δ-approximately affine (Cslib.Code.wrongPointsApprox), |F| ≥ 40 n ^ 2, 0 ≤ δ ≤ 1 / (400 n ^ 2) and ε ≤ 1 / (800 n ^ 3), then some multilinear function agrees with f outside fewer than a 3 n ^ 2 (ε + δ + 1 / |F|) fraction of the points Babai, Fortnow, Lund, Theorem 5.13.

theorem Cslib.Code.exists_isMultilinear_hammingDist_lt {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n : ℕ} (f : (Fin n → F) → F) {ε : ℝ} (hn : 0 < n) (hq : 40 * n ^ 2 ≤ Fintype.card F) (hε : ε ≤ 1 / (800 * ↑n ^ 3)) (hW : ∀ (i : Fin n), ↑(wrongPoints f i).card < ε * ↑(Fintype.card F) ^ n) :
∃ (g : (Fin n → F) → F), IsMultilinear g ∧ ↑(hammingDist f g) < 3 * ↑n ^ 2 * (ε + 1 / ↑(Fintype.card F)) * ↑(Fintype.card F) ^ n

Polynomial soundness of the multilinearity test, at δ = 0: if in every direction fewer than an ε fraction of the lines carry a restriction of f that is not affine, |F| ≥ 40 n ^ 2 and ε ≤ 1 / (800 n ^ 3), then some multilinear function agrees with f outside fewer than a 3 n ^ 2 (ε + 1 / |F|) fraction of the points Babai, Fortnow, Lund, Theorem 5.13.

theorem Cslib.Code.exists_isMultilinear_hammingDist_lt_of_lineOracle {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {n : ℕ} (f : (Fin n → F) → F) (L : Fin n → (Fin n → F) → F → F) (hL : ∀ (i : Fin n) (x : Fin n → F), IsAffineFun (L i x)) {ε δ : ℝ} (hn : 0 < n) (hq : 40 * n ^ 2 ≤ Fintype.card F) (hδ0 : 0 ≤ δ) (hδ : δ ≤ 1 / (400 * ↑n ^ 2)) (hε : ε ≤ 1 / (800 * ↑n ^ 3)) (hrej : (Finset.univ.expect fun (i : Fin n) => Finset.univ.expect fun (x : Fin n → F) => if L i (Function.update x i 0) (x i) = f x then 0 else 1) < ε * δ / ↑n) :
∃ (g : (Fin n → F) → F), IsMultilinear g ∧ ↑(hammingDist f g) < 3 * ↑n ^ 2 * (ε + δ + 1 / ↑(Fintype.card F)) * ↑(Fintype.card F) ^ n

Two-prover Test0 soundness: if a line oracle L : Fin n → (Fin n → F) → (F → F) returning affine functions on canonical axis-parallel lines update x i 0 agrees with a point oracle f on a uniformly random (i, x) with rejection probability < ε * δ / n, then every direction has fewer than an ε fraction of δ-wrong lines and f agrees with a multilinear function outside a 3 n ^ 2 (ε + δ + 1 / |F|) fraction of the points Babai, Fortnow, Lund, §5.