InformationTheory

InformationTheory.Shannon.Pinsker.Basic

source

Pinsker's inequality (total variation and Kullback–Leibler divergence) #

For probability measures P, Q on a finite alphabet α with P ≪ Q, the total-variation norm tvNorm P Q := (1/2) * ∑ x, |P.real {x} - Q.real {x}| is bounded by the square root of the Kullback–Leibler divergence: tvNorm P Q ≤ √((klDiv P Q).toReal).

This is the weak form with constant 1; the sharp Cover–Thomas form tvNorm P Q ≤ √((klDiv P Q).toReal / 2) is proved separately in Pinsker/Sharp.lean.

Main definitions #

  • tvNorm — the total-variation norm between two probability measures on a finite alphabet.

Main statements #

Implementation notes #

The proof combines the pointwise Bretagnolle–Huber bound klFun t ≥ (√t - 1)^2 with the Cauchy–Schwarz factorization |p - q| = |√p - √q| · (√p + √q), bounding ∑ (√p + √q)^2 ≤ 4.

References #

  • T. M. Cover and J. A. Thomas, Elements of Information Theory (2nd ed.), Wiley, 2006.

Bretagnolle–Huber pointwise inequality #

theorem

InformationTheory.Shannon.Pinsker.klFun_ge_sub_sqrt_sq

source
(t : ) (ht : 0 t) :
(t - 1) ^ 2 klFun t

The pointwise Bretagnolle–Huber bound (√t - 1)^2 ≤ klFun t for t ≥ 0.

Used by

    Cauchy-Schwarz and sum bound helpers #

    theorem

    InformationTheory.Shannon.Pinsker.finset_cs_sqrt_sq

    source
    {α : Type u_1} [Fintype α] (p q : α) (hp : ∀ (i : α), 0 p i) (hq : ∀ (i : α), 0 q i) :
    (∑ i : α, |p i - q i|) ^ 2 (∑ i : α, ((p i) - (q i)) ^ 2) * i : α, ((p i) + (q i)) ^ 2
    Used by
      theorem

      InformationTheory.Shannon.Pinsker.sum_sqrt_add_sq_le_four

      source
      {α : Type u_1} [Fintype α] (p q : α) (hp : ∀ (i : α), 0 p i) (hq : ∀ (i : α), 0 q i) (hpsum : i : α, p i = 1) (hqsum : i : α, q i = 1) :
      i : α, ((p i) + (q i)) ^ 2 4
      Used by

        Total variation and Pinsker's inequality #

        noncomputable def

        InformationTheory.Shannon.Pinsker.tvNorm

        source
        {α : Type u_1} [Fintype α] [MeasurableSpace α] (P Q : MeasureTheory.Measure α) :

        The total-variation norm between two probability measures on a finite alphabet.

        Equations
        Instances For
          Used by
            theorem

            InformationTheory.Shannon.Pinsker.tvNorm_le_sqrt_klDiv

            source

            Pinsker's inequality (weak form, constant 1): for probability measures P ≪ Q on a finite alphabet, tvNorm P Q ≤ √((klDiv P Q).toReal).

            Used by