Nakayama's Lemma

lean4-proofring-theoryvisualization
M=mM,  M f.g.    M=0 (local ring)M = \mathfrak{m}M,\; M \text{ f.g.} \implies M = 0 \text{ (local ring)}

Statement

Let RR be a commutative ring, IRI \subseteq R an ideal contained in the Jacobson radical rad(R)\operatorname{rad}(R) (the intersection of all maximal ideals), and MM a finitely generated RR-module.

Nakayama's Lemma. If M=IMM = IM (i.e., MIMM \le I \cdot M), then M=0M = 0.

Local version. If (R,m)(R, \mathfrak{m}) is a local ring and MM is a finitely generated RR-module with M=mMM = \mathfrak{m}M, then M=0M = 0.

Generator corollary. Elements m1,,mnMm_1, \ldots, m_n \in M generate MM if and only if their images mˉ1,,mˉn\bar{m}_1, \ldots, \bar{m}_n generate M/mMM/\mathfrak{m}M as an R/mR/\mathfrak{m}-vector space.

Visualization

Schematic: why M=mMM = \mathfrak{m}M forces M=0M = 0 for a local ring.

M  finitely generated by  {m_1, ..., m_n}
          |
          | M = mM means each m_i = sum a_{ij} m_j  with a_{ij} in m
          |
          v
    Matrix equation:  (I - A) · [m_1 ... m_n]^T = 0
    where A = (a_{ij}) has entries in m
          |
          | det(I - A) = 1 - (terms in m) ∈ 1 + m ⊆ R^×  (units in local ring)
          |
          v
    (I - A) is invertible  ⟹  [m_1 ... m_n]^T = 0
          |
          v
    M = 0

Lifting generators example. Let R=Z(p)R = \mathbb{Z}_{(p)} (integers localised at pp), m=(p)\mathfrak{m} = (p), M=Z(p)2M = \mathbb{Z}_{(p)}^2, and suppose M/mM(Z/p)2M/\mathfrak{m}M \cong (\mathbb{Z}/p)^2 is generated by {eˉ1,eˉ2}\{\bar{e}_1, \bar{e}_2\}. By Nakayama, {e1,e2}\{e_1, e_2\} generate MM over RR.

StepContent
M/mMM/\mathfrak{m}M generatorsmˉ1,,mˉk\bar{m}_1, \ldots, \bar{m}_k (finite, over field R/mR/\mathfrak{m})
Lift to MMm1,,mkMm_1, \ldots, m_k \in M
Let N=m1,,mkN = \langle m_1, \ldots, m_k \ranglesubmodule of MM
M/NM/N satisfiesM/N=m(M/N)M/N = \mathfrak{m} \cdot (M/N) (by choice of generators)
Nakayama givesM/N=0M/N = 0, i.e., N=MN = M

Proof Sketch

  1. Cayley-Hamilton trick. Since M=IMM = IM and MM is generated by m1,,mnm_1, \ldots, m_n, write mi=jaijmjm_i = \sum_j a_{ij} m_j with aijIa_{ij} \in I. In matrix form: (AId)m=0(A - \mathrm{Id}) \mathbf{m} = 0 where A=(aij)A = (a_{ij}) has entries in II.

  2. Determinant is a unit. Multiply by the adjugate: det(AId)mi=0\det(A - \mathrm{Id}) \cdot m_i = 0 for all ii. Expanding: det(AId)=1+(terms in I)1+IR×\det(A - \mathrm{Id}) = -1 + (\text{terms in } I) \in -1 + I \subseteq R^\times (since Irad(R)I \subseteq \operatorname{rad}(R) and elements of 1+rad(R)1 + \operatorname{rad}(R) are units).

  3. Conclusion. A unit kills all mim_i, so mi=0m_i = 0 for all ii, hence M=0M = 0.

Connections

Nakayama's Lemma is the principal tool for working with modules over local rings in algebraic geometry and commutative algebra. The finite generation hypothesis is crucial — compare with Hilbert Basis TheoremHilbert Basis TheoremR Noetherian    R[x] NoetherianR \text{ Noetherian} \implies R[x] \text{ Noetherian}If R is Noetherian then so is R[x]: every ideal in a polynomial ring over a Noetherian ring is finitely generated.Read more →, which ensures it holds for ideals. The Cayley-Hamilton determinant step is a cousin of Cayley–Hamilton TheoremCayley–Hamilton TheorempA(A)=0  where  pA(λ)=det(λIA)p_A(A) = 0 \;\text{where}\; p_A(\lambda) = \det(\lambda I - A)Every square matrix satisfies its own characteristic polynomialRead more → in linear algebra.

Lean4 Proof

-- Mathlib: Submodule.eq_bot_of_le_smul_of_le_jacobson_bot
-- in Mathlib.RingTheory.Nakayama (line 118)

/-- Nakayama's Lemma: if N ≤ I • N, I ≤ jacobson ⊥, and N is finitely generated,
    then N = ⊥ (the zero submodule). -/
example (R M : Type*) [CommRing R] [AddCommGroup M] [Module R M]
    (I : Ideal R) (N : Submodule R M) (hfg : N.FG)
    (hIN : N  IN) (hI : I  Ideal.jacobson ⊥) : N = ⊥ :=
  Submodule.eq_bot_of_le_smul_of_le_jacobson_bot I N hfg hIN hI