Documentation

CslibFrontier.Foundations.Data.Code.ProximityGap.Johnson.ShiftAndFactor

Step 4: Choosing a Non-Degenerate Evaluation Point and Factor Shift #

Selects an evaluation coordinate x₀ ∈ F where the discriminant / resultant polynomial Δ does not vanish identically and refines the close scalar subset T₁ to T' avoiding the zero locus of Δ(Z, x₀).

Main results #

theorem Cslib.Code.ProximityGap.exists_good_shift_and_factor {F : Type u_1} [Field F] [DecidableEq F] {ι : Type u_2} [Fintype ι] {α : ι → F} {r d D B_Z D_Y W_tot B_W μ : ℕ} {W : ι → ℕ} {u : Fin (r + 1) → ι → F} {R S A_bez B_bez : Polynomial (Polynomial (Polynomial F))} {Δ : Polynomial (Polynomial F)} {T_R : Finset F} (hμ_pos : 1 ≤ μ) (hexp_S : (Polynomial.expand (Polynomial (Polynomial F)) μ) S = R) (hS_deg : 1 ≤ S.natDegree) (hdeg_mul : μ * S.natDegree = R.natDegree) (hS_degZ : degZ S ≤ B_Z) (hΔ_ne : Δ ≠ 0) (hbez : S * A_bez + Polynomial.derivative S * B_bez = Polynomial.C Δ) (hH_degX : (S.leadingCoeff * Δ).natDegree ≤ 2 * S.natDegree * D) (hH_degZ : degZ₂ (S.leadingCoeff * Δ) ≤ 2 * S.natDegree * B_Z) (hTR_card : 2 * R.natDegree * (D + B_Z) + W_tot * R.natDegree * D_Y * (4 * D * B_Z + r * D_Y) < T_R.card) (hTR_mem : ∀ z ∈ T_R, ∃ (P : Polynomial F), P.natDegree ≤ d ∧ Polynomial.eval P ((evZ₂ z) R) = 0 ∧ B_W ≤ ∑ i : ι with Polynomial.eval (α i) P = Polynomial.eval z (curveWord u i), W i) :

Step 4: Pick a good shift point x₀ ∈ T_R with (S.leadingCoeff * Δ)(Z, x₀) ≠ 0, and pigeonhole onto a primitive irreducible factor F_* ∈ F[Z][Y] of S₀(Z, Y) = S(Z, x₀, Y).