Documentation

CslibFrontier.Foundations.Data.Code.ProximityGap.Johnson

Proximity gaps for Reed–Solomon codes up to the Johnson bound #

This file formalizes explicit-parameter Johnson-bound correlated-agreement steps and original explicit-constant proximity-gap variants for Reed–Solomon codes over arbitrary fields of arbitrary characteristic, following Ben-Sasson, Carmon, Ishai, Kopparty, and Saraf [BSCI+23]. All theorem and section locators below follow the accepted Journal of the ACM (2023) manuscript (where Theorem 1.4 states correlated agreement / proximity gaps over lines, Theorem 5.1 treats unweighted lines, Theorem 6.2 treats degree-r curves, and Theorem 7.2 treats weighted correlated agreement; by contrast, Theorem 7.2 of the July 2020 ePrint 2020/654 version concerns FRI soundness).

Scope and relationship to the source theorems #

The formalization is organized into focused submodules under CslibFrontier.Foundations.Data.Code.ProximityGap.Johnson (all internal step modules are imported privately so downstream clients see only the public API):

Main definitions #

Main results #

References #

theorem Cslib.Code.ProximityGap.exists_separable_contraction {F : Type u_1} [Field F] {R : Polynomial (Polynomial (Polynomial F))} (hR_irred : Irreducible R) (hR_deg : 1 ≤ R.natDegree) :
∃ (μ : ℕ) (S : Polynomial (Polynomial (Polynomial F))) (A : Polynomial (Polynomial (Polynomial F))) (B : Polynomial (Polynomial (Polynomial F))) (Δ : Polynomial (Polynomial F)), (μ = 1 ∨ ∃ (p : ℕ) (e : ℕ), CharP F p ∧ Nat.Prime p ∧ μ = p ^ e) ∧ 1 ≤ μ ∧ S.comp (Polynomial.X ^ μ) = R ∧ 1 ≤ S.natDegree ∧ μ * S.natDegree = R.natDegree ∧ Δ ≠ 0 ∧ S * A + Polynomial.derivative S * B = Polynomial.C Δ

Positive-characteristic-safe separable contraction in F[Z][X][Y].

Given an irreducible polynomial R ∈ F[Z][X][Y] of positive Y-degree over an arbitrary field F, there exist a contraction exponent μ ≥ 1 (either μ = 1 or a prime power μ = p ^ e in characteristic p), a polynomial S ∈ F[Z][X][Y] of positive Y-degree with S(Z, X, Y ^ μ) = R and μ * S.natDegree = R.natDegree, and a Bézout identity S * A + S' * B = C Δ with Δ ≠ 0 witnessing separability of S over FractionRing F[Z][X].

theorem Cslib.Code.exists_weighted_correlatedAgreement_curve_johnson {F : Type u_1} {ι : Type u_2} [Field F] [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {k r m D M W_tot B_W : ℕ} (hk : 1 ≤ k) (hm : 1 ≤ m) (hM : 0 < M) {W : ι → ℕ} (hW_le : ∀ (i : ι), W i ≤ M) (hW_sum : ∑ i : ι, W i ≤ W_tot) (hk_le_t : k ≤ (B_W + M - 1) / M) (hinterp : Fintype.card ι * (m * (m + 1) / 2) < (Sudan.monomials (k - 1) D).card) (hroot : D < m * ((B_W + M - 1) / M)) (u : Fin (r + 1) → ι → F) (T : Finset F) (hT : ProximityGap.johnsonCurveBound (Fintype.card ι) m (k - 1) D r W_tot < T.card) (hclose : ∀ z ∈ T, ∃ v ∈ reedSolomon α k, B_W ≤ ∑ i : ι with (∑ j : Fin (r + 1), z ^ ↑j • u j) i = v i, W i) :
∃ (D' : Finset ι), B_W ≤ ∑ i ∈ D', W i ∧ ∃ (v : Fin (r + 1) → ι → F), (∀ (j : Fin (r + 1)), v j ∈ reedSolomon α k) ∧ ∀ i ∈ D', ∀ (j : Fin (r + 1)), u j i = v j i

Explicit-parameter integer-weighted correlated-agreement step on degree-r curves (step toward [BenSassonCarmonIshaiKoppartySaraf2020, Theorems 5.1, 6.2, and 7.2] in the accepted Journal of the ACM 2023 manuscript; note that Theorem 7.2 of the July 2020 ePrint 2020/654 version concerns FRI soundness).

Let α : ι → F be distinct evaluation points over an arbitrary field F of any characteristic, let W : ι → ℕ be integer coordinate weights with ∀ i, W i ≤ M (0 < M) and ∑ i, W i ≤ W_tot, and let m ≥ 1, D : ℕ satisfy the explicit Guruswami–Sudan interpolation and root-divisibility conditions for weight threshold B_W (with k ≤ (B_W + M - 1) / M). For any r + 1 words u : Fin (r + 1) → (ι → F) and finite set T : Finset F with johnsonCurveBound |ι| m (k - 1) D r W_tot < #T, if for every z ∈ T the curve point ∑ j, z ^ j • u j has W-weighted agreement at least B_W with some codeword in reedSolomon α k, then there exist a single shared coordinate subset D' : Finset ι with B_W ≤ ∑ i ∈ D', W i and codewords v : Fin (r + 1) → (ι → F) in reedSolomon α k agreeing with u on D'.

This theorem is parameterized directly by (m, D, M, W_tot, B_W) and integer weights W : ι → ℕ; deriving the paper's displayed finite thresholds or normalized/rational-valued weight statements is left open as separate work.

theorem Cslib.Code.exists_correlatedAgreement_curve_johnson {F : Type u_1} {ι : Type u_2} [Field F] [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {k r e m D : ℕ} (hk : 1 ≤ k) (hm : 1 ≤ m) (hk_le : k ≤ Fintype.card ι - e) (hinterp : Fintype.card ι * (m * (m + 1) / 2) < (Sudan.monomials (k - 1) D).card) (hroot : D < m * (Fintype.card ι - e)) (u : Fin (r + 1) → ι → F) (T : Finset F) (hT : ProximityGap.johnsonCurveBound (Fintype.card ι) m (k - 1) D r (Fintype.card ι) < T.card) (hclose : ∀ z ∈ T, ∃ c ∈ reedSolomon α k, hammingDist (∑ j : Fin (r + 1), z ^ ↑j • u j) c ≤ e) :
∃ (D' : Finset ι), Fintype.card ι - e ≤ D'.card ∧ ∃ (v : Fin (r + 1) → ι → F), (∀ (j : Fin (r + 1)), v j ∈ reedSolomon α k) ∧ ∀ i ∈ D', ∀ (j : Fin (r + 1)), u j i = v j i

Explicit-parameter unweighted correlated-agreement step on degree-r curves (step toward [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 6.2], accepted JACM 2023 manuscript).

Unweighted specialization of Cslib.Code.exists_weighted_correlatedAgreement_curve_johnson over an arbitrary field F of any characteristic, parameterized explicitly by (m, D) and Cslib.Code.ProximityGap.johnsonCurveBound.

theorem Cslib.Code.exists_weighted_correlatedAgreement_line_johnson {F : Type u_1} {ι : Type u_2} [Field F] [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {k m D M W_tot B_W : ℕ} (hk : 1 ≤ k) (hm : 1 ≤ m) (hM : 0 < M) {W : ι → ℕ} (hW_le : ∀ (i : ι), W i ≤ M) (hW_sum : ∑ i : ι, W i ≤ W_tot) (hk_le_t : k ≤ (B_W + M - 1) / M) (hinterp : Fintype.card ι * (m * (m + 1) / 2) < (Sudan.monomials (k - 1) D).card) (hroot : D < m * ((B_W + M - 1) / M)) (u₀ u₁ : ι → F) (T : Finset F) (hT : ProximityGap.johnsonCurveBound (Fintype.card ι) m (k - 1) D 1 W_tot < T.card) (hclose : ∀ z ∈ T, ∃ c ∈ reedSolomon α k, B_W ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, W i) :
∃ (D' : Finset ι), B_W ≤ ∑ i ∈ D', W i ∧ ∃ v₀ ∈ reedSolomon α k, ∃ v₁ ∈ reedSolomon α k, ∀ i ∈ D', u₀ i = v₀ i ∧ u₁ i = v₁ i

Explicit-parameter integer-weighted correlated-agreement step on affine lines (step toward [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 7.2] in the accepted JACM 2023 manuscript; Theorem 7.2 of the July 2020 ePrint 2020/654 version concerns FRI soundness).

Line (r = 1) specialization of Cslib.Code.exists_weighted_correlatedAgreement_curve_johnson over an arbitrary field F of any characteristic, with explicit (m, D) and integer weights W : ι → ℕ (normalized/rational-valued weights are outside this theorem's scope).

theorem Cslib.Code.exists_correlatedAgreement_line_johnson {F : Type u_1} {ι : Type u_2} [Field F] [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {k e m D : ℕ} (hk : 1 ≤ k) (hm : 1 ≤ m) (hk_le : k ≤ Fintype.card ι - e) (hinterp : Fintype.card ι * (m * (m + 1) / 2) < (Sudan.monomials (k - 1) D).card) (hroot : D < m * (Fintype.card ι - e)) (u₀ u₁ : ι → F) (T : Finset F) (hT : ProximityGap.johnsonCurveBound (Fintype.card ι) m (k - 1) D 1 (Fintype.card ι) < T.card) (hclose : ∀ z ∈ T, ∃ c ∈ reedSolomon α k, hammingDist (u₀ + z • u₁) c ≤ e) :
∃ (D' : Finset ι), Fintype.card ι - e ≤ D'.card ∧ ∃ v₀ ∈ reedSolomon α k, ∃ v₁ ∈ reedSolomon α k, ∀ i ∈ D', u₀ i = v₀ i ∧ u₁ i = v₁ i

Explicit-parameter unweighted correlated-agreement step on affine lines (step toward [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 5.1], accepted JACM 2023 manuscript).

Line (r = 1), unweighted specialization of Cslib.Code.exists_correlatedAgreement_curve_johnson over an arbitrary field F of any characteristic, parameterized explicitly by (m, D) and Cslib.Code.ProximityGap.johnsonCurveBound.

theorem Cslib.Code.proximityGap_line_johnson {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Fintype ι] [DecidableEq F] {α : ι → F} {e k m : ℕ} (hα : Function.Injective α) (hk : 1 ≤ k) (hkn : k ≤ Fintype.card ι) (hm : 1 ≤ m) (he : ↑e / ↑(Fintype.card ι) ≤ 1 - √(↑k / ↑(Fintype.card ι)) - √(↑k / ↑(Fintype.card ι)) / (2 * ↑m)) (u₀ u₁ : ι → F) [DecidablePred fun (z : F) => ∃ c ∈ reedSolomon α k, hammingDist (u₀ + z • u₁) c ≤ e] :
(∀ (z : F), ∃ c ∈ reedSolomon α k, hammingDist (u₀ + z • u₁) c ≤ e) ∨ ↑{z : F | ∃ c ∈ reedSolomon α k, hammingDist (u₀ + z • u₁) c ≤ e}.card / ↑(Fintype.card F) ≤ 1800 * (↑m + 1) ^ 6 * ↑(Fintype.card ι) ^ 2 / (↑k / ↑(Fintype.card ι) * ↑(Fintype.card F))

Proximity gap for affine lines up to the Johnson bound (explicit-constant variant) (original quantitative variant of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 1.4], accepted JACM 2023 manuscript).

Let α : ι → F be distinct evaluation points over a finite field F with n = |ι| and code rate ρ = k / n (1 ≤ k ≤ n), and let m ≥ 1 be the multiplicity parameter. For any proximity radius e : ℕ with (e : ℝ) / n ≤ 1 - √ρ - √ρ / (2 * m) and any two words u₀, u₁ : ι → F, either every point u₀ + z • u₁ on the affine line lies within Hamming distance e of reedSolomon α k, or the fraction of scalars z : F that do is at most 1800 * (m + 1) ^ 6 * n ^ 2 / (ρ * |F|).

Compared to the displayed finite-threshold bound (m + 1 / 2) ^ 7 / (3 * ρ ^ (3 / 2)) * n ^ 2 / |F| of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 5.1, p. 17] (accepted NSF/JACM manuscript; Theorem 1.4 instead references Theorem 1.2's η-dependent expression), this variant has smaller asymptotic exponents in m and 1 / ρ ((m + 1) ^ 6 / ρ) but is not uniformly smaller at small finite m (for example, at m = 3 and ρ = 1 / 4, the coefficients are 29,491,200 versus approximately 17,157). Thus it does not imply the paper's displayed finite constant for all finite m; matching that exact finite constant remains open.

theorem Cslib.Code.proximityGap_line_johnson_of_eta {F : Type u_1} {ι : Type u_2} [Field F] [Fintype F] [Fintype ι] [DecidableEq F] {α : ι → F} {e k : ℕ} {η : ℝ} (hα : Function.Injective α) (hk : 1 ≤ k) (hkn : k ≤ Fintype.card ι) (hη : 0 < η) (he : ↑e / ↑(Fintype.card ι) ≤ 1 - √(↑k / ↑(Fintype.card ι)) - η) (u₀ u₁ : ι → F) [DecidablePred fun (z : F) => ∃ c ∈ reedSolomon α k, hammingDist (u₀ + z • u₁) c ≤ e] :
(∀ (z : F), ∃ c ∈ reedSolomon α k, hammingDist (u₀ + z • u₁) c ≤ e) ∨ ↑{z : F | ∃ c ∈ reedSolomon α k, hammingDist (u₀ + z • u₁) c ≤ e}.card / ↑(Fintype.card F) ≤ 115200 * ↑(Fintype.card ι) ^ 2 / (↑k / ↑(Fintype.card ι) * η ^ 6 * ↑(Fintype.card F))

Proximity gap for affine lines up to 1 - √ρ - η (explicit-constant variant) (original η-parameterized corollary of Cslib.Code.proximityGap_line_johnson in the setting of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 1.4], accepted JACM 2023 manuscript).

For any positive gap η > 0 below the Johnson bound 1 - √ρ, either every point on the affine line lies within Hamming distance e of reedSolomon α k, or the exceptional fraction is at most 115200 * n ^ 2 / (ρ * η ^ 6 * |F|).