Documentation

CslibFrontier.Computability.Circuit.Boolean.HardnessAmplification.DirectProduct.Density

Density of good direct-product seeds #

This module completes the counting analysis of the direct-product decoder dpDecode of Impagliazzo, Jaiswal, Kabanets and Wigderson (preprint of 2009-10-19, Theorem 1.2; Carmosino, Impagliazzo, Kabanets and Kolokolova cite it as their Theorem 4.1). It is stated for the library formulation of the decoder module: uniform k-tuples with a random position subset in place of IJKW's k-sets.

The per-seed theorem card_filter_dpDecode_err_le_ge assumes two things about a seed (P, b₀): the consistent tuples have density at least δ / 2, and at most an ε / 64 fraction of them have ε k / 64 or more disagreements with f. This module shows that a δ / 4 fraction of the pairs (P, b₀), with P an s-subset, satisfy both, provided C' agrees with f ^ k on a δ fraction of tuples. It then counts the seeds (P, b₀, v) that decode well by two-stage counting (Cslib.Probability.mul_le_card_filter_product): each good pair has half of the trial vectors. The density step has two parts. A seed whose class among the agreeing tuples is small is rare (card_filter_card_filter_agree_lt_le). A consistent tuple of an agreeing seed disagrees with f only outside P, and a random s-subset rarely misses ε k / 64 positions, so heavy consistent tuples are rare (sum_sum_card_heavy_le, via card_filter_disjoint_powersetCard_le). In the tuple formulation this takes the place of IJKW's Lemmas 3.11–3.12 (excellent edges are abundant, and a random seed is good with noticeable probability); the per-seed analysis of their Lemmas 3.8–3.10 is in the decoder module.

The constants (2 s ≤ k, s ≥ (64 / ε) log (512 / (ε δ ^ 2)), m ≥ (16 / δ) log (8 / ε) and the fraction δ / 8) are ours, derived for the tuple formulation; they are not IJKW's. The results are counting statements about a pure function; DirectProduct.Complexity bounds the decoder's circuit size.

Main definitions #

Main results #

References #

def Cslib.Circuits.Boolean.DirectProduct.agreeing {U : Type u_1} {V : Type u_2} [Fintype U] [DecidableEq V] {k : ℕ} (C' : (Fin k → U) → Fin k → V) (f : U → V) :
Finset (Fin k → U)

The tuples on which C' agrees with the direct product of f.

@[simp]
theorem Cslib.Circuits.Boolean.DirectProduct.mem_agreeing {U : Type u_1} {V : Type u_2} [Fintype U] [DecidableEq V] {k : ℕ} {C' : (Fin k → U) → Fin k → V} {f : U → V} {y : Fin k → U} :
y ∈ agreeing C' f ↔ ∀ (j : Fin k), C' y j = f (y j)
theorem Cslib.Circuits.Boolean.DirectProduct.card_filter_card_filter_agree_lt_le {U : Type u_1} [Fintype U] [DecidableEq U] {k : ℕ} (G : Finset (Fin k → U)) (P : Finset (Fin k)) {t : ℝ} (ht : 0 ≤ t) :
↑{b ∈ G | ↑{y ∈ G | ∀ i ∈ P, y i = b i}.card < t}.card ≤ ↑(Fintype.card U) ^ P.card * t

Small classes are rare: grouping tuples by their values on P, the tuples of a set G whose class meets G in fewer than t tuples number at most #U ^ #P * t.

theorem Cslib.Circuits.Boolean.DirectProduct.sum_sum_card_heavy_le {U : Type u_1} {V : Type u_2} [Fintype U] [DecidableEq U] [DecidableEq V] {k : ℕ} (C' : (Fin k → U) → Fin k → V) (f : U → V) (s : ℕ) (hk : 0 < k) (α : ℝ) :
∑ P ∈ Finset.powersetCard s Finset.univ, ∑ b₀ ∈ agreeing C' f, ↑{y ∈ consistent C' P b₀ | α * ↑k ≤ ↑(disagreements C' f y).card}.card ≤ ↑(Fintype.card U) ^ (k - s) * ↑(Fintype.card U) ^ k * ↑(k.choose s) * Real.exp (-(α * ↑s))

Heavy consistent tuples are rare. Summed over the s-subsets P and the agreeing seeds b₀, the consistent tuples with at least α k disagreements number at most #U ^ (k - s) #U ^ k C(k, s) exp (-α s). A consistent tuple of an agreeing seed has no disagreement in P, and a random s-subset rarely misses α k positions (card_filter_disjoint_powersetCard_le).

theorem Cslib.Circuits.Boolean.DirectProduct.sum_card_filter_good_ge {U : Type u_1} {V : Type u_2} [Fintype U] [DecidableEq U] [DecidableEq V] {k : ℕ} (C' : (Fin k → U) → Fin k → V) (f : U → V) {s : ℕ} {ε δ : ℝ} (hε : 0 < ε) (hδ : 0 < δ) (hε1 : ε ≤ 1) (hδ1 : δ ≤ 1) (hG : δ * ↑(Fintype.card U) ^ k ≤ ↑(agreeing C' f).card) (hsk : s ≤ k) (hs : 64 / ε * Real.log (512 / (ε * δ ^ 2)) ≤ ↑s) :
δ / 4 * ↑(k.choose s) * ↑(Fintype.card U) ^ k ≤ ∑ P ∈ Finset.powersetCard s Finset.univ, ↑{b₀ ∈ agreeing C' f | δ / 2 * ↑(Fintype.card U) ^ Pᶜ.card ≤ ↑(consistent C' P b₀).card ∧ ↑{y ∈ consistent C' P b₀ | ε / 64 * ↑k ≤ ↑(disagreements C' f y).card}.card ≤ ε / 64 * ↑(consistent C' P b₀).card}.card

Many good seeds. If C' agrees with the direct product of f on a δ fraction of tuples and s ≥ (64 / ε) log (512 / (ε δ ^ 2)), then, summed over the s-subsets P, the agreeing seeds b₀ that satisfy both hypotheses of card_filter_dpDecode_err_le_ge number at least δ / 4 C(k, s) #U ^ k. The constants are ours.

theorem Cslib.Circuits.Boolean.DirectProduct.card_filter_seed_dpDecode_err_le_ge {U : Type u_1} {V : Type u_2} [Fintype U] [DecidableEq V] {k : ℕ} (C' : (Fin k → U) → Fin k → V) (f : U → V) (dflt : V) {s m : ℕ} {ε δ : ℝ} (hε : 0 < ε) (hδ : 0 < δ) (hε1 : ε ≤ 1) (hδ1 : δ ≤ 1) (hG : δ * ↑(Fintype.card U) ^ k ≤ ↑(agreeing C' f).card) (hsk : 2 * s ≤ k) (hs : 64 / ε * Real.log (512 / (ε * δ ^ 2)) ≤ ↑s) (hm : 16 / δ * Real.log (8 / ε) ≤ ↑m) :
δ / 8 * ↑(k.choose s) * ↑(Fintype.card U) ^ k * ↑(Fintype.card (Trial U k)) ^ m ≤ ↑{x ∈ Finset.powersetCard s Finset.univ ×ˢ Finset.univ | match x with | (P, b₀, v) => ↑{x : U | dpDecode C' dflt P b₀ v x ≠ f x}.card ≤ ε * ↑(Fintype.card U)}.card

Direct-product decoding (IJKW, preprint of 2009-10-19, Theorem 1.2; CIKK, Theorem 4.1), counting form for the tuple formulation. Suppose C' agrees with the direct product of f on a δ fraction of k-tuples, 2 s ≤ k, s ≥ (64 / ε) log (512 / (ε δ ^ 2)) and m ≥ (16 / δ) log (8 / ε). Then at least a δ / 8 fraction of seeds (P, b₀, v), with P an s-subset of positions, b₀ a tuple and v a vector of m trials, give a hypothesis dpDecode C' dflt P b₀ v that differs from f on at most ε #U inputs. The constants are ours, derived for the tuple formulation; they are not IJKW's.