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.RingTheory.Polynomial.Basic

81 declarations and 2 deprecated aliases. Mathlib docs · Source

theorem MvPolynomial.isEmptyAlgEquiv.congr_simp E1 #

∀ (R : Type u) (σ : Type u_1) [inst : CommSemiring R] [inst_1 : IsEmpty σ],
  MvPolynomial.isEmptyAlgEquiv R σ = MvPolynomial.isEmptyAlgEquiv R σ

instance Polynomial.instExpChar E0 #

∀ {R : Type u} [inst : Semiring R] (p : ℕ) [h : ExpChar R p], ExpChar (Polynomial R) p

def Polynomial.degreeLE E1 #

(R : Type u) → [inst : Semiring R] → WithBot ℕ → Submodule R (Polynomial R)

The R-submodule of R[X] consisting of polynomials of degree ≤ n.

def Polynomial.degreeLT E1 #

(R : Type u) → [inst : Semiring R] → ℕ → Submodule R (Polynomial R)

The R-submodule of R[X] consisting of polynomials of degree < n.

theorem Polynomial.mem_degreeLE E0 #

∀ {R : Type u} [inst : Semiring R] {n : WithBot ℕ} {f : Polynomial R}, f ∈ Polynomial.degreeLE R n ↔ f.degree ≤ n

theorem Polynomial.degreeLE_mono E1 #

∀ {R : Type u} [inst : Semiring R] {m n : WithBot ℕ}, m ≤ n → Polynomial.degreeLE R m ≤ Polynomial.degreeLE R n

theorem Polynomial.degreeLE_eq_span_X_pow E1 #

∀ {R : Type u} [inst : Semiring R] [inst_1 : DecidableEq R] {n : ℕ},
  Polynomial.degreeLE R ↑n = Submodule.span R ↑(Finset.image (fun n ↦ Polynomial.X ^ n) (Finset.range (n + 1)))

theorem Polynomial.mem_degreeLT E0 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ} {f : Polynomial R}, f ∈ Polynomial.degreeLT R n ↔ f.degree < ↑n

theorem Polynomial.monomial_coe_mem_degreeLT E1 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ} (i : Fin n) (a : R), (Polynomial.monomial ↑i) a ∈ Polynomial.degreeLT R n

theorem Polynomial.degreeLT_mono E1 #

∀ {R : Type u} [inst : Semiring R] {m n : ℕ}, m ≤ n → Polynomial.degreeLT R m ≤ Polynomial.degreeLT R n

theorem Polynomial.degreeLT_eq_span_X_pow E1 #

∀ {R : Type u} [inst : Semiring R] [inst_1 : DecidableEq R] {n : ℕ},
  Polynomial.degreeLT R n = Submodule.span R ↑(Finset.image (fun n ↦ Polynomial.X ^ n) (Finset.range n))

def Polynomial.degreeLTEquiv E1 #

(R : Type u) → [inst : Semiring R] → (n : ℕ) → ↥(Polynomial.degreeLT R n) ≃ₗ[R] Fin n → R

The first n coefficients on degreeLT n form a linear equivalence with Fin n → R.

theorem Polynomial.degreeLTEquiv_eq_zero_iff_eq_zero E1 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ} {p : Polynomial R} (hp : p ∈ Polynomial.degreeLT R n),
  (Polynomial.degreeLTEquiv R n) ⟨p, hp⟩ = 0 ↔ p = 0

theorem Polynomial.eval_eq_sum_degreeLTEquiv E1 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ} {p : Polynomial R} (hp : p ∈ Polynomial.degreeLT R n) (x : R),
  Polynomial.eval x p = ∑ i, (Polynomial.degreeLTEquiv R n) ⟨p, hp⟩ i * x ^ ↑i

theorem Polynomial.degreeLT_succ_eq_degreeLE E1 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ}, Polynomial.degreeLT R (n + 1) = Polynomial.degreeLE R ↑n

def Polynomial.monicEquivDegreeLT E1 #

{R : Type u} →
  [inst : Semiring R] → [Nontrivial R] → (n : ℕ) → { p // p.Monic ∧ p.natDegree = n } ≃ ↥(Polynomial.degreeLT R n)

The equivalence between monic polynomials of degree n and polynomials of degree less than n, formed by adding a term X ^ n.

theorem Polynomial.exists_degree_le_of_mem_span E1 #

∀ {R : Type u} [inst : Semiring R] {s : Set (Polynomial R)} {p : Polynomial R},
  s.Nonempty → p ∈ Submodule.span R s → ∃ p' ∈ s, p.degree ≤ p'.degree

For every polynomial p in the span of a set s : Set R[X], there exists a polynomial of p' ∈ s with higher degree. See also Polynomial.exists_degree_le_of_mem_span_of_finite.

theorem Polynomial.exists_degree_le_of_mem_span_of_finite E1 #

∀ {R : Type u} [inst : Semiring R] {s : Set (Polynomial R)},
  s.Finite → s.Nonempty → ∃ p' ∈ s, ∀ p ∈ Submodule.span R s, p.degree ≤ p'.degree

A stronger version of Polynomial.exists_degree_le_of_mem_span under the assumption that the set s : R[X] is finite. There exists a polynomial p' ∈ s whose degree dominates the degree of every element of p ∈ span R s.

theorem Polynomial.span_le_degreeLE_of_finite E1 #

∀ {R : Type u} [inst : Semiring R] {s : Set (Polynomial R)},
  s.Finite → ∃ n, Submodule.span R s ≤ Polynomial.degreeLE R ↑n

The span of every finite set of polynomials is contained in a degreeLE n for some n.

theorem Polynomial.span_of_finite_le_degreeLT E1 #

∀ {R : Type u} [inst : Semiring R] {s : Set (Polynomial R)},
  s.Finite → ∃ n, Submodule.span R s ≤ Polynomial.degreeLT R n

The span of every finite set of polynomials is contained in a degreeLT n for some n.

theorem Polynomial.not_finite E1 #

∀ {R : Type u} [inst : Semiring R] [Nontrivial R], ¬Module.Finite R (Polynomial R)

If R is a nontrivial ring, the polynomials R[X] are not finite as an R-module. When R is a field, this is equivalent to R[X] being an infinite-dimensional vector space over R.

theorem Polynomial.geom_sum_X_comp_X_add_one_eq_sum E1 #

∀ {R : Type u} [inst : Semiring R] (n : ℕ),
  (∑ i ∈ Finset.range n, Polynomial.X ^ i).comp (Polynomial.X + 1) =
    ∑ i ∈ Finset.range n, ↑(n.choose (i + 1)) * Polynomial.X ^ i

theorem Polynomial.Monic.geom_sum E1 #

∀ {R : Type u} [inst : Semiring R] {P : Polynomial R},
  P.Monic → 0 < P.natDegree → ∀ {n : ℕ}, n ≠ 0 → (∑ i ∈ Finset.range n, P ^ i).Monic

theorem Polynomial.Monic.geom_sum' E1 #

∀ {R : Type u} [inst : Semiring R] {P : Polynomial R},
  P.Monic → 0 < P.degree → ∀ {n : ℕ}, n ≠ 0 → (∑ i ∈ Finset.range n, P ^ i).Monic

theorem Polynomial.monic_geom_sum_X E1 #

∀ {R : Type u} [inst : Semiring R] {n : ℕ}, n ≠ 0 → (∑ i ∈ Finset.range n, Polynomial.X ^ i).Monic

def Polynomial.restriction E1 #

{R : Type u} → [inst : Ring R] → (p : Polynomial R) → Polynomial ↥(Subring.closure ↑p.coeffs)

Given a polynomial, return the polynomial whose coefficients are in the ring closure of the original coefficients.

theorem Polynomial.coeff_restriction E0 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R} {n : ℕ}, ↑(p.restriction.coeff n) = p.coeff n

theorem Polynomial.support_restriction E0 #

∀ {R : Type u} [inst : Ring R] (p : Polynomial R), p.restriction.support = p.support

theorem Polynomial.map_restriction E0 #

∀ {R : Type u} [inst : CommRing R] (p : Polynomial R),
  Polynomial.map (algebraMap (↥(Subring.closure ↑p.coeffs)) R) p.restriction = p

theorem Polynomial.degree_restriction E0 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R}, p.restriction.degree = p.degree

theorem Polynomial.natDegree_restriction E0 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R}, p.restriction.natDegree = p.natDegree

theorem Polynomial.monic_restriction E0 #

∀ {R : Type u} [inst : Ring R] {p : Polynomial R}, p.restriction.Monic ↔ p.Monic

theorem Polynomial.restriction_zero E0 #

∀ {R : Type u} [inst : Ring R], Polynomial.restriction 0 = 0

theorem Polynomial.restriction_one E0 #

∀ {R : Type u} [inst : Ring R], Polynomial.restriction 1 = 1

theorem Polynomial.eval₂_restriction E1 #

∀ {R : Type u} {S : Type u_1} [inst : Ring R] [inst_1 : Semiring S] {f : R →+* S} {x : S} {p : Polynomial R},
  Polynomial.eval₂ f x p = Polynomial.eval₂ (f.comp (Subring.closure ↑p.coeffs).subtype) x p.restriction

def Ideal.ofPolynomial E1 #

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

Transport an ideal of R[X] to an R-submodule of R[X].

theorem Ideal.mem_ofPolynomial E0 #

∀ {R : Type u} [inst : Semiring R] {I : Ideal (Polynomial R)} (x : Polynomial R), x ∈ I.ofPolynomial ↔ x ∈ I

def Ideal.degreeLE E1 #

{R : Type u} → [inst : Semiring R] → Ideal (Polynomial R) → WithBot ℕ → Submodule R (Polynomial R)

Given an ideal I of R[X], make the R-submodule of I consisting of polynomials of degree ≤ n.

def Ideal.leadingCoeffNth E1 #

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

Given an ideal I of R[X], make the ideal in R of leading coefficients of polynomials in I with degree ≤ n.

def Ideal.leadingCoeff E1 #

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

Given an ideal I in R[X], make the ideal in R of the leading coefficients in I.

theorem Ideal.polynomial_mem_ideal_of_coeff_mem_ideal E1 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal (Polynomial R)) (p : Polynomial R),
  (∀ (n : ℕ), p.coeff n ∈ Ideal.comap Polynomial.C I) → p ∈ I

If every coefficient of a polynomial is in an ideal I, then so is the polynomial itself

theorem Ideal.mem_map_C_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] {I : Ideal R} {f : Polynomial R},
  f ∈ Ideal.map Polynomial.C I ↔ ∀ (n : ℕ), f.coeff n ∈ I

The push-forward of an ideal I of R to R[X] via inclusion is exactly the set of polynomials whose coefficients are in I

theorem Polynomial.ker_mapRingHom E1 #

∀ {R : Type u} {S : Type u_1} [inst : CommSemiring R] [inst_1 : Semiring S] (f : R →+* S),
  RingHom.ker (Polynomial.mapRingHom f) = Ideal.map Polynomial.C (RingHom.ker f)

theorem Ideal.mem_leadingCoeffNth E0 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal (Polynomial R)) (n : ℕ) (x : R),
  x ∈ I.leadingCoeffNth n ↔ ∃ p ∈ I, p.degree ≤ ↑n ∧ p.leadingCoeff = x

theorem Ideal.mem_leadingCoeffNth_zero E0 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal (Polynomial R)) (x : R), x ∈ I.leadingCoeffNth 0 ↔ Polynomial.C x ∈ I

theorem Ideal.leadingCoeffNth_mono E1 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal (Polynomial R)) {m n : ℕ},
  m ≤ n → I.leadingCoeffNth m ≤ I.leadingCoeffNth n

theorem Ideal.mem_leadingCoeff E0 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal (Polynomial R)) (x : R),
  x ∈ I.leadingCoeff ↔ ∃ p ∈ I, p.leadingCoeff = x

theorem Ideal.leadingCoeff_mono E1 #

∀ {R : Type u} [inst : CommSemiring R] {I J : Ideal (Polynomial R)}, I ≤ J → I.leadingCoeff ≤ J.leadingCoeff

theorem Ideal.map_C_leadingCoeff E0 #

∀ {R : Type u} [inst : CommSemiring R] (p : Ideal R), (Ideal.map Polynomial.C p).leadingCoeff = p

theorem Ideal.leadingCoeff_top E0 #

∀ {R : Type u} [inst : CommSemiring R], ⊤.leadingCoeff = ⊤

theorem Ideal.leadingCoeff_mul_le E1 #

∀ {R : Type u} [inst : CommSemiring R] [NoZeroDivisors R] (I J : Ideal (Polynomial R)),
  I.leadingCoeff * J.leadingCoeff ≤ (I * J).leadingCoeff

theorem Ideal.leadingCoeff_finset_prod_le E1 #

∀ {R : Type u} [inst : CommSemiring R] [NoZeroDivisors R] {ι : Type u_2} (s : Finset ι) (f : ι → Ideal (Polynomial R)),
  ∏ i ∈ s, (f i).leadingCoeff ≤ (s.prod f).leadingCoeff

theorem Ideal.leadingCoeff_pow_le E1 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal (Polynomial R)) [NoZeroDivisors R] (n : ℕ),
  I.leadingCoeff ^ n ≤ (I ^ n).leadingCoeff

theorem Polynomial.coeff_prod_mem_ideal_pow_tsub E1 #

∀ {R : Type u} [inst : CommSemiring R] {ι : Type u_2} (s : Finset ι) (f : ι → Polynomial R) (I : Ideal R) (n : ι → ℕ),
  (∀ i ∈ s, ∀ (k : ℕ), (f i).coeff k ∈ I ^ (n i - k)) → ∀ (k : ℕ), (s.prod f).coeff k ∈ I ^ (s.sum n - k)

If I is an ideal, and pᵢ is a finite family of polynomials each satisfying ∀ k, (pᵢ)ₖ ∈ Iⁿⁱ⁻ᵏ for some nᵢ, then p = ∏ pᵢ also satisfies ∀ k, pₖ ∈ Iⁿ⁻ᵏ with n = ∑ nᵢ.

theorem Polynomial.not_isField E1 #

∀ (R : Type u) [inst : Ring R], ¬IsField (Polynomial R)

R[X] is never a field for any ring R.

theorem Ideal.isPrime_map_C_iff_isPrime E1 #

∀ {R : Type u} [inst : CommRing R] (P : Ideal R), (Ideal.map Polynomial.C P).IsPrime ↔ P.IsPrime

If P is a prime ideal of R, then P.R[x] is a prime ideal of R[x].

instance Ideal.isPrime_map_C_of_isPrime E0 #

∀ {R : Type u} [inst : CommRing R] {P : Ideal R} [P.IsPrime], (Ideal.map Polynomial.C P).IsPrime

If P is a prime ideal of R, then P.R[x] is a prime ideal of R[x].

theorem Ideal.is_fg_degreeLE E1 #

∀ {R : Type u} [inst : CommRing R] [IsNoetherianRing R] (I : Ideal (Polynomial R)) (n : ℕ), (I.degreeLE ↑n).FG

theorem Ideal.map_C_comap_of_comap_eq_leadingCoeff E0 #

∀ {R : Type u} [inst : CommRing R] (I : Ideal (Polynomial R)),
  Ideal.comap Polynomial.C I = I.leadingCoeff → Ideal.map Polynomial.C (Ideal.comap Polynomial.C I) = I

theorem span_le_of_C_coeff_mem E1 #

∀ {R : Type u} [inst : Semiring R] {f : Polynomial R} {I : Ideal (Polynomial R)},
  (∀ (i : ℕ), Polynomial.C (f.coeff i) ∈ I) → Ideal.span {g | ∃ i, g = Polynomial.C (f.coeff i)} ≤ I

If the coefficients of a polynomial belong to an ideal, then that ideal contains the ideal spanned by the coefficients of the polynomial.

theorem mem_span_C_coeff E0 #

∀ {R : Type u} [inst : Semiring R] {f : Polynomial R}, f ∈ Ideal.span {g | ∃ i, g = Polynomial.C (f.coeff i)}

theorem exists_C_coeff_notMem E1 #

∀ {R : Type u} [inst : Semiring R] {f : Polynomial R} {I : Ideal (Polynomial R)},
  f ∉ I → ∃ i, Polynomial.C (f.coeff i) ∉ I

theorem Polynomial.prime_C_iff E0 #

∀ {R : Type u} [inst : CommRing R] {r : R}, Prime (Polynomial.C r) ↔ Prime r

instance MvPolynomial.instFiniteOfIsEmpty E0 #

∀ {ι : Type u_2} {R : Type u_3} [inst : CommSemiring R] [IsEmpty ι], Module.Finite R (MvPolynomial ι R)

theorem MvPolynomial.prime_C_iff E0 #

∀ {R : Type u} (σ : Type v) [inst : CommRing R] {r : R}, Prime (MvPolynomial.C r) ↔ Prime r

theorem MvPolynomial.prime_rename_iff E0 #

∀ {R : Type u} {σ : Type v} [inst : CommRing R] (s : Set σ) {p : MvPolynomial (↑s) R},
  Prime ((MvPolynomial.rename Subtype.val) p) ↔ Prime p

instance Polynomial.isNoetherianRing E3 #

∀ {R : Type u} [inst : CommRing R] [inst_1 : IsNoetherianRing R], IsNoetherianRing (Polynomial R)

Hilbert basis theorem: a polynomial ring over a Noetherian ring is a Noetherian ring.

theorem Polynomial.linearIndependent_powers_iff_aeval E1 #

∀ {R : Type u} {M : Type w} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M →ₗ[R] M) (v : M),
  (LinearIndependent R fun n ↦ (f ^ n) v) ↔ ∀ (p : Polynomial R), ((Polynomial.aeval f) p) v = 0 → p = 0

theorem Polynomial.disjoint_ker_aeval_of_isCoprime E1 #

∀ {R : Type u} {M : Type w} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M →ₗ[R] M)
  {p q : Polynomial R}, IsCoprime p q → Disjoint ((Polynomial.aeval f) p).ker ((Polynomial.aeval f) q).ker

theorem Polynomial.sup_aeval_range_eq_top_of_isCoprime E1 #

∀ {R : Type u} {M : Type w} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M →ₗ[R] M)
  {p q : Polynomial R}, IsCoprime p q → ((Polynomial.aeval f) p).range ⊔ ((Polynomial.aeval f) q).range = ⊤

theorem Polynomial.sup_ker_aeval_le_ker_aeval_mul E1 #

∀ {R : Type u} {M : Type w} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {f : M →ₗ[R] M}
  {p q : Polynomial R}, ((Polynomial.aeval f) p).ker ⊔ ((Polynomial.aeval f) q).ker ≤ ((Polynomial.aeval f) (p * q)).ker

theorem Polynomial.sup_ker_aeval_eq_ker_aeval_mul_of_coprime E1 #

∀ {R : Type u} {M : Type w} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M →ₗ[R] M)
  {p q : Polynomial R},
  IsCoprime p q → ((Polynomial.aeval f) p).ker ⊔ ((Polynomial.aeval f) q).ker = ((Polynomial.aeval f) (p * q)).ker

theorem MvPolynomial.aeval_natDegree_le E1 #

∀ {σ : Type v} {R : Type u_2} [inst : CommSemiring R] {m n : ℕ} (F : MvPolynomial σ R),
  F.totalDegree ≤ m →
    ∀ (f : σ → Polynomial R), (∀ (i : σ), (f i).natDegree ≤ n) → ((MvPolynomial.aeval f) F).natDegree ≤ m * n

theorem MvPolynomial.isNoetherianRing_fin_0 E1 #

∀ {R : Type u} [inst : CommRing R] [IsNoetherianRing R], IsNoetherianRing (MvPolynomial (Fin 0) R)

theorem MvPolynomial.isNoetherianRing_fin E1 #

∀ {R : Type u} [inst : CommRing R] [IsNoetherianRing R] {n : ℕ}, IsNoetherianRing (MvPolynomial (Fin n) R)

instance MvPolynomial.isNoetherianRing E0 #

∀ {R : Type u} {σ : Type v} [inst : CommRing R] [Finite σ] [IsNoetherianRing R], IsNoetherianRing (MvPolynomial σ R)

The multivariate polynomial ring in finitely many variables over a Noetherian ring is itself a Noetherian ring.

theorem MvPolynomial.map_mvPolynomial_eq_eval₂ E0 #

∀ {R : Type u} {σ : Type v} [inst : CommRing R] {S : Type u_2} [inst_1 : CommSemiring S] [Finite σ]
  (ϕ : MvPolynomial σ R →+* S) (p : MvPolynomial σ R),
  ϕ p = MvPolynomial.eval₂ (ϕ.comp MvPolynomial.C) (fun s ↦ ϕ (MvPolynomial.X s)) p

theorem MvPolynomial.mem_ideal_of_coeff_mem_ideal E0 #

∀ {R : Type u} {σ : Type v} [inst : CommRing R] (I : Ideal (MvPolynomial σ R)) (p : MvPolynomial σ R),
  (∀ (m : σ →₀ ℕ), p.coeff m ∈ Ideal.comap MvPolynomial.C I) → p ∈ I

If every coefficient of a polynomial is in an ideal I, then so is the polynomial itself, multivariate version.

theorem MvPolynomial.mem_map_C_iff E0 #

∀ {R : Type u} {σ : Type v} [inst : CommRing R] {I : Ideal R} {f : MvPolynomial σ R},
  f ∈ Ideal.map MvPolynomial.C I ↔ ∀ (m : σ →₀ ℕ), f.coeff m ∈ I

The push-forward of an ideal I of R to MvPolynomial σ R via inclusion is exactly the set of polynomials whose coefficients are in I

theorem MvPolynomial.ker_map E1 #

∀ {R : Type u} {S : Type u_1} {σ : Type v} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  RingHom.ker (MvPolynomial.map f) = Ideal.map MvPolynomial.C (RingHom.ker f)

theorem MvPolynomial.ker_mapAlgHom E1 #

∀ {R : Type u} [inst : CommRing R] {S₁ : Type u_2} {S₂ : Type u_3} {σ : Type u_4} [inst_1 : CommRing S₁]
  [inst_2 : CommRing S₂] [inst_3 : Algebra R S₁] [inst_4 : Algebra R S₂] (f : S₁ →ₐ[R] S₂),
  RingHom.ker (MvPolynomial.mapAlgHom f) = Ideal.map MvPolynomial.C (RingHom.ker f)

Deprecated aliases

NameNew nameSince
Ideal.polynomial_not_isFieldPolynomial.not_isField2026-08-01
Polynomial.coeff_restriction'Polynomial.coeff_restriction2026-11-16