Documentation

CslibFrontier.Foundations.Data.Code.ProximityGap.Curve.AffineReduce

Generic Affine-Space-to-Curve and Line-to-Affine Reductions #

Fiber-averaging reductions over finite fields F: lifts a parameterized-curve correlated agreement bound into an affine space via the (Fˣ)^ℓ × Fˣ bijection (exists_correlatedAgreement_affine_of_curve) and lifts a line dichotomy into a dimension-independent affine proximity gap (proximityGap_affine_of_line).

Main results #

theorem Cslib.Code.exists_correlatedAgreement_affine_of_curve {F : Type u_1} [Field F] [Fintype F] {ι : Type u_2} {α : ι → F} {k ℓ B_curve : ℕ} (hℓ : 1 ≤ ℓ) {P : (ι → F) → Prop} {Q : Finset ι → Prop} (hcurve : ∀ (u' : Fin (ℓ + 1) → ι → F) (S : Finset F), B_curve < S.card → (∀ z ∈ S, P (∑ j : Fin (ℓ + 1), z ^ ↑j • u' j)) → ∃ (D' : Finset ι), Q D' ∧ ∃ (v' : Fin (ℓ + 1) → ι → F), (∀ (j : Fin (ℓ + 1)), v' j ∈ reedSolomon α k) ∧ ∀ i ∈ D', ∀ (j : Fin (ℓ + 1)), u' j i = v' j i) (u₀ : ι → F) (u : Fin ℓ → ι → F) (T : Finset (Fin ℓ → F)) (hT : (B_curve + ℓ) * Fintype.card F ^ (ℓ - 1) < T.card) (hclose : ∀ z ∈ T, P (u₀ + ∑ j : Fin ℓ, z j • u j)) :
∃ (D' : Finset ι), Q D' ∧ ∃ v₀ ∈ reedSolomon α k, ∃ (v : Fin ℓ → ι → F), (∀ (j : Fin ℓ), v j ∈ reedSolomon α k) ∧ ∀ i ∈ D', u₀ i = v₀ i ∧ ∀ (j : Fin ℓ), u j i = v j i

Generic affine-space-to-curve correlated agreement reduction:

Given any degree-ℓ curve correlated-agreement theorem hcurve with scalar threshold B_curve for a pointwise proximity predicate P : (ι → F) → Prop and shared-agreement predicate Q : Finset ι → Prop, any affine space u₀ + ∑ j : Fin ℓ, z j • u j (1 ≤ ℓ) over a finite field F whose good set T ⊆ (Fin ℓ → F) satisfies (B_curve + ℓ) * |F| ^ (ℓ - 1) < #T (density strictly greater than (B_curve + ℓ) / |F|, linear in ℓ) admits a single shared agreement set D' satisfying Q D' together with codewords v₀, v j ∈ reedSolomon α k.

The proof excludes tuples with a zero coordinate (at most ℓ * |F| ^ (ℓ - 1) tuples), averages over the fiber bijection (a, t) ↦ (a j * t ^ (j + 1))_j on (Fin ℓ → Fˣ) × Fˣ, applies hcurve along the resulting degree-ℓ curve u₀ + ∑ j, t ^ (j + 1) • (a j • u j), and unscales each recovered codeword by (a j)⁻¹.

theorem Cslib.Code.proximityGap_affine_of_line {F : Type u_1} [Field F] [Fintype F] {ι : Type u_2} {ℓ B_line : ℕ} {P : (ι → F) → Prop} (hline : ∀ (a b : ι → F) (S : Finset F), B_line < S.card → (∀ t ∈ S, P (a + t • b)) → ∀ (t : F), P (a + t • b)) (u₀ : ι → F) (u : Fin ℓ → ι → F) [DecidablePred fun (z : Fin ℓ → F) => P (u₀ + ∑ j : Fin ℓ, z j • u j)] :
(∀ (z : Fin ℓ → F), P (u₀ + ∑ j : Fin ℓ, z j • u j)) ∨ (Fintype.card F - 1) * {z : Fin ℓ → F | P (u₀ + ∑ j : Fin ℓ, z j • u j)}.card ≤ B_line * (Fintype.card F ^ ℓ - 1)

Generic 1D-line-to-affine-space proximity-gap dichotomy (dimension-independent):

Given any pointwise predicate P : (ι → F) → Prop satisfying a 1D line dichotomy with threshold B_line (whenever strictly more than B_line points on a line a + t • b satisfy P, every point on the line satisfies P), every ℓ-dimensional affine space u₀ + ∑ j : Fin ℓ, z j • u j over a finite field F satisfies either:

  • every point of the affine space satisfies P, or
  • (|F| - 1) * #{z | P (u₀ + ∑ j, z j • u j)} ≤ B_line * (|F| ^ ℓ - 1).

For ℓ = 1 this recovers #T ≤ B_line exactly; for all ℓ ≥ 1 the density bound is at most B_line / (|F| - 1), completely independent of the dimension ℓ.