The Stacks project, tag 05LK, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/05LK
Flattening over a closed subset of the base
Let \(R \to S\) be a ring map. Let \(I \subset R\) be an ideal. Let \(M\) be an \(S\)-module. In the following we will consider the following condition \[\begin{equation} \forall \mathfrak q \in V(IS) \subset \Spec(S) : M_{\mathfrak q}\text{ is flat over }R. \end{equation}\] Geometrically, this means that \(M\) is flat over \(R\) along the inverse image of \(V(I)\) in \(\Spec(S)\). If \(R\) and \(S\) are Noetherian rings and \(M\) is a finite \(S\)-module, then (15.18.0.1) is equivalent to the condition that \(M/I^nM\) is flat over \(R/I^n\) for all \(n \geq 1\), see Algebra, Lemma 10.99.11.
Lemma 15.18.1 (052X) official page ↗
Let \(R \to S\) be a ring map. Let \(I \subset R\) be an ideal. Let \(M\) be an \(S\)-module. Let \(R \to R'\) be a ring map and \(IR' \subset I' \subset R'\) an ideal. If (15.18.0.1) holds for \((R \to S, I, M)\), then (15.18.0.1) holds for \((R' \to S \otimes_R R', I', M \otimes_R R')\).
Proof. Assume (15.18.0.1) holds for \((R \to S, I \subset R, M)\). Let \(I'(S \otimes_R R') \subset \mathfrak q'\) be a prime of \(S \otimes_R R'\). Let \(\mathfrak q \subset S\) be the corresponding prime of \(S\). Then \(IS \subset \mathfrak q\). Note that \((M \otimes_R R')_{\mathfrak q'}\) is a localization of the base change \(M_{\mathfrak q} \otimes_R R'\). Hence \((M \otimes_R R')_{\mathfrak q'}\) is flat over \(R'\) as a localization of a flat module, see Algebra, Lemmas 10.39.7 and 10.39.18.
Lemma 15.18.2 (05LL) official page ↗
Let \(R \to S\) be a ring map. Let \(I \subset R\) be an ideal. Let \(M\) be an \(S\)-module. Let \(R \to R'\) be a ring map and \(IR' \subset I' \subset R'\) an ideal such that
the map \(V(I') \to V(I)\) induced by \(\Spec(R') \to \Spec(R)\) is surjective, and
\(R'_{\mathfrak p'}\) is flat over \(R\) for all primes \(\mathfrak p' \in V(I')\).
If (15.18.0.1) holds for \((R' \to S \otimes_R R', I', M \otimes_R R')\), then (15.18.0.1) holds for \((R \to S, I, M)\).
Proof. Assume (15.18.0.1) holds for \((R' \to S \otimes_R R', IR', M \otimes_R R')\). Pick a prime \(IS \subset \mathfrak q \subset S\). Let \(I \subset \mathfrak p \subset R\) be the corresponding prime of \(R\). By assumption there exists a prime \(\mathfrak p' \in V(I')\) of \(R'\) lying over \(\mathfrak p\) and \(R_{\mathfrak p} \to R'_{\mathfrak p'}\) is flat. Choose a prime \(\overline{\mathfrak q}' \subset \kappa(\mathfrak q) \otimes_{\kappa(\mathfrak p)} \kappa(\mathfrak p')\) which corresponds to a prime \(\mathfrak q' \subset S \otimes_R R'\) which lies over \(\mathfrak q\) and over \(\mathfrak p'\). Note that \((S \otimes_R R')_{\mathfrak q'}\) is a localization of \(S_{\mathfrak q} \otimes_{R_{\mathfrak p}} R'_{\mathfrak p'}\). By assumption the module \((M \otimes_R R')_{\mathfrak q'}\) is flat over \(R'_{\mathfrak p'}\). Hence Algebra, Lemma 10.100.1 implies that \(M_{\mathfrak q}\) is flat over \(R_{\mathfrak p}\) which is what we wanted to prove.
Lemma 15.18.3 (05LM) official page ↗
Let \(R \to S\) be a ring map of finite presentation. Let \(M\) be an \(S\)-module of finite presentation. Let \(R' = \colim_{\lambda \in \Lambda} R_\lambda\) be a directed colimit of \(R\)-algebras. Let \(I_\lambda \subset R_\lambda\) be ideals such that \(I_\lambda R_\mu \subset I_\mu\) for all \(\mu \geq \lambda\) and set \(I' = \colim_\lambda I_\lambda\). If (15.18.0.1) holds for \((R' \to S \otimes_R R', I', M \otimes_R R')\), then there exists a \(\lambda \in \Lambda\) such that (15.18.0.1) holds for \((R_\lambda \to S \otimes_R R_\lambda, I_\lambda, M \otimes_R R_\lambda)\).
Proof. We are going to write \(S_\lambda = S \otimes_R R_\lambda\), \(S' = S \otimes_R R'\), \(M_\lambda = M \otimes_R R_\lambda\), and \(M' = M \otimes_R R'\). The base change \(S'\) is of finite presentation over \(R'\) and \(M'\) is of finite presentation over \(S'\) and similarly for the versions with subscript \(\lambda\), see Algebra, Lemma 10.14.2. By Algebra, Theorem 10.129.4 the set \[U' = \{\mathfrak q' \in \Spec(S') \mid M'_{\mathfrak q'}\text{ is flat over }R'\}\] is open in \(\Spec(S')\). Note that \(V(I'S')\) is a quasi-compact space which is contained in \(U'\) by assumption. Hence there exist finitely many \(g'_j \in S'\), \(j = 1, \ldots, m\) such that \(D(g'_j) \subset U'\) and such that \(V(I'S') \subset \bigcup D(g'_j)\). Note that in particular \((M')_{g'_j}\) is a flat module over \(R'\).
We are going to pick increasingly large elements \(\lambda \in \Lambda\). First we pick it large enough so that we can find \(g_{j, \lambda} \in S_{\lambda}\) mapping to \(g'_j\). The inclusion \(V(I'S') \subset \bigcup D(g'_j)\) means that \(I'S' + (g'_1, \ldots, g'_m) = S'\) which can be expressed as \(1 = \sum z_sh_s + \sum f_jg'_j\) for some \(z_s \in I'\), \(h_s, f_j \in S'\). After increasing \(\lambda\) we may assume such an equation holds in \(S_\lambda\). Hence we may assume that \(V(I_\lambda S_\lambda) \subset \bigcup D(g_{j, \lambda})\). By Algebra, Lemma 10.168.1 we see that for some sufficiently large \(\lambda\) the modules \((M_\lambda)_{g_{j, \lambda}}\) are flat over \(R_\lambda\). In particular the module \(M_\lambda\) is flat over \(R_\lambda\) at all the primes lying over the ideal \(I_\lambda\).