Relative entropy is invariant under a measurable embedding
ProvedInformationTheory.klDiv_map_measurableEmbeddingRelative entropy is unchanged by an injective measurable relabelling of the underlying space.
Let be finite measures on and let be a measurable embedding — injective, measurable, with measurable range and measurable inverse on its image. Then
where denotes the push-forward.
This is the equality case of the data-processing inequality. Processing the observation through discards nothing, because can be inverted on its range, so no information about the hypothesis versus is lost.
In practice this is the lemma that lets a divergence be transported along a change of coordinates — for instance identifying a space of histories of length with the product of the histories of length and the observation of the last round — without tracking densities by hand.
import Mathlib.InformationTheory.KullbackLeibler.Basic import Mathlib.MeasureTheory.MeasurableSpace.Embedding open MeasureTheory InformationTheory Set open scoped ENNReal
theorem InformationTheory.klDiv_map_measurableEmbedding {α β : Type*}
{mα : MeasurableSpace α} {mβ : MeasurableSpace β}
{f : α → β} (hf : MeasurableEmbedding f) (μ ν : Measure α)
[IsFiniteMeasure μ] [IsFiniteMeasure ν] :
klDiv (μ.map f) (ν.map f) = klDiv μ ν := by
sorry