Weighted, curve, and affine-space proximity gaps for Reed–Solomon codes #
This module extends CslibFrontier.Foundations.Data.Code.ProximityGap.Unique and
CslibFrontier.Foundations.Data.Code.ProximityGap.Johnson with weighted correlated agreement,
parameterized-curve proximity gaps, and dimension-independent affine-space proximity gaps and
correlated agreement for Reed–Solomon codes in both the unique-decoding and Johnson-bound regimes,
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 (https://par.nsf.gov/servlets/purl/10467091, where
Theorem 1.2 treats affine-space proximity gaps across both the unique-decoding and Johnson-bound
regimes, Theorem 1.4 treats line correlated agreement across both regimes, Theorem 1.5 treats
parameterized curves, Theorem 1.6 on printed p. 6 treats affine-space correlated agreement,
Lemma 6.3 and Section 6.3 on printed pp. 29–31 prove the line-to-affine reduction, Theorems 6.1–6.2
treat unique-decoding and Johnson-bound degree-r curves, Theorem 7.1 treats weighted correlated
agreement on curves, Version I, in the α > √ρ range, Theorem 7.2 treats weighted correlated
agreement on lines and curves, Version II, and Theorems 7.3–7.4 on printed p. 32 with proof in
Section 7.3 on printed p. 34 treat weighted correlated agreement over affine spaces; by contrast,
Theorem 7.2 of the July 2020 ePrint 2020/654 version concerns FRI soundness).
Scope and relationship to the source theorems #
- Unique-decoding weighted & affine theorems:
Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_unique,Cslib.Code.exists_weighted_correlatedAgreement_curve_unique, and their line/dichotomy counterparts give a unique-decoding specialization and signed-weight extension (μ i ≤ 1) of weighted curve correlated agreement (whereas source Theorem 7.1 treats weighted curves, Version I, across theα > √ρrange), achieving the sharpd * |ι| < #Sthreshold with zero dependence on weight denominators.Cslib.Code.exists_uniqueMaximal_correlatedAgreement_affine_uniqueandCslib.Code.proximityGap_affine_uniqueformalize the exact eq. (1.2) threshold|ι| * |F| ^ ℓ < |F| * #T(ε_U = n / q) for unweighted affine spaces together with Theorem 1.6's uniqueness and maximality clause in the unique-decoding regime2 * e + k ≤ |ι|(printed p. 3, p. 6, and pp. 28–31), alongside the generic(Fˣ)^ℓ × Fˣcurve reductionCslib.Code.exists_correlatedAgreement_affine_of_curvewith linear-in-ℓoverhead and theℕ/ℚ-weighted unique-decoding affine theoremsCslib.Code.exists_ratWeighted_correlatedAgreement_affine_unique_sharp,Cslib.Code.exists_weighted_correlatedAgreement_affine_unique_sharp,Cslib.Code.weighted_proximityGap_affine_unique_sharp, andCslib.Code.ratWeighted_proximityGap_affine_unique_sharpat threshold|ι| * (|F| ^ ℓ - 1) < (|F| - 1) * #T(reusingCslib.Code.exists_uniqueMaximal_correlatedAgreement_affine_uniquefor theℓ ≥ 1unweighted step while handlingℓ = 0explicitly, including|ι| = |F|). - Johnson-bound curves (
ℚ-weighted steps and explicit-constant dichotomies):Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_johnsonandCslib.Code.exists_ratWeighted_correlatedAgreement_line_johnsonare explicit-parameterℚ-weighted correlated-agreement steps toward Theorems 6.2, 7.1, and 7.2 parameterized directly by(m, D)and weight denominatorMviaCslib.Code.ProximityGap.johnsonCurveBound.Cslib.Code.proximityGap_curve_johnson,Cslib.Code.proximityGap_curve_johnson_of_eta,Cslib.Code.weighted_proximityGap_curve_johnson, andCslib.Code.ratWeighted_proximityGap_curve_johnsonare original explicit-constant variants toward Theorems 1.5, 6.2, 7.1, and 7.2 with exceptional fraction1800 * r * (m + 1) ^ 6 * n ^ 2 / (ρ * |F|)(respectively115200 * r * n ^ 2 / (ρ * η ^ 6 * |F|)and factorMin weighted forms); while(m + 1) ^ 6 / ρis asymptotically smaller inmand1 / ρthan the paper's displayed(m + 1 / 2) ^ 7 / (3 * ρ ^ (3 / 2)), the bound is not uniformly smaller at small finitem(tracked in#5968). - Johnson-bound affine spaces without list-size premises (original finite bounds toward
Theorems 1.6 and 7.4):
Cslib.Code.exists_weighted_correlatedAgreement_affine_of_divergenceandCslib.Code.exists_weighted_correlatedAgreement_affine_of_lineformalize the Section 6.3 (printed pp. 29–31) and Section 7.3 (printed p. 34) line-to-affine correlated-agreement reduction over any linear codeC : Submodule F (ι → F): Lemma 6.3's parallel-line partition plus(ℓ + 1)-dimensional homogenization liftsB_line * |F| ^ ℓ < |F| * #T(exact denominator|F|) to everywhere-closeness, and maximal-divergence / minimal-weight-agreement pigeonhole overL < |F|candidate codewords yields simultaneous correlated agreement on all affine generators. To handle zero coordinate weights—where Section 7.3's claim on printed p. 34 that Section 6.3 applies verbatim breaks because equalW-weight no longer forcesD' = D'_ion zero-weight coordinates—the proof intersects each candidate agreement set withsupp W = {i | W i ≠ 0}and models the parameter fiber directly as anF-submodule viaC's restriction image (so the generic linear-code lemma never uses the unique extension fromD'on printed p. 31; for Reed–Solomon codes under Theorem 7.4'sα > ρthat extension is available, so this is a generality gain rather than a source repair), establishing the full unweighted and weighted conclusions without restrictingWorμaway from zero.- Because
maxYDeg (k - 1) D ≤ johnsonCurveBound |ι| m (k - 1) D 1 W_tot < |F|holds automatically underB_line * |F| ^ ℓ < |F| * #T, the Reed–Solomon affine correlated-agreement theorems require no extra list-size / field-size premise:Cslib.Code.exists_weighted_correlatedAgreement_affine_johnson,Cslib.Code.exists_correlatedAgreement_affine_johnson, andCslib.Code.exists_ratWeighted_correlatedAgreement_affine_johnsongive explicit-parameter(m, D)correlated agreement, whileCslib.Code.exists_correlatedAgreement_affine_johnson_of_multiplicity,Cslib.Code.exists_correlatedAgreement_affine_johnson_of_eta,Cslib.Code.exists_weighted_correlatedAgreement_affine_johnson_of_multiplicity,Cslib.Code.exists_weighted_correlatedAgreement_affine_johnson_of_eta,Cslib.Code.exists_ratWeighted_correlatedAgreement_affine_johnson_of_multiplicity, andCslib.Code.exists_ratWeighted_correlatedAgreement_affine_johnson_of_etagive closed-form correlated agreement with explicit Siegel constants1800 * [M *] (m + 1) ^ 6 * n ^ 2 / (ρ * |F|)and115200 * [M *] n ^ 2 / (ρ * η ^ 6 * |F|). These are this library's original finite bounds. Eq. (1.3) usesmin(η, √ρ / 20)in its denominator, whereas these formulas use the gapηdirectly, so a density sufficient for (1.3) can fall below the Lean cutoff: for example atq = 11 ^ 10,n = 16,ρ = 1 / 4, radius7 / 16,η = 1 / 16(> √ρ / 20 = 1 / 40),m = 4, a line of codewords has close density one and clears the (1.3) cutoff20,480,000,000 / q < 1, but not the multiplicity corollary's28,800,000,000 / q > 1. The unique-decoding uniqueness clause of Theorem 1.6 is formalized separately inCslib.Code.exists_uniqueMaximal_correlatedAgreement_affine_unique. The exact cited endpoints, including the displayed constants(m + 1 / 2) ^ 7 / (3 * ρ ^ (3 / 2)),(2 * m + 1) * (M * n + 1) / √ρ, andρ ^ 2 / (2 * η) ^ 7, remain tracked in#5968. Cslib.Code.proximityGap_affine_johnson_exact,Cslib.Code.weighted_proximityGap_affine_johnson_exact,Cslib.Code.ratWeighted_proximityGap_affine_johnson_exact,Cslib.Code.proximityGap_affine_johnson,Cslib.Code.proximityGap_affine_johnson_of_eta,Cslib.Code.weighted_proximityGap_affine_johnson, andCslib.Code.ratWeighted_proximityGap_affine_johnsonfollow directly as contrapositive corollaries of the correlated-agreement theorems with exact denominator|F|(in the setting of Theorem 1.2).
Mathematical overview #
Sharp weighted correlated agreement in the unique-decoding regime (unique-decoding specialization and signed-weight extension of [BenSassonCarmonIshaiKoppartySaraf2020, Section 7 / Theorem 7.1], where source Theorem 7.1 treats weighted curves, Version I, in the
α > √ρrange): Givend + 1wordsu : Fin (d + 1) → (ι → F)over an arbitrary fieldF, any weight functionμ : ι → ℚbounded above by1, and a thresholdθ : ℚstrictly above(|ι| - e : ℕ) - 1where2 * e + k ≤ |ι|: if more thand * |ι|scalarsz ∈ Shave some codewordc_z ∈ reedSolomon α kachievingμ-weighted agreement at leastθwith the curve point∑ j, z ^ (j : ℕ) • u j, then:- unweighted correlated agreement (
Cslib.Code.exists_correlatedAgreement_curve_unique) gives codewordsv : Fin (d + 1) → (ι → F)agreeing withuon at least|ι| - epositions; - unique decoding forces
c_z = ∑ j, z ^ (j : ℕ) • v jfor everyz ∈ S; - on the maximal shared agreement set
D' = {i | ∀ j, u j i = v j i}, everyz ∈ Swhoseμ-weighted agreement exceeds∑ i ∈ D', μ imust hit at least one indexi ∉ D', which is a root of the nonzero degree-≤ dpolynomial∑ j, (u j i - v j i) Z ^ j. Hence at mostd * |ι|scalars can exceed∑ i ∈ D', μ i, forcingθ ≤ ∑ i ∈ D', μ iwith no dependence on the total weight or weight denominator (Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_unique,Cslib.Code.exists_weighted_correlatedAgreement_curve_unique,Cslib.Code.exists_weighted_correlatedAgreement_unique).
- unweighted correlated agreement (
Generic affine-space-to-curve reduction (
(Fˣ)^ℓ × Fˣbijection): For any pointwise proximity predicateP : (ι → F) → Propand shared-agreement predicateQ : Finset ι → Prop, a degree-ℓcurve correlated-agreement thresholdB_curvelifts directly to an affine spaceu₀ + ∑ j : Fin ℓ, z j • u jwith threshold(B_curve + ℓ) * |F| ^ (ℓ - 1)— i.e., error fraction(B_curve + ℓ) / |F|, linear inℓwith no exponential blowup (Cslib.Code.exists_correlatedAgreement_affine_of_curve). Note that this explicit(Fˣ)^ℓ × Fˣcurve reduction introduces an explicit linearℓfactor relative to the curve-independent phrasing of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 1.6], while remaining uniform across arbitrary pointwise and shared-agreement predicates.Dimension-independent affine-space proximity gaps and Section 6.3 / 7.3 divergence lift: By averaging over all
(q ^ ℓ - 1) / (q - 1)lines passing through a single non-close pointy, any 1D line proximity-gap dichotomy for an arbitrary predicatePwith exceptional count≤ B_linelifts to(q - 1) * #T ≤ B_line * (q ^ ℓ - 1)with zero dependence onℓ(Cslib.Code.proximityGap_affine_of_line, yielding the weighted unique-decoding dichotomiesCslib.Code.weighted_proximityGap_affine_unique_sharpandCslib.Code.ratWeighted_proximityGap_affine_unique_sharp, alongside the weighted correlated agreement theoremsCslib.Code.exists_ratWeighted_correlatedAgreement_affine_unique_sharpandCslib.Code.exists_weighted_correlatedAgreement_affine_unique_sharp). For linear codes with list sizeL < |F|and 1D weighted line correlated agreement, Lemma 6.3's parallel-line partition plus homogenization and Section 6.3's minimal-agreement / affine-subspace pigeonhole (refined by intersecting candidate agreement sets withsupp W) yieldCslib.Code.exists_weighted_correlatedAgreement_affine_of_divergenceandCslib.Code.exists_weighted_correlatedAgreement_affine_of_lineat exact thresholdB_line * |F| ^ ℓ < |F| * #Twith zeroℓorL * B_lineoverhead.Johnson-bound curves and affine spaces (toward [BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.2, 1.5, 1.6, 6.2, 7.2, 7.3, and 7.4], accepted JACM 2023 manuscript):
- Parameterized curves (
r : ℕ): ReusingCslib.Code.ProximityGap.johnson_curve_params_boundandCslib.Code.ProximityGap.johnsonCurveBound_mul_leyields original explicit-constant finite-field curve proximity-gap dichotomies up to1 - √ρ - √ρ / (2 * m)and1 - √ρ - η, as well as explicit-parameterℚ-weighted curve/line correlated-agreement steps andℕ/ℚ-weighted curve dichotomies scaling linearly in the weight denominatorM(Cslib.Code.proximityGap_curve_johnson,Cslib.Code.proximityGap_curve_johnson_of_eta,Cslib.Code.weighted_proximityGap_curve_johnson,Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_johnson,Cslib.Code.exists_ratWeighted_correlatedAgreement_line_johnson,Cslib.Code.ratWeighted_proximityGap_curve_johnson). - Johnson affine spaces (
ℓ : ℕ): CombiningCslib.Code.exists_weighted_correlatedAgreement_affine_of_linewith the uniform Guruswami–Sudan list-size boundmaxYDeg (k - 1) D ≤ B_lineand 1D weighted line correlated agreement yields unweighted,ℕ-weighted, andℚ-weighted Johnson affine correlated agreement in both explicit-parameter(m, D)form and closed-form(m)/(η)form with exact denominator|F|and zero extra list-size premises, from which all seven affine proximity-gap dichotomies follow immediately.
- Parameterized curves (
The formalization is organized into focused submodules under
CslibFrontier.Foundations.Data.Code.ProximityGap.Curve:
Internal: shared algebraic and counting internal helpers (used by ≥ 2 submodules).UniqueCurve: converse proximity lemmas and sharp unique-decoding curve/line bounds.AffineReduce: generic affine-space-to-curve and line-to-affine reductions.AffineLift: generic Section 6.3 / 7.3 weighted affine correlated-agreement lift.UniqueAffine: unique maximal and sharp weighted unique-decoding affine bounds.JohnsonHelpers: shared Johnson-bound scaling and weight-clearing helpers.JohnsonCurve: Johnson-bound parameterized curve and line proximity gaps.JohnsonAffine: list-premise-free Johnson-bound affine correlated agreement.Dichotomy: exact-|F|affine proximity-gap dichotomies (unique and Johnson).
Main results #
Cslib.Code.hammingDist_affine_le_of_eq_on: shared agreement onD'implies Hamming distance at mosteat every point of an affine space.Cslib.Code.weightedAgree_curve_ge_of_eq_on,Cslib.Code.ratWeightedAgree_curve_ge_of_eq_on,Cslib.Code.weightedAgree_affine_ge_of_eq_on, &Cslib.Code.ratWeightedAgree_affine_ge_of_eq_on: converse weighted-agreement bounds for curves and affine spaces.Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_unique&Cslib.Code.exists_ratWeighted_correlatedAgreement_unique: sharpℚ-weighted correlated agreement on curves and lines in the unique-decoding regime over arbitrary fields.Cslib.Code.exists_weighted_correlatedAgreement_curve_unique&Cslib.Code.exists_weighted_correlatedAgreement_unique: sharpℕ-weighted correlated agreement on curves and lines in the unique-decoding regime.Cslib.Code.weighted_proximityGap_curve_unique,Cslib.Code.weighted_proximityGap_unique,Cslib.Code.ratWeighted_proximityGap_curve_unique, &Cslib.Code.ratWeighted_proximityGap_unique: finite-field weighted proximity-gap dichotomies.Cslib.Code.exists_correlatedAgreement_affine_of_curve: polymorphic affine-space-to-curve reduction with linear-in-ℓerror overhead.Cslib.Code.proximityGap_affine_of_line: polymorphic 1D-line-to-affine-space pointwise dichotomy with zero dimension overhead ((|F| - 1) * #T ≤ B_line * (|F| ^ ℓ - 1)).Cslib.Code.exists_ratWeighted_correlatedAgreement_affine_unique_sharp,Cslib.Code.exists_weighted_correlatedAgreement_affine_unique_sharp,Cslib.Code.weighted_proximityGap_affine_unique_sharp, &Cslib.Code.ratWeighted_proximityGap_affine_unique_sharp: dimension-independent unique-decodingℕ/ℚ-weighted affine-space correlated agreement and dichotomies at threshold|ι| * (|F| ^ ℓ - 1) < (|F| - 1) * #T(zero dependence on weight denominators).Cslib.Code.exists_weighted_correlatedAgreement_affine_of_divergence&Cslib.Code.exists_weighted_correlatedAgreement_affine_of_line: Section 6.3 / 7.3 divergence and Lemma 6.3 homogenization lift from 1D weighted line correlated agreement plus codeword list bound2 ≤ ℓ → L < |F|to arbitrary-dimensional affine spaces at exact thresholdB_line * |F| ^ ℓ < |F| * #T(returningD' ⊆ supp W).Cslib.Code.exists_uniqueMaximal_correlatedAgreement_affine_unique&Cslib.Code.proximityGap_affine_unique: exact eq. (1.2) (|ι| * |F| ^ ℓ < |F| * #T) unique-decoding affine-space correlated agreement with Theorem 1.6's unique maximal agreement set and unique generator codewords (printed p. 6, pp. 28–31), together with its exact-|F|proximity-gap dichotomy (Theorem 1.2, eq. (1.2)).Cslib.Code.proximityGap_curve_johnson&Cslib.Code.proximityGap_curve_johnson_of_eta: original explicit-constant finite-field Johnson-bound proximity-gap variants on degree-rcurves (variants of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 1.5], accepted JACM 2023 manuscript).Cslib.Code.weighted_proximityGap_curve_johnson,Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_johnson,Cslib.Code.exists_ratWeighted_correlatedAgreement_line_johnson, &Cslib.Code.ratWeighted_proximityGap_curve_johnson: explicit-parameterℚ-weighted steps and original explicit-constantℕ/ℚ-weighted curve dichotomies toward [BenSassonCarmonIshaiKoppartySaraf2020, Theorems 6.2, 7.1, and 7.2] (accepted JACM 2023 manuscript).Cslib.Code.exists_weighted_correlatedAgreement_affine_johnson,Cslib.Code.exists_correlatedAgreement_affine_johnson, &Cslib.Code.exists_ratWeighted_correlatedAgreement_affine_johnson: explicit-parameter(m, D)ℕ-weighted, unweighted, andℚ-weighted Johnson-bound correlated agreement on affine spaces at thresholdB_line * |F| ^ ℓ < |F| * #Twith no list-size premise.Cslib.Code.exists_correlatedAgreement_affine_johnson_of_multiplicity,Cslib.Code.exists_correlatedAgreement_affine_johnson_of_eta,Cslib.Code.exists_weighted_correlatedAgreement_affine_johnson_of_multiplicity,Cslib.Code.exists_weighted_correlatedAgreement_affine_johnson_of_eta,Cslib.Code.exists_ratWeighted_correlatedAgreement_affine_johnson_of_multiplicity, &Cslib.Code.exists_ratWeighted_correlatedAgreement_affine_johnson_of_eta: original explicit-constant closed-form unweighted,ℕ-weighted, andℚ-weighted Johnson-bound affine correlated-agreement variants in the setting of [BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.6, 7.3, and 7.4].Cslib.Code.proximityGap_affine_johnson_exact,Cslib.Code.weighted_proximityGap_affine_johnson_exact,Cslib.Code.ratWeighted_proximityGap_affine_johnson_exact,Cslib.Code.proximityGap_affine_johnson,Cslib.Code.proximityGap_affine_johnson_of_eta,Cslib.Code.weighted_proximityGap_affine_johnson, &Cslib.Code.ratWeighted_proximityGap_affine_johnson: finite-field Johnson-bound affine proximity-gap dichotomies with exact denominator|F|in the setting of Theorem 1.2.
References #
- E. Ben-Sasson, D. Carmon, Y. Ishai, S. Kopparty, S. Saraf, Proximity Gaps for Reed–Solomon Codes
- [V. Guruswami, M. Sudan, Improved Decoding of Reed–Solomon and Algebraic-Geometry Codes] [GS99b]