Documentation

CslibFrontier.Probability.Divergence.Pi

Tensorization and mixture bounds for Kullback–Leibler divergence #

For finite distributions, Kullback–Leibler divergence adds across independent coordinates (Cslib.Probability.PMF.toReal_klDiv_pi) and scales by n on n-fold i.i.d. laws (Cslib.Probability.PMF.toReal_klDiv_iid). Combined with Pinsker's inequality (Cslib.Probability.PMF.dist_le_sqrt_toReal_klDiv_div_two), this bounds the statistical distance of product and i.i.d. distributions in terms of single-coordinate divergences.

For a prior μ : PMF V and channel P : V → PMF X, the observation-first joint law μ.bind fun v => (P v).map (·, v) satisfies the golden mixture identity (Cslib.Probability.PMF.mutualInfo_bind_mul_log_two_eq_sum_klDiv_sub): for every reference law Q dominating the supported P v, I(X; V) · log 2 = (∑ v, μ v · D(P v ‖ Q)) - D(μ.bind P ‖ Q). Dropping the nonnegative mixture divergence D(μ.bind P ‖ Q) yields the KL-center (Yang–Barron) and pairwise-KL upper bounds on mutual information used in generalized Fano minimax lower bounds ([Tsy09], Section 2.6; [CT06], Chapter 2).

Main results #

References #

Support inclusion and KL tensorization for independent products #

theorem Cslib.Probability.PMF.support_pi_subset_iff {ι : Type u_1} [Fintype ι] {α : ι → Type u_2} [∀ (i : ι), Finite (α i)] {p q : (i : ι) → PMF (α i)} :
(pi p).support ⊆ (pi q).support ↔ ∀ (i : ι), (p i).support ⊆ (q i).support

An independent product pi p has support contained in (pi q).support if and only if each coordinate distribution p i has support contained in (q i).support.

theorem Cslib.Probability.PMF.support_iid_subset {β : Type u_3} {p q : PMF β} (h : p.support ⊆ q.support) (n : ℕ) :
(iid p n).support ⊆ (iid q n).support

Support inclusion transfers from p, q to n-fold i.i.d. laws iid p n, iid q n.

theorem Cslib.Probability.PMF.sum_mul_log_div_pi {ι : Type u_1} [Fintype ι] {α : ι → Type u_2} [DecidableEq ι] [(i : ι) → Fintype (α i)] {p q : (i : ι) → PMF (α i)} (h : ∀ (i : ι), (p i).support ⊆ (q i).support) :
∑ x : (i : ι) → α i, ((pi p) x).toReal * Real.log (((pi p) x).toReal / ((pi q) x).toReal) = ∑ i : ι, ∑ a : α i, ((p i) a).toReal * Real.log (((p i) a).toReal / ((q i) a).toReal)

Finite-sum Kullback–Leibler divergence is additive across independent coordinates.

theorem Cslib.Probability.PMF.toReal_klDiv_pi {ι : Type u_1} [Fintype ι] {α : ι → Type u_2} [∀ (i : ι), Finite (α i)] [(i : ι) → MeasurableSpace (α i)] [∀ (i : ι), MeasurableSingletonClass (α i)] {p q : (i : ι) → PMF (α i)} (h : ∀ (i : ι), (p i).support ⊆ (q i).support) :

Tensorization of Kullback–Leibler divergence for independent finite products: D(∏ᵢ pᵢ ‖ ∏ᵢ qᵢ) = ∑ᵢ D(pᵢ ‖ qᵢ), in nats.

Tensorization of Kullback–Leibler divergence for n-fold i.i.d. distributions: D(p^{⊗ n} ‖ q^{⊗ n}) = n · D(p ‖ q), in nats.

theorem Cslib.Probability.PMF.dist_pi_le_sqrt_sum_klDiv_div_two {ι : Type u_1} [Fintype ι] {α : ι → Type u_2} [DecidableEq ι] [(i : ι) → Fintype (α i)] [(i : ι) → MeasurableSpace (α i)] [∀ (i : ι), MeasurableSingletonClass (α i)] {p q : (i : ι) → PMF (α i)} (h : ∀ (i : ι), (p i).support ⊆ (q i).support) :
dist (pi p) (pi q) ≤ √((∑ i : ι, (InformationTheory.klDiv (p i).toMeasure (q i).toMeasure).toReal) / 2)

Product Pinsker bound: statistical distance between independent finite products is at most √((∑ᵢ D(pᵢ ‖ qᵢ)) / 2).

I.i.d. Pinsker bound: statistical distance between n-fold i.i.d. laws is at most √(n · D(p ‖ q) / 2).

Mixture KL identity and mutual-information radius bounds #

theorem Cslib.Probability.PMF.map_fst_bind_prodMk {V : Type u_1} {X : Type u_2} (μ : PMF V) (P : V → PMF X) :
PMF.map Prod.fst (μ.bind fun (v : V) => PMF.map (fun (x : X) => (x, v)) (P v)) = μ.bind P

First marginal of the observation-first joint law μ.bind fun v => (P v).map (·, v).

theorem Cslib.Probability.PMF.map_snd_bind_prodMk {V : Type u_1} {X : Type u_2} (μ : PMF V) (P : V → PMF X) :
PMF.map Prod.snd (μ.bind fun (v : V) => PMF.map (fun (x : X) => (x, v)) (P v)) = μ

Second marginal of the observation-first joint law μ.bind fun v => (P v).map (·, v).

theorem Cslib.Probability.PMF.toReal_bind_map_prodMk_apply {V : Type u_1} {X : Type u_2} (μ : PMF V) (P : V → PMF X) (x : X) (v : V) :
((μ.bind fun (v : V) => PMF.map (fun (x : X) => (x, v)) (P v)) (x, v)).toReal = (μ v).toReal * ((P v) x).toReal

Real probability mass of the observation-first joint law μ.bind fun v => (P v).map (·, v) at (x, v).

theorem Cslib.Probability.PMF.mutualInfo_bind_mul_log_two_eq_sum_klDiv_sub {V : Type u_1} {X : Type u_2} [Fintype V] [Finite X] [MeasurableSpace X] [MeasurableSingletonClass X] (μ : PMF V) (P : V → PMF X) {Q : PMF X} (hQ : ∀ v ∈ μ.support, (P v).support ⊆ Q.support) :
mutualInfo (μ.bind fun (v : V) => PMF.map (fun (x : X) => (x, v)) (P v)) * Real.log 2 = ∑ v : V, (μ v).toReal * (InformationTheory.klDiv (P v).toMeasure Q.toMeasure).toReal - (InformationTheory.klDiv (μ.bind P).toMeasure Q.toMeasure).toReal

Golden mixture identity for mutual information: for a prior μ : PMF V, channel P : V → PMF X, and any reference distribution Q : PMF X dominating P v on μ.support, I(X; V) · log 2 = (∑ v, μ v · D(P v ‖ Q)) - D(μ.bind P ‖ Q) on the observation-first joint law μ.bind fun v => (P v).map (·, v).

theorem Cslib.Probability.PMF.mutualInfo_bind_mul_log_two_le_sum_klDiv {V : Type u_1} {X : Type u_2} [Fintype V] [Finite X] [MeasurableSpace X] [MeasurableSingletonClass X] (μ : PMF V) (P : V → PMF X) {Q : PMF X} (hQ : ∀ v ∈ μ.support, (P v).support ⊆ Q.support) :
mutualInfo (μ.bind fun (v : V) => PMF.map (fun (x : X) => (x, v)) (P v)) * Real.log 2 ≤ ∑ v : V, (μ v).toReal * (InformationTheory.klDiv (P v).toMeasure Q.toMeasure).toReal

KL-center upper bound on mutual information (Yang–Barron / [Tsy09], Section 2.6): for any reference law Q dominating P v on μ.support, I(X; V) · log 2 ≤ ∑ v, μ v · D(P v ‖ Q).

theorem Cslib.Probability.PMF.mutualInfo_bind_mul_log_two_le_of_klDiv_le {V : Type u_1} {X : Type u_2} [Finite V] [Finite X] [MeasurableSpace X] [MeasurableSingletonClass X] (μ : PMF V) (P : V → PMF X) {Q : PMF X} {β : ℝ} (hQ : ∀ v ∈ μ.support, (P v).support ⊆ Q.support) (hβ : ∀ v ∈ μ.support, (InformationTheory.klDiv (P v).toMeasure Q.toMeasure).toReal ≤ β) :
mutualInfo (μ.bind fun (v : V) => PMF.map (fun (x : X) => (x, v)) (P v)) * Real.log 2 ≤ β

KL-radius upper bound on mutual information: if D(P v ‖ Q) ≤ β for every v ∈ μ.support, then I(X; V) · log 2 ≤ β.

theorem Cslib.Probability.PMF.mutualInfo_bind_mul_log_two_le_sum_sum_klDiv {V : Type u_1} {X : Type u_2} [Fintype V] [Finite X] [MeasurableSpace X] [MeasurableSingletonClass X] (μ : PMF V) (P : V → PMF X) (hsupp : ∀ v ∈ μ.support, ∀ w ∈ μ.support, (P v).support ⊆ (P w).support) :
mutualInfo (μ.bind fun (v : V) => PMF.map (fun (x : X) => (x, v)) (P v)) * Real.log 2 ≤ ∑ v : V, ∑ w : V, (μ v).toReal * (μ w).toReal * (InformationTheory.klDiv (P v).toMeasure (P w).toMeasure).toReal

Pairwise-KL upper bound on mutual information: when P v and P w have matching supports across μ.support, I(X; V) · log 2 ≤ ∑ v, ∑ w, μ v · μ w · D(P v ‖ P w).