Documentation

CslibFrontier.Computability.Communication.Discrepancy.Extractor

Low discrepancy extracts from independent sources #

The signed expectation of a Boolean gadget under independent sources is bounded by its uniform discrepancy times the product of the largest atom bounds and the input alphabet sizes (abs_sum_mul_signVal_le_discrepancy_of_mass_le). Substituting the min-entropy atom bounds gives abs_sum_mul_signVal_le_discrepancy_mul_rpow_minEntropy, the quantitative extractor estimate underlying [Chattopadhyay, Filmus, Koroth, Meir and Pitassi, Lemma 2.9] [CFK+21]. The exact parameter substitution is abs_sum_mul_signVal_le_rpow_of_minEntropy.

The source uses convex combinations of flat distributions. Here an elementary alternative selects the positive row sums, then the positive column sums. This proves the estimate for arbitrary real atom bounds without rounding min-entropies to integers. Independence is represented explicitly by the product of the two marginal masses in the expectation. This module does not prove the lifting simulation or the discrepancy XOR lemma.

Splitting rows according to the sign of their bias gives an averaged absolute-bias bound. Strict Markov on the event where the row bias exceeds the threshold then gives the sampling lemma with its strict probability bound, including the source's one-bit entropy overhead.

Main results #

References #

theorem Cslib.Communication.abs_sum_mul_signVal_le_discrepancy_of_weight_le {X : Type u_1} {Y : Type u_2} [Fintype X] [Fintype Y] [Nonempty X] [Nonempty Y] (p : X → ℝ) (q : Y → ℝ) (g : X → Y → Bool) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp₀ : ∀ (x : X), 0 ≤ p x) (hp : ∀ (x : X), p x ≤ a) (hq₀ : ∀ (y : Y), 0 ≤ q y) (hq : ∀ (y : Y), q y ≤ b) :
|∑ x : X, ∑ y : Y, p x * q y * BitString.signVal (g x y)| ≤ a * b * (↑(Fintype.card X) * ↑(Fintype.card Y)) * discrepancy (Probability.PMF.uniformOfFintype (X × Y)) g

The rectangle discrepancy bound extends to nonnegative, possibly subnormalized product weights. This form also applies after restricting one source to an event.

theorem Cslib.Communication.abs_sum_mul_signVal_le_discrepancy_of_mass_le {X : Type u_1} {Y : Type u_2} [Fintype X] [Fintype Y] [Nonempty X] [Nonempty Y] (p : PMF X) (q : PMF Y) (g : X → Y → Bool) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp : ∀ (x : X), (p x).toReal ≤ a) (hq : ∀ (y : Y), (q y).toReal ≤ b) :
|∑ x : X, ∑ y : Y, (p x).toReal * (q y).toReal * BitString.signVal (g x y)| ≤ a * b * (↑(Fintype.card X) * ↑(Fintype.card Y)) * discrepancy (Probability.PMF.uniformOfFintype (X × Y)) g

Uniform discrepancy bounds the bias of a gadget under independent sources with atom caps a and b. The alphabets may differ, and the atom caps are arbitrary nonnegative reals.

The extractor estimate in CFKMP, Lemma 2.9, before substituting the discrepancy and entropy parameters: the bias is at most |X| |Y| disc(g) 2^(-H∞(p)-H∞(q)).

theorem Cslib.Communication.abs_sum_mul_signVal_le_rpow_of_minEntropy {X : Type u_1} [Fintype X] [Nonempty X] (p q : PMF X) (g : X → X → Bool) {b : ℕ} {η lam : ℝ} (hcard : Fintype.card X = 2 ^ b) (hdisc : discrepancy (Probability.PMF.uniformOfFintype (X × X)) g ≤ 2 ^ (-η * ↑b)) (hentropy : (2 - η + lam) * ↑b ≤ Probability.PMF.minEntropy p + Probability.PMF.minEntropy q) :
|∑ x : X, ∑ y : X, (p x).toReal * (q y).toReal * BitString.signVal (g x y)| ≤ 2 ^ (-lam * ↑b)

Low-discrepancy extraction, CFKMP, arXiv:1904.13056v4, Lemma 2.9, for an alphabet of size 2^b. If the gadget has discrepancy at most 2^(-η b) and the two independent inputs have combined min-entropy at least (2 - η + lam)b, its output has bias at most 2^(-lam b). No integrality assumption on either min-entropy is used.

theorem Cslib.Communication.sum_mul_abs_sum_signVal_le_discrepancy {X : Type u_1} {Y : Type u_2} [Fintype X] [Fintype Y] [Nonempty X] [Nonempty Y] (p : PMF X) (q : PMF Y) (g : X → Y → Bool) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp : ∀ (x : X), (p x).toReal ≤ a) (hq : ∀ (y : Y), (q y).toReal ≤ b) :
∑ x : X, (p x).toReal * |∑ y : Y, (q y).toReal * BitString.signVal (g x y)| ≤ 2 * (a * b * (↑(Fintype.card X) * ↑(Fintype.card Y)) * discrepancy (Probability.PMF.uniformOfFintype (X × Y)) g)

Averaged row bias is at most twice the independent-source discrepancy bound. The factor two pays for the two possible signs of the row expectation.

theorem Cslib.Communication.sum_mass_filter_rowBias_lt {X : Type u_1} {Y : Type u_2} [Fintype X] [Fintype Y] [Nonempty X] [Nonempty Y] (p : PMF X) (q : PMF Y) (g : X → Y → Bool) {a b t β : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp : ∀ (x : X), (p x).toReal ≤ a) (hq : ∀ (y : Y), (q y).toReal ≤ b) (ht : 0 < t) (hβ : 0 < β) (hbound : 2 * (a * b * (↑(Fintype.card X) * ↑(Fintype.card Y)) * discrepancy (Probability.PMF.uniformOfFintype (X × Y)) g) ≤ t * β) :
∑ x : X with t < |∑ y : Y, (q y).toReal * BitString.signVal (g x y)|, (p x).toReal < β

A strict tail bound for the bias of a row sampled from an independent source. This is the sampling step of CFKMP Lemma 2.10 in atom-cap form.

theorem Cslib.Communication.sum_mass_filter_rowBias_lt_rpow_of_minEntropy {X : Type u_1} [Fintype X] [Nonempty X] (p q : PMF X) (g : X → X → Bool) {b : ℕ} {η γ lam : ℝ} (hcard : Fintype.card X = 2 ^ b) (hdisc : discrepancy (Probability.PMF.uniformOfFintype (X × X)) g ≤ 2 ^ (-η * ↑b)) (hentropy : (2 - η + γ + lam) * ↑b + 1 ≤ Probability.PMF.minEntropy p + Probability.PMF.minEntropy q) :
∑ x : X with 2 ^ (-lam * ↑b) < |∑ y : X, (q y).toReal * BitString.signVal (g x y)|, (p x).toReal < 2 ^ (-γ * ↑b)

Low-discrepancy sampling, CFKMP, arXiv:1904.13056v4, Lemma 2.10. The probability that the conditional output bias exceeds 2^(-lam b) is strictly less than 2^(-γ b). The one-bit entropy overhead accounts for positive and negative row biases.