The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.Algebra.Polynomial.Identities

4 declarations. Mathlib docs · Source

def Polynomial.powAddExpansion E1 #

{R : Type u_1} →
  [inst : CommSemiring R] → (x y : R) → (n : ℕ) → { k // (x + y) ^ n = x ^ n + ↑n * x ^ (n - 1) * y + k * y ^ 2 }

(x + y)^n can be expressed as x^n + n*x^(n-1)*y + k * y^2 for some k in the ring.

def Polynomial.binomExpansion E1 #

{R : Type u} →
  [inst : CommRing R] →
    (f : Polynomial R) →
      (x y : R) →
        { k //
          Polynomial.eval (x + y) f =
            Polynomial.eval x f + Polynomial.eval x (Polynomial.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.

def Polynomial.powSubPowFactor E1 #

{R : Type u} → [inst : CommRing R] → (x y : R) → (i : ℕ) → { z // x ^ i - y ^ i = z * (x - y) }

x^n - y^n can be expressed as z * (x - y) for some z in the ring.

def Polynomial.evalSubFactor E1 #

{R : Type u} →
  [inst : CommRing R] →
    (f : Polynomial R) → (x y : R) → { z // Polynomial.eval x f - Polynomial.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.