Lean, informalized

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

Theorem 12.2 - The theorem of typical sequences for an independent classical source, in nats

Few typical sequences carry almost all the probability.

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 classical source emits letters from a finite alphabet 𝒜\mathcal{A}, one at a time and independently, each use giving the letter xx with the same probability p(x)p(x). The numbers p(x)p(x) are nonnegative and sum to one: pp is a probability distribution on 𝒜\mathcal{A}. After nn uses the source has emitted a sequence x=(x1,…,xn)x = (x_1, \dots, x_n), which occurs with probability p(x)=p(x1)p(x2)⋯p(xn).p(x) = p(x_1)\, p(x_2) \cdots p(x_n).(1)

There are |𝒜|n|\mathcal{A}|^n sequences of length nn, and the question is how few of them hold nearly all the probability when nn is large. The theorem of typical sequences answers it with the sequences whose probability is close to e−nHe^{-nH}, where HH is the Shannon entropy of the source.

Entropy and Typical Sequences

The Shannon entropy H(p)H(p) of a probability distribution pp on a finite alphabet 𝒜\mathcal{A} is the real number H(p)=−∑x∈𝒜p(x)log⁡p(x),H(p) = -\sum_{x \in \mathcal{A}} p(x) \log p(x),(2)✦ with the natural logarithm, so that H(p)H(p) is measured in nats. We write HH for H(p)H(p) when the distribution is fixed.

For a length nn and a number ε\varepsilon, the set T(n,ε)T(n,\varepsilon) of ε\varepsilon-typical sequences of the source is the set of sequences xx of nn letters whose probability (1) satisfies e−n(H+ε)≤p(x)≤e−n(H−ε).e^{-n(H+\varepsilon)} \le p(x) \le e^{-n(H-\varepsilon)}.(3)✦ Its number of elements is written |T(n,ε)||T(n,\varepsilon)|.

The Claim

Theorem 1. Let pp be a probability distribution on a finite alphabet, with Shannon entropy HH, and let δ>0\delta > 0.

  1. For every ε>0\varepsilon > 0 and all sufficiently large nn, the ε\varepsilon-typical sequences of length nn carry probability at least 1−δ1 - \delta: ∑x∈T(n,ε)p(x)≥1−δ.\sum_{x \in T(n,\varepsilon)} p(x) \ge 1 - \delta.(4)✦

  2. For every ε>0\varepsilon > 0 and all sufficiently large nn, the number of ε\varepsilon-typical sequences of length nn satisfies (1−δ)en(H−ε)≤|T(n,ε)|≤en(H+ε).(1 - \delta)\, e^{n(H-\varepsilon)} \le |T(n,\varepsilon)| \le e^{n(H+\varepsilon)}.(5)✦

  3. For every number R<HR < H and all sufficiently large nn, every set SS of at most enRe^{nR} sequences of length nn carries probability at most δ\delta: ∑x∈Sp(x)≤δ.\sum_{x \in S} p(x) \le \delta.(6)✦

What Is Checked

The claim is stated over the Shannon entropy (2) and the set of typical sequences (3), for every probability distribution on every finite alphabet, the probability of a sequence being the product (1).

About the typical set the library proves the probability bound (4) and the bounds (5) on its size, and about any set of at most enRe^{nR} sequences with R<HR < H the bound (6).