← All solved theorems
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$:
- $P_{XY}^n(A_\varepsilon^{(n)}) \to 1$ with explicit Chebyshev–union rate $O(1/(n\varepsilon^2))$.
- $(1 - \delta) 2^{n(H(X,Y)-\varepsilon)} \le |A_\varepsilon^{(n)}| \le 2^{n(H(X,Y)+\varepsilon)}$ eventually.
- 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.
theorem jointIidDist_prob_not_typical_le (P : ProbDist (α × β)) {n : ℕ} (hn : 0 < n)
{ε : ℝ} (hε : 0 < ε) :
1 - ∑ xy ∈ jointTypicalSet P n ε, (jointIidDist P n).pmf xy ≤
(varentropy P.fst + varentropy P.snd + varentropy P) / ((n : ℝ) * ε ^ 2) := by …
theorem joint_aep_prob_tendsto_one (P : ProbDist (α × β)) {ε δ : ℝ} (hε : 0 < ε) (hδ : 0 < δ) :
∃ N : ℕ, ∀ n ≥ N, 1 - δ ≤ ∑ xy ∈ jointTypicalSet P n ε, (jointIidDist P n).pmf xy := by …
theorem jointTypicalSet_card_le (P : ProbDist (α × β)) (n : ℕ) (ε : ℝ) :
((jointTypicalSet P n ε).card : ℝ) ≤ (2 : ℝ) ^ ((n : ℝ) * (shannonEntropy P + ε)) := by …
theorem jointTypicalSet_indep_prob_le (P : ProbDist (α × β)) (n : ℕ) (ε : ℝ) :
∑ xy ∈ jointTypicalSet P n ε, ((iidDist P.fst n).prod (iidDist P.snd n)).pmf xy ≤
(2 : ℝ) ^ (-((n : ℝ) * (mutualInfo P - 3 * ε))) := by …
theorem jointTypicalSet_indep_prob_ge (P : ProbDist (α × β)) {ε δ : ℝ} (hε : 0 < ε) (hδ : 0 < δ) :
∃ N : ℕ, ∀ n ≥ N,
(1 - δ) * (2 : ℝ) ^ (-((n : ℝ) * (mutualInfo P + 3 * ε))) ≤
∑ xy ∈ jointTypicalSet P n ε, ((iidDist P.fst n).prod (iidDist P.snd n)).pmf xy := by …
Related open problems (4)
Open problems that build on, generalize, or are analogous to this theorem.