The Stacks project, tag 07R0, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/07R0
The singular locus
Here is the definition.
Definition 28.15.1 (07R1) official page ↗
Let \(X\) be a locally Noetherian scheme. The regular locus \(\text{Reg}(X)\) of \(X\) is the set of \(x \in X\) such that \(\mathcal{O}_{X, x}\) is a regular local ring. The singular locus \(\text{Sing}(X)\) is the complement \(X \setminus \text{Reg}(X)\), i.e., the set of points \(x \in X\) such that \(\mathcal{O}_{X, x}\) is not a regular local ring.
The regular locus of a locally Noetherian scheme is stable under generalizations, see the discussion preceding Algebra, Definition 10.110.7. However, for general locally Noetherian schemes the regular locus need not be open. In More on Algebra, Section 15.48 the reader can find some criteria for when this is the case. We will discuss this further in Morphisms, Section 29.19.