Documentation

CslibFrontier.Foundations.Data.Code.ListDecoding.JohnsonBound

The real Johnson radius and list-decodability bounds #

Building on the integer second-moment Johnson inequalities of CslibFrontier.Foundations.Data.Code.Johnson (Cslib.Code.card_filter_hammingDist_le_mul_le and Cslib.Code.card_filter_hammingDist_le_mul_le_of_mul_le) and the combinatorial list-decodability predicate Cslib.Code.IsListDecodable of CslibFrontier.Foundations.Data.Code.ListDecoding, this module formalizes the real-valued Johnson radii and list-size bounds:

For the finite and asymptotic Elias–Bassalygo rate upper bounds derived from johnsonRadius, see CslibFrontier.Foundations.Data.Code.EliasBassalygo.

Main definitions #

Main results #

References #

The Johnson radii J_q(δ) and 1 - √(1 - δ) #

noncomputable def Cslib.Code.johnsonRadius (q δ : ℝ) :

The q-ary Johnson radius at relative distance δ: J_q(δ) = (1 - 1 / q) * (1 - √(1 - q * δ / (q - 1))). For δ > 1 - 1 / q, Real.sqrt of a negative argument is 0, so the formula caps at 1 - 1 / q.

noncomputable def Cslib.Code.johnsonRadiusLimit (δ : ℝ) :

The alphabet-free (q → ∞) Johnson radius 1 - √(1 - δ).

@[simp]
theorem Cslib.Code.johnsonRadius_two (δ : ℝ) :
johnsonRadius 2 δ = (1 - √(1 - 2 * δ)) / 2
theorem Cslib.Code.johnsonRadius_nonneg {q δ : ℝ} (hq : 1 < q) (hδ : 0 ≤ δ) :
theorem Cslib.Code.johnsonRadius_le_one_sub_inv {q δ : ℝ} (hq : 1 < q) :
johnsonRadius q δ ≤ 1 - 1 / q
theorem Cslib.Code.johnsonRadius_mono_right {q δ₁ δ₂ : ℝ} (hq : 1 < q) (hδ : δ₁ ≤ δ₂) :
theorem Cslib.Code.johnsonRadius_antitone {q₁ q₂ δ : ℝ} (hq₁ : 1 < q₁) (hq : q₁ ≤ q₂) (hδ0 : 0 ≤ δ) (hδ : δ ≤ 1 - 1 / q₁) :

For 0 ≤ δ ≤ 1 - 1 / q₁, the q-ary Johnson radius J_q(δ) is antitone in q ≥ q₁.

As the alphabet size q → ∞, J_q(δ) converges to 1 - √(1 - δ).

theorem Cslib.Code.johnsonRadiusLimit_le_johnsonRadius {q δ : ℝ} (hq : 1 < q) (hδ0 : 0 ≤ δ) (hδ : δ ≤ 1 - 1 / q) :

For any 1 < q and 0 ≤ δ ≤ 1 - 1 / q, the alphabet-free radius 1 - √(1 - δ) is at most J_q(δ).

The real-valued q-ary and alphabet-free Johnson bounds #

theorem Cslib.Code.mul_le_sub_one_mul_and_lt_of_lt_johnsonRadius {q n d e : ℕ} (hq : 2 ≤ q) (hn : 0 < n) (hdn : d ≤ n) (he : ↑e / ↑n < johnsonRadius (↑q) (↑d / ↑n)) :
q * e ≤ (q - 1) * n ∧ (q - 1) * n * (n - d) < (q - 1) * (n - e) ^ 2 + e ^ 2

Bridge from the strict real q-ary Johnson radius condition e / n < J_q(d / n) (with q ≥ 2 and d ≤ n) to the natural-number hypotheses q * e ≤ (q - 1) * n and (q - 1) * n * (n - d) < (q - 1) * (n - e) ^ 2 + e ^ 2 required by Cslib.Code.card_filter_hammingDist_le_mul_le_of_mul_le and Cslib.Code.card_mul_sum_choose_le.

theorem Cslib.Code.isListDecodable_of_le_johnsonRadius {ι : Type u_1} {α : Type u_2} [Fintype ι] [DecidableEq α] [Nonempty ι] [Fintype α] (hq : 2 ≤ Fintype.card α) {C : Set (ι → α)} {d : ℕ} (hd : ↑d ≤ minDist C) {ε ρ : ℝ} (hε : 0 < ε) (hρ : ρ ≤ johnsonRadius (↑(Fintype.card α)) (↑d / ↑(Fintype.card ι)) - ε) :
IsListDecodable C ρ ⌊(↑(Fintype.card α) - 1) * (↑d / ↑(Fintype.card ι)) / (↑(Fintype.card α) * ε ^ 2)⌋₊

The real-valued q-ary Johnson bound [Joh62] (locator unverified), [GRS19] (locator unverified): over an alphabet of q ≥ 2 letters, a code C of length n ≥ 1 and minimum distance at least d (relative distance δ = d / n) is (ρ, L)-list-decodable for every ε > 0 and ρ ≤ J_q(δ) - ε, with constant list size L = ⌊(q - 1) * δ / (q * ε ^ 2)⌋₊.

In particular, since (q - 1) * δ / q ≤ 1 ≤ n, the list size satisfies L ≤ ⌊1 / ε ^ 2⌋₊ ≤ ⌊n / ε ^ 2⌋₊.

theorem Cslib.Code.isListDecodable_of_le_johnsonRadiusLimit {ι : Type u_1} {α : Type u_2} [Fintype ι] [DecidableEq α] [Nonempty ι] {C : Set (ι → α)} {d : ℕ} (hd : ↑d ≤ minDist C) {ε ρ : ℝ} (hε : 0 < ε) (hρ : ρ ≤ johnsonRadiusLimit (↑d / ↑(Fintype.card ι)) - ε) :
IsListDecodable C ρ ⌊↑d / ↑(Fintype.card ι) / ε ^ 2⌋₊

The alphabet-free (q → ∞) real Johnson bound [Joh62] (locator unverified), [GRS19] (locator unverified): whatever the alphabet α, a code C : Set (ι → α) of length n ≥ 1 and minimum distance at least d (δ = d / n) is (ρ, L)-list-decodable for every ε > 0 and ρ ≤ 1 - √(1 - δ) - ε, with constant list size L = ⌊δ / ε ^ 2⌋₊.

theorem Cslib.Code.isListDecodable_reedSolomon {ι : Type u_1} [Fintype ι] [Nonempty ι] {F : Type u_3} [Field F] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {k : ℕ} (hk : 1 ≤ k) (hkn : k ≤ Fintype.card ι) {ε ρ : ℝ} (hε : 0 < ε) (hρ : ρ ≤ 1 - √(↑(k - 1) / ↑(Fintype.card ι)) - ε) :
IsListDecodable (↑(reedSolomon α k)) ρ ⌊(1 - ↑(k - 1) / ↑(Fintype.card ι)) / ε ^ 2⌋₊

Combinatorial list-decodability of Reed–Solomon codes up to the Johnson radius [GS99b] (locator unverified), [GRS19] (locator unverified): with n ≥ 1 distinct evaluation points α, a Reed–Solomon code reedSolomon α k of dimension 1 ≤ k ≤ n over any field F has minimum distance at least d = n - k + 1, so for every ε > 0 it is combinatorially (ρ, L)-list-decodable up to ρ ≤ 1 - √((k - 1) / n) - ε with list size L = ⌊(1 - (k - 1) / n) / ε ^ 2⌋₊ (in particular for every ρ ≤ 1 - √(k / n) - ε).

This is the combinatorial Johnson-radius bound on Hamming-ball intersections obtained from isListDecodable_of_le_johnsonRadiusLimit, not an algorithmic Guruswami–Sudan list decoder; for the explicit bivariate-interpolation decoder, see CslibFrontier.Foundations.Data.Code.GuruswamiSudan.