Setting. Let G be a k×n binary matrix and encode a message
u∈F2k as uG. The channel erases a random set E⊆{1,…,n},
each position independently with probability ϵ. Write GEˉ for the
submatrix of columns outside E. The receiver knows E and the vector
uGEˉ. A message u′ is consistent with what was received if and only if
(u−u′)GEˉ=0. Decoding therefore fails, in the sense that u is not the
unique consistent message, exactly when
there is w∈F2k, w=0, with wGEˉ=0.
This event depends on G and E but not on u. Call its probability over E
Pfail(G).
Random matrix, fixed erasure set. Let the entries of G be independent uniform
bits and fix E with s=n−∣E∣ unerased positions. For a fixed w=0 the
vector wGEˉ is uniformly distributed on F2s: choose i with
wi=1; conditioned on the other rows, row i of GEˉ is uniform and shifts
the sum to a uniform vector. Hence PrG[wGEˉ=0]=2−s, and by the
union bound over the 2k−1 nonzero w,
GPr[failure∣E]≤2k−s.
Few erasures are likely. Let A be the event ∣E∣≤(ϵ+η)n.
The number of erasures is a sum of n independent indicator variables of mean
ϵ, so by Hoeffding's inequality Pr[Ac]≤e−2η2n. On A we have
s≥(1−ϵ−η)n and, since k≤Rn and 1−ϵ−R=2η,
k−s≤Rn−(1−ϵ−η)n=−ηn.
Averaging. Combining the two estimates, with G and E independent,
EG[Pfail(G)]≤Pr[Ac]+E∈AmaxGPr[failure∣E]≤e−2η2n+2−ηn=βn.
So at least one matrix G0 has Pfail(G0)≤βn.
The code has dimension k. If G0 had rank less than k there would be
w=0 with wG0=0, and decoding would fail for every E, giving
Pfail(G0)=1>βn. Hence G0 has rank k, its row space is a
linear code of dimension k, 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.
Decoding. The consistent messages are the solutions of the linear system
u′GEˉ=uGEˉ, found by Gaussian elimination in O(n3) operations.