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

76 declarations. Mathlib docs · Source

theorem Polynomial.monic_zero_iff_subsingleton E1 #

∀ {R : Type u} [inst : Semiring R], Polynomial.Monic 0 ↔ Subsingleton R

theorem Polynomial.not_monic_zero_iff E0 #

∀ {R : Type u} [inst : Semiring R], ¬Polynomial.Monic 0 ↔ 0 ≠ 1

theorem Polynomial.monic_zero_iff_subsingleton' E1 #

∀ {R : Type u} [inst : Semiring R], Polynomial.Monic 0 ↔ (∀ (f g : Polynomial R), f = g) ∧ ∀ (a b : R), a = b

theorem Polynomial.Monic.as_sum E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R},
  p.Monic → p = Polynomial.X ^ p.natDegree + ∑ i ∈ Finset.range p.natDegree, Polynomial.C (p.coeff i) * Polynomial.X ^ i

theorem Polynomial.Monic.map E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] {p : Polynomial R} [inst_1 : Semiring S] (f : R →+* S),
  p.Monic → (Polynomial.map f p).Monic

theorem Polynomial.monic_C_mul_of_mul_leadingCoeff_eq_one E1 #

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

theorem Polynomial.monic_mul_C_of_leadingCoeff_mul_eq_one E1 #

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

theorem Polynomial.monic_X_pow_add E1 #

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

theorem Polynomial.monic_X_pow_add_C E1 #

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

theorem Polynomial.monic_X_add_C E1 #

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

theorem Polynomial.Monic.mul E1 #

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

theorem Polynomial.Monic.pow E1 #

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

theorem Polynomial.Monic.add_of_left E1 #

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

theorem Polynomial.Monic.add_of_right E1 #

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

theorem Polynomial.Monic.of_mul_monic_left E1 #

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

theorem Polynomial.Monic.of_mul_monic_right E1 #

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

theorem Polynomial.Monic.comp E1 #

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

theorem Polynomial.Monic.comp_X_add_C E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R},
  p.Monic → ∀ (r : R), (p.comp (Polynomial.X + Polynomial.C r)).Monic

theorem Polynomial.Monic.degree_le_zero_iff_eq_one E0 #

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

theorem Polynomial.Monic.natDegree_mul E1 #

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

theorem Polynomial.Monic.degree_mul_comm E1 #

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

theorem Polynomial.Monic.natDegree_mul' E1 #

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

theorem Polynomial.Monic.natDegree_mul_comm E1 #

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

theorem Polynomial.not_isUnit_X_add_C E1 #

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

theorem Polynomial.Monic.not_dvd_of_natDegree_lt E1 #

∀ {R : Type u} [inst : Semiring R] {p q : Polynomial R}, p.Monic → q ≠ 0 → q.natDegree < p.natDegree → ¬p ∣ q

theorem Polynomial.Monic.not_dvd_of_degree_lt E1 #

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

theorem Polynomial.Monic.nextCoeff_mul E1 #

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

theorem Polynomial.Monic.nextCoeff_pow E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.Monic → ∀ (n : ℕ), (p ^ n).nextCoeff = n • p.nextCoeff

theorem Polynomial.Monic.natDegree_pow E1 #

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

theorem Polynomial.Monic.natDegree_le_of_dvd E1 #

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

theorem Polynomial.natDegree_pow_X_add_C E0 #

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

theorem Polynomial.Monic.isUnit_iff E0 #

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

abbrev Polynomial.MonicDegreeEq E1 #

(R : Type u) → ℕ → [Semiring R] → Type u

The type of monic polynomials of degree n.

The implementation is slightly different because it is useful to still contain X ^ n when R is trivial. See MonicDegreeEq.mk for the usual constructor.

theorem Polynomial.MonicDegreeEq.natDegree E0 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] [Nontrivial R] (p : Polynomial.MonicDegreeEq R n), (↑p).natDegree = n

theorem Polynomial.MonicDegreeEq.degree E0 #

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

theorem Polynomial.MonicDegreeEq.monic E1 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] (p : Polynomial.MonicDegreeEq R n), (↑p).Monic

theorem Polynomial.MonicDegreeEq.coeff_of_ge E1 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] (p : Polynomial.MonicDegreeEq R n) (i : ℕ),
  n ≤ i → (↑p).coeff i = if i = n then 1 else 0

def Polynomial.MonicDegreeEq.mk E1 #

{R : Type u} →
  {n : ℕ} → [inst : Semiring R] → (p : Polynomial R) → p.Monic → p.natDegree = n → Polynomial.MonicDegreeEq R n

The constructor for MonicDegreeEq given a monic polynomial of degree n.

theorem Polynomial.MonicDegreeEq.mk_coe E0 #

∀ {R : Type u} {n : ℕ} [inst : Semiring R] (p : Polynomial R) (hp : p.Monic) (hp' : p.natDegree = n),
  ↑(Polynomial.MonicDegreeEq.mk p hp hp') = p

def Polynomial.MonicDegreeEq.map E1 #

{R : Type u} →
  {S : Type v} →
    {n : ℕ} →
      [inst : Semiring R] →
        [inst_1 : Semiring S] → Polynomial.MonicDegreeEq R n → (R →+* S) → Polynomial.MonicDegreeEq S n

The image of a monic polynomial of degree n under a ring homomorphism.

theorem Polynomial.MonicDegreeEq.map_coe E0 #

∀ {R : Type u} {S : Type v} {n : ℕ} [inst : Semiring R] [inst_1 : Semiring S] (p : Polynomial.MonicDegreeEq R n)
  (f : R →+* S), ↑(p.map f) = Polynomial.map f ↑p

theorem Polynomial.monic_multiset_prod_of_monic E1 #

∀ {R : Type u} {ι : Type y} [inst : CommSemiring R] (t : Multiset ι) (f : ι → Polynomial R),
  (∀ i ∈ t, (f i).Monic) → (Multiset.map f t).prod.Monic

theorem Polynomial.monic_prod_of_monic E1 #

∀ {R : Type u} {ι : Type y} [inst : CommSemiring R] (s : Finset ι) (f : ι → Polynomial R),
  (∀ i ∈ s, (f i).Monic) → (∏ i ∈ s, f i).Monic

theorem Polynomial.monic_finprod_of_monic E1 #

∀ {R : Type u} [inst : CommSemiring R] (α : Type u_1) (f : α → Polynomial R),
  (∀ i ∈ Function.mulSupport f, (f i).Monic) → (finprod f).Monic

theorem Polynomial.Monic.nextCoeff_multiset_prod E1 #

∀ {R : Type u} {ι : Type y} [inst : CommSemiring R] (t : Multiset ι) (f : ι → Polynomial R),
  (∀ i ∈ t, (f i).Monic) → (Multiset.map f t).prod.nextCoeff = (Multiset.map (fun i ↦ (f i).nextCoeff) t).sum

theorem Polynomial.Monic.nextCoeff_prod E1 #

∀ {R : Type u} {ι : Type y} [inst : CommSemiring R] (s : Finset ι) (f : ι → Polynomial R),
  (∀ i ∈ s, (f i).Monic) → (∏ i ∈ s, f i).nextCoeff = ∑ i ∈ s, (f i).nextCoeff

theorem Polynomial.irreducible_of_monic E1 #

∀ {R : Type u} [inst : CommSemiring R] [NoZeroDivisors R] {p : Polynomial R},
  p.Monic → p ≠ 1 → (Irreducible p ↔ ∀ (f g : Polynomial R), f.Monic → g.Monic → f * g = p → f = 1 ∨ g = 1)

theorem Polynomial.Monic.irreducible_iff_natDegree E1 #

∀ {R : Type u} [inst : CommSemiring R] [NoZeroDivisors R] {p : Polynomial R},
  p.Monic →
    (Irreducible p ↔ p ≠ 1 ∧ ∀ (f g : Polynomial R), f.Monic → g.Monic → f * g = p → f.natDegree = 0 ∨ g.natDegree = 0)

theorem Polynomial.Monic.irreducible_iff_natDegree' E1 #

∀ {R : Type u} [inst : CommSemiring R] [NoZeroDivisors R] {p : Polynomial R},
  p.Monic →
    (Irreducible p ↔
      p ≠ 1 ∧ ∀ (f g : Polynomial R), f.Monic → g.Monic → f * g = p → g.natDegree ∉ Finset.Ioc 0 (p.natDegree / 2))

theorem Polynomial.Monic.irreducible_iff_lt_natDegree_lt E1 #

∀ {R : Type u} [inst : CommSemiring R] [NoZeroDivisors R] {p : Polynomial R},
  p.Monic →
    p ≠ 1 → (Irreducible p ↔ ∀ (q : Polynomial R), q.Monic → q.natDegree ∈ Finset.Ioc 0 (p.natDegree / 2) → ¬q ∣ p)

Alternate phrasing of Polynomial.Monic.irreducible_iff_natDegree' where we only have to check one divisor at a time.

theorem Polynomial.Monic.not_irreducible_iff_exists_add_mul_eq_coeff E1 #

∀ {R : Type u} [inst : CommSemiring R] [NoZeroDivisors R] {p : Polynomial R},
  p.Monic → p.natDegree = 2 → (¬Irreducible p ↔ ∃ c₁ c₂, p.coeff 0 = c₁ * c₂ ∧ p.coeff 1 = c₁ + c₂)

theorem Polynomial.Monic.natDegree_map E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] [Nontrivial S] {P : Polynomial R},
  P.Monic → ∀ (f : R →+* S), (Polynomial.map f P).natDegree = P.natDegree

theorem Polynomial.Monic.degree_map E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] [Nontrivial S] {P : Polynomial R},
  P.Monic → ∀ (f : R →+* S), (Polynomial.map f P).degree = P.degree

theorem Polynomial.monic_of_injective E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] {f : R →+* S},
  Function.Injective ⇑f → ∀ {p : Polynomial R}, (Polynomial.map f p).Monic → p.Monic

theorem Function.Injective.monic_map_iff E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] {f : R →+* S},
  Function.Injective ⇑f → ∀ {p : Polynomial R}, p.Monic ↔ (Polynomial.map f p).Monic

theorem Polynomial.monic_X_sub_C E1 #

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

theorem Polynomial.monic_X_pow_sub E1 #

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

theorem Polynomial.monic_X_pow_sub_C E1 #

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

X ^ n - a is monic.

theorem Polynomial.monic_X_pow_sub_one E1 #

∀ {R : Type u_1} [inst : Ring R] {n : ℕ}, n ≠ 0 → (Polynomial.X ^ n - 1).Monic

X ^ n - 1 is monic.

theorem Polynomial.not_isUnit_X_pow_sub_one E1 #

∀ (R : Type u_1) [inst : Ring R] [Nontrivial R] (n : ℕ), ¬IsUnit (Polynomial.X ^ n - 1)

theorem Polynomial.Monic.comp_X_sub_C E1 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R}, p.Monic → ∀ (r : R), (p.comp (Polynomial.X - Polynomial.C r)).Monic

theorem Polynomial.Monic.sub_of_left E1 #

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

theorem Polynomial.Monic.sub_of_right E1 #

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

theorem Polynomial.not_monic_zero E0 #

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

theorem Polynomial.Monic.mul_left_ne_zero E1 #

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

theorem Polynomial.Monic.mul_right_ne_zero E1 #

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

theorem Polynomial.Monic.mul_natDegree_lt_iff E0 #

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

theorem Polynomial.Monic.mul_right_eq_zero_iff E0 #

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

theorem Polynomial.Monic.mul_left_eq_zero_iff E0 #

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

theorem Polynomial.Monic.isRegular E1 #

∀ {R : Type u_1} [inst : Ring R] {p : Polynomial R}, p.Monic → IsRegular p

theorem Polynomial.degree_smul_of_smul_regular E1 #

∀ {R : Type u} [inst : Semiring R] {S : Type u_1} [inst_1 : SMulZeroClass S R] {k : S} (p : Polynomial R),
  IsSMulRegular R k → (k • p).degree = p.degree

theorem Polynomial.natDegree_smul_of_smul_regular E1 #

∀ {R : Type u} [inst : Semiring R] {S : Type u_1} [inst_1 : SMulZeroClass S R] {k : S} (p : Polynomial R),
  IsSMulRegular R k → (k • p).natDegree = p.natDegree

theorem Polynomial.leadingCoeff_smul_of_smul_regular E1 #

∀ {R : Type u} [inst : Semiring R] {S : Type u_1} [inst_1 : SMulZeroClass S R] {k : S} (p : Polynomial R),
  IsSMulRegular R k → (k • p).leadingCoeff = k • p.leadingCoeff

theorem Polynomial.monic_of_isUnit_leadingCoeff_inv_smul E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R} (h : IsUnit p.leadingCoeff), (h.unit⁻¹ • p).Monic

theorem Polynomial.isUnit_leadingCoeff_mul_right_eq_zero_iff E0 #

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

theorem Polynomial.isUnit_leadingCoeff_mul_left_eq_zero_iff E0 #

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