Article · Wikipedia archive · Last revised Jun 1, 2026

Prime avoidance lemma

In algebra, the prime avoidance lemma says that if an ideal I in a commutative ring R is contained in a union of finitely many prime ideals Pi's, then it is contained in Pi for some i.

Last revised
Jun 1, 2026
Read time
≈ 5 min
Length
1,195 w
Citations
3
Source

In algebra, the prime avoidance lemma says that if an ideal I in a commutative ring R is contained in a union of finitely many prime ideals Pi's, then it is contained in Pi for some i.

There are many variations of the lemma (cf. Hochster); for example, if the ring R contains an infinite field or a finite field of sufficiently large cardinality, then the statement follows from a fact in linear algebra that a vector space over an infinite field or a finite field of large cardinality is not a finite union of its proper vector subspaces.1

Statement and proof

The following statement and argument are perhaps the most standard.

Theorem (Prime Avoidance Lemma): Let E be a subset of commutative ring R that is an additive subgroup of R and is multiplicatively closed. (In particular, E could be a subring or ideal of R.) Let I 1 , I 2 , , I n , n 1 {\displaystyle I_{1},I_{2},\dots ,I_{n},n\geq 1} be ideals such that I i {\displaystyle I_{i}} are prime ideals for i 3 {\displaystyle i\geq 3} . If E is not contained in any of the I i {\displaystyle I_{i}} , then E is not contained in the union I i {\textstyle \bigcup I_{i}} .

Proof by induction on n: The idea is to find an element of R that is in E and not in any of the I i {\displaystyle I_{i}} . The base case n = 1 {\displaystyle n=1} is trivial. Next suppose n 2 {\displaystyle n\geq 2} . For each i, choose

z i E j i I j {\displaystyle z_{i}\in E\setminus \bigcup _{j\neq i}I_{j}} ,

where each of the sets on the right is nonempty by the inductive hypothesis. We can assume z i I i {\displaystyle z_{i}\in I_{i}} for all i; otherwise, there is some z k {\displaystyle z_{k}} among them that avoids all of the I i {\displaystyle I_{i}} , and we are done. Put

z = z 1 z n 1 + z n {\displaystyle z=z_{1}\cdots z_{n-1}+z_{n}} .

Because E is closed under addition and multiplication, z is in E by construction. We claim that z is not in any of the I i {\displaystyle I_{i}} . Indeed, if z I i {\displaystyle z\in I_{i}} for some i n 1 {\displaystyle i\leq n-1} , then z n I i {\displaystyle z_{n}\in I_{i}} , a contradiction. Next suppose z I n {\displaystyle z\in I_{n}} . Then z 1 z n 1 I n {\displaystyle z_{1}\cdots z_{n-1}\in I_{n}} . If n = 2 {\displaystyle n=2} , this is already a contradiction. If n > 2 {\displaystyle n>2} , then, since I n {\displaystyle I_{n}} is a prime ideal, z i I n {\displaystyle z_{i}\in I_{n}} for some i n 1 {\displaystyle i\leq n-1} , again a contradiction. {\displaystyle \square }

E. Davis' prime avoidance

There is the following variant of prime avoidance due to E. Davis.

Theorem2 Let A be a ring, p 1 , , p r {\displaystyle {\mathfrak {p}}_{1},\dots ,{\mathfrak {p}}_{r}} prime ideals, x an element of A and J an ideal. For the ideal I = x A + J {\displaystyle I=xA+J} , if I p i {\displaystyle I\not \subset {\mathfrak {p}}_{i}} for each i, then there exists some y in J such that x + y p i {\displaystyle x+y\not \in {\mathfrak {p}}_{i}} for each i.

Proof:3 We argue by induction on r. Without loss of generality, we can assume there is no inclusion relation between the p i {\displaystyle {\mathfrak {p}}_{i}} 's; since otherwise we can use the inductive hypothesis.

Also, if x p i {\displaystyle x\not \in {\mathfrak {p}}_{i}} for each i, then we are done; thus, without loss of generality, we can assume x p r {\displaystyle x\in {\mathfrak {p}}_{r}} . By inductive hypothesis, we find a y in J such that x + y I 1 r 1 p i {\displaystyle x+y\in I-\cup _{1}^{r-1}{\mathfrak {p}}_{i}} . If x + y {\displaystyle x+y} is not in p r {\displaystyle {\mathfrak {p}}_{r}} , we are done. Otherwise, note that J p r {\displaystyle J\not \subset {\mathfrak {p}}_{r}} (since x p r {\displaystyle x\in {\mathfrak {p}}_{r}} ) and since p r {\displaystyle {\mathfrak {p}}_{r}} is a prime ideal, we have:

p r J p 1 p r 1 {\displaystyle {\mathfrak {p}}_{r}\not \supset J\,{\mathfrak {p}}_{1}\cdots {\mathfrak {p}}_{r-1}} .

Hence, we can choose y {\displaystyle y'} in J p 1 p r 1 {\displaystyle J\,{\mathfrak {p}}_{1}\cdots {\mathfrak {p}}_{r-1}} that is not in p r {\displaystyle {\mathfrak {p}}_{r}} . Then, since x + y p r {\displaystyle x+y\in {\mathfrak {p}}_{r}} , the element x + y + y {\displaystyle x+y+y'} has the required property. {\displaystyle \square }

Application

Let A be a Noetherian ring, I an ideal generated by n elements and M a finite A-module such that I M M {\displaystyle IM\neq M} . Also, let d = depth A ( I , M ) {\displaystyle d=\operatorname {depth} _{A}(I,M)} = the maximal length of M-regular sequences in I = the length of every maximal M-regular sequence in I. Then d n {\displaystyle d\leq n} ; this estimate can be shown using the above prime avoidance as follows. We argue by induction on n. Let { p 1 , , p r } {\displaystyle \{{\mathfrak {p}}_{1},\dots ,{\mathfrak {p}}_{r}\}} be the set of associated primes of M. If d > 0 {\displaystyle d>0} , then I p i {\displaystyle I\not \subset {\mathfrak {p}}_{i}} for each i. If I = ( y 1 , , y n ) {\displaystyle I=(y_{1},\dots ,y_{n})} , then, by prime avoidance, we can choose

x 1 = y 1 + i = 2 n a i y i {\displaystyle x_{1}=y_{1}+\sum _{i=2}^{n}a_{i}y_{i}}

for some a i {\displaystyle a_{i}} in A {\displaystyle A} such that x 1 1 r p i {\displaystyle x_{1}\not \in \cup _{1}^{r}{\mathfrak {p}}_{i}} = the set of zero divisors on M. Now, I / ( x 1 ) {\displaystyle I/(x_{1})} is an ideal of A / ( x 1 ) {\displaystyle A/(x_{1})} generated by n 1 {\displaystyle n-1} elements and so, by inductive hypothesis, depth A / ( x 1 ) ( I / ( x 1 ) , M / x 1 M ) n 1 {\displaystyle \operatorname {depth} _{A/(x_{1})}(I/(x_{1}),M/x_{1}M)\leq n-1} . The claim now follows.

Notes

Notes

  1. Proof of the fact: suppose the vector space is a finite union of proper subspaces. Consider a finite product of linear functionals, each of which vanishes on a proper subspace that appears in the union; then it is a nonzero polynomial vanishing identically, a contradiction.
  2. Matsumura 1986, Exercise 16.8.
  3. Adapted from the solution to Matsumura 1986, Exercise 1.6.
References

References