← All solved theorems
Strong Typicality, the Markov Lemma, and the Wyner–Ziv Theorem
proved in Lean
When the decoder has correlated side information that the encoder cannot see, the minimum rate for lossy compression is given by an explicit mutual-information formula. The Markov lemma, a key typicality tool, is proved along the way.
Aaron D. Wyner and Jacob Ziv; Toby Berger (1976) · Ch. 15 / EGK · Network Information Theory · Cover & Thomas, §15.9; El Gamal & Kim, §2.4, Theorem 11.3 & Lemma 12.1
Statement
For a finite i.i.d. correlated source $(X, Y) \sim P_{XY}$ and distortion $d : \mathcal{X} \times \hat{\mathcal{X}} \to \mathbb{R}_{\ge 0}$, where the encoder observes only $X^n$ and the decoder observes side information $Y^n$:
- Markov Lemma: If $U - X - Y$ and $(x^n, u^n)$ is $\varepsilon_1$-strongly typical, then for $\varepsilon_2 > \varepsilon_1$, $(x^n, u^n, Y^n)$ is $\varepsilon_2$-strongly typical with probability $\ge 1 - O(1/(n(\varepsilon_2 - \varepsilon_1)^2))$ uniformly in $(x^n, u^n)$.
- Wyner–Ziv Theorem: At every strictly feasible distortion $D > D_{\min}$, the operational rate–distortion function with decoder side information equals
$$R_{\mathrm{op}}^{\mathrm{WZ}}(D) = R_{\mathrm{WZ}}(D) = \inf_{\substack{U - X - Y \\ \mathbb{E}[d(X, g(U, Y))] \le D}} I(X; U \mid Y).$$
How the proof works
Proves convexity and right-continuity of wynerZivRateDistortion at every strictly feasible $D$; proves wynerZiv_converse with auxiliary $U_i = (i, T, Y^{\setminus i})$; builds self-contained strong typicality (strongTypicalSet) and markov_lemma via Chebyshev bounds conditioned on fixed $(x^n, u^n)$; and combines covering_lemma_subset, markov_lemma, and uniform random binning for wynerZiv_achievability and exact operational equality wyner_ziv_theorem.
Lean declarations (6)
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 markov_lemma {X Y U : Type*} [Fintype X] [Fintype Y] [Fintype U]
(Q : ProbDist (X × Y × U))
(hmarkov : condMutualInfo (Q.map (fun t => (t.2.2, t.2.1, t.1))) = 0)
{n : ℕ} (hn : 0 < n) {ε₁ ε₂ : ℝ} (_hε₁ : 0 ≤ ε₁) (hε : ε₁ < ε₂)
{x : Fin n → X} {u : Fin n → U}
(hxu : (fun i => (x i, u i)) ∈ strongTypicalSet (Q.map (fun t => (t.1, t.2.2))) n ε₁) :
let W := condChannelOfJoint (Q.map (fun t => (t.1, t.2.1)))
∑ y : Fin n → Y, (W.power n).trans x y *
(if (fun i => (x i, y i, u i)) ∉ strongTypicalSet Q n ε₂ then (1 : ℝ) else 0) ≤
(∑ t : X × Y × U, if 0 < Q.pmf t then 1 / Q.pmf t ^ 2 else 0) /
((n : ℝ) * (ε₂ - ε₁) ^ 2) := by …
theorem markov_lemma_of_channel {X Y U : Type*} [Fintype X] [Fintype Y] [Fintype U]
(Q : ProbDist (X × Y × U)) (W : DMC X Y)
(hW : ∀ a b, (Q.map (fun t => (t.1, t.2.1))).pmf (a, b) =
(Q.map (fun t => t.1)).pmf a * W.trans a b)
(hmarkov : condMutualInfo (Q.map (fun t => (t.2.2, t.2.1, t.1))) = 0)
{n : ℕ} (hn : 0 < n) {ε₁ ε₂ : ℝ} (hε₁ : 0 ≤ ε₁) (hε : ε₁ < ε₂)
{x : Fin n → X} {u : Fin n → U}
(hxu : (fun i => (x i, u i)) ∈ strongTypicalSet (Q.map (fun t => (t.1, t.2.2))) n ε₁) :
∑ y : Fin n → Y, (W.power n).trans x y *
(if (fun i => (x i, y i, u i)) ∉ strongTypicalSet Q n ε₂ then (1 : ℝ) else 0) ≤
(∑ t : X × Y × U, if 0 < Q.pmf t then 1 / Q.pmf t ^ 2 else 0) /
((n : ℝ) * (ε₂ - ε₁) ^ 2) := by …
theorem wynerZivRateDistortion_convex {P : ProbDist (X × Y)} {d : Distortion X Xhat}
{D₁ D₂ lam : ℝ}
(hfeas₁ : IsWynerZivFeasible P d D₁) (hfeas₂ : IsWynerZivFeasible P d D₂)
(h0 : 0 ≤ lam) (h1 : lam ≤ 1) :
wynerZivRateDistortion P d (lam * D₁ + (1 - lam) * D₂) ≤
lam * wynerZivRateDistortion P d D₁ + (1 - lam) * wynerZivRateDistortion P d D₂ := by …
theorem wynerZiv_converse (P : ProbDist (X × Y)) (d : Distortion X Xhat) {n M : ℕ}
(hn : 0 < n) (hM : 0 < M)
(enc : (Fin n → X) → Fin M) (dec : Fin M → (Fin n → Y) → (Fin n → Xhat)) {D : ℝ}
(hdist : ∑ xy : Fin n → X × Y, (iidDist P n).pmf xy *
blockDist d (fun i => (xy i).1)
(dec (enc (fun i => (xy i).1)) (fun i => (xy i).2)) ≤ D) :
wynerZivRateDistortion P d D ≤ log2 (M : ℝ) / (n : ℝ) := by …
theorem wynerZiv_achievability (P : ProbDist (X × Y)) (d : Distortion X Xhat) {D R δ : ℝ}
(hfeas : IsWynerZivFeasible P d D)
(hR : wynerZivRateDistortion P d D < R) (hδ : 0 < δ) :
∃ N : ℕ, ∀ n ≥ N,
let M := Nat.max 1 (Nat.floor ((2 : ℝ) ^ ((n : ℝ) * R)))
∃ (enc : (Fin n → X) → Fin M) (dec : Fin M → (Fin n → Y) → (Fin n → Xhat)),
∑ xy : Fin n → X × Y, (iidDist P n).pmf xy *
blockDist d (fun i => (xy i).1)
(dec (enc (fun i => (xy i).1)) (fun i => (xy i).2)) ≤ D + δ := by …
theorem wyner_ziv_theorem (P : ProbDist (X × Y)) (d : Distortion X Xhat) {D : ℝ}
(hstrict : ∃ D₀ : ℝ, D₀ < D ∧ IsWynerZivFeasible P d D₀) :
operationalWynerZivRate P d D = wynerZivRateDistortion P d D := by …
Related open problems (6)
Open problems that build on, generalize, or are analogous to this theorem.