Joint AEP and Packing Lemma Independent-Pair Bound

proved in Lean

Pairs of long sequences generated together are almost always jointly typical, while independently generated pairs look jointly typical only with probability about 2 to the power minus n times their mutual information. This is the engine of random-coding proofs.

Claude E. Shannon; Thomas M. Cover; Abbas El Gamal and Young-Han Kim (1975) · Ch. 3–4 · AEP, Typicality & Entropy Rates · Cover & Thomas, Theorem 7.6.1; El Gamal & Kim, §2.5 & Lemma 3.1

Statement

For the jointly weakly typical set $A_\varepsilon^{(n)}(X, Y)$ of an i.i.d. pair $(X^n, Y^n) \sim P_{XY}^n$:

  1. $P_{XY}^n(A_\varepsilon^{(n)}) \to 1$ with explicit Chebyshev–union rate $O(1/(n\varepsilon^2))$.
  2. $(1 - \delta) 2^{n(H(X,Y)-\varepsilon)} \le |A_\varepsilon^{(n)}| \le 2^{n(H(X,Y)+\varepsilon)}$ eventually.
  3. For an independent pair $(\tilde X^n, \tilde Y^n) \sim P_X^n \times P_Y^n$,

$$(1 - \delta) 2^{-n(I(X; Y) + 3\varepsilon)} \le (P_X^n \times P_Y^n)(A_\varepsilon^{(n)}) \le 2^{-n(I(X; Y) - 3\varepsilon)}.$$

How the proof works

Built directly on weakTypicalSet via a union bound on the three marginals $P_X, P_Y, P_{XY}$ and exact product-probability bounds on $A_\varepsilon^{(n)}$.

Lean declarations (5)

The key theorems in the Lean library. Each is compiled with Lean 4, uses only the standard axioms propext, Classical.choice and Quot.sound, and is re-checked by leanchecker. Click a name to see the full proof on GitHub.

Related open problems (4)

Open problems that build on, generalize, or are analogous to this theorem.