Shared Degree Bounds and Variable-Specialization Helpers #
Internal foundation for the Johnson-bound proximity-gap split: the Z-degree measures degZ₂
and degZ, the subadditive DegBound resultant-degree bundler, the curve polynomial curveWord,
and specialization homomorphisms evZ, evZ₁, and evZ₂. Imported privately by the sibling
submodules under CslibFrontier.Foundations.Data.Code.ProximityGap.Johnson.
Main definitions #
Cslib.Code.ProximityGap.degZ₂,Cslib.Code.ProximityGap.degZ:Z-degree measures.Cslib.Code.ProximityGap.DegBound: generic degree-bound interface used for resultant bounds.Cslib.Code.ProximityGap.curveWord: degree-rcurve polynomialw_i(Z).Cslib.Code.ProximityGap.evZ,Cslib.Code.ProximityGap.evZ₁,Cslib.Code.ProximityGap.evZ₂: specialization homomorphismsZ ↦ z.
noncomputable def Cslib.Code.ProximityGap.degZ₂ {R : Type u_1} [CommSemiring R] (f : Polynomial (Polynomial R)) :
Z-degree of f ∈ R[Z][X].
theorem Cslib.Code.ProximityGap.degZ₂_mul {R : Type u_1} [CommRing R] [IsDomain R] {f g : Polynomial (Polynomial R)} (hf : f ≠ 0) (hg : g ≠ 0) :
theorem Cslib.Code.ProximityGap.degZ₂_le_iff {R : Type u_1} [CommSemiring R] {f : Polynomial (Polynomial R)} {B : ℕ} :
theorem Cslib.Code.ProximityGap.degZ₂_hasseDeriv_le {R : Type u_1} [CommSemiring R] (j : ℕ) (f : Polynomial (Polynomial R)) :
theorem Cslib.Code.ProximityGap.degZ₂_derivative_le {R : Type u_1} [CommSemiring R] (f : Polynomial (Polynomial R)) :
theorem Cslib.Code.ProximityGap.natDegree_eval_C_le_degZ₂ {R : Type u_1} [CommSemiring R] (f : Polynomial (Polynomial R)) (x : R) :
theorem Cslib.Code.ProximityGap.degZ₂_taylor_C_le {R : Type u_1} [CommRing R] (f : Polynomial (Polynomial R)) (x : R) :
noncomputable def Cslib.Code.ProximityGap.degZ {R : Type u_1} [CommSemiring R] (Q : Polynomial (Polynomial (Polynomial R))) :
Z-degree of Q ∈ R[Z][X][Y].
theorem Cslib.Code.ProximityGap.degZ_le_iff {R : Type u_1} [CommSemiring R] {Q : Polynomial (Polynomial (Polynomial R))} {B : ℕ} :
theorem Cslib.Code.ProximityGap.degZ_le_of_dvd {R : Type u_1} [CommRing R] [IsDomain R] {A B : Polynomial (Polynomial (Polynomial R))} (hB : B ≠ 0) (hdvd : A ∣ B) :
theorem Cslib.Code.ProximityGap.degZ₂_coeff_le_degZ {R : Type u_1} [CommSemiring R] (Q : Polynomial (Polynomial (Polynomial R))) (b : ℕ) :
noncomputable def Cslib.Code.ProximityGap.DegBound.natDegree (R : Type u_1) [CommRing R] :
DegBound (Polynomial R)
Standard polynomial degree packaged as a DegBound on R[X].
Z-degree packaged as a DegBound on R[X][X].
theorem Cslib.Code.ProximityGap.card_filter_eval_eq_zero_le {R : Type u_1} [CommRing R] [IsDomain R] [DecidableEq R] {p : Polynomial R} (hp : p ≠ 0) (T : Finset R) :
Shared root-counting and resultant helpers.
theorem Cslib.Code.ProximityGap.resultant_ne_zero_of_isCoprime_map {R : Type u_1} {K : Type u_2} [CommRing R] [Field K] (φ : R →+* K) (hφ : Function.Injective ⇑φ) {f g : Polynomial R} (hcop : IsCoprime (Polynomial.map φ f) (Polynomial.map φ g)) :
theorem Cslib.Code.ProximityGap.coeff_sum_Icc_C_mul_X_pow {R : Type u_1} [Semiring R] (a b k : ℕ) (f : ℕ → R) :
(∑ j ∈ Finset.Icc a b, Polynomial.C (f j) * Polynomial.X ^ j).coeff k = if a ≤ k ∧ k ≤ b then f k else 0
@[reducible, inline]
noncomputable abbrev Cslib.Code.ProximityGap.curveWord {F : Type u_1} [Field F] [DecidableEq F] {ι : Type u_2} {r : ℕ} (u : Fin (r + 1) → ι → F) (i : ι) :
Curve polynomial w_i(Z) = ∑_j u_j(i) Z^j ∈ F[Z], built via Polynomial.ofFn.
Specialization Z ↦ z on F[Z].
Specialization Z ↦ z on F[Z][X].
Specialization Z ↦ z on F[Z][X][Y].
theorem Cslib.Code.ProximityGap.exists_mem_eval_map_eq_zero {R : Type u_2} {S : Type u_3} [CommRing R] [CommRing S] [IsDomain S] (φ : R →+* S) (ms : Multiset (Polynomial R)) (y : S) (h : Polynomial.eval y (Polynomial.map φ ms.prod) = 0) :