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.Degree.Operations

131 declarations and 4 deprecated aliases. Mathlib docs · Source

Lemmas for calculating the degree of univariate polynomials

Main results

  • degree_mul : The degree of the product is the sum of degrees
  • leadingCoeff_add_of_degree_eq and leadingCoeff_add_of_degree_lt : The leading coefficient of a sum is determined by the leading coefficients and degrees

theorem Polynomial.supDegree_eq_degree E1 #

∀ {R : Type u} [inst : Semiring R] (p : Polynomial R), AddMonoidAlgebra.supDegree WithBot.some p = p.degree

theorem Polynomial.degree_lt_wf E1 #

∀ {R : Type u} [inst : Semiring R], WellFounded fun p q ↦ p.degree < q.degree

instance Polynomial.instWellFoundedRelation E0 #

{R : Type u} → [inst : Semiring R] → WellFoundedRelation (Polynomial R)

theorem Polynomial.monic_of_subsingleton E1 #

∀ {R : Type u} [inst : Semiring R] [Subsingleton R] (p : Polynomial R), p.Monic

theorem Polynomial.degree_of_subsingleton E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} [Subsingleton R], p.degree = ⊥

theorem Polynomial.natDegree_of_subsingleton E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} [Subsingleton R], p.natDegree = 0

theorem Polynomial.le_natDegree_of_ne_zero E1 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] {p : Polynomial R}, p.coeff n ≠ 0 → n ≤ p.natDegree

theorem Polynomial.degree_eq_of_le_of_coeff_ne_zero E1 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] {p : Polynomial R}, p.degree ≤ ↑n → p.coeff n ≠ 0 → p.degree = ↑n

theorem Polynomial.natDegree_eq_of_le_of_coeff_ne_zero E1 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] {p : Polynomial R}, p.natDegree ≤ n → p.coeff n ≠ 0 → p.natDegree = n

theorem Polynomial.natDegree_lt_natDegree E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] {p : Polynomial R} {q : Polynomial S},
  p ≠ 0 → p.degree < q.degree → p.natDegree < q.natDegree

theorem Polynomial.natDegree_eq_natDegree E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] {p : Polynomial R} {q : Polynomial S},
  p.degree = q.degree → p.natDegree = q.natDegree

theorem Polynomial.coeff_eq_zero_of_degree_lt E1 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] {p : Polynomial R}, p.degree < ↑n → p.coeff n = 0

theorem Polynomial.coeff_eq_zero_of_natDegree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, p.natDegree < n → p.coeff n = 0

theorem Polynomial.ext_iff_natDegree_le E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R} {n : ℕ},
  p.natDegree ≤ n → q.natDegree ≤ n → (p = q ↔ ∀ i ≤ n, p.coeff i = q.coeff i)

theorem Polynomial.ext_iff_degree_le E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R} {n : ℕ},
  p.degree ≤ ↑n → q.degree ≤ ↑n → (p = q ↔ ∀ i ≤ n, p.coeff i = q.coeff i)

theorem Polynomial.coeff_natDegree_succ_eq_zero E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.coeff (p.natDegree + 1) = 0

theorem Polynomial.ite_le_natDegree_coeff E1 #

∀ {R : Type u} [inst : Semiring R] (p : Polynomial R) (n : ℕ) (I : Decidable (n < 1 + p.natDegree)),
  (if n < 1 + p.natDegree then p.coeff n else 0) = p.coeff n

theorem Polynomial.coeff_mul_X_sub_C E1 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R} {r : R} {a : ℕ},
  (p * (Polynomial.X - Polynomial.C r)).coeff (a + 1) = p.coeff a - p.coeff (a + 1) * r

theorem Polynomial.coeff_X_sub_C_mul E1 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R} {r : R} {a : ℕ},
  ((Polynomial.X - Polynomial.C r) * p).coeff (a + 1) = p.coeff a - r * p.coeff (a + 1)

theorem Polynomial.coeff_natDegree_eq_zero_of_degree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.degree < q.degree → p.coeff q.natDegree = 0

theorem Polynomial.ne_zero_of_degree_gt E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {n : WithBot ℕ}, n < p.degree → p ≠ 0

theorem Polynomial.ne_zero_of_degree_ge_degree E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.degree ≤ q.degree → p ≠ 0 → q ≠ 0

theorem Polynomial.ne_zero_of_natDegree_gt E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, n < p.natDegree → p ≠ 0

theorem Polynomial.degree_lt_degree E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.natDegree < q.natDegree → p.degree < q.degree

theorem Polynomial.natDegree_lt_natDegree_iff E0 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p ≠ 0 → (p.natDegree < q.natDegree ↔ p.degree < q.degree)

theorem Polynomial.degree_le_zero_iff E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.degree ≤ 0 ↔ p = Polynomial.C (p.coeff 0)

theorem Polynomial.degree_add_eq_left_of_degree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, q.degree < p.degree → (p + q).degree = p.degree

theorem Polynomial.degree_add_eq_right_of_degree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.degree < q.degree → (p + q).degree = q.degree

theorem Polynomial.natDegree_add_eq_left_of_degree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, q.degree < p.degree → (p + q).natDegree = p.natDegree

theorem Polynomial.natDegree_add_eq_left_of_natDegree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, q.natDegree < p.natDegree → (p + q).natDegree = p.natDegree

theorem Polynomial.natDegree_add_eq_right_of_degree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.degree < q.degree → (p + q).natDegree = q.natDegree

theorem Polynomial.natDegree_add_eq_right_of_natDegree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.natDegree < q.natDegree → (p + q).natDegree = q.natDegree

theorem Polynomial.degree_add_C E1 #

∀ {R : Type u} {a : R} [inst : Semiring R] {p : Polynomial R}, 0 < p.degree → (p + Polynomial.C a).degree = p.degree

theorem Polynomial.natDegree_add_C E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {a : R}, (p + Polynomial.C a).natDegree = p.natDegree

theorem Polynomial.natDegree_C_add E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {a : R}, (Polynomial.C a + p).natDegree = p.natDegree

theorem Polynomial.natDegree_add_one E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, (p + 1).natDegree = p.natDegree

theorem Polynomial.natDegree_one_add E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, (1 + p).natDegree = p.natDegree

theorem Polynomial.degree_add_eq_of_leadingCoeff_add_ne_zero E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R},
  p.leadingCoeff + q.leadingCoeff ≠ 0 → (p + q).degree = max p.degree q.degree

theorem Polynomial.natDegree_eq_of_natDegree_add_lt_left E1 #

∀ {R : Type u} [inst : Semiring R] (p q : Polynomial R), (p + q).natDegree < p.natDegree → p.natDegree = q.natDegree

theorem Polynomial.natDegree_eq_of_natDegree_add_lt_right E1 #

∀ {R : Type u} [inst : Semiring R] (p q : Polynomial R), (p + q).natDegree < q.natDegree → p.natDegree = q.natDegree

theorem Polynomial.natDegree_eq_of_natDegree_add_eq_zero E1 #

∀ {R : Type u} [inst : Semiring R] (p q : Polynomial R), (p + q).natDegree = 0 → p.natDegree = q.natDegree

theorem Polynomial.monic_of_natDegree_le_of_coeff_eq_one E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} (n : ℕ), p.natDegree ≤ n → p.coeff n = 1 → p.Monic

theorem Polynomial.monic_of_degree_le E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} (n : ℕ), p.degree ≤ ↑n → p.coeff n = 1 → p.Monic

theorem Polynomial.leadingCoeff_add_of_degree_lt E3 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.degree < q.degree → (p + q).leadingCoeff = q.leadingCoeff

theorem Polynomial.leadingCoeff_add_of_degree_lt' E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, q.degree < p.degree → (p + q).leadingCoeff = p.leadingCoeff

theorem Polynomial.leadingCoeff_add_of_degree_eq E3 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R},
  p.degree = q.degree → p.leadingCoeff + q.leadingCoeff ≠ 0 → (p + q).leadingCoeff = p.leadingCoeff + q.leadingCoeff

theorem Polynomial.coeff_mul_degree_add_degree E0 #

∀ {R : Type u} [inst : Semiring R] (p q : Polynomial R),
  (p * q).coeff (p.natDegree + q.natDegree) = p.leadingCoeff * q.leadingCoeff

theorem Polynomial.degree_mul' E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R},
  p.leadingCoeff * q.leadingCoeff ≠ 0 → (p * q).degree = p.degree + q.degree

theorem Polynomial.Monic.degree_mul E3 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, q.Monic → (p * q).degree = p.degree + q.degree

theorem Polynomial.natDegree_mul' E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R},
  p.leadingCoeff * q.leadingCoeff ≠ 0 → (p * q).natDegree = p.natDegree + q.natDegree

theorem Polynomial.leadingCoeff_mul' E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R},
  p.leadingCoeff * q.leadingCoeff ≠ 0 → (p * q).leadingCoeff = p.leadingCoeff * q.leadingCoeff

theorem Polynomial.Monic.leadingCoeff_C_mul E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.Monic → ∀ (r : R), (Polynomial.C r * p).leadingCoeff = r

theorem Polynomial.leadingCoeff_pow' E1 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] {p : Polynomial R},
  p.leadingCoeff ^ n ≠ 0 → (p ^ n).leadingCoeff = p.leadingCoeff ^ n

theorem Polynomial.degree_pow' E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, p.leadingCoeff ^ n ≠ 0 → (p ^ n).degree = n • p.degree

theorem Polynomial.natDegree_pow' E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {n : ℕ},
  p.leadingCoeff ^ n ≠ 0 → (p ^ n).natDegree = n * p.natDegree

theorem Polynomial.leadingCoeff_monic_mul E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.Monic → (p * q).leadingCoeff = q.leadingCoeff

theorem Polynomial.leadingCoeff_mul_monic E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, q.Monic → (p * q).leadingCoeff = p.leadingCoeff

theorem Polynomial.degree_C_mul_of_isUnit E1 #

∀ {R : Type u} {a : R} [inst : Semiring R], IsUnit a → ∀ (p : Polynomial R), (Polynomial.C a * p).degree = p.degree

theorem Polynomial.degree_mul_C_of_isUnit E1 #

∀ {R : Type u} {a : R} [inst : Semiring R], IsUnit a → ∀ (p : Polynomial R), (p * Polynomial.C a).degree = p.degree

theorem Polynomial.natDegree_C_mul_of_isUnit E1 #

∀ {R : Type u} {a : R} [inst : Semiring R],
  IsUnit a → ∀ (p : Polynomial R), (Polynomial.C a * p).natDegree = p.natDegree

theorem Polynomial.natDegree_mul_C_of_isUnit E1 #

∀ {R : Type u} {a : R} [inst : Semiring R],
  IsUnit a → ∀ (p : Polynomial R), (p * Polynomial.C a).natDegree = p.natDegree

theorem Polynomial.leadingCoeff_C_mul_of_isUnit E1 #

∀ {R : Type u} {a : R} [inst : Semiring R],
  IsUnit a → ∀ (p : Polynomial R), (Polynomial.C a * p).leadingCoeff = a * p.leadingCoeff

theorem Polynomial.leadingCoeff_mul_C_of_isUnit E1 #

∀ {R : Type u} {a : R} [inst : Semiring R],
  IsUnit a → ∀ (p : Polynomial R), (p * Polynomial.C a).leadingCoeff = p.leadingCoeff * a

theorem Polynomial.leadingCoeff_mul_X_pow E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, (p * Polynomial.X ^ n).leadingCoeff = p.leadingCoeff

theorem Polynomial.leadingCoeff_mul_X E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, (p * Polynomial.X).leadingCoeff = p.leadingCoeff

theorem Polynomial.coeff_pow_mul_natDegree E0 #

∀ {R : Type u} [inst : Semiring R] (p : Polynomial R) (n : ℕ), (p ^ n).coeff (n * p.natDegree) = p.leadingCoeff ^ n

theorem Polynomial.coeff_mul_add_eq_of_natDegree_le E1 #

∀ {R : Type u} [inst : Semiring R] {df dg : ℕ} {f g : Polynomial R},
  f.natDegree ≤ df → g.natDegree ≤ dg → (f * g).coeff (df + dg) = f.coeff df * g.coeff dg

theorem Polynomial.degree_smul_le E1 #

∀ {R : Type u} [inst : Semiring R] {S : Type u_1} [inst_1 : SMulZeroClass S R] (a : S) (p : Polynomial R),
  (a • p).degree ≤ p.degree

theorem Polynomial.natDegree_smul_le E1 #

∀ {R : Type u} [inst : Semiring R] {S : Type u_1} [inst_1 : SMulZeroClass S R] (a : S) (p : Polynomial R),
  (a • p).natDegree ≤ p.natDegree

theorem Polynomial.degree_smul_of_isRightRegular_leadingCoeff E1 #

∀ {R : Type u} {a : R} [inst : Semiring R] {p : Polynomial R},
  a ≠ 0 → IsRightRegular p.leadingCoeff → (a • p).degree = p.degree

theorem Polynomial.degree_lt_degree_mul_X E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p ≠ 0 → p.degree < (p * Polynomial.X).degree

theorem Polynomial.natDegree_eq_zero E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.natDegree = 0 ↔ ∃ x, Polynomial.C x = p

theorem Polynomial.Monic.natDegree_eq_zero E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.Monic → (p.natDegree = 0 ↔ p = 1)

theorem Polynomial.degree_sum_fin_lt E1 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ} (f : Fin n → R), (∑ i, Polynomial.C (f i) * Polynomial.X ^ ↑i).degree < ↑n

theorem Polynomial.degree_C_lt_degree_C_mul_X E1 #

∀ {R : Type u} {a b : R} [inst : Semiring R], a ≠ 0 → (Polynomial.C b).degree < (Polynomial.C a * Polynomial.X).degree

theorem Polynomial.natDegree_mul_X E0 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R] {p : Polynomial R},
  p ≠ 0 → (p * Polynomial.X).natDegree = p.natDegree + 1

theorem Polynomial.natDegree_X_mul E0 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R] {p : Polynomial R},
  p ≠ 0 → (Polynomial.X * p).natDegree = p.natDegree + 1

theorem Polynomial.natDegree_mul_X_pow E0 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R] {p : Polynomial R} (n : ℕ),
  p ≠ 0 → (p * Polynomial.X ^ n).natDegree = p.natDegree + n

theorem Polynomial.natDegree_X_pow_mul E0 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R] {p : Polynomial R} (n : ℕ),
  p ≠ 0 → (Polynomial.X ^ n * p).natDegree = p.natDegree + n

theorem Polynomial.natDegree_X_pow_le E1 #

∀ {R : Type u_1} [inst : Semiring R] (n : ℕ), (Polynomial.X ^ n).natDegree ≤ n

theorem Polynomial.not_isUnit_X E1 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R], ¬IsUnit Polynomial.X

theorem Polynomial.degree_mul_X E0 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R] {p : Polynomial R}, (p * Polynomial.X).degree = p.degree + 1

theorem Polynomial.degree_mul_X_pow E0 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R] {p : Polynomial R} (n : ℕ),
  (p * Polynomial.X ^ n).degree = p.degree + ↑n

theorem Polynomial.degree_sub_C E1 #

∀ {R : Type u} {a : R} [inst : Ring R] {p : Polynomial R}, 0 < p.degree → (p - Polynomial.C a).degree = p.degree

theorem Polynomial.natDegree_sub_C E0 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R} {a : R}, (p - Polynomial.C a).natDegree = p.natDegree

theorem Polynomial.leadingCoeff_sub_of_degree_lt E1 #

∀ {R : Type u} [inst : Ring R] {p q : Polynomial R}, q.degree < p.degree → (p - q).leadingCoeff = p.leadingCoeff

theorem Polynomial.leadingCoeff_sub_of_degree_lt' E1 #

∀ {R : Type u} [inst : Ring R] {p q : Polynomial R}, p.degree < q.degree → (p - q).leadingCoeff = -q.leadingCoeff

theorem Polynomial.leadingCoeff_sub_of_degree_eq E0 #

∀ {R : Type u} [inst : Ring R] {p q : Polynomial R},
  p.degree = q.degree → p.leadingCoeff ≠ q.leadingCoeff → (p - q).leadingCoeff = p.leadingCoeff - q.leadingCoeff

theorem Polynomial.degree_sub_eq_left_of_degree_lt E1 #

∀ {R : Type u} [inst : Ring R] {p q : Polynomial R}, q.degree < p.degree → (p - q).degree = p.degree

theorem Polynomial.degree_sub_eq_right_of_degree_lt E1 #

∀ {R : Type u} [inst : Ring R] {p q : Polynomial R}, p.degree < q.degree → (p - q).degree = q.degree

theorem Polynomial.natDegree_sub_eq_left_of_natDegree_lt E1 #

∀ {R : Type u} [inst : Ring R] {p q : Polynomial R}, q.natDegree < p.natDegree → (p - q).natDegree = p.natDegree

theorem Polynomial.natDegree_sub_eq_right_of_natDegree_lt E1 #

∀ {R : Type u} [inst : Ring R] {p q : Polynomial R}, p.natDegree < q.natDegree → (p - q).natDegree = q.natDegree

theorem Polynomial.degree_X_add_C E0 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] (a : R), (Polynomial.X + Polynomial.C a).degree = 1

theorem Polynomial.natDegree_X_add_C E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] (x : R), (Polynomial.X + Polynomial.C x).natDegree = 1

theorem Polynomial.nextCoeff_X_add_C E0 #

∀ {S : Type v} [inst : Semiring S] (c : S), (Polynomial.X + Polynomial.C c).nextCoeff = c

theorem Polynomial.degree_X_pow_add_C E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] {n : ℕ},
  0 < n → ∀ (a : R), (Polynomial.X ^ n + Polynomial.C a).degree = ↑n

theorem Polynomial.X_pow_add_C_ne_zero E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] {n : ℕ}, 0 < n → ∀ (a : R), Polynomial.X ^ n + Polynomial.C a ≠ 0

theorem Polynomial.X_add_C_ne_zero E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] (r : R), Polynomial.X + Polynomial.C r ≠ 0

theorem Polynomial.zero_notMem_multiset_map_X_add_C E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] {α : Type u_1} (m : Multiset α) (f : α → R),
  0 ∉ Multiset.map (fun a ↦ Polynomial.X + Polynomial.C (f a)) m

theorem Polynomial.natDegree_X_pow_add_C E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] {n : ℕ} {r : R}, (Polynomial.X ^ n + Polynomial.C r).natDegree = n

theorem Polynomial.X_pow_add_C_ne_one E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] {n : ℕ}, 0 < n → ∀ (a : R), Polynomial.X ^ n + Polynomial.C a ≠ 1

theorem Polynomial.X_add_C_ne_one E1 #

∀ {R : Type u} [Nontrivial R] [inst : Semiring R] (r : R), Polynomial.X + Polynomial.C r ≠ 1

theorem Polynomial.leadingCoeff_X_pow_add_C E0 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ}, 0 < n → ∀ {r : R}, (Polynomial.X ^ n + Polynomial.C r).leadingCoeff = 1

theorem Polynomial.leadingCoeff_X_add_C E0 #

∀ {S : Type v} [inst : Semiring S] (r : S), (Polynomial.X + Polynomial.C r).leadingCoeff = 1

theorem Polynomial.leadingCoeff_X_pow_add_one E0 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ}, 0 < n → (Polynomial.X ^ n + 1).leadingCoeff = 1

theorem Polynomial.leadingCoeff_pow_X_add_C E0 #

∀ {R : Type u} [inst : Semiring R] (r : R) (i : ℕ), ((Polynomial.X + Polynomial.C r) ^ i).leadingCoeff = 1

theorem Polynomial.degree_mul E3 #

∀ {R : Type u} [inst : Semiring R] [NoZeroDivisors R] {p q : Polynomial R}, (p * q).degree = p.degree + q.degree

def Polynomial.degreeMonoidHom E1 #

{R : Type u} → [inst : Semiring R] → [NoZeroDivisors R] → [Nontrivial R] → Polynomial R →* Multiplicative (WithBot ℕ)

degree as a monoid homomorphism between R[X] and Multiplicative (WithBot ℕ). This is useful to prove results about multiplication and degree.

theorem Polynomial.degree_pow E0 #

∀ {R : Type u} [inst : Semiring R] [NoZeroDivisors R] [Nontrivial R] (p : Polynomial R) (n : ℕ),
  (p ^ n).degree = n • p.degree

theorem Polynomial.leadingCoeff_mul E0 #

∀ {R : Type u} [inst : Semiring R] [NoZeroDivisors R] (p q : Polynomial R),
  (p * q).leadingCoeff = p.leadingCoeff * q.leadingCoeff

def Polynomial.leadingCoeffHom E1 #

{R : Type u} → [inst : Semiring R] → [NoZeroDivisors R] → Polynomial R →* R

Polynomial.leadingCoeff bundled as a MonoidHom when R has NoZeroDivisors, and thus leadingCoeff is multiplicative

theorem Polynomial.leadingCoeffHom_apply E0 #

∀ {R : Type u} [inst : Semiring R] [inst_1 : NoZeroDivisors R] (p : Polynomial R),
  Polynomial.leadingCoeffHom p = p.leadingCoeff

theorem Polynomial.leadingCoeff_pow E0 #

∀ {R : Type u} [inst : Semiring R] [NoZeroDivisors R] (p : Polynomial R) (n : ℕ),
  (p ^ n).leadingCoeff = p.leadingCoeff ^ n

theorem Polynomial.leadingCoeff_dvd_leadingCoeff E1 #

∀ {R : Type u} [inst : Semiring R] [NoZeroDivisors R] {a p : Polynomial R}, a ∣ p → a.leadingCoeff ∣ p.leadingCoeff

theorem Polynomial.degree_le_mul_left E1 #

∀ {R : Type u} [inst : Semiring R] [NoZeroDivisors R] {q : Polynomial R} (p : Polynomial R),
  q ≠ 0 → p.degree ≤ (p * q).degree

theorem Polynomial.Monic.natDegree_pos E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : Polynomial R}, p.Monic → (0 < p.natDegree ↔ p ≠ 1)

theorem Polynomial.Monic.degree_pos E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : Polynomial R}, p.Monic → (0 < p.degree ↔ p ≠ 1)

theorem Polynomial.leadingCoeff_X_pow_sub_C E0 #

∀ {R : Type u} [inst : Ring R] {n : ℕ}, 0 < n → ∀ {r : R}, (Polynomial.X ^ n - Polynomial.C r).leadingCoeff = 1

theorem Polynomial.leadingCoeff_X_pow_sub_one E0 #

∀ {R : Type u} [inst : Ring R] {n : ℕ}, 0 < n → (Polynomial.X ^ n - 1).leadingCoeff = 1

theorem Polynomial.degree_X_sub_C E0 #

∀ {R : Type u} [inst : Ring R] [Nontrivial R] (a : R), (Polynomial.X - Polynomial.C a).degree = 1

theorem Polynomial.natDegree_X_sub_C E1 #

∀ {R : Type u} [inst : Ring R] [Nontrivial R] (x : R), (Polynomial.X - Polynomial.C x).natDegree = 1

theorem Polynomial.nextCoeff_X_sub_C E0 #

∀ {S : Type v} [inst : Ring S] (c : S), (Polynomial.X - Polynomial.C c).nextCoeff = -c

theorem Polynomial.degree_X_pow_sub_C E1 #

∀ {R : Type u} {n : ℕ} [inst : Ring R] [Nontrivial R],
  0 < n → ∀ (a : R), (Polynomial.X ^ n - Polynomial.C a).degree = ↑n

theorem Polynomial.natDegree_X_pow_sub_C E1 #

∀ {R : Type u} {n : ℕ} [inst : Ring R] [Nontrivial R] (a : R), (Polynomial.X ^ n - Polynomial.C a).natDegree = n

theorem Polynomial.degree_X_pow_sub_X E1 #

∀ {R : Type u} {n : ℕ} [inst : Ring R] [Nontrivial R], 1 < n → (Polynomial.X ^ n - Polynomial.X).degree = ↑n

theorem Polynomial.natDegree_X_pow_sub_X E1 #

∀ {R : Type u} {n : ℕ} [inst : Ring R] [Nontrivial R], 1 < n → (Polynomial.X ^ n - Polynomial.X).natDegree = n

theorem Polynomial.X_pow_sub_X_ne_zero E1 #

∀ {R : Type u} {n : ℕ} [inst : Ring R] [Nontrivial R], 1 < n → Polynomial.X ^ n - Polynomial.X ≠ 0

theorem Polynomial.X_pow_sub_C_ne_zero E1 #

∀ {R : Type u} [inst : Ring R] [Nontrivial R] {n : ℕ}, 0 < n → ∀ (a : R), Polynomial.X ^ n - Polynomial.C a ≠ 0

theorem Polynomial.X_sub_C_ne_zero E1 #

∀ {R : Type u} [inst : Ring R] [Nontrivial R] (r : R), Polynomial.X - Polynomial.C r ≠ 0

theorem Polynomial.zero_notMem_multiset_map_X_sub_C E1 #

∀ {R : Type u} [inst : Ring R] [Nontrivial R] {α : Type u_1} (m : Multiset α) (f : α → R),
  0 ∉ Multiset.map (fun a ↦ Polynomial.X - Polynomial.C (f a)) m

theorem Polynomial.leadingCoeff_X_sub_C E0 #

∀ {S : Type v} [inst : Ring S] (r : S), (Polynomial.X - Polynomial.C r).leadingCoeff = 1

Deprecated aliases

NameNew nameSince
FiniteField.X_pow_card_pow_sub_X_natDegree_eqPolynomial.natDegree_X_pow_sub_X2026-10-09
FiniteField.X_pow_card_pow_sub_X_ne_zeroPolynomial.X_pow_sub_X_ne_zero2026-10-09
FiniteField.X_pow_card_sub_X_natDegree_eqPolynomial.natDegree_X_pow_sub_X2026-10-09
FiniteField.X_pow_card_sub_X_ne_zeroPolynomial.X_pow_sub_X_ne_zero2026-10-09