Lean, informalized

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

Exercise 11.8 - Two independent fair bits and their sum modulo two, where the pair shares more with the sum than the bits apart

Mutual information is not subadditive for a parity bit.

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 Exercise

Let XX and YY be independent bits, each equal to 00 or 11 with probability 1/21/2, and let Z=X⊕YZ = X \oplus Y be their sum modulo 22. The exercise is to show that the information ZZ shares with the pair (X,Y)(X,Y) exceeds the information it shares with XX plus the information it shares with YY, so that mutual information is not subadditive.

The library states the inequality for the joint distribution of the three bits, in terms of the Shannon entropies of that distribution and of its marginals.

Entropy and Mutual Information

The Shannon entropy H(p)H(p) of a distribution pp on a finite set is the sum over outcomes of −pilog⁡pi-p_i \log p_i, with the natural logarithm, so that entropy is measured in nats, and with 0log⁡0=00 \log 0 = 0: H(p)=−∑ipilog⁡pi.H(p) = -\sum_i p_i \log p_i .(1)✦

The first marginal pXp_X of a joint distribution pp of XX and YY on finite sets is the distribution of XX alone, obtained by summing out YY: pX(x)=∑yp(x,y).p_X(x) = \sum_y p(x,y).(2)✦ The second marginal pYp_Y of pp is the distribution of YY alone, obtained by summing out XX: pY(y)=∑xp(x,y).p_Y(y) = \sum_x p(x,y).(3)✦

The mutual information H(X:Y)H(X:Y) of a joint distribution pp of XX and YY is the entropy of XX plus the entropy of YY less the joint entropy: H(X:Y)=H(pX)+H(pY)−H(p).H(X:Y) = H(p_X) + H(p_Y) - H(p).(4)✦

Three Bits

The joint distribution pp of three bits XX, YY, ZZ, in which XX and YY are independent and fair and Z=X⊕YZ = X \oplus Y, is p(x,y,z)={1/4if z=x⊕y,0otherwise,x,y,z∈{0,1}.p(x,y,z) = \begin{cases} 1/4 & \text{if } z = x \oplus y,\\ 0 & \text{otherwise}, \end{cases} \qquad x, y, z \in \{0,1\}.(5)✦

Grouping XX and YY into one variable with four values makes pp a joint distribution p(XY)Zp_{(XY)Z} of the pair (X,Y)(X,Y) and ZZ: p(XY)Z((x,y),z)=p(x,y,z).p_{(XY)Z}\bigl((x,y),z\bigr) = p(x,y,z).(6)✦ Summing out YY gives the joint distribution pXZp_{XZ} of XX and ZZ, pXZ(x,z)=∑yp(x,y,z),p_{XZ}(x,z) = \sum_y p(x,y,z),(7)✦ and summing out XX gives the joint distribution pYZp_{YZ} of YY and ZZ: pYZ(y,z)=∑xp(x,y,z).p_{YZ}(y,z) = \sum_x p(x,y,z).(8)✦

The three mutual informations of the exercise are those of these distributions under (4): H(X,Y:Z)H(X,Y:Z) of p(XY)Zp_{(XY)Z}, H(X:Z)H(X:Z) of pXZp_{XZ} and H(Y:Z)H(Y:Z) of pYZp_{YZ}.

The Claim

Theorem 1. Let XX and YY be independent fair bits and Z=X⊕YZ = X \oplus Y, with the joint distribution pp of (5). Then H(X,Y:Z)>H(X:Z)+H(Y:Z).H(X,Y:Z) > H(X:Z) + H(Y:Z).(9)✦

What Is Checked

The claim is stated over the distribution pp of the three bits in (5), read as a distribution of (X,Y)(X,Y) and ZZ in (6) and summed to the distributions (7) and (8), and over the mutual information (4), built from the Shannon entropy (1) and the marginals (2) and (3). What the library proves about these constructions is the strict inequality (9).