Documentation

CslibFrontier.Foundations.Combinatorics.WeightedTail

Weighted tails for independent coordinates #

Draw a function f : ∀ i, α i uniformly, so that its coordinates are independent and uniform. The coordinates where it hits a fixed set C i ⊆ α i form a set {i | f i ∈ C i}. Any property of that set has probability at most the sum, over the sets S with the property, of the probability of hitting at every coordinate of S. As a count (card_filter_pi_le_sum_prod): #{f | P {i | f i ∈ C i}} ≤ ∑_{S with P S} ∏_{i ∈ S} #(C i) ∏_{i ∉ S} #(α i).

If coordinate i carries weight w i and hits with probability at most exp (-w i), then the hits have total weight at least T with probability at most 2 ^ |ι| exp (-T) (card_filter_le_sum_weight_le). Every set S of weight at least T is hit everywhere with probability at most exp (-T), and there are at most 2 ^ |ι| such sets. This is the crude union bound over sets of coordinates. It loses the factor 2 ^ |ι| that a Chernoff-type bound avoids, but it needs no independence beyond the product structure and no bound on the weights.

Main results #

theorem Cslib.card_filter_pi_le_sum_prod {ι : Type u_1} [Fintype ι] [DecidableEq ι] {α : ι → Type u_2} [(i : ι) → Fintype (α i)] [(i : ι) → DecidableEq (α i)] (C : (i : ι) → Finset (α i)) (P : Finset ι → Prop) [DecidablePred P] :
{f : (i : ι) → α i | P {i : ι | f i ∈ C i}}.card ≤ ∑ S : Finset ι with P S, (∏ i ∈ S, (C i).card) * ∏ i ∈ Sᶜ, Fintype.card (α i)

Union bound over the sets of hit coordinates. The functions f : ∀ i, α i whose hit set {i | f i ∈ C i} has property P number at most the sum, over the sets S with property P, of the number of functions hitting at every coordinate of S.

theorem Cslib.card_filter_le_sum_weight_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {α : ι → Type u_2} [(i : ι) → Fintype (α i)] [(i : ι) → DecidableEq (α i)] (C : (i : ι) → Finset (α i)) (w : ι → ℝ) (hC : ∀ (i : ι), ↑(C i).card ≤ Real.exp (-w i) * ↑(Fintype.card (α i))) (T : ℝ) :
↑{f : (i : ι) → α i | T ≤ ∑ i : ι with f i ∈ C i, w i}.card ≤ 2 ^ Fintype.card ι * Real.exp (-T) * ↑(Fintype.card ((i : ι) → α i))

Weighted tail by a union bound. If coordinate i hits C i with probability at most exp (-w i), then the coordinates hit by f have total weight at least T for at most a 2 ^ |ι| exp (-T) fraction of the functions f.