← All solved theorems
Data Processing Inequality for Maps, Channels, and Mutual Information
proved in Lean
Passing data through any function or noisy channel can never increase relative entropy or mutual information. In other words, no post-processing, however clever, can create information that is not already there.
Claude E. Shannon; Imre Csiszár (1948) · Ch. 2 · Entropy, Divergence & Inequalities · Cover & Thomas, Theorem 2.8.1; bridged to Mathlib.InformationTheory.KullbackLeibler.DataProcessing
Statement
Processing data cannot increase relative entropy or mutual information:
- For any deterministic map $f : \mathcal{X} \to \mathcal{Y}$ and $P \ll Q$, $D(f_* P \| f_* Q) \le D(P \| Q)$.
- For any discrete memoryless channel $W : \mathcal{X} \to \mathcal{Y}$ and $P \ll Q$, $D(WP \| WQ) \le D(P \| Q)$.
- For any Markov chain $X - Y - Z$ induced by a map or channel $W$, $I(X; Z) \le I(X; Y)$.
How the proof works
Classically this follows from the chain rule for relative entropy: pushing both distributions through the same channel can only merge evidence that distinguishes them, never create it. Bridges InfoTheory.Core.DMC to Mathlib's Markov kernels (ProbabilityTheory.Kernel), pulls back InformationTheory.klDiv_map_le and klDiv_comp_right_le, and derives the mutual-information DPI by applying channel DPI to the lifted channel $\mathrm{id} \times W$ on $P_{XY}$ vs. $P_X \times P_Y$.
Lean declarations (4)
The key theorems in the Lean library. Each is compiled with Lean 4, uses only the standard axioms propext, Classical.choice and Quot.sound, and is re-checked by leanchecker. Click a name to see the full proof on GitHub.
theorem klDivergence_map_le (f : α → β) (P Q : ProbDist α) (hac : AbsCont P Q) :
klDivergence (P.map f) (Q.map f) ≤ klDivergence P Q := by …
theorem klDivergence_channel_le (W : DMC α β) (P Q : ProbDist α) (hac : AbsCont P Q) :
klDivergence (W.joint P).snd (W.joint Q).snd ≤ klDivergence P Q := by …
theorem mutualInfo_map_right_le (P : ProbDist (α × β)) (f : β → γ) :
mutualInfo (P.map (Prod.map id f)) ≤ mutualInfo P := by …
theorem mutualInfo_channel_right_le (P : ProbDist (α × β)) (W : DMC β γ) :
mutualInfo ((dmcLiftRight (α := α) W).joint P).snd ≤ mutualInfo P := by …
Related open problems (7)
Open problems that build on, generalize, or are analogous to this theorem.