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.

Related open problems (9)

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