Skip to main content
KetQat

Appearance

Theorem · intermediate

Linear codes achieve the capacity of the binary erasure channel

For every rate below 1 − ε there are binary linear codes whose decoding failure probability on the binary erasure channel falls exponentially with the block length. This is the achievability half of the noisy-channel coding theorem for that channel, with linear codes.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Let 0≤ϵ<10 \le \epsilon < 1 and 0<R<1−ϵ0 < R < 1 - \epsilon, and put η=(1−ϵ−R)/2>0\eta = (1 - \epsilon - R)/2 > 0. For every nn and every integer 1≤k≤Rn1 \le k \le Rn with

βn  :=  2−ηn+e−2η2n  <  1\beta_n \;:=\; 2^{-\eta n} + e^{-2 \eta^2 n} \;<\; 1

there is a binary linear code of length nn and dimension kk such that, on the binary erasure channel BEC(ϵ)\mathrm{BEC}(\epsilon), the transmitted codeword is the unique codeword consistent with the received symbols except with probability at most βn\beta_n, for every transmitted codeword.

In particular, taking k=⌊Rn⌋k = \lfloor Rn \rfloor, rates arbitrarily close to the capacity 1−ϵ1 - \epsilon are achieved by linear codes with failure probability tending to zero exponentially fast in nn, and decoding takes O(n3)O(n^3) operations by Gaussian elimination.

Holds when

  • Memoryless binary erasure channel with erasure probability 0≤ϵ<10 \le \epsilon < 1.
  • Decoding is by solving the linear system for the erased positions (which is maximum-likelihood for this channel); no bound on decoding time is claimed beyond that of Gaussian elimination.
  • Only achievability is asserted. That no rate above 1−ϵ1 - \epsilon is achievable is the converse part of the general theorem.

Proof

Proof that random linear codes achieve the erasure-channel capacityMachine-checked

Setting. Let GG be a k×nk \times n binary matrix and encode a message u∈F2ku \in \F_2^k as uGuG. The channel erases a random set E⊆{1,…,n}E \subseteq \{1, \dots, n\}, each position independently with probability ϵ\epsilon. Write GEˉG_{\bar E} for the submatrix of columns outside EE. The receiver knows EE and the vector uGEˉu G_{\bar E}. A message u′u' is consistent with what was received if and only if (u−u′) GEˉ=0(u - u')\, G_{\bar E} = 0. Decoding therefore fails, in the sense that uu is not the unique consistent message, exactly when

there is w∈F2k, w≠0, with w GEˉ=0.\text{there is } w \in \F_2^k,\ w \ne 0, \ \text{with}\ w\, G_{\bar E} = 0 .

This event depends on GG and EE but not on uu. Call its probability over EE Pfail(G)P_{\mathrm{fail}}(G).

Random matrix, fixed erasure set. Let the entries of GG be independent uniform bits and fix EE with s=n−∣E∣s = n - \abs{E} unerased positions. For a fixed w≠0w \ne 0 the vector w GEˉw\, G_{\bar E} is uniformly distributed on F2 s\F_2^{\,s}: choose ii with wi=1w_i = 1; conditioned on the other rows, row ii of GEˉG_{\bar E} is uniform and shifts the sum to a uniform vector. Hence Pr⁡G[ wGEˉ=0 ]=2−s\Pr_G[\, w G_{\bar E} = 0 \,] = 2^{-s}, and by the union bound over the 2k−12^k - 1 nonzero ww,

Pr⁡G[failure∣E]  ≤  2 k−s.\Pr_G[\text{failure} \mid E] \;\le\; 2^{\,k - s} .

Few erasures are likely. Let AA be the event ∣E∣≤(ϵ+η)n\abs{E} \le (\epsilon + \eta) n. The number of erasures is a sum of nn independent indicator variables of mean ϵ\epsilon, so by Hoeffding's inequality Pr⁡[Ac]≤e−2η2n\Pr[A^{c}] \le e^{-2\eta^2 n}. On AA we have s≥(1−ϵ−η)ns \ge (1 - \epsilon - \eta) n and, since k≤Rnk \le Rn and 1−ϵ−R=2η1 - \epsilon - R = 2\eta,

k−s  ≤  Rn−(1−ϵ−η) n  =  −ηn.k - s \;\le\; Rn - (1 - \epsilon - \eta)\, n \;=\; -\eta n .

Averaging. Combining the two estimates, with GG and EE independent,

EG[Pfail(G)]  ≤  Pr⁡[Ac]+max⁡E∈APr⁡G[failure∣E]  ≤  e−2η2n+2−ηn  =  βn.\mathbb{E}_G\bigl[ P_{\mathrm{fail}}(G) \bigr] \;\le\; \Pr[A^{c}] + \max_{E \in A} \Pr_G[\text{failure} \mid E] \;\le\; e^{-2\eta^2 n} + 2^{-\eta n} \;=\; \beta_n .

So at least one matrix G0G_0 has Pfail(G0)≤βnP_{\mathrm{fail}}(G_0) \le \beta_n.

The code has dimension kk. If G0G_0 had rank less than kk there would be w≠0w \ne 0 with wG0=0w G_0 = 0, and decoding would fail for every EE, giving Pfail(G0)=1>βnP_{\mathrm{fail}}(G_0) = 1 > \beta_n. Hence G0G_0 has rank kk, its row space is a linear code of dimension kk, messages correspond bijectively to codewords, and for every transmitted codeword the probability that it is not the unique codeword consistent with the received symbols is at most βn\beta_n.

Decoding. The consistent messages are the solutions of the linear system u′GEˉ=uGEˉu' G_{\bar E} = u G_{\bar E}, found by Gaussian elimination in O(n3)O(n^3) operations.

Builds on
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Tom Richardson, Rüdiger Urbanke (2008). Modern Coding Theory. Cambridge University Press. doi:10.1017/CBO9780511791338
  2. Thomas M. Cover, Joy A. Thomas (2005). Elements of Information Theory. Wiley (2nd edition). doi:10.1002/047174882X

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Bound re-derived in full: random k x n generator matrix, union bound 2^(k-u) over nonzero messages for u unerased positions, Hoeffding bound e^(-2 eta^2 n) on the number of erasures, and beta_n < 1 forcing rank k; Monte Carlo check (n=200, eps=0.3, R=0.5: beta=0.018, 0/300 failures). Capacity 1-eps cross-checked with MacKay (open PDF) ch. 9. Richardson-Urbanke not openly readable, not consulted.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision b08fcbe38f9de2f0. Source file knowledge/records/theorem/linear-codes-achieve-erasure-capacity.md in the content repository (readable there once it is public).