Lean, informalized

Nielsen & Chuang Β· Chapter 12, Quantum information theory Β· p. 540

Theorem 12.4 - Compression of an independent source at rates above and below its entropy

A source compresses reliably above its entropy, not below.

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 Question

A source emits a long message one letter at a time. Each letter is drawn from a finite alphabet π’œ\mathcal{A} with the same distribution pp, independently of the others. The message is cut into blocks of nn letters, and each block is to be written as a string of bits from which it can be read back. Spending nRnR bits on a block of nn letters is a rate of RR bits per letter. How small can the rate be made while the probability of reading a block back correctly still tends to one as the blocks grow long?

The Source and Its Entropy

The source is a probability distribution pp on the finite alphabet π’œ\mathcal{A}: a nonnegative number p(a)p(a) for each letter aa, with βˆ‘ap(a)=1\sum_{a} p(a) = 1.

The Shannon entropy H(X)H(X) of a letter XX of the source, distributed according to pp, is the real number H(X)=βˆ’βˆ‘aβˆˆπ’œp(a)log⁡p(a),H(X) = -\sum_{a \in \mathcal{A}} p(a) \log p(a),(1)✦ with the natural logarithm, so that H(X)H(X) is measured in nats.

Compression Schemes

A block of nn letters is an element x=(x1,…,xn)x = (x_1, \dots, x_n) of π’œn\mathcal{A}^n, and a bit string of length mm an element of {0,1}m\{0,1\}^m. A compression scheme (Cn,Dn)(C_n, D_n) for blocks of nn letters with mm bits is a pair of maps, a compression map CnC_n and a decompression map DnD_n, Cn:π’œnβ†’{0,1}m,Dn:{0,1}mβ†’π’œn.C_n : \mathcal{A}^n \to \{0,1\}^m, \qquad D_n : \{0,1\}^m \to \mathcal{A}^n .(2)✦ The scheme has rate RR when m=⌊nRβŒ‹m = \lfloor nR \rfloor, the largest integer not above nRnR.

The success probability Psucc(Cn,Dn)P_{\mathrm{succ}}(C_n, D_n) of a scheme (Cn,Dn)(C_n, D_n) for the source pp is the probability that a block of the source comes back unchanged after compression and decompression, Psucc(Cn,Dn)=βˆ‘xβˆˆπ’œn:Dn(Cn(x))=xp(x1)p(x2)β‹―p(xn).P_{\mathrm{succ}}(C_n, D_n) = \sum_{x \in \mathcal{A}^n :\; D_n(C_n(x)) = x} p(x_1)\, p(x_2) \cdots p(x_n) .(3)✦

The Claim

Theorem 1 (Shannon’s noiseless channel coding theorem). Let pp be a probability distribution on a finite alphabet π’œ\mathcal{A}, with entropy H(X)H(X), and let RR be a real number. If H(X)<Rlog⁡2H(X) < R \log 2, there are compression schemes (Cn,Dn)(C_n, D_n) of rate RR, one for each block length nn, with limnβ†’βˆžPsucc(Cn,Dn)=1.\lim_{n \to \infty} P_{\mathrm{succ}}(C_n, D_n) = 1 .(4)✦ If Rβ‰₯0R \ge 0 and Rlog⁡2<H(X)R \log 2 < H(X), then for any compression schemes (Cn,Dn)(C_n, D_n) of rate RR, one for each block length nn, Psucc(Cn,Dn)β†’ΜΈ1as nβ†’βˆž.P_{\mathrm{succ}}(C_n, D_n) \not\longrightarrow 1 \quad \text{as } n \to \infty .(5)✦

In bits the entropy is H(X)/log⁡2H(X)/\log 2.

What Is Checked

The theorem is stated over the Shannon entropy (1) of the letter distribution, over compression schemes (2) with ⌊nRβŒ‹\lfloor nR \rfloor bits for blocks of nn letters, and over their success probability (3). What the library proves about these constructions is the theorem itself, both halves, (4) and (5).