← All solved theorems
Exact Capacities of the Binary Symmetric, Erasure, and Noiseless Channels
proved in Lean
Capacities of three textbook channels: flipping each bit with probability p gives 1 − h(p), where h is the binary entropy function; erasing each bit with probability ε gives 1 − ε; and a noiseless channel gives log2 of its alphabet size.
Claude E. Shannon; Peter Elias (1955) · Ch. 7 · Channel Capacity & Error Exponents · Cover & Thomas, §§7.1.4–7.1.5
Statement
For $p, \varepsilon \in [0, 1]$ and any nonempty finite alphabet $\mathcal{X}$: $$C(\mathrm{BSC}(p)) = 1 - h(p), \qquad C(\mathrm{BEC}(\varepsilon)) = 1 - \varepsilon, \qquad C(\mathrm{Id}_{\mathcal{X}}) = \log_2 |\mathcal{X}|.$$
How the proof works
Each capacity follows by writing the mutual information as output entropy minus a noise term that does not depend on the input distribution, then checking that a uniform input maximizes it. Proved directly against InfoTheory.Core.Channels.{bsc, bec} in Known/Channels.lean, serving as both a textbook lemma base and a machine-checked sanity certification of the Core DMC definitions.
Lean declarations (3)
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 bsc_capacity : (bsc p h0 h1).capacity = 1 - binaryEntropy p := by …
theorem bec_capacity : (bec ε h0 h1).capacity = 1 - ε := by …
theorem noiselessChannel_capacity [Nonempty α] :
(noiselessChannel α).capacity = log2 (Fintype.card α) := by …
Related open problems (5)
Open problems that build on, generalize, or are analogous to this theorem.