Eisenstein's Criterion

lean4-proofring-theoryvisualization
pa0,,an1,  p2a0,  pan    f irreduciblep \mid a_0,\dots,a_{n-1},\; p^2 \nmid a_0,\; p \nmid a_n \implies f \text{ irreducible}

Statement

Let RR be an integral domain, p\mathfrak{p} a prime ideal of RR, and

f(x)=anxn+an1xn1++a0R[x]f(x) = a_n x^n + a_{n-1}x^{n-1} + \cdots + a_0 \in R[x]

a primitive polynomial of degree n1n \ge 1. Suppose:

  1. aipa_i \in \mathfrak{p} for all i<ni < n (all non-leading coefficients lie in p\mathfrak{p}),
  2. anpa_n \notin \mathfrak{p} (the leading coefficient does not),
  3. a0p2a_0 \notin \mathfrak{p}^2 (the constant term is not in p2\mathfrak{p}^2).

Then ff is irreducible in R[x]R[x].

The classical case: R=ZR = \mathbb{Z}, p=(p)\mathfrak{p} = (p) for a prime pp.

Visualization

Example: f(x)=x32f(x) = x^3 - 2 over Z\mathbb{Z}, prime p=2p = 2.

CoefficientValueIn (2)(2)?In (4)(4)?
a3a_3 (leading)11NoNo
a2a_200YesYes
a1a_100YesYes
a0a_0 (constant)2-2YesNo

All conditions hold: 20,0,22 \mid 0, 0, -2; 212 \nmid 1; 424 \nmid -2. Therefore x32x^3 - 2 is irreducible over Q\mathbb{Q}.

Step-by-step: suppose x32=(xα)(x2+bx+c)x^3 - 2 = (x - \alpha)(x^2 + bx + c) over Q\mathbb{Q}. Then αc=2\alpha c = -2 and αQ\alpha \in \mathbb{Q}. By the rational root theorem, α{±1,±2}\alpha \in \{\pm 1, \pm 2\}; checking each: 132=101^3 - 2 = -1 \ne 0, (1)32=30(-1)^3 - 2 = -3 \ne 0, 232=602^3 - 2 = 6 \ne 0, (2)32=100(-2)^3 - 2 = -10 \ne 0. No rational root, so no linear factor over Q\mathbb{Q}, confirming irreducibility for a cubic.

Proof Sketch

  1. Reduce modulo p\mathfrak{p}. Let fˉ(R/p)[x]\bar{f} \in (R/\mathfrak{p})[x] be the image of ff. Since aipa_i \in \mathfrak{p} for i<ni < n and anpa_n \notin \mathfrak{p}, we get fˉ=aˉnxn\bar{f} = \bar{a}_n x^n.

  2. Suppose f=ghf = g \cdot h with degg,degh1\deg g, \deg h \ge 1. Reducing mod p\mathfrak{p} gives aˉnxn=gˉhˉ\bar{a}_n x^n = \bar{g}\,\bar{h}. Since (R/p)[x](R/\mathfrak{p})[x] is a domain, both gˉ\bar{g} and hˉ\bar{h} must be monomials: gˉ=bˉsxs\bar{g} = \bar{b}_s x^s, hˉ=cˉtxt\bar{h} = \bar{c}_t x^t with s+t=ns + t = n.

  3. Both constant terms vanish mod p\mathfrak{p}. So g(0)pg(0) \in \mathfrak{p} and h(0)ph(0) \in \mathfrak{p}. Then a0=g(0)h(0)p2a_0 = g(0)h(0) \in \mathfrak{p}^2, contradicting assumption (3).

  4. Conclusion. No non-trivial factorisation exists; ff is irreducible (among primitive polynomials, and hence in Q[x]\mathbb{Q}[x] by Gauss's Lemma).

Connections

Eisenstein's Criterion applies to primitive polynomials, whose theory is developed in Gauss's Lemma (Polynomial)Gauss's Lemma (Polynomial)f,g primitive    fg primitivef,g \text{ primitive} \implies fg \text{ primitive}The product of primitive polynomials is primitive; irreducibility over a UFD transfers to irreducibility over its fraction field.Read more →. The criterion also works over any UFD, connecting it to PID Implies UFDPID Implies UFDPID    UFD\text{PID} \implies \text{UFD}Every principal ideal domain is a unique factorisation domain: elements factor uniquely into irreducibles up to units and order.Read more → via the structure of prime ideals.

Lean4 Proof

-- Mathlib: Polynomial.IsEisensteinAt.irreducible
-- in Mathlib.RingTheory.Polynomial.Eisenstein.Basic
open Polynomial in
/-- x^3 - 2 is irreducible over ℤ, witnessed by the prime ideal (2). -/
theorem x_cubed_sub_two_irreducible :
    Irreducible (X ^ 3 - C 2 : [X]) := by
  apply IsEisensteinAt.irreducible (P := Ideal.span {2})
  · constructor
    · -- constant term: 2 ∈ (2)
      simp [Ideal.mem_span_singleton]
    · intro n hn
      -- coefficients at positions 0,1,2 all lie in (2)
      fin_cases n <;> simp_all [Ideal.mem_span_singleton]
    · -- leading coeff 1 ∉ (2)
      simp [Ideal.mem_span_singleton]
    · -- constant term -2 ∉ (2)^2 = (4)
      simp [Ideal.span_singleton_pow, Ideal.mem_span_singleton]
  · -- (2) is prime
    exact Ideal.span_singleton_prime (by norm_num) |>.mpr (by norm_num)
  · -- x^3 - 2 is primitive
    decide