Lemma 37.27.6. Let $f : X \to Y$ be a morphism of schemes. Let $n_{X/Y}$ be the function on $Y$ counting the numbers of geometric connected components of fibres of $f$ introduced in Lemma 37.27.3. Assume $f$ of finite presentation. Then the level sets

\[ E_ n = \{ y \in Y \mid n_{X/Y}(y) = n\} \]

of $n_{X/Y}$ are locally constructible in $Y$.

**Proof.**
Fix $n$. Let $y \in Y$. We have to show that there exists an open neighbourhood $V$ of $y$ in $Y$ such that $E_ n \cap V$ is constructible in $V$. Thus we may assume that $Y$ is affine. Write $Y = \mathop{\mathrm{Spec}}(A)$ and $A = \mathop{\mathrm{colim}}\nolimits A_ i$ as a directed limit of finite type $\mathbf{Z}$-algebras. By Limits, Lemma 32.10.1 we can find an $i$ and a morphism $f_ i : X_ i \to \mathop{\mathrm{Spec}}(A_ i)$ of finite presentation whose base change to $Y$ recovers $f$. By Lemma 37.27.3 it suffices to prove the lemma for $f_ i$. Thus we reduce to the case where $Y$ is the spectrum of a Noetherian ring.

We will use the criterion of Topology, Lemma 5.16.3 to prove that $E_ n$ is constructible in case $Y$ is a Noetherian scheme. To see this let $Z \subset Y$ be an irreducible closed subscheme. We have to show that $E_ n \cap Z$ either contains a nonempty open subset or is not dense in $Z$. Let $\xi \in Z$ be the generic point. Then Lemma 37.27.5 shows that $n_{X/Y}$ is constant in a neighbourhood of $\xi $ in $Z$. This clearly implies what we want.
$\square$

## Comments (2)

Comment #784 by Kestutis Cesnavicius on

Comment #800 by Johan on

There are also: