Lean, informalized

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

Exercise 11.4 - Concavity and strict concavity of the entropy of a biased coin

The binary entropy is strictly concave.

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

A coin shows heads with probability pp and tails with probability 1−p1-p. Its entropy, measured in bits, is called the binary entropy. The exercise is to show that the binary entropy, written HbinH_{\mathrm{bin}}, is a concave function of pp. Take a coin of bias pp and a coin of bias qq, pick the first with probability λ\lambda and the second otherwise, and toss the one picked without recording which it was. Heads comes up with probability λp+(1−λ)q\lambda p + (1-\lambda) q, and concavity says that the entropy of this toss is at least the average of the two coins’ entropies, with weights λ\lambda and 1−λ1-\lambda.✦

The Binary Entropy

The binary entropy Hbin(p)H_{\mathrm{bin}}(p) of a real number pp is the real number Hbin(p)=−plog⁡2p−(1−p)log⁡2(1−p),H_{\mathrm{bin}}(p) = -p \log_2 p - (1-p) \log_2 (1-p),(1)✦ with the logarithm to base 2 and the convention 0log⁡20=00 \log_2 0 = 0.

The Claim

The library states concavity on the closed interval [0,1][0,1] together with its strict form.

Theorem 1. Let pp and qq be numbers in [0,1][0,1] and let 0≤λ≤10 \le \lambda \le 1. Then the binary entropy is concave on [0,1][0,1]: Hbin(λp+(1−λ)q)≥λHbin(p)+(1−λ)Hbin(q).H_{\mathrm{bin}}\bigl(\lambda p + (1-\lambda) q\bigr) \ge \lambda H_{\mathrm{bin}}(p) + (1-\lambda) H_{\mathrm{bin}}(q).(2)✦ If moreover p≠qp \neq q and 0<λ<10 < \lambda < 1, it is strictly concave there: Hbin(λp+(1−λ)q)>λHbin(p)+(1−λ)Hbin(q).H_{\mathrm{bin}}\bigl(\lambda p + (1-\lambda) q\bigr) > \lambda H_{\mathrm{bin}}(p) + (1-\lambda) H_{\mathrm{bin}}(q).(3)✦

What Is Checked

The claim is stated over the binary entropy (1) on the closed interval 0≤p≤10 \le p \le 1 of coin biases. About that function on that interval the library proves both inequalities of the theorem, (2) and (3).