Documentation

LeanMachineLearning.ForMathlib.InformationTheory.KullbackLeibler.ChainRule

The Kullback–Leibler divergence of composition-products, in integrated form #

The chain rule klDiv_compProd_eq_add expresses the conditional divergence as klDiv (μ ⊗ₘ κ) (μ ⊗ₘ η). When the target space of the kernels is countably generated (or the source is countable), the function a ↦ klDiv (κ a) (η a) is measurable (measurable_klDiv_kernel) and the conditional divergence is its integral:

We also record the data processing inequality for the two projections (klDiv_le_compProd, klDiv_comp_le_compProd) and the invariance of the divergence under measurable embeddings (klDiv_map_measurableEmbedding) and measurable equivalences (klDiv_map_measurableEquiv).

The Kullback–Leibler divergence is invariant under measurable embeddings.

The Kullback–Leibler divergence is invariant under measurable equivalences.

Data processing inequality for the first projection: for Markov kernels κ and η, μ and ν are the images of μ ⊗ₘ κ and ν ⊗ₘ η under Prod.fst, hence klDiv μ ν ≤ klDiv (μ ⊗ₘ κ) (ν ⊗ₘ η).

Data processing inequality for the second projection: κ ∘ₘ μ and η ∘ₘ ν are the images of μ ⊗ₘ κ and ν ⊗ₘ η under Prod.snd, hence klDiv (κ ∘ₘ μ) (η ∘ₘ ν) ≤ klDiv (μ ⊗ₘ κ) (ν ⊗ₘ η).

For finite kernels with countably generated target, a ↦ klDiv (κ a) (η a) is measurable.

Integrated form of the conditional Kullback–Leibler divergence: klDiv (μ ⊗ₘ κ) (μ ⊗ₘ η) = ∫⁻ a, klDiv (κ a) (η a) ∂μ.

Chain rule for the Kullback–Leibler divergence, in integrated form: klDiv (μ ⊗ₘ κ) (ν ⊗ₘ η) = klDiv μ ν + ∫⁻ a, klDiv (κ a) (η a) ∂μ.

theorem InformationTheory.klDiv_compProd_left_of_ae {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} [Nonempty β] (μ ν : MeasureTheory.Measure α) [MeasureTheory.IsFiniteMeasure μ] [MeasureTheory.IsFiniteMeasure ν] (κ : ProbabilityTheory.Kernel α β) [ProbabilityTheory.IsSFiniteKernel κ] {S : Set α} (hS : MeasurableSet S) (hκ : ∀ a ∈ S, MeasureTheory.IsProbabilityMeasure (κ a)) (hμ : ∀ᵐ (a : α) ∂μ, a ∈ S) (hν : ∀ᵐ (a : α) ∂ν, a ∈ S) :
klDiv (μ.compProd κ) (ν.compProd κ) = klDiv μ ν

klDiv_compProd_left for a kernel which is only a probability measure on a measurable set of full measure for both μ and ν.