Documentation

CslibFrontier.Foundations.Data.Code.ProximityGap.Curve.UniqueCurve

Converse Lemmas and Sharp Unique-Decoding Curve/Line Correlated Agreement #

Easy converse lemmas (*_of_eq_on) showing shared agreement induces uniform pointwise proximity on curves and affine spaces, plus sharp integer- and ℚ-weighted correlated agreement and proximity gaps for parameterized curves and lines in the unique-decoding regime (2 * e + k ≤ |ι|).

Main results #

theorem Cslib.Code.hammingDist_affine_le_of_eq_on {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {e ℓ : ℕ} {D' : Finset ι} {u₀ v₀ : ι → F} {u v : Fin ℓ → ι → F} (hD' : Fintype.card ι - e ≤ D'.card) (hagree : ∀ i ∈ D', u₀ i = v₀ i ∧ ∀ (j : Fin ℓ), u j i = v j i) (z : Fin ℓ → F) :
hammingDist (u₀ + ∑ j : Fin ℓ, z j • u j) (v₀ + ∑ j : Fin ℓ, z j • v j) ≤ e

If u₀ and u j agree with v₀ and v j on a shared subset D' of size at least |ι| - e, then every affine combination u₀ + ∑ j, z j • u j lies within Hamming distance e of v₀ + ∑ j, z j • v j.

theorem Cslib.Code.weightedAgree_curve_ge_of_eq_on {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {d : ℕ} {D' : Finset ι} {u v : Fin (d + 1) → ι → F} (W : ι → ℕ) (hagree : ∀ i ∈ D', ∀ (j : Fin (d + 1)), u j i = v j i) (z : F) :
∑ i ∈ D', W i ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = (∑ j : Fin (d + 1), z ^ ↑j • v j) i, W i

Converse weighted agreement for curves: if u and v agree on D', then every point on the curve ∑ j, z ^ j • u j achieves at least ∑ i ∈ D', W i weighted agreement with ∑ j, z ^ j • v j.

theorem Cslib.Code.ratWeightedAgree_curve_ge_of_eq_on {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {d : ℕ} {D' : Finset ι} {u v : Fin (d + 1) → ι → F} {μ : ι → ℚ} (hμ_nonneg : ∀ (i : ι), 0 ≤ μ i) (hagree : ∀ i ∈ D', ∀ (j : Fin (d + 1)), u j i = v j i) (z : F) :
∑ i ∈ D', μ i ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = (∑ j : Fin (d + 1), z ^ ↑j • v j) i, μ i

Converse ℚ-weighted agreement for curves (under nonnegative weights 0 ≤ μ i).

theorem Cslib.Code.weightedAgree_affine_ge_of_eq_on {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {ℓ : ℕ} {D' : Finset ι} {u₀ v₀ : ι → F} {u v : Fin ℓ → ι → F} (W : ι → ℕ) (hagree : ∀ i ∈ D', u₀ i = v₀ i ∧ ∀ (j : Fin ℓ), u j i = v j i) (z : Fin ℓ → F) :
∑ i ∈ D', W i ≤ ∑ i : ι with (u₀ + ∑ j : Fin ℓ, z j • u j) i = (v₀ + ∑ j : Fin ℓ, z j • v j) i, W i

Converse weighted agreement for affine spaces: if u₀, u agree with v₀, v on D', then every affine combination achieves at least ∑ i ∈ D', W i weighted agreement.

theorem Cslib.Code.ratWeightedAgree_affine_ge_of_eq_on {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {ℓ : ℕ} {D' : Finset ι} {u₀ v₀ : ι → F} {u v : Fin ℓ → ι → F} {μ : ι → ℚ} (hμ_nonneg : ∀ (i : ι), 0 ≤ μ i) (hagree : ∀ i ∈ D', u₀ i = v₀ i ∧ ∀ (j : Fin ℓ), u j i = v j i) (z : Fin ℓ → F) :
∑ i ∈ D', μ i ≤ ∑ i : ι with (u₀ + ∑ j : Fin ℓ, z j • u j) i = (v₀ + ∑ j : Fin ℓ, z j • v j) i, μ i

Converse ℚ-weighted agreement for affine spaces (under nonnegative weights 0 ≤ μ i).

theorem Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {e k d : ℕ} (hunique : 2 * e + k ≤ Fintype.card ι) {μ : ι → ℚ} (hμ_le : ∀ (i : ι), μ i ≤ 1) {θ : ℚ} (hθ : ↑(Fintype.card ι - e) - 1 < θ) (u : Fin (d + 1) → ι → F) (S : Finset F) (hS : d * Fintype.card ι < S.card) (hclose : ∀ z ∈ S, ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, μ i) :
∃ (D' : Finset ι), θ ≤ ∑ i ∈ D', μ i ∧ ∃ (v : Fin (d + 1) → ι → F), (∀ (j : Fin (d + 1)), v j ∈ reedSolomon α k) ∧ ∀ i ∈ D', ∀ (j : Fin (d + 1)), u j i = v j i

Weighted correlated agreement on parameterized curves in the unique-decoding regime (ℚ-weights; unique-decoding specialization and signed-weight extension of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 6.1 & Section 7], where source Theorem 7.1 treats weighted curves, Version I, in the α > √ρ range):

Over an arbitrary field F, let α : ι → F be distinct evaluation points, 2 * e + k ≤ |ι|, and μ : ι → ℚ any weight function bounded above by 1 (in particular, any [0, 1]-valued weight function). Suppose θ : ℚ satisfies ((|ι| - e : ℕ) : ℚ) - 1 < θ (so μ-weighted agreement ≥ θ implies unweighted Hamming distance ≤ e). If more than d * |ι| scalars z ∈ S have a codeword in reedSolomon α k achieving μ-weighted agreement at least θ with the curve point ∑ j, z ^ (j : ℕ) • u j, then there exist codewords v j ∈ reedSolomon α k and a single shared coordinate set D' with θ ≤ ∑ i ∈ D', μ i on which u j i = v j i for all i ∈ D' and all j.

Notice that the threshold d * |ι| < #S has zero dependence on the weight denominator or total weight.

theorem Cslib.Code.exists_ratWeighted_correlatedAgreement_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {e k : ℕ} (hunique : 2 * e + k ≤ Fintype.card ι) {μ : ι → ℚ} (hμ_le : ∀ (i : ι), μ i ≤ 1) {θ : ℚ} (hθ : ↑(Fintype.card ι - e) - 1 < θ) (u₀ u₁ : ι → F) (S : Finset F) (hS : Fintype.card ι < S.card) (hclose : ∀ z ∈ S, ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, μ i) :
∃ (D' : Finset ι), θ ≤ ∑ i ∈ D', μ i ∧ ∃ v₀ ∈ reedSolomon α k, ∃ v₁ ∈ reedSolomon α k, ∀ i ∈ D', u₀ i = v₀ i ∧ u₁ i = v₁ i

Weighted correlated agreement on affine lines in the unique-decoding regime (ℚ-weights; unique-decoding line specialization and signed-weight extension of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 4.1 & Section 7], where source Theorem 7.1 treats weighted curves, Version I, in the α > √ρ range): Line specialization (d = 1) of Cslib.Code.exists_ratWeighted_correlatedAgreement_curve_unique, with exact threshold |ι| < #S.

theorem Cslib.Code.exists_weighted_correlatedAgreement_curve_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {k d M B : ℕ} (hM : 0 < M) {W : ι → ℕ} (hW : ∀ (i : ι), W i ≤ M) (hunique : 2 * (Fintype.card ι - (B + M - 1) / M) + k ≤ Fintype.card ι) (u : Fin (d + 1) → ι → F) (S : Finset F) (hS : d * Fintype.card ι < S.card) (hclose : ∀ z ∈ S, ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, W i) :
∃ (D' : Finset ι), B ≤ ∑ i ∈ D', W i ∧ ∃ (v : Fin (d + 1) → ι → F), (∀ (j : Fin (d + 1)), v j ∈ reedSolomon α k) ∧ ∀ i ∈ D', ∀ (j : Fin (d + 1)), u j i = v j i

Integer-weighted correlated agreement on parameterized curves in the unique-decoding regime (unique-decoding specialization of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 6.1 & Section 7], where source Theorem 7.1 treats weighted curves, Version I, in the α > √ρ range):

Given integer weights W : ι → ℕ bounded by M > 0 (∀ i, W i ≤ M) and weighted agreement threshold B : ℕ, let e := |ι| - (B + M - 1) / M be the implied unweighted error bound. Whenever 2 * e + k ≤ |ι| and d * |ι| < #S, weighted agreement ≥ B on the curve for all z ∈ S implies shared weighted agreement ≥ B for codewords v : Fin (d + 1) → (ι → F).

theorem Cslib.Code.exists_weighted_correlatedAgreement_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] {α : ι → F} (hα : Function.Injective α) {k M B : ℕ} (hM : 0 < M) {W : ι → ℕ} (hW : ∀ (i : ι), W i ≤ M) (hunique : 2 * (Fintype.card ι - (B + M - 1) / M) + k ≤ Fintype.card ι) (u₀ u₁ : ι → F) (S : Finset F) (hS : Fintype.card ι < S.card) (hclose : ∀ z ∈ S, ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, W i) :
∃ (D' : Finset ι), B ≤ ∑ i ∈ D', W i ∧ ∃ v₀ ∈ reedSolomon α k, ∃ v₁ ∈ reedSolomon α k, ∀ i ∈ D', u₀ i = v₀ i ∧ u₁ i = v₁ i

Integer-weighted correlated agreement on affine lines in the unique-decoding regime (unique-decoding line specialization of [BenSassonCarmonIshaiKoppartySaraf2020, Theorem 4.1 & Section 7], where source Theorem 7.1 treats weighted curves, Version I, in the α > √ρ range): Line specialization (d = 1) of Cslib.Code.exists_weighted_correlatedAgreement_curve_unique with exact threshold |ι| < #S, directly discharging FRI unique-decoding commit-round soundness with zero total-weight loss.

theorem Cslib.Code.weighted_proximityGap_curve_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] [Fintype F] {α : ι → F} (hα : Function.Injective α) {k d M B : ℕ} (hM : 0 < M) {W : ι → ℕ} (hW : ∀ (i : ι), W i ≤ M) (hunique : 2 * (Fintype.card ι - (B + M - 1) / M) + k ≤ Fintype.card ι) (u : Fin (d + 1) → ι → F) [DecidablePred fun (z : F) => ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, W i] :
(∀ (z : F), ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, W i) ∨ {z : F | ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, W i}.card ≤ d * Fintype.card ι

Weighted proximity-gap dichotomy on parameterized curves in the unique-decoding regime (ℕ-weights, [Fintype F]): either every curve point has W-weighted agreement at least B with reedSolomon α k, or at most d * |ι| scalars in F do.

theorem Cslib.Code.weighted_proximityGap_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] [Fintype F] {α : ι → F} (hα : Function.Injective α) {k M B : ℕ} (hM : 0 < M) {W : ι → ℕ} (hW : ∀ (i : ι), W i ≤ M) (hunique : 2 * (Fintype.card ι - (B + M - 1) / M) + k ≤ Fintype.card ι) (u₀ u₁ : ι → F) [DecidablePred fun (z : F) => ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, W i] :
(∀ (z : F), ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, W i) ∨ {z : F | ∃ c ∈ reedSolomon α k, B ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, W i}.card ≤ Fintype.card ι

Weighted proximity-gap dichotomy on affine lines in the unique-decoding regime (ℕ-weights, [Fintype F]): either every point on u₀ + z • u₁ achieves W-weighted agreement at least B with reedSolomon α k, or at most |ι| scalars in F do.

theorem Cslib.Code.ratWeighted_proximityGap_curve_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] [Fintype F] {α : ι → F} (hα : Function.Injective α) {e k d : ℕ} (hunique : 2 * e + k ≤ Fintype.card ι) {μ : ι → ℚ} (hμ_nonneg : ∀ (i : ι), 0 ≤ μ i) (hμ_le : ∀ (i : ι), μ i ≤ 1) {θ : ℚ} (hθ : ↑(Fintype.card ι - e) - 1 < θ) (u : Fin (d + 1) → ι → F) [DecidablePred fun (z : F) => ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, μ i] :
(∀ (z : F), ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, μ i) ∨ {z : F | ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (∑ j : Fin (d + 1), z ^ ↑j • u j) i = c i, μ i}.card ≤ d * Fintype.card ι

Weighted proximity-gap dichotomy on parameterized curves in the unique-decoding regime (ℚ-weights in [0, 1], [Fintype F]).

theorem Cslib.Code.ratWeighted_proximityGap_unique {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq F] [Fintype F] {α : ι → F} (hα : Function.Injective α) {e k : ℕ} (hunique : 2 * e + k ≤ Fintype.card ι) {μ : ι → ℚ} (hμ_nonneg : ∀ (i : ι), 0 ≤ μ i) (hμ_le : ∀ (i : ι), μ i ≤ 1) {θ : ℚ} (hθ : ↑(Fintype.card ι - e) - 1 < θ) (u₀ u₁ : ι → F) [DecidablePred fun (z : F) => ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, μ i] :
(∀ (z : F), ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, μ i) ∨ {z : F | ∃ c ∈ reedSolomon α k, θ ≤ ∑ i : ι with (u₀ + z • u₁) i = c i, μ i}.card ≤ Fintype.card ι

Weighted proximity-gap dichotomy on affine lines in the unique-decoding regime (ℚ-weights in [0, 1], [Fintype F]).