# Nakayama's lemma

In mathematics, more specifically abstract algebra and commutative algebra, Nakayama's lemma — also known as the Krull–Azumaya theorem — governs the interaction between the Jacobson radical of a ring (typically a commutative ring) and its finitely generated modules. Informally, the lemma immediately gives a precise sense in which finitely generated modules over a commutative ring behave like vector spaces over a field. It is an important tool in algebraic geometry, because it allows local data on algebraic varieties, in the form of modules over local rings, to be studied pointwise as vector spaces over the residue field of the ring.
The lemma is named after the Japanese mathematician Tadashi Nakayama and introduced in its present form in Nakayama (1951), although it was first discovered in the special case of ideals in a commutative ring by Wolfgang Krull and then in general by Goro Azumaya (1951). In the commutative case, the lemma is a simple consequence of a generalized form of the Cayley–Hamilton theorem, an observation made by Michael Atiyah (1969). The special case of the noncommutative version of the lemma for right ideals appears in Nathan Jacobson (1945), and so the noncommutative Nakayama lemma is sometimes known as the Jacobson–Azumaya theorem. The latter has various applications in the theory of Jacobson radicals.

## Statement

Let $R$ be a commutative ring with identity 1. The following is Nakayama's lemma, as stated in Matsumura (1989):
Statement 1: Let $I$ be an ideal in $R$, and $M$ a finitely generated module over $R$. If $IM=M$, then there exists $r\in R$ with $r\equiv 1\;(\operatorname {mod} I)$ such that $rM=0$.
This is proven below. A useful mnemonic for Nakayama's lemma is "$IM=M\implies im=m$". This summarizes the following alternative formulation:
Statement 2: Let $I$ be an ideal in $R$, and $M$ a finitely generated module over $R$. If $IM=M$, then there exists an $i\in I$ such that $im=m$ for all $m\in M$.
    Proof: Take $i=1-r$ in Statement 1.
The following corollary is also known as Nakayama's lemma, and it is in this form that it most often appears.
Statement 3: If $M$ is a finitely generated module over $R$, $J(R)$ is the Jacobson radical of $R$, and $J(R)M=M$, then $M=0$.
    Proof: $1-r$ (with $r$ as in Statement 1) is in the Jacobson radical so $r$ is invertible.
More generally, one has that $J(R)M$ is a superfluous submodule of $M$ when $M$ is finitely generated.
Statement 4: If $M$ is a finitely generated module over $R$, $N$ is a submodule of $M$, and $M$ = $N+J(R)M$, then $M$ = $N$.
    Proof: Apply Statement 3 to $M/N$.
The following result manifests Nakayama's lemma in terms of generators.
Statement 5: If $M$ is a finitely generated module over $R$ and the images of elements $m$$_1$,...,$m$$_{n{\displaystylen}}$ of $M$ in $M/J(R)M$ generate $M/J(R)M$ as an $R/J(R)$-module, then $m$$_1$,...,$m$$_{n{\displaystylen}}$ also generate $M$ as an $R$-module.
    Proof: Apply Statement 4 to $\textstyle {N=\sum _{i}Rm_{i}}$.
If one assumes instead that $R$ is complete and $M$ is separated with respect to the $I$-adic topology for an ideal $I$ in $R$, this last statement holds with $I$ in place of $J(R)$ and without assuming in advance that $M$ is finitely generated. Here separatedness means that the $I$-adic topology satisfies the T$_1$ separation axiom, and is equivalent to $\textstyle {\bigcap _{k=1}^{\infty }I^{k}M=0.}$

## Consequences
### Local rings

In the special case of a finitely generated module $M$ over a local ring $R$ with maximal ideal ${\mathfrak {m}}$, the quotient $M/{\mathfrak {m}}M$ is a vector space over the field $R/{\mathfrak {m}}$. Statement 5 then implies that a basis of $M/{\mathfrak {m}}M$ lifts to a minimal set of generators of $M$. Conversely, every minimal set of generators of $M$ is obtained in this way, and any two such sets of generators are related by an invertible matrix with entries in the ring.

#### Geometric interpretation

In this form, Nakayama's lemma takes on concrete geometrical significance. Local rings arise in geometry as the germs of functions at a point. Finitely generated modules over local rings arise quite often as germs of sections of vector bundles. Working at the level of germs rather than points, the notion of finite-dimensional vector bundle gives way to that of a coherent sheaf. Informally, Nakayama's lemma says that one can still regard a coherent sheaf as coming from a vector bundle in some sense. More precisely, let ${\mathcal {M}}$ be a coherent sheaf of ${\mathcal {O}}_{X}$-modules over an arbitrary scheme $X$. The stalk of ${\mathcal {M}}$ at a point $p\in X$, denoted by ${\mathcal {M}}_{p}$, is a module over the local ring $({\mathcal {O}}_{X,p},{\displaystyle {\mathfrak {m}}_{p}})$ and the fiber of ${\mathcal {M}}$ at $p$ is the vector space ${\mathcal {M}}(p)={\mathcal {M}}_{p}/{\mathfrak {m}}_{p}{\mathcal {M}}_{p}$. Nakayama's lemma implies that a basis of the fiber ${\mathcal {M}}(p)$ lifts to a minimal set of generators of ${\mathcal {M}}_{p}$. That is:
* Any basis of the fiber of a coherent sheaf ${\mathcal {M}}$ at a point comes from a minimal basis of local sections.
Reformulating this geometrically, if ${\mathcal {M}}$ is a locally free ${\mathcal {O}}_{X}$-module representing a vector bundle $E\to X$, and if we take a basis of the vector bundle at a point in the scheme $X$, this basis can be lifted to a basis of sections of the vector bundle in some neighborhood of the point. We can organize this data diagrammatically
   ${\begin{matrix}E|_{p}&\to &E|_{U}&\to &E\\\downarrow &&\downarrow &&\downarrow \\p&\to &U&\to &X\end{matrix}}$
where $E|_{p}$ is an n-dimensional vector space, to say a basis in $E|_{p}$ (which is a basis of sections of the bundle $E_{p}\to p$) can be lifted to a basis of sections $E|_{U}\to U$ for some neighborhood $U$ of $p$.

### Going up and going down

The going up theorem is essentially a corollary of Nakayama's lemma. It asserts:
* Let $R\hookrightarrow S$ be an integral extension of commutative rings, and ${\mathfrak {p}}$ a prime ideal of $R$. Then there is a prime ideal ${\mathfrak {q}}$ in $S$ such that ${\mathfrak {q}}\cap R={\mathfrak {p}}$. Moreover, ${\mathfrak {q}}$ can be chosen to contain any prime ${\mathfrak {q}}_{1}$ of $S$ such that ${\mathfrak {q}}_{1}\cap R\subset {\mathfrak {p}}$.

### Module epimorphisms

Nakayama's lemma makes precise one sense in which finitely generated modules over a commutative ring are like vector spaces over a field. The following consequence of Nakayama's lemma gives another way in which this is true:
* If $M$ is a finitely generated $R$-module and $f:M\to M$ is a surjective endomorphism, then $f$ is an isomorphism.
Over a local ring, one can say more about module epimorphisms:
* Suppose that $R$ is a local ring with maximal ideal ${\mathfrak {m}}$, and $M,N$ are finitely generated $R$-modules. If $\phi :M\to N$ is an $R$-linear map such that the quotient $\phi _{\mathfrak {m}}:M/{\mathfrak {m}}M\to N/{\mathfrak {m}}N$ is surjective, then $\phi$ is surjective.

### Homological versions

Nakayama's lemma also has several versions in homological algebra. The above statement about epimorphisms can be used to show:
* Let $M$ be a finitely generated module over a local ring. Then $M$ is projective if and only if it is free. This can be used to compute the Grothendieck group of any local ring $R$ as $K(R)=\mathbb {Z}$.
A geometrical and global counterpart to this is the Serre–Swan theorem, relating projective modules and coherent sheaves.
More generally, one has
* Let $R$ be a local ring and $M$ a finitely generated module over $R$. Then the projective dimension of $M$ over $R$ is equal to the length of every minimal free resolution of $M$. Moreover, the projective dimension is equal to the global dimension of $M$, which is by definition the smallest integer $i\geq 0$ such that
       $\operatorname {Tor} _{i+1}^{R}(k,M)=0.$
    Here $k$ is the residue field of $R$ and ${\text{Tor}}$ is the tor functor.

### Inverse function theorem

Nakayama's lemma is used to prove a version of the inverse function theorem in algebraic geometry:
* Let f:X→Y{\textstyle f:X\to Y} be a projective morphism between quasi-projective varieties. Then f{\textstyle f} is an isomorphism if and only if it is a bijection and the differential df$_p${\textstyle df_{p}} is injective for all $p\in X$.

## Proof

A standard proof of the Nakayama lemma uses the following technique due to Atiyah & Macdonald (1969).
* Let M be an R-module generated by n elements, and φ: M → M an R-linear map. If there is an ideal I of R such that φ(M) ⊂ IM, then there is a monic polynomial
       $p(x)=x^{n}+p_{1}x^{n-1}+\cdots +p_{n}$
    with p$_k$ ∈ I$^k$, such that
       $p(\varphi )=0$
    as an endomorphism of M.
This assertion is precisely a generalized version of the Cayley–Hamilton theorem, and the proof proceeds along the same lines. On the generators x$_i$ of M, one has a relation of the form
    $\varphi (x_{i})=\sum _{j=1}^{n}a_{ij}x_{j}$
where a$_{ij}$ ∈ I. Thus
    $\sum _{j=1}^{n}\left(\varphi \delta _{ij}-a_{ij}\right)x_{j}=0.$
The required result follows by multiplying by the adjugate of the matrix (φδ$_{ij}$ − a$_{ij}$) and invoking Cramer's rule. One finds then det(φδ$_{ij}$ − a$_{ij}$) = 0, so the required polynomial is
    $p(t)=\det(t\delta _{ij}-a_{ij}).$
To prove Nakayama's lemma from the Cayley–Hamilton theorem, assume that IM = M and take φ to be the identity on M. Then define a polynomial p(x) as above. Then
    $r=p(1)=1+p_{1}+p_{2}+\cdots +p_{n}$
has the required property: $r\equiv 1\;(\operatorname {mod} I)$ and $rM=0$.

## Noncommutative case

A version of the lemma holds for right modules over non-commutative unital rings R. The resulting theorem is sometimes known as the Jacobson–Azumaya theorem.
Let J(R) be the Jacobson radical of R. If U is a right module over a ring, R, and I is a right ideal in R, then define U·I to be the set of all (finite) sums of elements of the form u·i, where · is simply the action of R on U. Necessarily, U·I is a submodule of U.
If V is a maximal submodule of U, then U/V is simple. So U·J(R) is necessarily a subset of V, by the definition of J(R) and the fact that U/V is simple. Thus, if U contains at least one (proper) maximal submodule, U·J(R) is a proper submodule of U. However, this need not hold for arbitrary modules U over R, for U need not contain any maximal submodules. Naturally, if U is a Noetherian module, this holds. If R is Noetherian, and U is finitely generated, then U is a Noetherian module over R, and the conclusion is satisfied. Somewhat remarkable is that the weaker assumption, namely that U is finitely generated as an R-module (and no finiteness assumption on R), is sufficient to guarantee the conclusion. This is essentially the statement of Nakayama's lemma.
Precisely, one has:
    Nakayama's lemma: Let U be a finitely generated right module over a (unital) ring R. If U is a non-zero module, then U·J(R) is a proper submodule of U.

### Proof

Let $X$ be a finite subset of $U$, minimal with respect to the property that it generates $U$. Since $U$ is non-zero, this set $X$ is nonempty. Denote every element of $X$ by $x_{i}$ for $i\in \{1,\ldots ,n\}$. Since $X$ generates $U$,$\sum _{i=1}^{n}x_{i}R=U$.
Suppose $U\cdot \operatorname {J} (R)=U$, to obtain a contradiction. Then every element $u\in U$can be expressed as a finite combination $u=\sum \limits _{s=1}^{m}u_{s}j_{s}$ for some $m\in \mathbb {N} ,\,u_{s}\in U,\,j_{s}\in \operatorname {J} (R),\,s=1,\dots ,m$.
Each $u_{s}$ can be further decomposed as $u_{s}=\sum \limits _{i=1}^{n}x_{i}r_{i,s}$ for some $r_{i,s}\in R$. Therefore, we have
$u=\sum _{s=1}^{m}\left(\sum _{i=1}^{n}x_{i}r_{i,s}\right)j_{s}=\sum \limits _{i=1}^{n}x_{i}\left(\sum _{s=1}^{m}r_{i,s}j_{s}\right)$.
Since $\operatorname {J} (R)$ is a (two-sided) ideal in $R$, we have $\sum _{s=1}^{m}r_{i,s}j_{s}\in \operatorname {J} (R)$ for every $i\in \{1,\dots ,n\}$, and thus this becomes
    $u=\sum _{i=1}^{n}x_{i}k_{i}$ for some $k_{i}\in \operatorname {J} (R)$, $i=1,\dots ,n$.
Putting $u=\sum _{i=1}^{n}x_{i}$ and applying distributivity, we obtain
    $\sum _{i=1}^{n}x_{i}(1-k_{i})=0$.
Choose some $j\in \{1,\dots ,n\}$. If the right ideal $(1-k_{j})R$ were proper, then it would be contained in a maximal right ideal $M\neq R$ and both $1-k_{j}$ and $k_{j}$ would belong to $M$, leading to a contradiction (note that $\operatorname {J} (R)\subseteq M$ by the definition of the Jacobson radical). Thus $(1-k_{j})R=R$ and $1-k_{j}$ has a right inverse $(1-k_{j})^{-1}$ in $R$. We have
    $\sum _{i=1}^{n}x_{i}(1-k_{i})(1-k_{j})^{-1}=0$.
Therefore,
    $\sum _{i\neq j}x_{i}(1-k_{i})(1-k_{j})^{-1}=-x_{j}$.
Thus $x_{j}$ is a linear combination of the elements from $X\setminus \{x_{j}\}$. This contradicts the minimality of $X$ and establishes the result.

## Graded version

There is also a graded version of Nakayama's lemma. Let R be a ring that is graded by the ordered semigroup of non-negative integers, and let $R_{+}$ denote the ideal generated by positively graded elements. Then if M is a graded module over R for which $M_{i}=0$ for i sufficiently negative (in particular, if M is finitely generated and R does not contain elements of negative degree) such that $R_{+}M=M$, then $M=0$. Of particular importance is the case that R is a polynomial ring with the standard grading, and M is a finitely generated module.
The proof is much easier than in the ungraded case: taking i to be the least integer such that $M_{i}\neq 0$, we see that $M_{i}$ does not appear in $R_{+}M$, so either $M\neq R_{+}M$, or such an i does not exist, i.e., $M=0$.