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.Eisenstein.Basic

24 declarations. Mathlib docs Β· Source

Eisenstein polynomials

Given an ideal π“Ÿ of a commutative semiring R, we say that a polynomial f : R[X] is Eisenstein at π“Ÿ if f.leadingCoeff βˆ‰ π“Ÿ, βˆ€ n, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ and f.coeff 0 βˆ‰ π“Ÿ ^ 2. In this file we gather miscellaneous results about Eisenstein polynomials.

Main definitions

  • Polynomial.IsEisensteinAt f π“Ÿ: the property of being Eisenstein at π“Ÿ.

Main results

  • Polynomial.IsEisensteinAt.irreducible: if a primitive f satisfies f.IsEisensteinAt π“Ÿ, where π“Ÿ.IsPrime, then f is irreducible.

Implementation notes

We also define a notion IsWeaklyEisensteinAt requiring only that βˆ€ n < f.natDegree β†’ f.coeff n ∈ π“Ÿ. This makes certain results slightly more general and it is useful since it is sometimes better behaved (for example it is stable under Polynomial.map).

structure Polynomial.IsWeaklyEisensteinAt E1 #

{R : Type u} β†’ [inst : CommSemiring R] β†’ Polynomial R β†’ Ideal R β†’ Prop

Given an ideal π“Ÿ of a commutative semiring R, we say that a polynomial f : R[X] is weakly Eisenstein at π“Ÿ if βˆ€ n, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ.

theorem Polynomial.isWeaklyEisensteinAt_iff E0 #

βˆ€ {R : Type u} [inst : CommSemiring R] (f : Polynomial R) (π“Ÿ : Ideal R),
  f.IsWeaklyEisensteinAt π“Ÿ ↔ βˆ€ {n : β„•}, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ

ctor Polynomial.IsWeaklyEisensteinAt.mk E0 #

βˆ€ {R : Type u} [inst : CommSemiring R] {f : Polynomial R} {π“Ÿ : Ideal R},
  (βˆ€ {n : β„•}, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ) β†’ f.IsWeaklyEisensteinAt π“Ÿ

theorem Polynomial.IsWeaklyEisensteinAt.mem E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {f : Polynomial R} {π“Ÿ : Ideal R},
  f.IsWeaklyEisensteinAt π“Ÿ β†’ βˆ€ {n : β„•}, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ

structure Polynomial.IsEisensteinAt E1 #

{R : Type u} β†’ [inst : CommSemiring R] β†’ Polynomial R β†’ Ideal R β†’ Prop

Given an ideal π“Ÿ of a commutative semiring R, we say that a polynomial f : R[X] is Eisenstein at π“Ÿ if f.leadingCoeff βˆ‰ π“Ÿ, βˆ€ n, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ and f.coeff 0 βˆ‰ π“Ÿ ^ 2.

theorem Polynomial.isEisensteinAt_iff E0 #

βˆ€ {R : Type u} [inst : CommSemiring R] (f : Polynomial R) (π“Ÿ : Ideal R),
  f.IsEisensteinAt π“Ÿ ↔ f.leadingCoeff βˆ‰ π“Ÿ ∧ (βˆ€ {n : β„•}, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ) ∧ f.coeff 0 βˆ‰ π“Ÿ ^ 2

ctor Polynomial.IsEisensteinAt.mk E0 #

βˆ€ {R : Type u} [inst : CommSemiring R] {f : Polynomial R} {π“Ÿ : Ideal R},
  f.leadingCoeff βˆ‰ π“Ÿ β†’ (βˆ€ {n : β„•}, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ) β†’ f.coeff 0 βˆ‰ π“Ÿ ^ 2 β†’ f.IsEisensteinAt π“Ÿ

theorem Polynomial.IsEisensteinAt.leading E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {f : Polynomial R} {π“Ÿ : Ideal R}, f.IsEisensteinAt π“Ÿ β†’ f.leadingCoeff βˆ‰ π“Ÿ

theorem Polynomial.IsEisensteinAt.mem E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {f : Polynomial R} {π“Ÿ : Ideal R},
  f.IsEisensteinAt π“Ÿ β†’ βˆ€ {n : β„•}, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ

theorem Polynomial.IsEisensteinAt.notMem E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {f : Polynomial R} {π“Ÿ : Ideal R}, f.IsEisensteinAt π“Ÿ β†’ f.coeff 0 βˆ‰ π“Ÿ ^ 2

theorem Polynomial.IsWeaklyEisensteinAt.map E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {π“Ÿ : Ideal R} {f : Polynomial R},
  f.IsWeaklyEisensteinAt π“Ÿ β†’
    βˆ€ {A : Type v} [inst_1 : CommSemiring A] (Ο† : R β†’+* A), (Polynomial.map Ο† f).IsWeaklyEisensteinAt (Ideal.map Ο† π“Ÿ)

theorem Polynomial.IsWeaklyEisensteinAt.mul E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {π“Ÿ : Ideal R} {f f' : Polynomial R},
  f.IsWeaklyEisensteinAt π“Ÿ β†’ f'.IsWeaklyEisensteinAt π“Ÿ β†’ (f * f').IsWeaklyEisensteinAt π“Ÿ

theorem Polynomial.IsWeaklyEisensteinAt.exists_mem_adjoin_mul_eq_pow_natDegree E1 #

βˆ€ {R : Type u} [inst : CommRing R] {f : Polynomial R} {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : R}
  {x : S},
  (Polynomial.aeval x) f = 0 β†’
    f.Monic β†’
      f.IsWeaklyEisensteinAt (R βˆ™ p) β†’
        βˆƒ y ∈ R[x], (algebraMap R S) p * y = x ^ (Polynomial.map (algebraMap R S) f).natDegree

theorem Polynomial.IsWeaklyEisensteinAt.exists_mem_adjoin_mul_eq_pow_natDegree_le E1 #

βˆ€ {R : Type u} [inst : CommRing R] {f : Polynomial R} {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : R}
  {x : S},
  (Polynomial.aeval x) f = 0 β†’
    f.Monic β†’
      f.IsWeaklyEisensteinAt (R βˆ™ p) β†’
        βˆ€ (i : β„•), (Polynomial.map (algebraMap R S) f).natDegree ≀ i β†’ βˆƒ y ∈ R[x], (algebraMap R S) p * y = x ^ i

theorem Polynomial.IsWeaklyEisensteinAt.pow_natDegree_le_of_root_of_monic_mem E1 #

βˆ€ {R : Type u} [inst : CommRing R] {π“Ÿ : Ideal R} {f : Polynomial R},
  f.IsWeaklyEisensteinAt π“Ÿ β†’ βˆ€ {x : R}, f.IsRoot x β†’ f.Monic β†’ βˆ€ (i : β„•), f.natDegree ≀ i β†’ x ^ i ∈ π“Ÿ

theorem Polynomial.IsWeaklyEisensteinAt.pow_natDegree_le_of_aeval_zero_of_monic_mem_map E1 #

βˆ€ {R : Type u} [inst : CommRing R] {π“Ÿ : Ideal R} {f : Polynomial R} {S : Type v} [inst_1 : CommRing S]
  [inst_2 : Algebra R S],
  f.IsWeaklyEisensteinAt π“Ÿ β†’
    βˆ€ {x : S},
      (Polynomial.aeval x) f = 0 β†’
        f.Monic β†’ βˆ€ (i : β„•), (Polynomial.map (algebraMap R S) f).natDegree ≀ i β†’ x ^ i ∈ Ideal.map (algebraMap R S) π“Ÿ

theorem Polynomial.scaleRoots.isWeaklyEisensteinAt E1 #

βˆ€ {R : Type u} [inst : CommRing R] (p : Polynomial R) {x : R} {P : Ideal R},
  x ∈ P β†’ (p.scaleRoots x).IsWeaklyEisensteinAt P

theorem Polynomial.dvd_pow_natDegree_of_evalβ‚‚_eq_zero E1 #

βˆ€ {R : Type u} {A : Type u_1} [inst : CommRing R] [inst_1 : CommRing A] {f : R β†’+* A},
  Function.Injective ⇑f β†’
    βˆ€ {p : Polynomial R},
      p.Monic β†’ βˆ€ (x y : R) (z : A), Polynomial.evalβ‚‚ f z p = 0 β†’ f x * z = f y β†’ x ∣ y ^ p.natDegree

theorem Polynomial.dvd_pow_natDegree_of_aeval_eq_zero E1 #

βˆ€ {R : Type u} {A : Type u_1} [inst : CommRing R] [inst_1 : CommRing A] [IsDomain R] [inst_3 : Algebra R A]
  [Nontrivial A] [Module.IsTorsionFree R A] {p : Polynomial R},
  p.Monic β†’
    βˆ€ (x y : R) (z : A), (Polynomial.aeval z) p = 0 β†’ z * (algebraMap R A) x = (algebraMap R A) y β†’ x ∣ y ^ p.natDegree

theorem Polynomial.Monic.leadingCoeff_notMem E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {π“Ÿ : Ideal R} {f : Polynomial R}, f.Monic β†’ π“Ÿ β‰  ⊀ β†’ f.leadingCoeff βˆ‰ π“Ÿ

theorem Polynomial.Monic.isEisensteinAt_of_mem_of_notMem E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {π“Ÿ : Ideal R} {f : Polynomial R},
  f.Monic β†’ π“Ÿ β‰  ⊀ β†’ (βˆ€ {n : β„•}, n < f.natDegree β†’ f.coeff n ∈ π“Ÿ) β†’ f.coeff 0 βˆ‰ π“Ÿ ^ 2 β†’ f.IsEisensteinAt π“Ÿ

theorem Polynomial.IsEisensteinAt.isWeaklyEisensteinAt E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {π“Ÿ : Ideal R} {f : Polynomial R}, f.IsEisensteinAt π“Ÿ β†’ f.IsWeaklyEisensteinAt π“Ÿ

theorem Polynomial.IsEisensteinAt.coeff_mem E1 #

βˆ€ {R : Type u} [inst : CommSemiring R] {π“Ÿ : Ideal R} {f : Polynomial R},
  f.IsEisensteinAt π“Ÿ β†’ βˆ€ {n : β„•}, n β‰  f.natDegree β†’ f.coeff n ∈ π“Ÿ

theorem Polynomial.IsEisensteinAt.irreducible E3 #

βˆ€ {R : Type u} [inst : CommRing R] [IsDomain R] {π“Ÿ : Ideal R} {f : Polynomial R},
  f.IsEisensteinAt π“Ÿ β†’ π“Ÿ.IsPrime β†’ f.IsPrimitive β†’ 0 < f.natDegree β†’ Irreducible f

If a primitive f satisfies f.IsEisensteinAt π“Ÿ, where π“Ÿ.IsPrime, then f is irreducible.