← All solved theorems
Shannon's Channel Coding Theorem (Achievability and Weak Converse)
proved in Lean
Every discrete memoryless noisy channel has a capacity C, the largest mutual information between its input and output: any rate below C can be sent with vanishing error probability, and no rate above C can. This founded information theory.
Claude E. Shannon (1948) · Ch. 7 · Channel Capacity & Error Exponents · Cover & Thomas, Theorem 7.7.1 & §7.9
Statement
For every discrete memoryless channel $W : \mathcal{X} \to \mathcal{Y}$, the operational capacity (supremum of rates achievable with vanishing average block error probability) equals the single-letter information capacity: $$C_{\mathrm{op}}(W) = C(W) = \sup_{P_X} I(X; Y).$$
How the proof works
Both halves proved end-to-end against InfoTheory.Core.Channels (DMC, DMC.power, DMC.capacity, dmcAvgError). Achievability averages error over i.i.d. random codebooks codebookProb with unique joint-typicality decoding (jointTypicalDec), invoking joint_aep_prob_tendsto_one and jointTypicalSet_indep_prob_le. The converse combines multi-letter mutual-information subadditivity (dmcPower_mutualInfo_le_mul_capacity) with Fano's inequality (dmcAvgError_rate_converse).
Lean declarations (7)
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 dmcPower_mutualInfo_le_sum (W : DMC α β) (n : ℕ) (P : ProbDist (Fin n → α)) :
mutualInfo ((W.power n).joint P) ≤
∑ i : Fin n, mutualInfo (W.joint (P.map (fun x => x i))) := by …
theorem dmcPower_mutualInfo_le_mul_capacity (W : DMC α β) (n : ℕ) (P : ProbDist (Fin n → α)) :
mutualInfo ((W.power n).joint P) ≤ (n : ℝ) * W.capacity := by …
theorem dmcAvgError_rate_converse [DecidableEq β] (W : DMC α β) (n M : ℕ) (hn : 0 < n) (hM : 2 ≤ M)
(enc : Fin M → Fin n → α) (dec : (Fin n → β) → Fin M) :
(1 - dmcAvgError W n M enc dec) * (log2 (M : ℝ) / (n : ℝ)) ≤
W.capacity + 1 / (n : ℝ) := by …
theorem dmc_random_coding_bound [DecidableEq β]
(W : DMC α β) (Px : ProbDist α) (n M : ℕ) (hM : 0 < M) (ε : ℝ) :
∃ (enc : Fin M → Fin n → α) (dec : (Fin n → β) → Fin M),
dmcAvgError W n M enc dec ≤
(1 - ∑ xy ∈ jointTypicalSet (W.joint Px) n ε, (jointIidDist (W.joint Px) n).pmf xy) +
((M - 1 : ℕ) : ℝ) * (2 : ℝ) ^ (-((n : ℝ) * (W.mutualInfo Px - 3 * ε))) := by …
theorem shannon_channel_coding_achievability (W : DMC α β) (R : ℝ)
(hR0 : 0 ≤ R) (hR : R < W.capacity) :
IsDmcAchievableRate W R := by …
theorem shannon_channel_coding_converse (W : DMC α β) (R : ℝ)
(hR : IsDmcAchievableRate W R) :
R ≤ W.capacity := by …
theorem shannon_channel_coding_theorem (W : DMC α β) :
dmcOperationalCapacity W = W.capacity := by …
Related open problems (9)
Open problems that build on, generalize, or are analogous to this theorem.