Documentation

Mathlib.Algebra.Polynomial.Identities

Theory of univariate polynomials #

The main theorem is Polynomial.binom_expansion.

theorem Polynomial.binom_expansion {R : Type u_1} [CommRing R] (f : Polynomial R) (x y : R) :
∃ (k : R), eval (x + y) f = eval x f + eval x (derivative f) * y + k * y ^ 2

A polynomial f evaluated at x + y can be expressed as the evaluation of f at x, plus y times the (polynomial) derivative of f at x, plus some element k : R times y ^ 2.

theorem Polynomial.eval_sub_factor {R : Type u_1} [CommRing R] (f : Polynomial R) (x y : R) :
∃ (z : R), eval x f - eval y f = z * (x - y)

For any polynomial f, f.eval x - f.eval y can be expressed as z * (x - y) for some z in the ring.

@[deprecated add_pow_expansion (since := "2026-11-30")]
theorem Polynomial.powAddExpansion {R : Type u_1} [CommSemiring R] (x y : R) (n : ℕ) :
∃ (k : R), (x + y) ^ n = x ^ n + ↑n * x ^ (n - 1) * y + k * y ^ 2

Alias of add_pow_expansion.

@[deprecated Polynomial.binom_expansion (since := "2026-11-30")]
theorem Polynomial.binomExpansion {R : Type u_1} [CommRing R] (f : Polynomial R) (x y : R) :
∃ (k : R), eval (x + y) f = eval x f + eval x (derivative f) * y + k * y ^ 2

Alias of Polynomial.binom_expansion.


A polynomial f evaluated at x + y can be expressed as the evaluation of f at x, plus y times the (polynomial) derivative of f at x, plus some element k : R times y ^ 2.

@[deprecated Polynomial.eval_sub_factor (since := "2026-11-30")]
theorem Polynomial.evalSubFactor {R : Type u_1} [CommRing R] (f : Polynomial R) (x y : R) :
∃ (z : R), eval x f - eval y f = z * (x - y)

Alias of Polynomial.eval_sub_factor.


For any polynomial f, f.eval x - f.eval y can be expressed as z * (x - y) for some z in the ring.

@[deprecated powSubPowFactor "Use `geom_sum₂_mul` instead." (since := "2026-11-30")]
def Polynomial.powSubPowFactor {R : Type u_1} [CommRing R] (x y : R) (n : ℕ) :
{ z : R // x ^ n - y ^ n = z * (x - y) }

Alias of powSubPowFactor.

Equations
Instances For