Documentation

CslibFrontier.Foundations.Data.MvPolynomial.ShiftDerivatives

Derivative values as coefficients of a shift #

First and mixed second derivative values are coefficients of the existing MvPolynomial.shift. The second-derivative formula includes factor two when the two coordinates coincide. Shifting cannot increase total degree, including when the point has coordinates in an algebra and coefficient specialization makes some coefficients vanish.

The coefficient identities are adapted from lean-canny, using the existing shift evaluation and derivative API.

theorem MvPolynomial.first_derivative_translation_coeff {ι : Type u_1} {R : Type u_2} [CommSemiring R] (z : ι → R) (F : MvPolynomial ι R) (i : ι) :
(eval z) ((pderiv i) F) = ((shift z) F).coeff (Finsupp.single i 1)

A first derivative value is one coefficient of the shifted polynomial.

theorem MvPolynomial.second_derivative_translation_coeff {ι : Type u_1} {R : Type u_2} [CommSemiring R] (z : ι → R) (F : MvPolynomial ι R) (i j : ι) :
(eval z) ((pderiv j) ((pderiv i) F)) = ((shift z) F).coeff (Finsupp.single j 1 + Finsupp.single i 1) * ↑((Finsupp.single j 1) i + 1)

A second derivative is one shifted coefficient, including factor two for a repeated index.

theorem MvPolynomial.totalDegree_shift_le {ι : Type u_1} {R : Type u_2} {A : Type u_3} [CommSemiring R] [CommSemiring A] [Algebra R A] (z : ι → A) (F : MvPolynomial ι R) :

Shifting by a point in an algebra cannot increase total degree.