Polynomial divided differences #
Every polynomial of total degree at most d + 1 has polynomial divided differences of
total degree at most d: they express p(x) - p(X) as a sum of coordinate differences,
and evaluate to the partial derivatives on the diagonal. This holds over an arbitrary
commutative coefficient ring. purePowerDifference supplies the explicit geometric sum
for a pure power, including its leading term and diagonal evaluation.
Ported and simplified from the polynomial divided differences and pure-power differences in lean-canny. Finsupp subtraction supplies the monomial step and Mathlib's geometric-sum identity supplies the pure-power quotient.
Every polynomial of degree at most d + 1 has divided differences of
degree at most d, including over rings with zero divisors.
The polynomial quotient of x^ell - Y^ell by x - Y, with
ell = d + 1.