Documentation

CompPoly.Univariate.Deriv

Formal Derivative and Taylor Shift of Computable Univariate Polynomials #

Defines the formal derivative CPolynomial.derivative and the Taylor shift CPolynomial.taylor, with proofs of their core properties.

The formal derivative of a computable polynomial. Coefficient n of the result is coeff p (n+1) * (n+1).

Instances For
    theorem CompPoly.CPolynomial.coeff_derivative {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (p : CPolynomial R) (n : ) :
    p.derivative.coeff n = p.coeff (n + 1) * ↑(n + 1)

    Coefficient formula for the derivative.

    The derivative of the zero polynomial is zero.

    theorem CompPoly.CPolynomial.derivative_C {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (r : R) :
    (C r).derivative = 0

    The derivative of a constant is zero.

    theorem CompPoly.CPolynomial.derivative_monomial {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] [DecidableEq R] (n : ) (r : R) :
    (monomial n r).derivative = monomial (n - 1) (r * n)

    The derivative of a monomial.

    The derivative distributes over addition.

    The computable derivative matches Mathlib's Polynomial.derivative under toPoly.

    The derivative satisfies the Leibniz product rule.

    The Taylor shift taylor a p = p(X + a).

    Instances For

      The computable Taylor shift matches Polynomial.taylor under toPoly.

      theorem CompPoly.CPolynomial.taylor_zero {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] [Nontrivial R] [DecidableEq R] (a : R) :
      taylor a 0 = 0

      The Taylor shift of zero is zero.

      theorem CompPoly.CPolynomial.taylor_coeff_zero {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] [Nontrivial R] [DecidableEq R] (a : R) (p : CPolynomial R) :
      (taylor a p).coeff 0 = eval a p

      The constant coefficient of the Taylor shift is evaluation at the shift point.