Canonical: https://knowlpedia.com/algebra-commutative/lying-over-theorem/

# Lying-over theorem

In an integral extension, every prime ideal downstairs is the contraction of some prime ideal upstairs.

**Theorem (Lying over).**
Let \(A\subseteq B\) be an [integral extension](https://knowlpedia.com/algebra-commutative/integral-extension/) of [commutative rings](https://knowlpedia.com/algebra-rings/commutative-ring/). For every prime ideal \(\mathfrak p\subseteq A\), there exists a prime ideal \(\mathfrak q\subseteq B\) such that
\[
\mathfrak q\cap A=\mathfrak p.
\]

## Equivalent characterizations

Equivalently, the natural map of [prime spectra](https://knowlpedia.com/algebra-commutative/prime-spectrum/)
\[
\operatorname{Spec}(B)\longrightarrow \operatorname{Spec}(A),\qquad \mathfrak q\mapsto \mathfrak q\cap A
\]
is surjective. In particular, every maximal ideal of \(A\) is the contraction of some maximal ideal of \(B\), so the induced map on [maximal spectra](https://knowlpedia.com/algebra-commutative/maximal-spectrum/) is also surjective.

## Remarks

Lying-over is frequently used as the existence input for [going up](https://knowlpedia.com/algebra-commutative/going-up-theorem/) and, under extra hypotheses, for [going down](https://knowlpedia.com/algebra-commutative/going-down-theorem/).

### Examples
1. **Gaussian integers over the integers.**
   The inclusion \(\mathbb Z\subset \mathbb Z[i]\) is integral (since \(i\) satisfies \(T^2+1=0\)). For the prime ideal \((5)\subset\mathbb Z\), lying-over guarantees a prime \(\mathfrak q\subset \mathbb Z[i]\) with \(\mathfrak q\cap\mathbb Z=(5)\). Concretely, one can take \(\mathfrak q=(2+i)\) (or \(\mathfrak q=(2-i)\)), both lying over \((5)\).

2. **A simple subring of a polynomial ring.**
   Let \(k\) be a [field](https://knowlpedia.com/algebra-rings/field/) and set \(A=k[t^2]\subset B=k[t]\). The element \(t\) is integral over \(A\) (it satisfies \(T^2-t^2=0\)), so \(A\subset B\) is integral. The prime ideal \((t^2)\subset A\) is the contraction of the prime ideal \((t)\subset B\).

3. **Adjoining a square root.**
   Let \(A=k[x]\) and \(B=k[x,y]/(y^2-x)\). The image of \(y\) is integral over \(A\) (it satisfies \(T^2-x=0\)), hence \(A\subset B\) is integral. The prime ideal \((x)\subset A\) is the contraction of the prime ideal \((x,y)\subset B\).
