Let be a discrete memoryless channel with input alphabet and output alphabet . Define its capacity
the maximum over input distributions of the mutual information, in bits, between the input and the output distributed according to .
A code of length and rate is a set of codewords in together with a decoder .
- Achievability. For every and every there is, for all sufficiently large , a code of length and rate whose probability of decoding error is at most for every transmitted codeword.
- Converse. If , there is a constant such that every code of rate , of any length, has average probability of decoding error at least when the codewords are used with equal probability.
The theorem is due to Shannon, whose argument for achievability chooses the codewords at random; a complete proof of both parts, by joint typicality and Fano's inequality, is in chapter 7 of Cover and Thomas. No proof is recorded here. The special case of the erasure channel, with linear codes, is proved in full in a separate record.
The theorem is an existence statement. It does not say how to find the codes, and the random codes in its proof have no efficient decoder.