← All solved theorems
Gallager's Random-Coding Error Exponent Bound
proved in Lean
There exist codes whose error probability decays exponentially with block length, at a rate given by Gallager's explicit E0 function. This gives a concrete lower bound on the reliability function, the best achievable error exponent.
Robert G. Gallager (1965) · Ch. 7 · Channel Capacity & Error Exponents · Gallager (1965), Theorem 1; Cover & Thomas, Ch. 7
Statement
For any DMC $W$, input distribution $P$, blocklength $n$, message size $M \ge 1$, and $\rho \in [0, 1]$, there exists an $(n, M)$ block code with $$P_e \le (M - 1)^\rho \, 2^{-n E_0(\rho, P, W)}, \qquad E_0(\rho, P, W) = -\log_2 \sum_y \left(\sum_x P(x) W(y|x)^{\frac{1}{1+\rho}}\right)^{1+\rho}.$$ Consequently, for every positive DMC $W$ and rate $R > 0$, the random-coding exponent lower-bounds the reliability function: $E_r(R, W) \le E(R, W)$.
How the proof works
Implements Gallager's 1965 ML-decoding proof over finite random-codebook ensembles using concavity of $t \mapsto t^\rho$ on $[0, \infty)$, and bridges directly to InfoTheory.Core.Channels.{randomCodingExponent, reliabilityFunction}.
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.
theorem gallager_random_coding_bound [DecidableEq β]
(W : DMC α β) (P : ProbDist α) (n M : ℕ) (hM : 0 < M)
{ρ : ℝ} (hρ0 : 0 ≤ ρ) (hρ1 : ρ ≤ 1) :
∃ (enc : Fin M → Fin n → α) (dec : (Fin n → β) → Fin M),
dmcAvgError W n M enc dec ≤
((M - 1 : ℕ) : ℝ) ^ ρ * (2 : ℝ) ^ (-((n : ℝ) * gallagerE0 ρ P W)) := by …
theorem dmcMinError_le_gallager [DecidableEq β]
(W : DMC α β) (P : ProbDist α) (n M : ℕ) (hM : 0 < M)
{ρ : ℝ} (hρ0 : 0 ≤ ρ) (hρ1 : ρ ≤ 1) :
dmcMinError W n M ≤
((M - 1 : ℕ) : ℝ) ^ ρ * (2 : ℝ) ^ (-((n : ℝ) * gallagerE0 ρ P W)) := by …
theorem gallager_le_reliabilityFunction [Nonempty α] [DecidableEq β]
(W : DMC α β) (hpos : W.IsPositive) {R : ℝ} (hR : 0 < R) :
gallagerRandomCodingExp W R ≤ reliabilityFunction W R := by …
theorem randomCodingExponent_le_reliabilityFunction [Nonempty α] [DecidableEq β]
(W : DMC α β) (hpos : W.IsPositive) {R : ℝ} (hR : 0 < R) :
randomCodingExponent W R ≤ reliabilityFunction W R := …
Related open problems (3)
Open problems that build on, generalize, or are analogous to this theorem.