Documentation

CslibFrontier.Foundations.Data.Code.Plotkin.Asymptotic

The asymptotic Plotkin bound #

Let C be a code of length n and minimum distance at least d > 0 over q ≥ 2 letters, with q d ≤ (q - 1) n. Shortening C to the largest number m of coordinates with (q - 1) m < q d and applying the Plotkin bound to each of the q ^ (n - m) shortened codes (Cslib.Code.card_mul_sub_le_pow_mul_of_le_minDist) gives log_q |C| ≤ n - q d / (q - 1) + 2 + log_q d (Cslib.Code.logb_card_le_of_le_minDist). For a family of codes of relative distance at least δ ≤ 1 - 1 / q and growing length, this is the asymptotic Plotkin bound R ≤ 1 - q δ / (q - 1) + o(1) on the rate R (Cslib.Code.eventually_logb_card_le_of_le_hammingDist) [GuruswamiRudraSudan2019, Corollary 4.4.2].

Main results #

References #

theorem Cslib.Code.logb_card_le_of_le_minDist {ι : Type u_1} {α : Type u_2} [Fintype ι] [Fintype α] [DecidableEq α] [Nontrivial α] {C : Finset (ι → α)} {d : ℕ} (hd : ↑d ≤ minDist ↑C) (hd0 : 0 < d) (h : Fintype.card α * d ≤ (Fintype.card α - 1) * Fintype.card ι) :
Real.logb ↑(Fintype.card α) ↑C.card ≤ ↑(Fintype.card ι) - ↑(Fintype.card α) * ↑d / (↑(Fintype.card α) - 1) + 2 + Real.logb ↑(Fintype.card α) ↑d

The Plotkin bound below relative distance 1 - 1 / q, logarithmic form: a code of length n and minimum distance at least d > 0 over q ≥ 2 letters with q d ≤ (q - 1) n satisfies log_q |C| ≤ n - q d / (q - 1) + 2 + log_q d.

theorem Cslib.Code.eventually_logb_card_le_of_le_hammingDist {α : Type u_2} [Fintype α] [DecidableEq α] {σ : Type u_3} {ιs : σ → Type u_4} [(s : σ) → Fintype (ιs s)] [Nontrivial α] {l : Filter σ} {C : (s : σ) → Finset (ιs s → α)} {δ : ℝ} (hδ0 : 0 ≤ δ) (hδ : ↑(Fintype.card α) * δ ≤ ↑(Fintype.card α) - 1) (hC : ∀ (s : σ), ∀ x ∈ C s, ∀ y ∈ C s, x ≠ y → δ * ↑(Fintype.card (ιs s)) ≤ ↑(hammingDist x y)) (hn : Filter.Tendsto (fun (s : σ) => Fintype.card (ιs s)) l Filter.atTop) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (s : σ) in l, Real.logb ↑(Fintype.card α) ↑(C s).card ≤ (1 - ↑(Fintype.card α) / (↑(Fintype.card α) - 1) * δ + ε) * ↑(Fintype.card (ιs s))

The asymptotic Plotkin bound [GuruswamiRudraSudan2019, Corollary 4.4.2]. Let C s be codes over q ≥ 2 letters whose lengths n_s tend to infinity along a filter l, with relative distance at least δ, where 0 ≤ δ ≤ 1 - 1 / q: distinct codewords of C s differ on at least δ n_s coordinates. Then for every ε > 0, eventually log_q |C s| ≤ (1 - q δ / (q - 1) + ε) n_s; that is, the rate is at most 1 - q δ / (q - 1) + o(1).