Documentation

CslibFrontier.Probability.SmallBias.Pointwise

Pointwise bounds from parity biases #

Fourier inversion bounds the relative error of each atom by the sum of the absolute nonempty parity biases. Unlike a statistical-distance estimate, this implies that every string is in the support when that sum is less than one. This is the pointwise version of Vazirani's lemma used in low-discrepancy lifting [Chattopadhyay, Filmus, Koroth, Meir and Pitassi, Lemma 2.5] [CFK+21], including its cardinality-dependent bias hypothesis. Controlling only high-order parities gives the min-entropy variant, Lemma 2.6 of the same source.

Main results #

theorem Cslib.BitString.bias_bind_map_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : Type u_2} {Y : Type u_3} [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) (F : X → Y → ι → Bool) (S : Finset ι) :
bias (p.bind fun (x : X) => PMF.map (F x) q) S = ∑ x : X, ∑ y : Y, (p x).toReal * (q y).toReal * signVal (parityOn S (F x y))

The parity bias of a two-source output law is the corresponding signed expectation under the independent input sources.

theorem Cslib.BitString.sum_bias_mul_chi {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) (z : ι → Bool) :
∑ S : Finset ι, bias p S * chi ℝ S z = 2 ^ Fintype.card ι * (p z).toReal

Fourier inversion expressed using the unnormalised parity biases of a probability mass function.

theorem Cslib.BitString.abs_mul_mass_sub_one_le_sum_abs_bias {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) (z : ι → Bool) :
|2 ^ Fintype.card ι * (p z).toReal - 1| ≤ ∑ S : Finset ι with S.Nonempty, |bias p S|

The relative error at any atom is bounded by the total absolute nonempty parity bias.

theorem Cslib.BitString.IsSmallBias.abs_mul_mass_sub_one_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {ε : ℝ} {p : PMF (ι → Bool)} (hp : IsSmallBias ε p) (z : ι → Bool) :
|2 ^ Fintype.card ι * (p z).toReal - 1| ≤ (2 ^ Fintype.card ι - 1) * ε

Small bias gives pointwise closeness to uniform ([Gol07c], Exercise 8.34): every atom of an ε-biased distribution on n bits has normalized mass within (2 ^ n - 1) ε of one, that is, probability within (1 - 2⁻ⁿ) ε of 2⁻ⁿ.

theorem Cslib.BitString.mul_mass_le_sum_abs_bias {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) (z : ι → Bool) :
2 ^ Fintype.card ι * (p z).toReal ≤ ∑ S : Finset ι, |bias p S|

A normalized atom is at most the sum of all absolute parity biases.

theorem Cslib.BitString.mul_mass_le_card_add_sum_abs_bias {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) (t : ℕ) (z : ι → Bool) :
2 ^ Fintype.card ι * (p z).toReal ≤ ↑{S : Finset ι | S.card < t}.card + ∑ S : Finset ι with t ≤ S.card, |bias p S|

Controlling only the higher-order parity biases bounds the atom mass by the number of uncontrolled low-order parities plus the total controlled bias.

theorem Cslib.BitString.mem_support_of_sum_abs_bias_lt_one {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) (h : ∑ S : Finset ι with S.Nonempty, |bias p S| < 1) (z : ι → Bool) :

A parity-bias sum below one forces full support.

theorem Cslib.BitString.abs_mul_mass_sub_one_le_of_bias_le_geometric {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) {ε q : ℝ} (hε : 0 ≤ ε) (hq : 0 ≤ q) (hq1 : q ≤ 1) (hnq : ↑(Fintype.card ι) * q ≤ 1 / 2) (hbias : ∀ (S : Finset ι), S.Nonempty → |bias p S| ≤ ε * q ^ S.card) (z : ι → Bool) :
|2 ^ Fintype.card ι * (p z).toReal - 1| ≤ ε

Geometrically decaying parity biases imply multiplicative, pointwise closeness to uniform. The decay parameter q is explicit so the result also applies to restricted coordinate sets.

theorem Cslib.BitString.abs_mul_mass_sub_one_le_of_bias_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) {ε : ℝ} (hε : 0 ≤ ε) (hbias : ∀ (S : Finset ι), S.Nonempty → |bias p S| ≤ ε * (1 / (2 * ↑(Fintype.card ι))) ^ S.card) (z : ι → Bool) :
|2 ^ Fintype.card ι * (p z).toReal - 1| ≤ ε

Pointwise Vazirani lemma [Chattopadhyay, Filmus, Koroth, Meir and Pitassi, Lemma 2.5] [CFK+21]. The absolute deviation is expressed after multiplication by 2^n, equivalently each atom lies between (1-ε)/2^n and (1+ε)/2^n. The zero-coordinate cube is included.

theorem Cslib.BitString.mul_mass_le_card_add_one_of_high_order_bias_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) {q : ℝ} {t : ℕ} (ht : 1 ≤ t) (hq : 0 ≤ q) (hq1 : q ≤ 1) (hnq : ↑(Fintype.card ι) * q ≤ 1 / 2) (hbias : ∀ (S : Finset ι), t ≤ S.card → |bias p S| ≤ q ^ S.card) (z : ι → Bool) :
2 ^ Fintype.card ι * (p z).toReal ≤ ↑{S : Finset ι | S.card < t}.card + 1

High-order geometric bias bounds charge the low-order parities by their exact number. This estimate also includes cubes with zero or one coordinate.

theorem Cslib.BitString.mul_mass_le_pow_of_high_order_bias_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) {q : ℝ} {t : ℕ} (hn : 2 ≤ Fintype.card ι) (ht : 1 ≤ t) (hq : 0 ≤ q) (hq1 : q ≤ 1) (hnq : ↑(Fintype.card ι) * q ≤ 1 / 2) (hbias : ∀ (S : Finset ι), t ≤ S.card → |bias p S| ≤ q ^ S.card) (z : ι → Bool) :
2 ^ Fintype.card ι * (p z).toReal ≤ ↑(Fintype.card ι) ^ t

High-order geometric bias bounds control the largest atom. Low-order parities are charged only their number, without assuming any bound better than one on their biases.

theorem Cslib.BitString.le_minEntropy_of_high_order_bias_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : PMF (ι → Bool)) {t : ℕ} (hn : 1 ≤ Fintype.card ι) (ht : 1 ≤ t) (hbias : ∀ (S : Finset ι), t ≤ S.card → |bias p S| ≤ (1 / (2 * ↑(Fintype.card ι))) ^ S.card) :

Min-entropy Vazirani lemma [Chattopadhyay, Filmus, Koroth, Meir and Pitassi, Lemma 2.6] [CFK+21]. Bias bounds are required only for sets of at least t coordinates. The source's one-bit slack also covers a one-coordinate cube.