Shannon's coding theorem for the binary symmetric channel: the weak converse #
No code transmits reliably over the binary symmetric channel BSC_p at a rate above its capacity
1 - h₂(p), where h₂(p) = Real.binEntropy p / Real.log 2 is the binary entropy in bits: the
weak converse of Shannon's noisy-channel coding theorem for BSC_p, in the form of
Cover and Thomas, Theorem 7.9.1 specialized to BSC_p.
A code is an encoder E : M → (ι → Bool) with any decoder D : (ι → Bool) → M, and its average
error probability is Pe = 𝔼 m, decodingError p E D m, the error probability of a uniformly random
message. Sending a uniform message W through BSC_p gives a joint law of W and the received
word Y. Then:
I(W; Y) ≤ n (1 - h₂(p))(Cslib.BitString.mutualInfo_bind_bsc_le), becauseH(Y) ≤ nandH(Y | W) = n h₂(p): whatever is sent, the output is a translate of the noise, an independent product ofncoins of entropyh₂(p)(Cslib.BitString.entropy_bsc). The bound holds for any input law, with equality for uniform inputs (Cslib.BitString.mutualInfo_uniformOfFintype_bind_bsc), so1 - h₂(p)is the capacity per channel use Cover and Thomas, Section 7.1. This additive-noise argument replaces the chain rule fornuses of a memoryless channel Cover and Thomas, Lemma 7.9.2, which is not needed forBSC_p.- Fano's inequality bounds
H(W | Y) ≤ h₂(Pe) + Pe log₂ (|M| - 1)(Cslib.Probability.PMF.conditionalEntropy_le_binEntropy_add_mul_logb).
Since log₂ |M| = H(W) = I(W; Y) + H(W | Y), every code satisfies
log₂ |M| ≤ n (1 - h₂(p)) + h₂(Pe) + Pe log₂ (|M| - 1) (Cslib.BitString.logb_card_le_add_fano)
and hence (1 - Pe) log₂ |M| ≤ n (1 - h₂(p)) + 1
(Cslib.BitString.one_sub_expect_decodingError_mul_logb_card_le), the source's
R ≤ Pe R + 1/n + C. At a rate R > 1 - h₂(p) the average error is therefore at least
(R - (1 - h₂(p))) / (2 R) once n ≥ 2 / (R - (1 - h₂(p)))
(Cslib.BitString.le_expect_decodingError_of_lt_rate,
Cslib.BitString.eventually_le_expect_decodingError). The maximal error is at least the average.
The results hold for every p ∈ [0, 1] and every deterministic decoder, not only nearest-codeword
decoders. With Cslib.BitString.eventually_exists_code_decodingError_le they show that
1 - h₂(p) is the capacity of BSC_p for p < 1 / 2. The strong converse (the error tends to 1
above capacity, Guruswami, Rudra and Sudan, Theorem 6.3.1(2)) is in
CslibFrontier.Probability.BitString.BinarySymmetricChannel.StrongConverse, and the capacity
theorem
for every p in CslibFrontier.Probability.BitString.BinarySymmetricChannel.Capacity. General
discrete memoryless channels and channels with feedback are not formalized here.
Main results #
Cslib.BitString.entropy_bscNoise,Cslib.BitString.entropy_bsc: the noise ofBSC_ponnbits has entropyn h₂(p).Cslib.BitString.mutualInfo_bind_bsc_le:nuses ofBSC_pcarry at mostn (1 - h₂(p))bits.Cslib.BitString.mutualInfo_uniformOfFintype_bind_bsc: equality for uniform inputs.Cslib.BitString.logb_card_le_add_fano: the converse with Fano's inequality.Cslib.BitString.one_sub_expect_decodingError_mul_logb_card_le: the weak converse.Cslib.BitString.le_expect_decodingError_of_lt_rate,Cslib.BitString.eventually_le_expect_decodingError: above capacity the average error is bounded away from zero.
References #
- T. M. Cover, J. A. Thomas, Elements of Information Theory, 2nd ed., Sections 7.1 and 7.9.
- V. Guruswami, A. Rudra, M. Sudan, Essential Coding Theory, draft of 26 August 2025
Entropy of the noise #
The noise of BSC_p on n bits has entropy n h₂(p).
Whatever is sent, the output of BSC_p on n bits has entropy n h₂(p).
Mutual information across the channel #
n uses of BSC_p carry at most n (1 - h₂(p)) bits: if a message W drawn from any law
ν is encoded by E and sent through BSC_p, the mutual information of W and the received word
is at most n (1 - h₂(p)).
On a uniformly random input, n uses of BSC_p carry exactly n (1 - h₂(p)) bits, so the
bound Cslib.BitString.mutualInfo_bind_bsc_le is attained: 1 - h₂(p) is the capacity of BSC_p
per channel use Cover and Thomas, Section 7.1.
The converse #
The converse with Fano's inequality: every code E : M → (ι → Bool) for BSC_p with a
decoder D and average error probability Pe satisfies
log₂ |M| ≤ n (1 - h₂(p)) + h₂(Pe) + Pe log₂ (|M| - 1), where n = |ι|.
The weak converse for BSC_p Cover and Thomas, Theorem 7.9.1: every code
E : M → (ι → Bool) with a decoder D and average error probability Pe satisfies
(1 - Pe) log₂ |M| ≤ n (1 - h₂(p)) + 1. For a code of rate R = log₂ |M| / n this is
R ≤ Pe R + 1 / n + (1 - h₂(p)).
Above capacity the error is bounded away from zero, finite form: if
R > 1 - h₂(p), a code has log₂ |M| ≥ R n messages and n ≥ 2 / (R - (1 - h₂(p))), then its
average error probability is at least (R - (1 - h₂(p))) / (2 R), for every decoder.
Shannon's noisy-channel coding theorem for the binary symmetric channel, weak converse, in
its asymptotic form: for every p ∈ [0, 1] and every rate R > 1 - h₂(p), for all sufficiently
large n every code with 2 ^ ⌈R n⌉₊ codewords of length n has average error probability at
least (R - (1 - h₂(p))) / (2 R) > 0, under every decoder.