Subadditivity of Shannon entropy for a finite family (independence bound)
ProvedshannonEntropy_pi_leLet be a finite, nonempty sample space with the uniform distribution, a finite set, and a finite family of -valued random variables. Then the (base-2, empirical) Shannon entropy of the joint random variable (encoded here as the function ) is at most the sum of the individual entropies:
This is the finite-family generalization of the pairwise subadditivity already established as shannonEntropy_prod_le, obtained by induction on : split off one coordinate at a time via the equivalence , apply the two-variable bound, and use the inductive hypothesis on the rest. It is the standard 'independence bound on entropy' from information theory, and is the tool used to bound the entropy of a vector of independently-digitized coordinates (e.g. one bin index per linear form/row) by the sum of the per-coordinate entropies, a key step in entropy-compression arguments such as Spencer's partial-colouring method.
import Definitions.Def_DiscreteEntropy import Theorems.Thm_shannonEntropy_prod_le import Mathlib open Finset
theorem shannonEntropy_pi_le {Ω : Type*} [Fintype Ω] [Nonempty Ω]
{n : ℕ} {γ : Type*} [Fintype γ] [DecidableEq γ]
(Z : Fin n → Ω → γ) :
shannonEntropy (fun ω i => Z i ω) ≤ ∑ i, shannonEntropy (Z i) := by sorry