The Stacks project, tag 01KH, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/01KH
Separation axioms
A topological space \(X\) is Hausdorff if and only if the diagonal \(\Delta \subset X \times X\) is a closed subset. The analogue in algebraic geometry is, given a scheme \(X\) over a base scheme \(S\), to consider the diagonal morphism \[\Delta_{X/S} : X \longrightarrow X \times_S X.\] This is the unique morphism of schemes such that \(\text{pr}_1 \circ \Delta_{X/S} = \text{id}_X\) and \(\text{pr}_2 \circ \Delta_{X/S} = \text{id}_X\) (it exists in any category with fibre products).
Lemma 26.21.1 (01KI) official page ↗
The diagonal morphism of a morphism between affines is closed.
Proof. The diagonal morphism associated to the morphism \(\Spec(S) \to \Spec(R)\) is the morphism on spectra corresponding to the ring map \(S \otimes_R S \to S\), \(a \otimes b \mapsto ab\). This map is clearly surjective, so \(S \cong S \otimes_R S/J\) for some ideal \(J \subset S \otimes_R S\). Hence \(\Delta\) is a closed immersion according to Example 26.8.1.
Lemma 26.21.2 (01KJ) official page ↗
Slogan: The diagonal morphism for relative schemes is an immersion.
Let \(X\) be a scheme over \(S\). The diagonal morphism \(\Delta_{X/S}\) is an immersion.
Proof. Recall that if \(V \subset X\) is affine open and maps into \(U \subset S\) affine open, then \(V \times_U V\) is affine open in \(X \times_S X\), see Lemmas 26.17.2 and 26.17.3. Consider the open subscheme \(W\) of \(X \times_S X\) which is the union of these affine opens \(V \times_U V\). By Lemma 26.4.2 it is enough to show that each morphism \(\Delta_{X/S}^{-1}(V \times_U V) \to V \times_U V\) is a closed immersion. Since \(V = \Delta_{X/S}^{-1}(V \times_U V)\) we are just checking that \(\Delta_{V/U}\) is a closed immersion, which is Lemma 26.21.1.
Definition 26.21.3 (01KK) official page ↗
Let \(f : X \to S\) be a morphism of schemes.
We say \(f\) is separated if the diagonal morphism \(\Delta_{X/S}\) is a closed immersion.
We say \(f\) is quasi-separated if the diagonal morphism \(\Delta_{X/S}\) is a quasi-compact morphism.
We say a scheme \(Y\) is separated if the morphism \(Y \to \Spec(\mathbf{Z})\) is separated.
We say a scheme \(Y\) is quasi-separated if the morphism \(Y \to \Spec(\mathbf{Z})\) is quasi-separated.
By Lemmas 26.21.2 and 26.10.4 we see that \(\Delta_{X/S}\) is a closed immersion if an only if \(\Delta_{X/S}(X) \subset X \times_S X\) is a closed subset. Moreover, by Lemma 26.19.5 we see that a separated morphism is quasi-separated. The reason for introducing quasi-separated morphisms is that nonseparated morphisms come up naturally in studying algebraic varieties (especially when doing moduli, algebraic stacks, etc). But most often they are still quasi-separated.
Example 26.21.4 (01KL) official page ↗
Here is an example of a non-quasi-separated morphism. Suppose \(X = X_1 \cup X_2 \to S = \Spec(k)\) with \(X_1 = X_2 = \Spec(k[t_1, t_2, t_3, \ldots])\) glued along the complement of \(\{0\} = \{(t_1, t_2, t_3, \ldots)\}\) (glued as in Example 26.14.3). In this case the inverse image of the affine scheme \(X_1 \times_S X_2\) under \(\Delta_{X/S}\) is the scheme \(\Spec(k[t_1, t_2, t_3, \ldots]) \setminus \{0\}\) which is not quasi-compact.
Lemma 26.21.5 (01KM) official page ↗
Let \(X\), \(Y\) be schemes over \(S\). Let \(a, b : X \to Y\) be morphisms of schemes over \(S\). There exists a largest locally closed subscheme \(Z \subset X\) such that \(a|_Z = b|_Z\). In fact \(Z\) is the equalizer of \((a, b)\). Moreover, if \(Y\) is separated over \(S\), then \(Z\) is a closed subscheme.
Proof. The equalizer of \((a, b)\) is for categorical reasons the fibre product \(Z\) in the following diagram \[\xymatrix{ Z = Y \times_{(Y \times_S Y)} X \ar[r] \ar[d] & X \ar[d]^{(a , b)} \\ Y \ar[r]^-{\Delta_{Y/S}} & Y \times_S Y }\] Thus the lemma follows from Lemmas 26.18.2, 26.21.2 and Definition 26.21.3.
Lemma 26.21.6 (01KO) official page ↗
Let \(f : X \to S\) be a morphism of schemes. The following are equivalent:
The morphism \(f\) is quasi-separated.
For every pair of affine opens \(U, V \subset X\) which map into a common affine open of \(S\) the intersection \(U \cap V\) is a finite union of affine opens of \(X\).
There exists an affine open covering \(S = \bigcup_{i \in I} U_i\) and for each \(i\) an affine open covering \(f^{-1}U_i = \bigcup_{j \in I_i} V_j\) such that for each \(i\) and each pair \(j, j' \in I_i\) the intersection \(V_j \cap V_{j'}\) is a finite union of affine opens of \(X\).
Proof. Let us prove that (3) implies (1). By Lemma 26.17.4 the covering \(X \times_S X = \bigcup_i \bigcup_{j, j'} V_j \times_{U_i} V_{j'}\) is an affine open covering of \(X \times_S X\). Moreover, \(\Delta_{X/S}^{-1}(V_j \times_{U_i} V_{j'}) = V_j \cap V_{j'}\). Hence the implication follows from Lemma 26.19.2.
The implication (1) \(\Rightarrow\) (2) follows from the fact that under the hypotheses of (2) the fibre product \(U \times_S V\) is an affine open of \(X \times_S X\). The implication (2) \(\Rightarrow\) (3) is trivial.
Lemma 26.21.7 (01KP) official page ↗
Let \(f : X \to S\) be a morphism of schemes.
If \(f\) is separated then for every pair of affine opens \((U, V)\) of \(X\) which map into a common affine open of \(S\) we have
the intersection \(U \cap V\) is affine.
the ring map \(\mathcal{O}_X(U) \otimes_{\mathbf{Z}} \mathcal{O}_X(V) \to \mathcal{O}_X(U \cap V)\) is surjective.
If any pair of points \(x_1, x_2 \in X\) lying over a common point \(s \in S\) are contained in affine opens \(x_1 \in U\), \(x_2 \in V\) which map into a common affine open of \(S\) such that (a), (b) hold, then \(f\) is separated.
Proof. Assume \(f\) separated. Suppose \((U, V)\) is a pair as in (1). Let \(W = \Spec(R)\) be an affine open of \(S\) containing both \(f(U)\) and \(f(V)\). Write \(U = \Spec(A)\) and \(V = \Spec(B)\) for \(R\)-algebras \(A\) and \(B\). By Lemma 26.17.3 we see that \(U \times_S V = U \times_W V = \Spec(A \otimes_R B)\) is an affine open of \(X \times_S X\). Hence, by Lemma 26.10.1 we see that \(\Delta^{-1}(U \times_S V) \to U \times_S V\) can be identified with \(\Spec((A \otimes_R B)/J) \to \Spec(A \otimes_R B)\) for some ideal \(J \subset A \otimes_R B\). Thus \(U \cap V = \Delta^{-1}(U \times_S V)\) is affine. Assertion (1)(b) holds because \(A \otimes_{\mathbf{Z}} B \to (A \otimes_R B)/J\) is surjective.
Assume the hypothesis formulated in (2) holds. Clearly the collection of affine opens \(U \times_S V\) for pairs \((U, V)\) as in (2) form an affine open covering of \(X \times_S X\) (see e.g. Lemma 26.17.4). Hence it suffices to show that each morphism \(U \cap V = \Delta_{X/S}^{-1}(U \times_S V) \to U \times_S V\) is a closed immersion, see Lemma 26.4.2. By assumption (a) we have \(U \cap V = \Spec(C)\) for some ring \(C\). After choosing an affine open \(W = \Spec(R)\) of \(S\) into which both \(U\) and \(V\) map and writing \(U = \Spec(A)\), \(V = \Spec(B)\) we see that the assumption (b) means that the composition \[A \otimes_{\mathbf{Z}} B \to A \otimes_R B \to C\] is surjective. Hence \(A \otimes_R B \to C\) is surjective and we conclude that \(\Spec(C) \to \Spec(A \otimes_R B)\) is a closed immersion.
Example 26.21.8 (01KQ) official page ↗
Let \(k\) be a field. Consider the structure morphism \(p : \mathbf{P}^1_k \to \Spec(k)\) of the projective line over \(k\), see Example 26.14.4. Let us use the lemma above to prove that \(p\) is separated. By construction \(\mathbf{P}^1_k\) is covered by two affine opens \(U = \Spec(k[x])\) and \(V = \Spec(k[y])\) with intersection \(U \cap V = \Spec(k[x, y]/(xy - 1))\) (using obvious notation). Thus it suffices to check that conditions (2)(a) and (2)(b) of Lemma 26.21.7 hold for the pairs of affine opens \((U, U)\), \((U, V)\), \((V, U)\) and \((V, V)\). For the pairs \((U, U)\) and \((V, V)\) this is trivial. For the pair \((U, V)\) this amounts to proving that \(U \cap V\) is affine, which is true, and that the ring map \[k[x] \otimes_{\mathbf{Z}} k[y] \longrightarrow k[x, y]/(xy - 1)\] is surjective. This is clear because any element in the right hand side can be written as a sum of a polynomial in \(x\) and a polynomial in \(y\).
Lemma 26.21.9 (01KR) official page ↗
Let \(f : X \to T\) and \(g : Y \to T\) be morphisms of schemes with the same target. Let \(h : T \to S\) be a morphism of schemes. Then the induced morphism \(i : X \times_T Y \to X \times_S Y\) is an immersion. If \(T \to S\) is separated, then \(i\) is a closed immersion. If \(T \to S\) is quasi-separated, then \(i\) is a quasi-compact morphism.
Proof. By general category theory the following diagram \[\xymatrix{ X \times_T Y \ar[r] \ar[d] & X \times_S Y \ar[d] \\ T \ar[r]^{\Delta_{T/S}} \ar[r] & T \times_S T }\] is a fibre product diagram. The lemma follows from Lemmas 26.21.2, 26.17.6 and 26.19.3.
Lemma 26.21.10 (01KS) official page ↗
Let \(g : X \to Y\) be a morphism of schemes over \(S\). The morphism \(i : X \to X \times_S Y\) is an immersion. If \(Y\) is separated over \(S\) it is a closed immersion. If \(Y\) is quasi-separated over \(S\) it is quasi-compact.
Proof. This is a special case of Lemma 26.21.9 applied to the morphism \(X = X \times_Y Y \to X \times_S Y\).
Lemma 26.21.11 (01KT) official page ↗
Let \(f : X \to S\) be a morphism of schemes. Let \(s : S \to X\) be a section of \(f\) (in a formula \(f \circ s = \text{id}_S\)). Then \(s\) is an immersion. If \(f\) is separated then \(s\) is a closed immersion. If \(f\) is quasi-separated, then \(s\) is quasi-compact.
Proof. This is a special case of Lemma 26.21.10 applied to \(g =s\) so the morphism \(i = s : S \to S \times_S X\).
Lemma 26.21.12 (01KU) official page ↗
Permanence properties.
A composition of separated morphisms is separated.
A composition of quasi-separated morphisms is quasi-separated.
The base change of a separated morphism is separated.
The base change of a quasi-separated morphism is quasi-separated.
A (fibre) product of separated morphisms is separated.
A (fibre) product of quasi-separated morphisms is quasi-separated.
Proof. Let \(X \to Y \to Z\) be morphisms. Assume that \(X \to Y\) and \(Y \to Z\) are separated. The composition \[X \to X \times_Y X \to X \times_Z X\] is closed because the first one is by assumption and the second one by Lemma 26.21.9. The same argument works for “quasi-separated” (with the same references).
Let \(f : X \to Y\) be a morphism of schemes over a base \(S\). Let \(S' \to S\) be a morphism of schemes. Let \(f' : X_{S'} \to Y_{S'}\) be the base change of \(f\). Then the diagonal morphism of \(f'\) is a morphism \[\Delta_{f'} : X_{S'} = S' \times_S X \longrightarrow X_{S'} \times_{Y_{S'}} X_{S'} = S' \times _S (X \times_Y X)\] which is easily seen to be the base change of \(\Delta_f\). Thus (3) and (4) follow from the fact that closed immersions and quasi-compact morphisms are preserved under arbitrary base change (Lemmas 26.17.6 and 26.19.3).
If \(f : X \to Y\) and \(g : U \to V\) are morphisms of schemes over a base \(S\), then \(f \times g\) is the composition of \(X \times_S U \to X \times_S V\) (a base change of \(g\)) and \(X \times_S V \to Y \times_S V\) (a base change of \(f\)). Hence (5) and (6) follow from (1) – (4).
Lemma 26.21.13 (01KV) official page ↗
Slogan: Separated and quasi-separated morphisms satisfy cancellation.
Let \(f : X \to Y\) and \(g : Y \to Z\) be morphisms of schemes. If \(g \circ f\) is separated then so is \(f\). If \(g \circ f\) is quasi-separated then so is \(f\).
Proof. Assume that \(g \circ f\) is separated. Consider the factorization \(X \to X \times_Y X \to X \times_Z X\) of the diagonal morphism of \(g \circ f\). By Lemma 26.21.9 the last morphism is an immersion. By assumption the image of \(X\) in \(X \times_Z X\) is closed. Hence it is also closed in \(X \times_Y X\). Thus we see that \(X \to X \times_Y X\) is a closed immersion by Lemma 26.10.4.
Assume that \(g \circ f\) is quasi-separated. Let \(V \subset Y\) be an affine open which maps into an affine open of \(Z\). Let \(U_1, U_2 \subset X\) be affine opens which map into \(V\). Then \(U_1 \cap U_2\) is a finite union of affine opens because \(U_1, U_2\) map into a common affine open of \(Z\). Since we may cover \(Y\) by affine opens like \(V\) we deduce the lemma from Lemma 26.21.6.
Lemma 26.21.14 (03GI) official page ↗
Let \(f : X \to Y\) and \(g : Y \to Z\) be morphisms of schemes. If \(g \circ f\) is quasi-compact and \(g\) is quasi-separated then \(f\) is quasi-compact.
Proof. This is true because \(f\) equals the composition \((1, f) : X \to X \times_Z Y \to Y\). The first map is quasi-compact by Lemma 26.21.11 because it is a section of the quasi-separated morphism \(X \times_Z Y \to X\) (a base change of \(g\), see Lemma 26.21.12). The second map is quasi-compact as it is the base change of \(g \circ f\), see Lemma 26.19.3. And compositions of quasi-compact morphisms are quasi-compact, see Lemma 26.19.4.
Lemma 26.21.15 (01KN) official page ↗
An affine scheme is separated. A morphism from an affine scheme to another scheme is separated.
Proof. Let \(U = \Spec(A)\) be an affine scheme. Then \(U \to \Spec(\mathbf{Z})\) has closed diagonal by Lemma 26.21.1. Thus \(U\) is separated by Definition 26.21.3. If \(U \to X\) is a morphism of schemes, then we can apply Lemma 26.21.13 to the morphisms \(U \to X \to \Spec(\mathbf{Z})\) to conclude that \(U \to X\) is separated.
You may have been wondering whether the condition of only considering pairs of affine opens whose image is contained in an affine open is really necessary to be able to conclude that their intersection is affine. Often it isn’t!
Lemma 26.21.16 (01KW) official page ↗
Let \(f : X \to S\) be a morphism. Assume \(f\) is separated and \(S\) is a separated scheme. Suppose \(U \subset X\) and \(V \subset X\) are affine open. Then \(U \cap V\) is affine (and a closed subscheme of \(U \times V\)).
Proof. In this case \(X\) is separated by Lemma 26.21.12. Hence \(U \cap V\) is affine by applying Lemma 26.21.7 to the morphism \(X \to \Spec(\mathbf{Z})\).
On the other hand, the following example shows that we cannot expect the image of an affine to be contained in an affine.
Example 26.21.17 (01KX) official page ↗
Consider the nonaffine scheme \(U = \Spec(k[x, y]) \setminus \{(x, y)\}\) of Example 26.9.3. On the other hand, consider the scheme \[\mathbf{GL}_{2, k} = \Spec(k[a, b, c, d, 1/ad - bc]).\] There is a morphism \(\mathbf{GL}_{2, k} \to U\) corresponding to the ring map \(x \mapsto a\), \(y \mapsto b\). It is easy to see that this is a surjective morphism, and hence the image is not contained in any affine open of \(U\). In fact, the affine scheme \(\mathbf{GL}_{2, k}\) also surjects onto \(\mathbf{P}^1_k\), and \(\mathbf{P}^1_k\) does not even have an immersion into any affine scheme.
Remark 26.21.18 (0816) official page ↗
Let \(P\) equal one of the following \(4\) properties: “quasi-separated”, “separated”, “quasi-compact and quasi-separated”, or “quasi-compact and separated”. Then the following are true
Any affine scheme has \(P\).
Given a morphism \(f : X \to Y\) of scheme where \(Y\) has \(P\), then \(f\) has \(P\) if and only if \(X\) has \(P\).
If \(X \to Y\) and \(Z \to Y\) are morphisms of schemes and \(X\), \(Y\), \(Z\) have \(P\), then \(X \times_Y Z\) has \(P\).
Statement (1) is clear. Let \(f : X \to Y\) be as in (2). If \(f\) has \(P\), then so does \(X\) by Lemmas 26.21.12 and 26.19.4 applied to \(X \to Y \to \Spec(\mathbf{Z})\). If \(X\) has \(P\), then so does \(f\) by Lemmas 26.21.13 and 26.21.14 applied to \(X \to Y \to \Spec(\mathbf{Z})\). Let \(X \to Y\) and \(Z \to Y\) be as in (3). Then the projection \(X \times_Y Z \to Z\) has \(P\) as a base change of the arrow \(X \to Y\) which has \(P\) by (2), see Lemmas 26.21.12 and 26.19.3. Hence \(X \times_Y Z\) has \(P\) by (2).