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.SumIteratedDerivative

17 declarations. Mathlib docs · Source

Sum of iterated derivatives

This file introduces Polynomial.sumIDeriv, the sum of the iterated derivatives of a polynomial, as a linear map. This is used in particular in the proof of the Lindemann-Weierstrass theorem (see https://github.com/leanprover-community/mathlib4/pull/6718).

Main results

  • Polynomial.sumIDeriv: Sum of iterated derivatives of a polynomial, as a linear map
  • Polynomial.sumIDeriv_apply, Polynomial.sumIDeriv_apply_of_lt, Polynomial.sumIDeriv_apply_of_le: Polynomial.sumIDeriv expressed as a sum
  • Polynomial.sumIDeriv_C, Polynomial.sumIDeriv_X: Polynomial.sumIDeriv applied to simple polynomials
  • Polynomial.sumIDeriv_map: Polynomial.sumIDeriv commutes with Polynomial.map
  • Polynomial.sumIDeriv_derivative: Polynomial.sumIDeriv commutes with Polynomial.derivative
  • Polynomial.sumIDeriv_eq_self_add: sumIDeriv p = p + derivative (sumIDeriv p)
  • Polynomial.exists_iterate_derivative_eq_factorial_smul: the k-th iterated derivative of a polynomial has a common factor k!
  • Polynomial.aeval_iterate_derivative_of_lt, Polynomial.aeval_iterate_derivative_self, Polynomial.aeval_iterate_derivative_of_ge: applying Polynomial.aeval to iterated derivatives
  • Polynomial.aeval_sumIDeriv, Polynomial.aeval_sumIDeriv_of_pos: applying Polynomial.aeval to Polynomial.sumIDeriv

def Polynomial.sumIDeriv E3 #

{R : Type u_1} → [inst : Semiring R] → Polynomial R →ₗ[R] Polynomial R

Sum of iterated derivatives of a polynomial, as a linear map

This definition does not allow different weights for the derivatives. It is likely that it could be extended to allow them, but this was not needed for the initial use case (the integration by parts of the integral $I_i$ in the Lindemann-Weierstrass theorem).

theorem Polynomial.sumIDeriv_apply E3 #

∀ {R : Type u_1} [inst : Semiring R] (p : Polynomial R),
  Polynomial.sumIDeriv p = ∑ i ∈ Finset.range (p.natDegree + 1), (⇑Polynomial.derivative)^[i] p

theorem Polynomial.sumIDeriv_apply_of_lt E3 #

∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {n : ℕ},
  p.natDegree < n → Polynomial.sumIDeriv p = ∑ i ∈ Finset.range n, (⇑Polynomial.derivative)^[i] p

theorem Polynomial.sumIDeriv_apply_of_le E3 #

∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {n : ℕ},
  p.natDegree ≤ n → Polynomial.sumIDeriv p = ∑ i ∈ Finset.range (n + 1), (⇑Polynomial.derivative)^[i] p

theorem Polynomial.sumIDeriv_C E3 #

∀ {R : Type u_1} [inst : Semiring R] (a : R), Polynomial.sumIDeriv (Polynomial.C a) = Polynomial.C a

theorem Polynomial.sumIDeriv_X E3 #

Polynomial.sumIDeriv Polynomial.X = Polynomial.X + Polynomial.C 1

theorem Polynomial.sumIDeriv_map E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (p : Polynomial R) (f : R →+* S),
  Polynomial.sumIDeriv (Polynomial.map f p) = Polynomial.map f (Polynomial.sumIDeriv p)

theorem Polynomial.sumIDeriv_derivative E3 #

∀ {R : Type u_1} [inst : Semiring R] (p : Polynomial R),
  Polynomial.sumIDeriv (Polynomial.derivative p) = Polynomial.derivative (Polynomial.sumIDeriv p)

theorem Polynomial.sumIDeriv_eq_self_add E3 #

∀ {R : Type u_1} [inst : Semiring R] (p : Polynomial R),
  Polynomial.sumIDeriv p = p + Polynomial.derivative (Polynomial.sumIDeriv p)

theorem Polynomial.exists_iterate_derivative_eq_factorial_smul E3 #

∀ {R : Type u_1} [inst : Semiring R] (p : Polynomial R) (k : ℕ),
  ∃ gp, gp.natDegree ≤ p.natDegree - k ∧ (⇑Polynomial.derivative)^[k] p = k.factorial • gp

theorem Polynomial.aeval_iterate_derivative_of_lt E3 #

∀ {R : Type u_1} [inst : CommSemiring R] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra R A] (p : Polynomial R)
  (q : ℕ) (r : A) {p' : Polynomial A},
  Polynomial.map (algebraMap R A) p = (Polynomial.X - Polynomial.C r) ^ q * p' →
    ∀ {k : ℕ}, k < q → (Polynomial.aeval r) ((⇑Polynomial.derivative)^[k] p) = 0

theorem Polynomial.aeval_iterate_derivative_self E3 #

∀ {R : Type u_1} [inst : CommSemiring R] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra R A] (p : Polynomial R)
  (q : ℕ) (r : A) {p' : Polynomial A},
  Polynomial.map (algebraMap R A) p = (Polynomial.X - Polynomial.C r) ^ q * p' →
    (Polynomial.aeval r) ((⇑Polynomial.derivative)^[q] p) = q.factorial • Polynomial.eval r p'

theorem Polynomial.aeval_iterate_derivative_of_ge E3 #

∀ {R : Type u_1} [inst : CommSemiring R] (A : Type u_3) [inst_1 : CommRing A] [inst_2 : Algebra R A] (p : Polynomial R)
  (q : ℕ) {k : ℕ},
  q ≤ k →
    ∃ gp,
      gp.natDegree ≤ p.natDegree - k ∧
        ∀ (r : A), (Polynomial.aeval r) ((⇑Polynomial.derivative)^[k] p) = q.factorial • (Polynomial.aeval r) gp

theorem Polynomial.aeval_sumIDeriv_eq_eval E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (A : Type u_3) [inst_1 : CommRing A] [inst_2 : Algebra R A] (p : Polynomial R)
  (r : A),
  (Polynomial.aeval r) (Polynomial.sumIDeriv p) =
    Polynomial.eval r (Polynomial.sumIDeriv (Polynomial.map (algebraMap R A) p))

theorem Polynomial.aeval_sumIDeriv E3 #

∀ {R : Type u_1} [inst : CommSemiring R] (A : Type u_3) [inst_1 : CommRing A] [inst_2 : Algebra R A] (p : Polynomial R)
  (q : ℕ),
  ∃ gp,
    gp.natDegree ≤ p.natDegree - q ∧
      ∀ (r : A),
        (Polynomial.X - Polynomial.C r) ^ q ∣ Polynomial.map (algebraMap R A) p →
          (Polynomial.aeval r) (Polynomial.sumIDeriv p) = q.factorial • (Polynomial.aeval r) gp

theorem Polynomial.aeval_sumIDeriv_of_pos E3 #

∀ {R : Type u_1} [inst : CommSemiring R] (A : Type u_3) [inst_1 : CommRing A] [inst_2 : Algebra R A] [Nontrivial A]
  [NoZeroDivisors A] (p : Polynomial R) {q : ℕ},
  0 < q →
    Function.Injective ⇑(algebraMap R A) →
      ∃ gp,
        gp.natDegree ≤ p.natDegree - q ∧
          ∀ (r : A) {p' : Polynomial A},
            Polynomial.map (algebraMap R A) p = (Polynomial.X - Polynomial.C r) ^ (q - 1) * p' →
              (Polynomial.aeval r) (Polynomial.sumIDeriv p) =
                (q - 1).factorial • Polynomial.eval r p' + q.factorial • (Polynomial.aeval r) gp

theorem Polynomial.eval_sumIDeriv_of_pos E1 #

∀ {R : Type u_1} [inst : CommRing R] [Nontrivial R] [NoZeroDivisors R] (p : Polynomial R) {q : ℕ},
  0 < q →
    ∃ gp,
      gp.natDegree ≤ p.natDegree - q ∧
        ∀ (r : R) {p' : Polynomial R},
          p = (Polynomial.X - Polynomial.C r) ^ (q - 1) * p' →
            Polynomial.eval r (Polynomial.sumIDeriv p) =
              (q - 1).factorial • Polynomial.eval r p' + q.factorial • Polynomial.eval r gp