Documentation

CslibFrontier.Foundations.Data.MvPolynomial.DegreePiecePolynomial

A polynomial for a fixed-degree piece #

When the first variable is retained and all others are specialized, the degree is specified by a nonzero coefficient and the vanishing of all higher coefficients. The polynomial below encodes these as zeros by adding one coordinate for the inverse of the selected coefficient.

Adapted from DegreePiecePolynomial and DegreePiecePolynomialBounds in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183.

noncomputable def MvPolynomial.degreePiecePolynomial {m : ℕ} {R : Type u_1} [CommRing R] (P : MvPolynomial (Fin (m + 1)) R) (N k : ℕ) :
MvPolynomial (Fin (m + 1)) R

The squared inverse equation for coefficient k, plus the squares of coefficients k + 1 through N. The inverse is coordinate zero, with the parameters following it.

theorem MvPolynomial.degreePiecePolynomial_eq_sum_range {m : ℕ} {R : Type u_1} [CommRing R] (P : MvPolynomial (Fin (m + 1)) R) (N k : ℕ) :
have a := fun (j : ℕ) => (rename Fin.succ) (((finSuccEquiv R m) P).coeff j); P.degreePiecePolynomial N k = (a k * X 0 - 1) ^ 2 + ∑ j ∈ Finset.range (N + 1), (if k < j then a j else 0) ^ 2

The higher-coefficient squares can be evaluated by a bounded sum with a degree guard.

theorem MvPolynomial.eval₂_degreePiecePolynomial {m : ℕ} {R : Type u_1} {S : Type u_2} [CommRing R] [CommRing S] (P : MvPolynomial (Fin (m + 1)) R) (N k : ℕ) (f : R →+* S) (t : S) (x : Fin m → S) :
eval₂ f (Fin.cons t x) (P.degreePiecePolynomial N k) = (eval₂ f x (((finSuccEquiv R m) P).coeff k) * t - 1) ^ 2 + ∑ j ∈ Finset.Ioc k N, eval₂ f x (((finSuccEquiv R m) P).coeff j) ^ 2

Evaluating the lift substitutes the parameters into each coefficient and the first coordinate into the inverse equation.

theorem MvPolynomial.eval₂_degreePiecePolynomial_eq_zero_iff {m : ℕ} {R : Type u_1} [CommRing R] (P : MvPolynomial (Fin (m + 1)) R) (N k : ℕ) (f : R →+* ℝ) (t : ℝ) (x : Fin m → ℝ) :
eval₂ f (Fin.cons t x) (P.degreePiecePolynomial N k) = 0 ↔ eval₂ f x (((finSuccEquiv R m) P).coeff k) * t = 1 ∧ ∀ j ∈ Finset.Ioc k N, eval₂ f x (((finSuccEquiv R m) P).coeff j) = 0

A real zero of the lift solves the inverse equation for coefficient k and makes each higher coefficient through N vanish.

The inverse coordinate increases degree by at most one before squaring.

A coefficient norm exponent shared by all lifts with coefficient cutoff N and source coefficient norm at most 2 ^ b.

The sum of absolute coefficients of a degree-piece polynomial is bounded uniformly over the selected degree.