Documentation

CslibFrontier.Probability.Extractor.ResilientTwoSource

The Chattopadhyay–Zuckerman reduction from resilient functions to two-source extractors #

Combining a strong seeded condenser cond : Y → Fin D → Seed₂ (having at most q_bad bad seeds outside which the condensed distribution has min-entropy deficiency at most Δ), an advice t-non-malleable extractor nmExt : X → Seed₂ → Fin D → Bool, and a (t + 1)-independent (q_bad, ε_res)-resilient Boolean function f : BitString D → Bool with (t + 1)-independent bias at most ε_bias yields a two-source extractor fun x y => f fun i => nmExt x (cond y i) i Chattopadhyay–Zuckerman.

This is the conditional reduction endpoint of the Chattopadhyay–Zuckerman framework: instantiating it unconditionally for polylogarithmic min-entropy requires explicit non-malleable extractors and optimal depth-4 resilient functions, which are not constructed here. Both condenser-based and strong-extractor specializations are included below.

Main definitions #

Main results #

References #

Advice t-non-malleable extractors #

def Cslib.Probability.IsAdviceNonMalleableExtractor {X : Type u_1} {Seed : Type u_2} {Adv : Type u_3} [Fintype Seed] [Nonempty Seed] (nmExt : X → Seed → Adv → Bool) (t : ℕ) (k ε : ℝ) :

A (t, k, ε)-non-malleable extractor with advice: for every source of min-entropy at least k, every target advice a₀, and at most t deterministic tampering functions f j : Seed → Seed × Adv never equal to (r, a₀), the output nmExt x r a₀ stays ε-close to uniform even given r and all tampered outputs nmExt x (f j r).1 (f j r).2.

theorem Cslib.Probability.IsAdviceNonMalleableExtractor.mono {X : Type u_1} {Seed : Type u_2} {Adv : Type u_3} [Fintype Seed] [Nonempty Seed] {nmExt : X → Seed → Adv → Bool} {t t' : ℕ} {k k' ε ε' : ℝ} (h : IsAdviceNonMalleableExtractor nmExt t k ε) (ht : t' ≤ t) (hk : k ≤ k') (hε : ε ≤ ε') :

Advice non-malleable extractors remain valid for smaller t, larger min-entropy k, and larger error ε.

theorem Cslib.Probability.isAdviceNonMalleableExtractor_zero_iff {X : Type u_1} {Seed : Type u_2} {Adv : Type u_3} [Fintype Seed] [Nonempty Seed] (nmExt : X → Seed → Adv → Bool) (k ε : ℝ) :
IsAdviceNonMalleableExtractor nmExt 0 k ε ↔ ∀ (a₀ : Adv), IsStrongExtractor (fun (x : X) (r : Seed) => nmExt x r a₀) k ε

At t = 0, an advice non-malleable extractor is equivalently a strong seeded extractor for every fixed advice a₀.

Seeded correlation and strong-extractor Markov bounds #

theorem Cslib.Probability.exists_badSet_isSource_of_isStrongExtractor {Y : Type u_1} {Seed₂ : Type u_2} {D : ℕ} [NeZero D] [Fintype Seed₂] [Nonempty Seed₂] {cond : Y → Fin D → Seed₂} {k₂ ε_ext : ℝ} (hcond : IsStrongExtractor cond k₂ ε_ext) {q : PMF Y} (hq : k₂ ≤ PMF.minEntropy q) {δ : NNReal} (hδ : 0 < δ) :
∃ (B : Finset (Fin D)), B.card ≤ ⌊ε_ext * ↑D / ↑δ⌋₊ ∧ ∀ i ∉ B, PMF.IsSource (PMF.map (fun (y : Y) => cond y i) q) (Real.logb 2 ↑(Fintype.card Seed₂)) δ

Markov lemma for strong extractors: if cond : Y → Fin D → Seed₂ is a strong (k₂, ε_ext)-extractor, then for every k₂-source q on Y and every δ > 0, there is a bad set B of at most ⌊ε_ext * D / δ⌋ seeds outside which q.map (fun y => cond y i) is a (log₂ |Seed₂|, δ)-source.

Conditional small-bias and the two-source extractor reduction #

theorem Cslib.Probability.isKWiseSmallBias_map_restrict_of_condenser {X : Type u_1} {Y : Type u_2} {Seed₂ : Type u_3} [Finite X] [Finite Y] {D : ℕ} [Fintype Seed₂] [Nonempty Seed₂] {cond : Y → Fin D → Seed₂} {nmExt : X → Seed₂ → Fin D → Bool} {p : PMF X} {q : PMF Y} {B : Finset (Fin D)} {k₁ Δ ε_nm : ℝ} {γ : NNReal} {t : ℕ} (hp : k₁ ≤ PMF.minEntropy p) (hB : ∀ i ∉ B, PMF.IsSource (PMF.map (fun (y : Y) => cond y i) q) (Real.logb 2 ↑(Fintype.card Seed₂) - Δ) γ) (hnm : IsAdviceNonMalleableExtractor nmExt t k₁ ε_nm) :
BitString.IsKWiseSmallBias (t + 1) (2 * ↑γ + 2 ^ (Δ + 1) * ε_nm) (PMF.map Bᶜ.restrict (p.bind fun (x : X) => PMF.map (fun (y : Y) (i : Fin D) => nmExt x (cond y i) i) q))

Conditional (t + 1)-wise small bias on good seeds: if p has min-entropy at least k₁, every seed i ∉ B condenses q to a (log₂ |Seed₂| - Δ, γ)-source, and nmExt is t-non-malleable with advice for min-entropy k₁, then the good-coordinate marginal Bᶜ.restrict of (nmExt x (cond y i) i)_i is (t + 1)-wise (2 * γ + 2 ^ (Δ + 1) * ε_nm)-biased.

theorem Cslib.Probability.isTwoSourceExtractor_of_resilient_condenser {X : Type u_1} {Y : Type u_2} {Seed₂ : Type u_3} [Finite X] [Finite Y] {D : ℕ} [NeZero D] [Fintype Seed₂] [Nonempty Seed₂] (cond : Y → Fin D → Seed₂) (nmExt : X → Seed₂ → Fin D → Bool) (f : BitString D → Bool) {k₁ k₂ Δ ε_nm ε_bias ε_res : ℝ} {t q_bad : ℕ} {γ : NNReal} (hcond : ∀ (q : PMF Y), k₂ ≤ PMF.minEntropy q → ∃ (B : Finset (Fin D)), B.card ≤ q_bad ∧ ∀ i ∉ B, PMF.IsSource (PMF.map (fun (y : Y) => cond y i) q) (Real.logb 2 ↑(Fintype.card Seed₂) - Δ) γ) (hnm : IsAdviceNonMalleableExtractor nmExt t k₁ ε_nm) (hq_bad : q_bad ≤ D) (hf_bias : ∀ (D' : PMF (BitString D)), BitString.IsKWiseIndependent (t + 1) D' → |∑ z : BitString D, (D' z).toReal * BitString.bitVal ℝ (f z) - 1 / 2| ≤ ε_bias) (hf_res : BitString.IsKWiseResilient (t + 1) q_bad ε_res f) :
IsTwoSourceExtractor (fun (x : X) (y : Y) => f fun (i : Fin D) => nmExt x (cond y i) i) k₁ k₂ (ε_bias + ε_res + ↑D ^ (t + 1) * (2 * ↑γ + 2 ^ (Δ + 1) * ε_nm))

Chattopadhyay–Zuckerman two-source extractor reduction: combining a strong seeded condenser cond (missing at most q_bad bad seeds, with min-entropy deficiency Δ and error γ on good seeds), an advice t-non-malleable extractor nmExt, and a (t + 1)-independent (q_bad, ε_res)-resilient function f of (t + 1)-independent bias at most ε_bias yields a two-source extractor fun x y => f fun i => nmExt x (cond y i) i Chattopadhyay–Zuckerman.

theorem Cslib.Probability.isTwoSourceExtractor_of_resilient_strongExtractor {X : Type u_1} {Y : Type u_2} {Seed₂ : Type u_3} [Finite X] [Finite Y] {D : ℕ} [NeZero D] [Fintype Seed₂] [Nonempty Seed₂] (cond : Y → Fin D → Seed₂) (nmExt : X → Seed₂ → Fin D → Bool) (f : BitString D → Bool) {k₁ k₂ ε_ext ε_nm ε_bias ε_res : ℝ} {δ : NNReal} {t q_bad : ℕ} (hδ : 0 < δ) (hcond : IsStrongExtractor cond k₂ ε_ext) (hnm : IsAdviceNonMalleableExtractor nmExt t k₁ ε_nm) (hq_floor : ⌊ε_ext * ↑D / ↑δ⌋₊ ≤ q_bad) (hq_bad : q_bad ≤ D) (hf_bias : ∀ (D' : PMF (BitString D)), BitString.IsKWiseIndependent (t + 1) D' → |∑ z : BitString D, (D' z).toReal * BitString.bitVal ℝ (f z) - 1 / 2| ≤ ε_bias) (hf_res : BitString.IsKWiseResilient (t + 1) q_bad ε_res f) :
IsTwoSourceExtractor (fun (x : X) (y : Y) => f fun (i : Fin D) => nmExt x (cond y i) i) k₁ k₂ (ε_bias + ε_res + ↑D ^ (t + 1) * (2 * ↑δ + 2 * ε_nm))

Two-source extractor reduction using a strong seeded extractor: instantiating isTwoSourceExtractor_of_resilient_condenser with Δ = 0 via Markov's inequality on IsStrongExtractor cond k₂ ε_ext.