Documentation

CslibFrontier.Probability.BitString.BinarySymmetricChannel.StrongConverse

Shannon's coding theorem for the binary symmetric channel: the strong converse #

Above the capacity 1 - h₂(p) of the binary symmetric channel BSC_p, where h₂(p) = Real.binEntropy p / Real.log 2 is the binary entropy in bits, the error probability of every code tends to 1 exponentially fast: the strong converse of Shannon's noisy-channel coding theorem for BSC_p Guruswami, Rudra and Sudan, Theorem 6.3.1(2) and Remark 6.3.2, due to Wolfowitz for discrete memoryless channels. The weak converse (CslibFrontier.Probability.BitString.BinarySymmetricChannel.Converse) only bounds the error away from 0.

The proof is the packing argument of [Guruswami, Rudra and Sudan, Section 6.3.1] [GRS19], applied to the average error. For p ≤ 1 / 2, a noise pattern with at least a flipped bits has probability at most p ^ a (1 - p) ^ (n - a), and the decoding regions {y | D y = m} partition the 2 ^ n received words. So the average success probability of a code with |M| messages is at most T + 2 ^ n p ^ a (1 - p) ^ (n - a) / |M|, where T is the probability that fewer than a bits flip (Cslib.BitString.one_sub_expect_decodingError_le). With a = ⌈(p - γ) n⌉₊, Hoeffding's inequality bounds T by exp (-2 γ ^ 2 n), and p ^ a (1 - p) ^ (n - a) ≤ exp (-n (H(p) - γ log ((1 - p) / p))) with H(p) in nats; for small γ > 0 both terms are exponentially small when |M| ≥ 2 ^ (R n) with R > 1 - h₂(p). Crossover probabilities p > 1 / 2 reduce to 1 - p by complementing the received word (Cslib.BitString.decodingError_symm).

The source states the result for 0 ≤ p < 1 / 2 and the maximal error: some message is misdecoded with probability more than 1 / 2, or more than 1 - 2 ^ (-β n) (Remark 6.3.2). The theorems here bound the average error by 1 - 2 exp (-δ n) for every p ∈ [0, 1] and every n, which implies the maximal-error form. They take the rate strictly above capacity. The source's statement nominally allows its slack ε = 0, a rate of exactly 1 - h₂(p), but its proof needs ε > 0, and that case fails as stated: for p = 0 and k = n the identity code never errs. The behaviour at capacity depends on second-order terms and is not treated here. Together with Cslib.BitString.eventually_exists_code_decodingError_le they determine the capacity of BSC_p (CslibFrontier.Probability.BitString.BinarySymmetricChannel.Capacity). General discrete memoryless channels and channels with feedback are not formalized here.

Main results #

References #

The packing bound #

theorem Cslib.BitString.one_sub_expect_decodingError_le {ι : Type u_1} [Fintype ι] {M : Type u_2} [Fintype M] [Nonempty M] (p : ↑unitInterval) (hp : ↑p ≤ 1 / 2) (E : M → ι → Bool) (D : (ι → Bool) → M) (a : ℕ) :
(1 - Finset.univ.expect fun (m : M) => decodingError p E D m) ≤ ∑ k ∈ Finset.range (Fintype.card ι + 1) with k < a, ↑((Fintype.card ι).choose k) * ↑p ^ k * (1 - ↑p) ^ (Fintype.card ι - k) + 2 ^ Fintype.card ι * (↑p ^ a * (1 - ↑p) ^ (Fintype.card ι - a)) / ↑(Fintype.card M)

The packing bound behind the strong converse for BSC_p, p ≤ 1 / 2: for every code E : M → (ι → Bool) with |M| messages, every decoder D and every a : ℕ, the average success probability is at most T + 2 ^ n p ^ a (1 - p) ^ (n - a) / |M|, where n = |ι| and T = ∑_{k < a} C(n, k) p ^ k (1 - p) ^ (n - k) is the probability that fewer than a bits flip. A noise pattern of weight at least a has probability at most p ^ a (1 - p) ^ (n - a), and the decoding regions {y | D y = m} partition the 2 ^ n received words.

The exponent #

The strong converse #

theorem Cslib.BitString.exists_pos_one_sub_two_mul_exp_le_expect_decodingError (p : ↑unitInterval) {R : ℝ} (hR : 1 - Real.binEntropy ↑p / Real.log 2 < R) :
∃ δ > 0, ∀ {ι : Type u_3} [inst : Fintype ι] {M : Type u_4} [inst_1 : Fintype M] [Nonempty M] (E : M → ι → Bool) (D : (ι → Bool) → M), R * ↑(Fintype.card ι) ≤ Real.logb 2 ↑(Fintype.card M) → 1 - 2 * Real.exp (-(δ * ↑(Fintype.card ι))) ≤ Finset.univ.expect fun (m : M) => decodingError p E D m

The strong converse of Shannon's noisy-channel coding theorem for the binary symmetric channel, with an exponential rate: for every p ∈ [0, 1] and every rate R above the capacity 1 - h₂(p), there is δ > 0 such that every code E : M → (ι → Bool) with log₂ |M| ≥ R n messages of length n = |ι| has average error probability at least 1 - 2 exp (-δ n), for every decoder D and every n.

This strengthens Guruswami, Rudra and Sudan, Theorem 6.3.1(2) and Remark 6.3.2, which take 0 ≤ p < 1 / 2 and bound the maximal error below by 1 - 2 ^ (-β n) for large n: here the average error is bounded, for every crossover probability.

theorem Cslib.BitString.eventually_one_sub_le_expect_decodingError (p : ↑unitInterval) {R : ℝ} (hR : 1 - Real.binEntropy ↑p / Real.log 2 < R) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ {M : Type u_3} [inst : Fintype M] [Nonempty M] (E : M → BitString n) (D : BitString n → M), R * ↑n ≤ Real.logb 2 ↑(Fintype.card M) → 1 - ε ≤ Finset.univ.expect fun (m : M) => decodingError p E D m

The strong converse for BSC_p, asymptotic form: for every p ∈ [0, 1], every rate R > 1 - h₂(p) and every ε > 0, for all sufficiently large n every code with at least 2 ^ (R n) messages of length n has average error probability at least 1 - ε, for every decoder.

theorem Cslib.BitString.eventually_exists_lt_decodingError (p : ↑unitInterval) {R : ℝ} (hR : 1 - Real.binEntropy ↑p / Real.log 2 < R) {ε : ℝ} (hε : ε < 1) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (k : ℕ), R * ↑n ≤ ↑k → ∀ (E : BitString k → BitString n) (D : BitString n → BitString k), ∃ (m : BitString k), ε < decodingError p E D m

The strong converse for BSC_p in the form of Guruswami, Rudra and Sudan, Theorem 6.3.1(2): if R > 1 - h₂(p), then for all sufficiently large n, every encoder E : {0, 1} ^ k → {0, 1} ^ n with k ≥ R n and every decoder D misdecode some message m with probability greater than ε, for any fixed error level ε < 1. The source fixes the error level 1 / 2 and takes 0 ≤ p < 1 / 2; its rate slack, also called ε there, corresponds to R - (1 - h₂(p)) > 0 here. The source nominally allows slack 0, but its proof needs a positive slack, and that case fails as stated (p = 0, k = n, the identity code).