The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.Polynomial.Pochhammer
60 declarations and 3 deprecated aliases. Mathlib docs · Source
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].
In an integral domain S, we show that ascPochhammer S n is zero iff
n is a sufficiently large non-positive integer.
TODO
There is lots more in this direction:
- q-factorials, q-binomials, q-Pochhammer.
theorem ascPochhammer.match_1.congr_eq_1 E1 #
∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (n : ℕ) → motive n.succ),
x = 0 →
(match x with
| 0 => h_1 ()
| n.succ => h_2 n) ≍
h_1 ()
theorem ascPochhammer.match_1.congr_eq_2 E1 #
∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (n : ℕ) → motive n.succ) (n : ℕ),
x = n.succ →
(match x with
| 0 => h_1 ()
| n.succ => h_2 n) ≍
h_2 n
def ascPochhammer E1 #
(S : Type u) → [inst : Semiring S] → ℕ → Polynomial S
ascPochhammer S n is the polynomial X * (X + 1) * ... * (X + n - 1),
with coefficients in the semiring S.
theorem ascPochhammer_zero E0 #
∀ (S : Type u) [inst : Semiring S], ascPochhammer S 0 = 1
theorem ascPochhammer_one E0 #
∀ (S : Type u) [inst : Semiring S], ascPochhammer S 1 = Polynomial.X
theorem ascPochhammer_succ_left E1 #
∀ (S : Type u) [inst : Semiring S] (n : ℕ),
ascPochhammer S (n + 1) = Polynomial.X * (ascPochhammer S n).comp (Polynomial.X + 1)
theorem monic_ascPochhammer E1 #
∀ (S : Type u) [inst : Semiring S] (n : ℕ) [Nontrivial S] [NoZeroDivisors S], (ascPochhammer S n).Monic
theorem ascPochhammer_map E0 #
∀ {S : Type u} [inst : Semiring S] {T : Type v} [inst_1 : Semiring T] (f : S →+* T) (n : ℕ),
Polynomial.map f (ascPochhammer S n) = ascPochhammer T n
theorem ascPochhammer_eval₂ E1 #
∀ {S : Type u} [inst : Semiring S] {T : Type v} [inst_1 : Semiring T] (f : S →+* T) (n : ℕ) (t : T),
Polynomial.eval t (ascPochhammer T n) = Polynomial.eval₂ f t (ascPochhammer S n)
theorem ascPochhammer_eval_comp E1 #
∀ {S : Type u} [inst : Semiring S] {R : Type u_1} [inst_1 : CommSemiring R] (n : ℕ) (p : Polynomial R)
[inst_2 : Algebra R S] (x : S),
Polynomial.eval x ((ascPochhammer S n).comp (Polynomial.map (algebraMap R S) p)) =
Polynomial.eval (Polynomial.eval₂ (algebraMap R S) x p) (ascPochhammer S n)
theorem ascPochhammer_eval_cast E0 #
∀ (S : Type u) [inst : Semiring S] (n k : ℕ),
↑(Polynomial.eval k (ascPochhammer ℕ n)) = Polynomial.eval (↑k) (ascPochhammer S n)
theorem ascPochhammer_eval_zero E1 #
∀ (S : Type u) [inst : Semiring S] {n : ℕ}, Polynomial.eval 0 (ascPochhammer S n) = if n = 0 then 1 else 0
theorem ascPochhammer_zero_eval_zero E1 #
∀ (S : Type u) [inst : Semiring S], Polynomial.eval 0 (ascPochhammer S 0) = 1
theorem ascPochhammer_ne_zero_eval_zero E0 #
∀ (S : Type u) [inst : Semiring S] {n : ℕ}, n ≠ 0 → Polynomial.eval 0 (ascPochhammer S n) = 0
theorem ascPochhammer_succ_right E1 #
∀ (S : Type u) [inst : Semiring S] (n : ℕ), ascPochhammer S (n + 1) = ascPochhammer S n * (Polynomial.X + ↑n)
theorem ascPochhammer_succ_eval E1 #
∀ {S : Type u_1} [inst : Semiring S] (n : ℕ) (k : S),
Polynomial.eval k (ascPochhammer S (n + 1)) = Polynomial.eval k (ascPochhammer S n) * (k + ↑n)
theorem ascPochhammer_succ_comp_X_add_one E1 #
∀ (S : Type u) [inst : Semiring S] (n : ℕ),
(ascPochhammer S (n + 1)).comp (Polynomial.X + 1) =
ascPochhammer S (n + 1) + (n + 1) • (ascPochhammer S n).comp (Polynomial.X + 1)
theorem ascPochhammer_mul E1 #
∀ (S : Type u) [inst : Semiring S] (n m : ℕ),
ascPochhammer S n * (ascPochhammer S m).comp (Polynomial.X + ↑n) = ascPochhammer S (n + m)
theorem ascPochhammer_nat_eq_ascFactorial E1 #
∀ (n k : ℕ), Polynomial.eval n (ascPochhammer ℕ k) = n.ascFactorial k
theorem ascPochhammer_nat_eq_natCast_ascFactorial E1 #
∀ (S : Type u_1) [inst : Semiring S] (n k : ℕ), Polynomial.eval (↑n) (ascPochhammer S k) = ↑(n.ascFactorial k)
theorem ascPochhammer_nat_eq_descFactorial E1 #
∀ (a b : ℕ), Polynomial.eval a (ascPochhammer ℕ b) = (a + b - 1).descFactorial b
theorem ascPochhammer_nat_eq_natCast_descFactorial E1 #
∀ (S : Type u_1) [inst : Semiring S] (a b : ℕ),
Polynomial.eval (↑a) (ascPochhammer S b) = ↑((a + b - 1).descFactorial b)
theorem ascPochhammer_natDegree E0 #
∀ (S : Type u) [inst : Semiring S] (n : ℕ) [NoZeroDivisors S] [Nontrivial S], (ascPochhammer S n).natDegree = n
theorem ascPochhammer_pos E1 #
∀ {S : Type u_1} [inst : Semiring S] [inst_1 : PartialOrder S] [IsStrictOrderedRing S] (n : ℕ) (s : S),
0 < s → 0 < Polynomial.eval s (ascPochhammer S n)
theorem ascPochhammer_eval_one E0 #
∀ (S : Type u_2) [inst : Semiring S] (n : ℕ), Polynomial.eval 1 (ascPochhammer S n) = ↑n.factorial
theorem factorial_mul_ascPochhammer E1 #
∀ (S : Type u_2) [inst : Semiring S] (r n : ℕ),
↑r.factorial * Polynomial.eval (↑r + 1) (ascPochhammer S n) = ↑(r + n).factorial
theorem ascPochhammer_eval_succ E1 #
∀ {S : Type u_1} [inst : Semiring S] (r : ℕ) (n : S),
n * Polynomial.eval (n + 1) (ascPochhammer S r) = Polynomial.eval n (ascPochhammer S r) * (n + ↑r)
theorem Nat.cast_ascFactorial E1 #
∀ (S : Type u_1) [inst : Semiring S] (a b : ℕ), ↑(a.ascFactorial b) = Polynomial.eval (↑a) (ascPochhammer S b)
theorem Nat.cast_descFactorial E1 #
∀ (S : Type u_1) [inst : Semiring S] (a b : ℕ),
↑(a.descFactorial b) = Polynomial.eval (↑(a - (b - 1))) (ascPochhammer S b)
theorem Nat.cast_factorial E1 #
∀ (S : Type u_1) [inst : Semiring S] (a : ℕ), ↑a.factorial = Polynomial.eval 1 (ascPochhammer S a)
def descPochhammer E1 #
(R : Type u) → [inst : Ring R] → ℕ → Polynomial R
descPochhammer R n is the polynomial X * (X - 1) * ... * (X - n + 1),
with coefficients in the ring R.
theorem descPochhammer_zero E0 #
∀ (R : Type u) [inst : Ring R], descPochhammer R 0 = 1
theorem descPochhammer_one E0 #
∀ (R : Type u) [inst : Ring R], descPochhammer R 1 = Polynomial.X
theorem descPochhammer_succ_left E1 #
∀ (R : Type u) [inst : Ring R] (n : ℕ),
descPochhammer R (n + 1) = Polynomial.X * (descPochhammer R n).comp (Polynomial.X - 1)
theorem monic_descPochhammer E1 #
∀ (R : Type u) [inst : Ring R] (n : ℕ) [Nontrivial R] [NoZeroDivisors R], (descPochhammer R n).Monic
theorem descPochhammer_map E0 #
∀ {R : Type u} [inst : Ring R] {T : Type v} [inst_1 : Ring T] (f : R →+* T) (n : ℕ),
Polynomial.map f (descPochhammer R n) = descPochhammer T n
theorem descPochhammer_eval_cast E0 #
∀ (R : Type u) [inst : Ring R] (n : ℕ) (k : ℤ),
↑(Polynomial.eval k (descPochhammer ℤ n)) = Polynomial.eval (↑k) (descPochhammer R n)
theorem descPochhammer_eval_zero E1 #
∀ (R : Type u) [inst : Ring R] {n : ℕ}, Polynomial.eval 0 (descPochhammer R n) = if n = 0 then 1 else 0
theorem descPochhammer_zero_eval_zero E1 #
∀ (R : Type u) [inst : Ring R], Polynomial.eval 0 (descPochhammer R 0) = 1
theorem descPochhammer_ne_zero_eval_zero E0 #
∀ (R : Type u) [inst : Ring R] {n : ℕ}, n ≠ 0 → Polynomial.eval 0 (descPochhammer R n) = 0
theorem descPochhammer_succ_right E1 #
∀ (R : Type u) [inst : Ring R] (n : ℕ), descPochhammer R (n + 1) = descPochhammer R n * (Polynomial.X - ↑n)
theorem descPochhammer_natDegree E0 #
∀ (R : Type u) [inst : Ring R] (n : ℕ) [NoZeroDivisors R] [Nontrivial R], (descPochhammer R n).natDegree = n
theorem descPochhammer_succ_eval E1 #
∀ {S : Type u_1} [inst : Ring S] (n : ℕ) (k : S),
Polynomial.eval k (descPochhammer S (n + 1)) = Polynomial.eval k (descPochhammer S n) * (k - ↑n)
theorem descPochhammer_succ_comp_X_sub_one E1 #
∀ (R : Type u) [inst : Ring R] (n : ℕ),
(descPochhammer R (n + 1)).comp (Polynomial.X - 1) =
descPochhammer R (n + 1) - (↑n + 1) • (descPochhammer R n).comp (Polynomial.X - 1)
theorem descPochhammer_eq_ascPochhammer E1 #
∀ (n : ℕ), descPochhammer ℤ n = (ascPochhammer ℤ n).comp (Polynomial.X - ↑n + 1)
theorem descPochhammer_eval_eq_ascPochhammer E1 #
∀ (R : Type u) [inst : Ring R] (r : R) (n : ℕ),
Polynomial.eval r (descPochhammer R n) = Polynomial.eval (r - ↑n + 1) (ascPochhammer R n)
theorem descPochhammer_mul E1 #
∀ (R : Type u) [inst : Ring R] (n m : ℕ),
descPochhammer R n * (descPochhammer R m).comp (Polynomial.X - ↑n) = descPochhammer R (n + m)
theorem ascPochhammer_eval_neg_eq_descPochhammer E1 #
∀ (R : Type u) [inst : Ring R] (r : R) (k : ℕ),
Polynomial.eval (-r) (ascPochhammer R k) = (-1) ^ k * Polynomial.eval r (descPochhammer R k)
theorem descPochhammer_eval_eq_descFactorial E1 #
∀ (R : Type u) [inst : Ring R] (n k : ℕ), Polynomial.eval (↑n) (descPochhammer R k) = ↑(n.descFactorial k)
theorem descPochhammer_int_eq_ascFactorial E1 #
∀ (a b : ℕ), Polynomial.eval (↑a + ↑b) (descPochhammer ℤ b) = ↑((a + 1).ascFactorial b)
theorem ascPochhammer_eval_neg_natCast_of_lt E1 #
∀ {R : Type u} [inst : Ring R] {n k : ℕ}, k < n → Polynomial.eval (-↑k) (ascPochhammer R n) = 0
The Pochhammer polynomial of degree n has roots at 0, -1, ..., -(n - 1).
theorem ascPochhammer_eval_eq_zero_iff E0 #
∀ {R : Type u} [inst : Ring R] [IsDomain R] (n : ℕ) (r : R),
Polynomial.eval r (ascPochhammer R n) = 0 ↔ ∃ k < n, ↑k = -r
Over an integral domain, the Pochhammer polynomial of degree n has roots only at
0, -1, ..., -(n - 1).
theorem descPochhammer_eval_natCast_of_lt E1 #
∀ {R : Type u} [inst : Ring R] {k n : ℕ}, k < n → Polynomial.eval (↑k) (descPochhammer R n) = 0
descPochhammer R n is 0 for 0, 1, …, n-1.
theorem descPochhammer_eval_eq_prod_range E1 #
∀ {R : Type u_1} [inst : CommRing R] (n : ℕ) (r : R),
Polynomial.eval r (descPochhammer R n) = ∏ j ∈ Finset.range n, (r - ↑j)
theorem descPochhammer_pos E1 #
∀ {S : Type u_1} [inst : Ring S] [inst_1 : PartialOrder S] [IsStrictOrderedRing S] {n : ℕ} {s : S},
↑n - 1 < s → 0 < Polynomial.eval s (descPochhammer S n)
descPochhammer S n is positive on (n-1, ∞).
theorem descPochhammer_nonneg E1 #
∀ {S : Type u_1} [inst : Ring S] [inst_1 : PartialOrder S] [IsStrictOrderedRing S] {n : ℕ} {s : S},
↑n - 1 ≤ s → 0 ≤ Polynomial.eval s (descPochhammer S n)
descPochhammer S n is nonnegative on [n-1, ∞).
theorem pow_le_descPochhammer_eval E1 #
∀ {S : Type u_1} [inst : Ring S] [inst_1 : PartialOrder S] [IsStrictOrderedRing S] {n : ℕ} {s : S},
↑n - 1 ≤ s → (s - ↑n + 1) ^ n ≤ Polynomial.eval s (descPochhammer S n)
descPochhammer S n is at least (s-n+1)^n on [n-1, ∞).
theorem monotoneOn_descPochhammer_eval E1 #
∀ {S : Type u_1} [inst : Ring S] [inst_1 : PartialOrder S] [IsStrictOrderedRing S] (n : ℕ),
MonotoneOn (fun x ↦ Polynomial.eval x (descPochhammer S n)) (Set.Ici (↑n - 1))
descPochhammer S n is monotone on [n-1, ∞).
theorem Nat.cast_choose_eq_ascPochhammer_div E1 #
∀ (K : Type u_1) [inst : DivisionSemiring K] [CharZero K] (a b : ℕ),
↑(a.choose b) = Polynomial.eval (↑(a - (b - 1))) (ascPochhammer K b) / ↑b.factorial
theorem Nat.cast_choose_eq_descPochhammer_div E1 #
∀ (K : Type u_1) [inst : DivisionRing K] [CharZero K] (a b : ℕ),
↑(a.choose b) = Polynomial.eval (↑a) (descPochhammer K b) / ↑b.factorial
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ascPochhammer_eval_neg_coe_nat_of_lt | ascPochhammer_eval_neg_natCast_of_lt | 2026-10-13 |
ascPochhammer_nat_eval_succ | ascPochhammer_eval_succ | 2026-08-16 |
descPochhammer_eval_coe_nat_of_lt | descPochhammer_eval_natCast_of_lt | 2026-10-13 |