← All solved theorems
Cost-Constrained Channel Coding Achievability (Random Coding & Expurgation)
proved in Lean
Even when every codeword must respect a budget on transmission cost, such as power, any rate below the mutual information of a budget-respecting input distribution is achievable. Random codes with their worst codewords thrown out (expurgation) do the job.
Robert G. Gallager; Abbas El Gamal and Young-Han Kim (1968) · Ch. 7 · Channel Capacity & Error Exponents · El Gamal & Kim, §3.3; Gallager, §7.3; Cover & Thomas, §9.1
Statement
For any discrete memoryless channel $W : \mathcal{X} \to \mathcal{Y}$, input distribution $P_X$, single-letter input cost $b : \mathcal{X} \to \mathbb{R}$, and cost budget $B$ satisfying $\mathbb{E}_{P_X}[b(X)] < B$, every rate $0 \le R < I(P_X, W)$ is achievable by $(n, \max(1, \lfloor 2^{nR} \rfloor))$ block codes in which every codeword obeys the deterministic per-codeword cost constraint $\sum_{i=1}^n b(x_i(m)) \le n B$ and the average error probability is at most $\delta$ for all sufficiently large $n$.
How the proof works
Combines an i.i.d. Chebyshev bound on empirical cost violation (violProb_le, violProb_eventually_le), random-codebook averaging of error plus violation fraction (exists_codebook_err_add_viol_le), and deterministic expurgation of half the codebook (exists_subcode_of_err_add_viol_le) on top of Bridge/ChannelAchievability.lean — serving as the finite-alphabet engine behind the operational AWGN capacity achievability proof.
Lean declarations (4)
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.
violProb_leInfoTheory.Known.CostConstrainedCoding, line 61theorem violProb_le (P : ProbDist α) (b : α → ℝ) {B : ℝ} (hB : meanCost P b < B)
{n : ℕ} (hn : 0 < n) :
violProb P b B n ≤ varCost P b / ((n : ℝ) * (B - meanCost P b) ^ 2) := by …
theorem exists_codebook_err_add_viol_le [DecidableEq β] (W : DMC α β) (Px : ProbDist α)
(b : α → ℝ) (B : ℝ) (n M' : ℕ) (hM' : 0 < M') (ε : ℝ) :
∃ (enc : Fin M' → Fin n → α) (dec : (Fin n → β) → Fin M'),
dmcAvgError W n M' enc dec + numViol b B enc / (M' : ℝ) ≤
(1 - ∑ xy ∈ jointTypicalSet (W.joint Px) n ε, (jointIidDist (W.joint Px) n).pmf xy) +
((M' - 1 : ℕ) : ℝ) * (2 : ℝ) ^ (-((n : ℝ) * (W.mutualInfo Px - 3 * ε))) +
violProb Px b B n := by …
theorem exists_subcode_of_err_add_viol_le [DecidableEq β] (W : DMC α β) (b : α → ℝ) (B : ℝ)
{n M : ℕ} (hM : 0 < M) (enc : Fin (2 * M) → Fin n → α) (dec : (Fin n → β) → Fin (2 * M))
{β' δ : ℝ} (hδ : 0 < δ)
(hβ : dmcAvgError W n (2 * M) enc dec + numViol b B enc / ((2 * M : ℕ) : ℝ) ≤ β')
(hβδ : 4 * β' ≤ δ) (hβ1 : 4 * β' ≤ 1) :
∃ (enc' : Fin M → Fin n → α) (dec' : (Fin n → β) → Fin M),
(∀ m, ∑ i, b (enc' m i) ≤ (n : ℝ) * B) ∧ dmcAvgError W n M enc' dec' ≤ δ := by …
theorem dmc_cost_constrained_achievable [DecidableEq β] (W : DMC α β) (Px : ProbDist α)
(b : α → ℝ) {B R : ℝ} (hb : meanCost Px b < B) (hR0 : 0 ≤ R) (hR : R < W.mutualInfo Px)
{δ : ℝ} (hδ : 0 < δ) :
∃ n₀ : ℕ, ∀ n ≥ n₀,
∃ (enc : Fin (max 1 ⌊(2 : ℝ) ^ ((n : ℝ) * R)⌋₊) → Fin n → α)
(dec : (Fin n → β) → Fin (max 1 ⌊(2 : ℝ) ^ ((n : ℝ) * R)⌋₊)),
(∀ m, ∑ i, b (enc m i) ≤ (n : ℝ) * B) ∧
dmcAvgError W n (max 1 ⌊(2 : ℝ) ^ ((n : ℝ) * R)⌋₊) enc dec ≤ δ := by …
Related open problems (4)
Open problems that build on, generalize, or are analogous to this theorem.