Lean, informalized

Nielsen & Chuang · Chapter 11, Entropy and information · p. 509

Theorem 11.5 - The data processing inequality for a Markov chain, and when mutual information equals entropy

Processing cannot increase information about the source.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Theorem

A noisy channel turns a random variable XX into YY, and a second procedure, which sees only YY, turns YY into ZZ. The three variables then form a Markov chain X→Y→ZX \to Y \to Z: once YY is known, ZZ is independent of XX. The data processing inequality says that the second step cannot add information about XX: ZZ shares no more mutual information with XX than YY does.✦ The theorem pairs it with a bound on the first step. The information YY carries about XX never exceeds the entropy of XX✦, and equals it exactly when XX can be recovered from YY.✦

Entropy and Mutual Information

The Shannon entropy H(q)H(q) of a distribution qq on a finite set ι\iota is the number H(q)=−∑i∈ιq(i)log⁡q(i),H(q) = -\sum_{i \in \iota} q(i) \log q(i),(1)✦ with the natural logarithm, so that entropies are measured in nats.

The first marginal qXq_X of a joint distribution qq of XX and YY on ι×κ\iota \times \kappa is the distribution of XX alone✦, and its second marginal qYq_Y is the distribution of YY alone; each sums out the other variable: qX(x)=∑y∈κq(x,y),qY(y)=∑x∈ιq(x,y).q_X(x) = \sum_{y \in \kappa} q(x,y), \qquad q_Y(y) = \sum_{x \in \iota} q(x,y).(2)

The mutual information H(X:Y)H(X:Y) of a joint distribution qq of XX and YY is the sum of the entropies of its two marginals less the joint entropy H(q)H(q): H(X:Y)=H(qX)+H(qY)−H(q).H(X:Y) = H(q_X) + H(q_Y) - H(q).(3)✦

Let a third variable ZZ take values in a finite set μ\mu. The marginal pXYp_{XY} of a joint distribution pp of XX, YY, ZZ on ι×κ×μ\iota \times \kappa \times \mu is the joint distribution of XX and YY, obtained by summing out ZZ: pXY(x,y)=∑z∈μp(x,y,z).p_{XY}(x,y) = \sum_{z \in \mu} p(x,y,z).(4)✦ The marginal pXZp_{XZ} of pp is the joint distribution of XX and ZZ, obtained by summing out the middle variable YY: pXZ(x,z)=∑y∈κp(x,y,z).p_{XZ}(x,z) = \sum_{y \in \kappa} p(x,y,z).(5)✦ The mutual informations H(X:Y)H(X:Y) and H(X:Z)H(X:Z) of the three variables are those of pXYp_{XY} and pXZp_{XZ}, by (3). Read as a joint distribution of XX and the pair (Y,Z)(Y,Z), pp has the first marginal pX(x)=∑y,zp(x,y,z)p_X(x) = \sum_{y,z} p(x,y,z), the distribution of XX, and H(X)H(X) is its entropy.

The Claim

Theorem 1. Let pp be a nonnegative function on ι×κ×μ\iota \times \kappa \times \mu, and let H(X)H(X), H(X:Y)H(X:Y) and H(X:Z)H(X:Z) be formed from pp by (1) to (5). Then H(X:Y)≤H(X).H(X:Y) \le H(X).(6)✦ If ι\iota is not empty, then H(X:Y)=H(X)H(X:Y) = H(X)(7)✦ if and only if XX is a function of YY, X=f(Y)X = f(Y). If moreover pp sums to one and X→Y→ZX \to Y \to Z is a Markov chain, then H(X:Z)≤H(X:Y).H(X:Z) \le H(X:Y).(8)✦

What Is Checked

The claim is stated over the Shannon entropy (1) and the mutual information (3), taken on the marginals pXp_X, pXYp_{XY} and pXZp_{XZ} of a single function pp of three variables. About these quantities the library proves the bound (6), its equality case (7) and the data processing inequality (8).