Documentation

Mathlib.RingTheory.Polynomial.Pochhammer

The Pochhammer polynomials #

We define and prove some basic relations about ascPochhammer S n : S[X] := X * (X + 1) * ... * (X + n - 1) which is also known as the rising factorial and about descPochhammer R n : R[X] := X * (X - 1) * ... * (X - n + 1) which is also known as the falling factorial. Versions of this definition that are focused on Nat can be found in Data.Nat.Factorial as Nat.ascFactorial and Nat.descFactorial.

Implementation #

As with many other families of polynomials, even though the coefficients are always in or , we define the polynomial with coefficients in any [Semiring S] or [Ring R].

TODO #

There is lots more in this direction:

noncomputable def ascPochhammer (S : Type u) [Semiring S] :

ascPochhammer S n is the polynomial X * (X + 1) * ... * (X + n - 1), with coefficients in the semiring S.

Equations
Instances For
    @[simp]
    theorem ascPochhammer_zero (S : Type u) [Semiring S] :
    @[simp]
    theorem ascPochhammer_one (S : Type u) [Semiring S] :
    ascPochhammer S 1 = Polynomial.X
    theorem ascPochhammer_succ_left (S : Type u) [Semiring S] (n : ) :
    ascPochhammer S (n + 1) = Polynomial.X * Polynomial.comp (ascPochhammer S n) (Polynomial.X + 1)
    @[simp]
    theorem ascPochhammer_map {S : Type u} [Semiring S] {T : Type v} [Semiring T] (f : S →+* T) (n : ) :
    theorem ascPochhammer_eval₂ {S : Type u} [Semiring S] {T : Type v} [Semiring T] (f : S →+* T) (n : ) (t : T) :
    @[simp]
    theorem ascPochhammer_eval_zero (S : Type u) [Semiring S] {n : } :
    Polynomial.eval 0 (ascPochhammer S n) = if n = 0 then 1 else 0
    @[simp]
    theorem ascPochhammer_ne_zero_eval_zero (S : Type u) [Semiring S] {n : } (h : n 0) :
    theorem ascPochhammer_succ_right (S : Type u) [Semiring S] (n : ) :
    ascPochhammer S (n + 1) = ascPochhammer S n * (Polynomial.X + n)
    theorem ascPochhammer_succ_eval {S : Type u_1} [Semiring S] (n : ) (k : S) :
    theorem ascPochhammer_succ_comp_X_add_one (S : Type u) [Semiring S] (n : ) :
    Polynomial.comp (ascPochhammer S (n + 1)) (Polynomial.X + 1) = ascPochhammer S (n + 1) + (n + 1) Polynomial.comp (ascPochhammer S n) (Polynomial.X + 1)
    theorem ascPochhammer_mul (S : Type u) [Semiring S] (n : ) (m : ) :
    ascPochhammer S n * Polynomial.comp (ascPochhammer S m) (Polynomial.X + n) = ascPochhammer S (n + m)
    theorem ascPochhammer_pos {S : Type u_1} [StrictOrderedSemiring S] (n : ) (s : S) (h : 0 < s) :
    @[simp]
    theorem factorial_mul_ascPochhammer (S : Type u_2) [Semiring S] (r : ) (n : ) :
    (Nat.factorial r) * Polynomial.eval (r + 1) (ascPochhammer S n) = (Nat.factorial (r + n))
    theorem ascPochhammer_eval_succ (S : Type u_1) [Semiring S] (r : ) (n : ) :
    n * Polynomial.eval (n + 1) (ascPochhammer S r) = (n + r) * Polynomial.eval (n) (ascPochhammer S r)
    noncomputable def descPochhammer (R : Type u) [Ring R] :

    descPochhammer R n is the polynomial X * (X - 1) * ... * (X - n + 1), with coefficients in the ring R.

    Equations
    Instances For
      @[simp]
      theorem descPochhammer_zero (R : Type u) [Ring R] :
      @[simp]
      theorem descPochhammer_one (R : Type u) [Ring R] :
      descPochhammer R 1 = Polynomial.X
      theorem descPochhammer_succ_left (R : Type u) [Ring R] (n : ) :
      descPochhammer R (n + 1) = Polynomial.X * Polynomial.comp (descPochhammer R n) (Polynomial.X - 1)
      @[simp]
      theorem descPochhammer_map {R : Type u} [Ring R] {T : Type v} [Ring T] (f : R →+* T) (n : ) :
      @[simp]
      theorem descPochhammer_eval_cast (R : Type u) [Ring R] (n : ) (k : ) :
      theorem descPochhammer_eval_zero (R : Type u) [Ring R] {n : } :
      Polynomial.eval 0 (descPochhammer R n) = if n = 0 then 1 else 0
      @[simp]
      theorem descPochhammer_ne_zero_eval_zero (R : Type u) [Ring R] {n : } (h : n 0) :
      theorem descPochhammer_succ_right (R : Type u) [Ring R] (n : ) :
      descPochhammer R (n + 1) = descPochhammer R n * (Polynomial.X - n)
      theorem descPochhammer_succ_eval {S : Type u_1} [Ring S] (n : ) (k : S) :
      theorem descPochhammer_succ_comp_X_sub_one (R : Type u) [Ring R] (n : ) :
      Polynomial.comp (descPochhammer R (n + 1)) (Polynomial.X - 1) = descPochhammer R (n + 1) - (n + 1) Polynomial.comp (descPochhammer R n) (Polynomial.X - 1)
      theorem descPochhammer_mul (R : Type u) [Ring R] (n : ) (m : ) :
      descPochhammer R n * Polynomial.comp (descPochhammer R m) (Polynomial.X - n) = descPochhammer R (n + m)