Documentation

CslibFrontier.Probability.Resilience.NOBF

Non-oblivious bit-fixing extraction and resilient extensions #

Resilient functions extract near-uniform bits from non-oblivious bit-fixing (NOBF) sources whose good coordinates Qᶜ are t-wise independent (or close to it) while the adversarial coordinates Q depend arbitrarily on the good bits Chattopadhyay–Zuckerman.

This module supplies:

  1. Uniform extension of a distribution on Qᶜ to the full cube (Cslib.BitString.extendUniform), preserving t-wise small-bias and t-wise independence, together with the equivalence between cube-wide IsKWiseResilient and the Qᶜ-marginal formulation noted as open in CslibFrontier.Probability.Resilience (isKWiseResilient_iff_forall_compl).
  2. A sharp fiberwise NOBF extraction bound (Cslib.BitString.abs_sum_bitVal_sub_le_coalitionInfluence_add_dist, Cslib.BitString.dist_map_uniformOfFintype_bool_le_of_coalitionInfluence) with factor 1 on both coalitionInfluence D Q f and the good-bit marginal distance dist (Z.map Qᶜ.restrict) (D.map Qᶜ.restrict).
  3. Composition with Fourier smoothing (Cslib.BitString.dist_map_uniformOfFintype_bool_le_of_isKWiseSmallBias_restrict): if Z.map Qᶜ.restrict is t-wise γ-biased outside a coalition Q of size #Q ≤ q ≤ n, then any t-independent (q, ε₂)-resilient f with t-independent bias at most ε₁ outputs a bit within statistical distance ε₁ + ε₂ + n ^ t * γ of uniform.

Main definitions #

Main results #

References #

Uniform extensions from the outside coordinates #

noncomputable def Cslib.BitString.extendUniform {ι : Type u_1} [Fintype ι] [DecidableEq ι] (Q : Finset ι) (D' : PMF (↥Qᶜ → Bool)) :
PMF (ι → Bool)

Extend a distribution D' on the coordinates outside Q to a distribution on all of ι → Bool by sampling the coordinates in Q uniformly and independently.

@[simp]
theorem Cslib.BitString.map_restrict_compl_extendUniform {ι : Type u_1} [Fintype ι] [DecidableEq ι] (Q : Finset ι) (D' : PMF (↥Qᶜ → Bool)) :

Projecting extendUniform Q D' back to Qᶜ recovers D'.

theorem Cslib.BitString.isKWiseSmallBias_map_restrict {ι : Type u_1} [Fintype ι] [DecidableEq ι] {D : PMF (ι → Bool)} {k : ℕ} {ε : ℝ} (hD : IsKWiseSmallBias k ε D) (T : Finset ι) :

Any restriction D.map T.restrict preserves k-wise ε-bias.

Any restriction D.map T.restrict preserves k-wise independence.

theorem Cslib.BitString.bias_extendUniform_of_not_disjoint {ι : Type u_1} [Fintype ι] [DecidableEq ι] {Q S : Finset ι} (hSQ : ¬Disjoint S Q) (D' : PMF (↥Qᶜ → Bool)) :
bias (extendUniform Q D') S = 0

If S intersects Q, then extendUniform Q D' has zero bias on S.

theorem Cslib.BitString.bias_extendUniform_of_disjoint {ι : Type u_1} [Fintype ι] [DecidableEq ι] {Q S : Finset ι} (hSQ : Disjoint S Q) (D' : PMF (↥Qᶜ → Bool)) :
bias (extendUniform Q D') S = bias D' (Finset.subtype (fun (x : ι) => x ∈ Qᶜ) S)

If S is disjoint from Q, then the bias of extendUniform Q D' on S equals the bias of D' on S embedded into Qᶜ.

theorem Cslib.BitString.isKWiseSmallBias_extendUniform {ι : Type u_1} [Fintype ι] [DecidableEq ι] {Q : Finset ι} {D' : PMF (↥Qᶜ → Bool)} {k : ℕ} {ε : ℝ} (hε : 0 ≤ ε) (hD' : IsKWiseSmallBias k ε D') :

Extending a k-wise ε-biased distribution on Qᶜ by uniform bits on Q yields a k-wise ε-biased distribution on ι → Bool (for 0 ≤ ε).

theorem Cslib.BitString.isKWiseIndependent_extendUniform {ι : Type u_1} [Fintype ι] [DecidableEq ι] {Q : Finset ι} {D' : PMF (↥Qᶜ → Bool)} {k : ℕ} (hD' : IsKWiseIndependent k D') :

Extending a k-wise independent distribution on Qᶜ by uniform bits on Q yields a k-wise independent distribution on ι → Bool.

Outside-marginal equivalence and coalition monotonicity #

theorem Cslib.BitString.coalitionInfluence_eq_of_map_restrict_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {D₁ D₂ : PMF (ι → Bool)} {Q : Finset ι} (h : PMF.map Qᶜ.restrict D₁ = PMF.map Qᶜ.restrict D₂) (f : (ι → Bool) → Bool) :

Two distributions with the same Qᶜ-marginal give Q the exact same coalition influence.

theorem Cslib.BitString.isKWiseResilient_iff_forall_compl {ι : Type u_1} [Fintype ι] [DecidableEq ι] {t q : ℕ} {ε : ℝ} {f : (ι → Bool) → Bool} :
IsKWiseResilient t q ε f ↔ ∀ (Q : Finset ι), Q.card = q → ∀ (D' : PMF (↥Qᶜ → Bool)), IsKWiseIndependent t D' → coalitionInfluence (extendUniform Q D') Q f ≤ ε

Cube-versus-marginal resilience equivalence: t-independent (q, ε)-resilience over all cube distributions D is equivalent to resilience over uniform extensions extendUniform Q D' of t-wise independent distributions D' on Qᶜ, resolving the equivalence left unformalized in CslibFrontier.Probability.Resilience.

theorem Cslib.BitString.IsKWiseResilient.coalitionInfluence_le_of_card_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {t q : ℕ} {ε : ℝ} {f : (ι → Bool) → Bool} (hf : IsKWiseResilient t q ε f) {Q : Finset ι} (hQq : Q.card ≤ q) (hq : q ≤ Fintype.card ι) {D : PMF (ι → Bool)} (hD : IsKWiseIndependent t D) :

A t-independent (q, ε)-resilient function bounds every smaller coalition #Q ≤ q whenever q ≤ Fintype.card ι.

Non-oblivious bit-fixing extraction #

theorem Cslib.BitString.abs_sum_bitVal_sub_le_coalitionInfluence_add_dist {ι : Type u_1} [Fintype ι] [DecidableEq ι] (Z D : PMF (ι → Bool)) (Q : Finset ι) (f : (ι → Bool) → Bool) :
|∑ x : ι → Bool, (Z x).toReal * bitVal ℝ (f x) - ∑ x : ι → Bool, (D x).toReal * bitVal ℝ (f x)| ≤ coalitionInfluence D Q f + dist (PMF.map Qᶜ.restrict Z) (PMF.map Qᶜ.restrict D)

Sharp NOBF extraction lemma: if Z and D agree on Qᶜ up to statistical distance dist (Z.map Qᶜ.restrict) (D.map Qᶜ.restrict), then for any Boolean function f, the expectation of f under Z differs from its expectation under D by at most coalitionInfluence D Q f + dist (Z.map Qᶜ.restrict) (D.map Qᶜ.restrict). Both terms carry exact constant 1.

NOBF output distance to uniform: if f is nearly balanced under D, then applying f to Z gives a bit within |𝔼_D[bitVal ∘ f] - 1/2| + coalitionInfluence D Q f + dist (Z.map Qᶜ.restrict) (D.map Qᶜ.restrict) of uniform.

theorem Cslib.BitString.dist_map_uniformOfFintype_bool_le_of_isKWiseSmallBias_restrict {ι : Type u_1} [Fintype ι] [DecidableEq ι] (Z : PMF (ι → Bool)) (Q : Finset ι) (f : (ι → Bool) → Bool) {t q : ℕ} {ε₁ ε₂ γ : ℝ} (hQq : Q.card ≤ q) (hq : q ≤ Fintype.card ι) (hγ : 0 ≤ γ) (hZ : IsKWiseSmallBias t γ (PMF.map Qᶜ.restrict Z)) (hf_bias : ∀ (D' : PMF (ι → Bool)), IsKWiseIndependent t D' → |∑ x : ι → Bool, (D' x).toReal * bitVal ℝ (f x) - 1 / 2| ≤ ε₁) (hf_res : IsKWiseResilient t q ε₂ f) :

Extraction from an almost-t-wise independent NOBF source: if Z.map Qᶜ.restrict is t-wise γ-biased with #Q ≤ q ≤ n, and f is t-independent (q, ε₂)-resilient with t-independent bias at most ε₁, then Z.map f is within ε₁ + ε₂ + n ^ t * γ of uniform.