Documentation

CslibFrontier.Probability.SmallBias.AlmostIndependent

Almost k-wise independence and Fourier smoothing #

A k-wise ε-biased distribution on n bits is close in statistical distance to an exact k-wise independent distribution: this module gives an elementary Fourier smoothing argument adjusting the low-degree Fourier coefficients of the probability mass function (Cslib.BitString.exists_isKWiseIndependent_dist_le), along with the direct converse that γ-closeness on every k-subset implies k-wise (2 * γ)-bias (Cslib.BitString.isKWiseSmallBias_of_dist_map_restrict_le).

Compare the classic smoothing theorem of Alon, Goldreich, and Mansour (2003) and Chattopadhyay–Zuckerman; our explicit Fourier-projection density perturbation gives a self-contained bound dist D D' ≤ B / (1 + B) ≤ n ^ k * ε with an unconditional counting bound #{S | S.Nonempty ∧ #S ≤ k} ≤ n ^ k (Cslib.BitString.card_filter_nonempty_card_le_pow).

Main results #

References #

theorem Cslib.Probability.PMF.abs_sum_mul_sub_le_dist {α : Type u_1} [Fintype α] (p q : PMF α) (g : α → ℝ) (hg0 : ∀ (a : α), 0 ≤ g a) (hg1 : ∀ (a : α), g a ≤ 1) :
|∑ a : α, (p a).toReal * g a - ∑ a : α, (q a).toReal * g a| ≤ dist p q

Changing the distribution moves the expectation of a [0, 1]-valued function by at most the statistical distance (removing the factor of 2 from symmetric bounds).

At most n ^ k nonempty subsets of an n-element type have cardinality at most k.

theorem Cslib.BitString.isKWiseSmallBias_of_dist_map_restrict_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {D : PMF (ι → Bool)} {k : ℕ} {γ : ℝ} (hD : ∀ (T : Finset ι), T.card ≤ k → dist (PMF.map T.restrict D) (Probability.PMF.uniformOfFintype (↥T → Bool)) ≤ γ) :
IsKWiseSmallBias k (2 * γ) D

If every marginal of D on at most k coordinates is within statistical distance γ of uniform, then D is k-wise (2 * γ)-biased.

theorem Cslib.BitString.exists_isKWiseIndependent_dist_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (D : PMF (ι → Bool)) (k : ℕ) :
∃ (D' : PMF (ι → Bool)), IsKWiseIndependent k D' ∧ dist D D' ≤ (∑ S : Finset ι with S.Nonempty ∧ S.card ≤ k, |bias D S|) / (1 + ∑ S : Finset ι with S.Nonempty ∧ S.card ≤ k, |bias D S|)

Fourier smoothing (exact weight form): any distribution D on ι → Bool is within statistical distance B / (1 + B) of an exact k-wise independent distribution D', where B = ∑ S with S.Nonempty ∧ #S ≤ k, |bias D S|. Constructed by subtracting the low-degree Fourier perturbation from D and adding a uniform shift to restore nonnegativity.

theorem Cslib.BitString.exists_isKWiseIndependent_dist_le_of_isKWiseSmallBias {ι : Type u_1} [Fintype ι] [DecidableEq ι] {D : PMF (ι → Bool)} {k : ℕ} {ε : ℝ} (hε : 0 ≤ ε) (hD : IsKWiseSmallBias k ε D) :
∃ (D' : PMF (ι → Bool)), IsKWiseIndependent k D' ∧ dist D D' ≤ ↑(Fintype.card ι) ^ k * ε

Fourier smoothing for k-wise ε-biased distributions: a k-wise ε-biased distribution on n bits is within statistical distance n ^ k * ε of an exact k-wise independent distribution.

theorem Cslib.BitString.exists_isKWiseIndependent_dist_le_of_dist_map_restrict_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {D : PMF (ι → Bool)} {k : ℕ} {γ : ℝ} (hD : ∀ (T : Finset ι), T.card ≤ k → dist (PMF.map T.restrict D) (Probability.PMF.uniformOfFintype (↥T → Bool)) ≤ γ) :
∃ (D' : PMF (ι → Bool)), IsKWiseIndependent k D' ∧ dist D D' ≤ 2 * ↑(Fintype.card ι) ^ k * γ

Fourier smoothing from marginal closeness: if every k-subset marginal of D on n bits is within statistical distance γ of uniform, then D is within statistical distance 2 * n ^ k * γ of an exact k-wise independent distribution.