Documentation

LeanPool.Shannon1948Formalization.Entropy.Converse

Shannon.Entropy.Converse #

The converse direction: entropyNat satisfies ShannonEntropyAxioms.

Combined with the characterization theorems in Final.lean, this gives a true "if and only if": a functional H satisfies the Shannon conditions iff it is a positive multiple of entropyNat.

Main results #

Relabel invariance #

Entropy is invariant under relabeling outcomes by an equivalence.

Uniform monotonicity #

Entropy on uniform distributions is strictly monotone in alphabet size.

Grouping #

theorem LeanPool.Shannon1948Formalization.entropyNat_grouping {α : Type} [Fintype α] {β : αType} [(a : α) → Fintype (β a)] (p : ProbDist α) (q : (a : α) → ProbDist (β a)) :
entropyNat (composeProb p q) = entropyNat p + a : α, p a * entropyNat (q a)

Two-stage decomposition: H(compose p q) = H(p) + ∑ a, p(a) * H(q a).

Main theorem #

entropyNat satisfies the Shannon entropy conditions.

This is the converse of the characterization: the characterization shows any H satisfying the conditions must be a positive multiple of entropyNat; this theorem shows entropyNat itself satisfies the conditions, proving the specification is consistent and completing the "if and only if".