The Stacks project, tag 0H3Y, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/0H3Y
Generic flatness stratification
We can use generic flatness to construct a stratification of the base such that a given module becomes flat over the strata.
Lemma 37.54.1 [Generic flatness stratification] (0ASY) official page ↗
Let \(f : X \to S\) be a morphism of finite presentation between quasi-compact and quasi-separated schemes. Let \(\mathcal{F}\) be an \(\mathcal{O}_X\)-module of finite presentation. Then there exists a \(t \geq 0\) and closed subschemes \[S \supset S_0 \supset S_1 \supset \ldots \supset S_t = \emptyset\] such that \(S_i \to S\) is defined by a finite type ideal sheaf, \(S_0 \subset S\) is a thickening, and \(\mathcal{F}\) pulled back to \(X \times_S (S_i \setminus S_{i + 1})\) is flat over \(S_i \setminus S_{i + 1}\).
Proof. We can find a cartesian diagram \[\xymatrix{ X \ar[d] \ar[r] & X_0 \ar[d] \\ S \ar[r] & S_0 }\] and a finitely presented \(\mathcal{O}_{X_0}\)-module \(\mathcal{F}_0\) which pulls back to \(\mathcal{F}\) such that \(X_0\) and \(S_0\) are of finite type over \(\mathbf{Z}\). See Limits, Proposition 32.5.4 and Lemmas 32.10.1 and 32.10.2. Thus we may assume \(X\) and \(S\) are of finite type over \(\mathbf{Z}\) and \(\mathcal{F}\) is a coherent \(\mathcal{O}_X\)-module.
Assume \(X\) and \(S\) are of finite type over \(\mathbf{Z}\) and \(\mathcal{F}\) is a coherent \(\mathcal{O}_X\)-module. In this case every quasi-coherent ideal is of finite type, hence we do not have to check the condition that \(S_i\) is cut out by a finite type ideal. Set \(S_0 = S_{red}\) equal to the reduction of \(S\). By generic flatness as stated in Morphisms, Proposition 29.28.2 there is a dense open \(U_0 \subset S_0\) such that \(\mathcal{F}\) pulled back to \(X \times_S U_0\) is flat over \(U_0\). Let \(S_1 \subset S_0\) be the reduced closed subscheme whose underlying closed subset is \(S \setminus U_0\). We continue in this way, provided \(S_1 \not = \emptyset\), to find \(S_0 \supset S_1 \supset \ldots\). Because \(S\) is Noetherian any descending chain of closed subsets stabilizes hence we see that \(S_t = \emptyset\) for some \(t \geq 0\).
Lemma 37.54.2 (0H3Z) official page ↗
Let \(f : X \to S\) be a morphism of finite presentation between quasi-compact and quasi-separated schemes. Then there exists a \(t \geq 0\) and closed subschemes \[S \supset S_0 \supset S_1 \supset \ldots \supset S_t = \emptyset\] such that \(S_i \to S\) is defined by a finite type ideal sheaf, \(S_0 \subset S\) is a thickening, and \(X \times_S (S_i \setminus S_{i + 1})\) is flat over \(S_i \setminus S_{i + 1}\).
Proof. Apply Lemma 37.54.1 with \(\mathcal{F} = \mathcal{O}_X\).
Lemma 37.54.3 [Longke Tang] (0H89) official page ↗
Let \(f : X \to S\) be a surjective morphism of finite presentation. Let \(M\) be an object of \(D_\QCoh(\mathcal{O}_S)\) such that \(H^i(M) = 0\) for \(i > 0\). The following are equivalent
\(M\) is isomorphic to a flat \(\mathcal{O}_S\)-module placed in degree \(0\),
\(Lf^*M\) is isomorphic to a flat \(\mathcal{O}_X\)-module placed in degree \(0\).
Proof. We omit the proof that (1) implies (2). Assume (2). To prove (1) is a local question, hence we may assume that \(S\) is affine. Choose a stratification \(S \supset S_0 \supset S_1 \supset \ldots \supset S_t = \emptyset\) as in Lemma 37.54.2. Set \(T_i = S_i \setminus S_{i - 1}\) and \(Y_i = X \times_S T_i\). Denote \(g_i : T_i \to S\) and \(h_i : Y_i \to X\) the inclusion morphisms. Since \(f\) is surjective, the morphisms \(f_i : X_i \to T_i\) are surjective and flat. Since \(Lh_i^* \circ Lf^* = Lf_i^* \circ Lg_i^*\) we conclude from (2) that \(Lf_i^* Lg_i^*M\) is isomorphic to a flat \(\mathcal{O}_{Y_i}\)-module placed in degree \(0\). Since \(f_i\) is flat and surjective, we see that \(Lg_i^*M\) is isomorphic to a flat \(\mathcal{O}_{T_i}\)-module placed in degree \(0\).
We will prove this implies the result by induction on \(t\). We will use the following notation: \(S = \Spec(A)\) and \(M\) is the object of \(D_\QCoh(\mathcal{O}_S)\) corresponding to \(N\) in \(D(A)\), see Derived Categories of Schemes, Lemma 36.3.5.
Base case: \(t = 1\). Write \(S_0 = \Spec(A/I)\) where \(I\) is a finite generated ideal. Then \(I\) is nilpotent as \(S_0 = S\) set theoretically. The assumption is that \(N \otimes_A^\mathbf{L} A/I\) has tor amplitude in \([0, 0]\). By More on Algebra, Lemma 15.68.20 the same is true for \(N\).
Induction step. Assume \(t > 1\). Write \(S_{t - 1} = \Spec(A/I)\) where \(I = (f_1, \ldots, f_r)\) is a finitely generated ideal. We will argue by induction on \(r\). Observe that \(N_{f_r} = N \otimes_A^\mathbf{L} A_{f_r}\) in \(D(A_{f_r})\) has tor amplitude in \([0, 0]\) by induction hypothesis (because the stratification on the principal open \(D(f_r)\) has length at most \(t - 1\)). On the other hand, consider \(N' = N \otimes_A^\mathbf{L} A/f_rA\) in \(D(A/f_rA)\). Setting \(S' = \Spec(A/f_rA)\) we obtain a stratification \[S' \supset S' \cap S_0 \supset S' \cap S_1 \supset \ldots \supset S' \cap S_{t - 1} \supset S' \cap S_t = \emptyset\] where \(S' \cap S_{t - 1}\) is cut out by \(r - 1\) equations in \(S'\). Similarly to before, the derived pullbacks of \(M\) to the parts \(S' \cap S_i \setminus S' \cap S_{i + 1}\) are of tor amplitude in \([0, 0]\). Whence by induction on \(r\) we conclude that \(N'\) has tor amplitude in \([0, 0]\). Then we finally conclude that \(N\) has tor amplitude in \([0, 0]\) by More on Algebra, Lemma 15.104.7.
Lemma 37.54.4 (0H40) official page ↗
Let \(R\) be a Noetherian domain. Let \(R \to A \to B\) be finite type ring maps. Let \(M\) be a finite \(A\)-module and let \(N\) a finite \(B\)-module. Let \(M \to N\) be an \(A\)-linear map. There exists an nonzero \(f \in R\) such that the cokernel of \(M_f \to N_f\) is a flat \(R_f\)-module.
Proof. By replacing \(M\) by the image of \(M \to N\), we may assume \(M \subset N\). Choose a filtration \(0 = N_0 \subset N_1 \subset \ldots \subset N_t = N\) such that \(N_i/N_{i - 1} = B/\mathfrak q_i\) for some prime ideal \(\mathfrak q_i \subset B\), see Algebra, Lemma 10.62.1. Set \(M_i = M \cap N_i\). Then \(Q = N/M\) has a filtration by the submodules \(Q_i = N_i/M_i\). It suffices to prove \(Q_i/Q_{i - 1}\) becomes flat after localizing at a nonzero element of \(f\) (since extensions of flat modules are flat by Algebra, Lemma 10.39.13). Since \(Q_i/Q_{i - 1}\) is isomorphic to the cokernel of the map \(M_i/M_{i - 1} \to N_i/N_{i - 1}\), we reduce to the case discussed in the next paragraph.
Assume \(B\) is a domain and \(M \subset N = B\). After replacing \(A\) by the image of \(A\) in \(B\) we may assume \(A \subset B\). By generic flatness, we may assume \(A\) and \(B\) are flat over \(R\) (Algebra, Lemma 10.118.1). It now suffices to show \(M \to B\) becomes \(R\)-universally injective after replacing \(R\) by a principal localization (Algebra, Lemma 10.82.7). By generic freeness, we can find a nonzero \(g \in A\) such that \(B_g\) is a free \(A_g\)-module (Algebra, Lemma 10.118.1). Thus we may choose a direct summand \(M' \subset B_g\) as an \(A_g\)-module, which is finite free as an \(A_g\)-module, and such that \(M \to B \to B_g\) factors through \(M'\). Clearly, it suffices to show that \(M \to M'\) becomes \(R\)-universally injective after replacing \(R\) by a principal localization.
Say \(M' = A_g^{\oplus n}\). Since \(M \subset M'\) is a finite \(A\)-module, we see that \(M\) is contained in \((1/g^m)A^{\oplus n}\) for some \(m \geq 0\). After changing our basis for \(M'\) we may assume \(M \subset A^{\oplus n}\). Then it suffices to show that \(A^{\oplus n}/M\) and \(A_g/A\) become \(R\)-flat after replacing \(R\) by a principal localization. Namely, then \(M \to A^{\oplus n}\) and \(A^{\oplus n} \to A_g^{\oplus n}\) are universally injective by Algebra, Lemma 10.39.12 and consequently so is the composition \(M \to M' = A_g^{\oplus n}\).
By generic flatness (see reference above), we may assume the module \(A^{\oplus n}/M\) is \(R\)-flat. For the quotient \(A_g/A\) we use the fact that \[A_g/A = \colim (1/g^m)A/A \cong \colim A/g^mA\] and the module \(A/g^mA\) has a filtration of length \(m\) whose successive quotients are isomorphic to \(A/gA\). Again by generic flatness we may assume \(A/gA\) is \(R\)-flat and hence each \(A/g^mA\) is \(R\)-flat, and hence so is \(A_g/A\).
Let \(f : X \to Y\) be a morphism of schemes over a base scheme \(S\). Let \(Z \subset Y\) be the scheme theoretic image of \(f\), see Morphisms, Section 29.6. Let \(g : S' \to S\) be a morphism of schemes and let \(f' : X \times_S S' \to Y \times_S S'\) be the base change of \(f\) by \(g\). It is not always true that \(Z \times_S S' \subset Y \times_S S'\) is the scheme theoretic image of \(f'\). Let us say that formation of the scheme theoretic image of \(f/S\) commutes with arbitrary base change if for every \(g\) as above the scheme theoretic image of \(f'\) is equal to \(Z \times_S S'\).
Lemma 37.54.5 (0H41) official page ↗
Let \(S\) be a quasi-compact and quasi-separated scheme. Let \(f : X \to Y\) be a morphism of schemes over \(S\) with both \(X\) and \(Y\) of finite presentation over \(S\). Then there exists a \(t \geq 0\) and closed subschemes \[S \supset S_0 \supset S_1 \supset \ldots \supset S_t = \emptyset\] with the following properties:
\(S_i \to S\) is defined by a finite type ideal sheaf,
\(S_0 \subset S\) is a thickening, and
with \(T_i = S_i \setminus S_{i + 1}\) and \(f_i\) the base change of \(f\) to \(T_i\) we have: formation of the scheme theoretic image of \(f_i/T_i\) commutes with arbitrary base change (see discussion above the lemma).
Proof. We can find a commutative diagram \[\xymatrix{ X \ar[d] \ar[r] & Y \ar[d] \ar[r] & S \ar[d] \\ U \ar[r] & V \ar[r] & W }\] with cartesian squares such that \(U\), \(V\), \(W\) are of finite type over \(\mathbf{Z}\). Namely, first write \(S\) as a cofiltered limit of finite type schemes over \(\mathbf{Z}\) with affine transition morphisms using Limits, Proposition 32.5.4 and then descend the morphism \(X \to Y\) using Limits, Lemma 32.10.1. This reduces us to the case discussed in the next paragraph.
Assume \(S\) is Noetherian. In this case every quasi-coherent ideal is of finite type, hence we do not have to check the condition that \(S_i\) is cut out by a finite type ideal. Set \(S_0 = S_{red}\) equal to the reduction of \(S\). Let \(\eta \in S_0\) be a generic point of an irreducible component of \(S_0\). By Noetherian induction on the underlying topological space of \(S_0\), we may assume the result holds for any closed subscheme of \(S_0\) not containing \(\eta\). Thus it suffices to show that there exists an open neighbourhood \(U_0 \subset S_0\) such that the base change \(f_0\) of \(f\) to \(U_0\) has property (3).
Let \(R\) be a Noetherian domain. Let \(f : X \to Y\) be a morphism of finite type schemes over \(R\). By the discussion in the previous paragraph it suffices to show that after replacing \(R\) by \(R_g\) for some \(g \in R\) nonzero and \(X\), \(Y\) by their base changes to \(R_g\), formation of the scheme theoretic image of \(f/R\) commutes with arbitrary base change.
Let \(Y = V_1 \cup \ldots V_n\) be an affine open covering. Let \(U_i = f^{-1}(V_i)\). If the statement is true for each of the morphisms \(U_i \to V_i\) over \(R\), then it holds for \(f\). Namely, the scheme theoretic image of \(U_i \to V_i\) is the intersection of \(V_i\) with the scheme theoretic image of \(f : X \to Y\) by Morphisms, Lemma 29.6.3. Thus we may assume \(Y\) is affine.
Let \(X = U_1 \cup \ldots U_n\) be an affine open covering. Then the scheme theoretic image of \(X \to Y\) is the same as the scheme theoretic imge of \(\coprod U_i \to Y\). Thus we may assume \(X\) is affine.
Say \(X = \Spec(A)\) and \(Y = \Spec(B)\) and \(f\) corresponds to the \(R\)-algebra map \(\varphi : A \to B\). Then the scheme theoretic image of \(f\) is \(\Spec(A/\Ker(\varphi))\) and similarly after base change (by an affine morphism, but it is enough to check for those). Thus formation of the scheme theoretic image commutes with base change if \(\Ker(\varphi \otimes_R R') = \Ker(\varphi) \otimes_R R'\) for all ring maps \(R \to R'\).
After replacing \(R\), \(A\), \(B\) by \(R_g\), \(A_g\), \(B_g\) for a suitable nonzero \(g\) in \(R\), we may assume \(A\) and \(B\) are flat over \(R\). By Lemma 37.54.4 we may also assume \(B/A\) is a flat \(R\)-module. Then \(0 \to \Ker(\varphi) \to A \to B \to B/A \to 0\) is an exact sequence of flat \(R\)-modules, which implies the desired base change statement.