Stacks project reader · Commutative Algebra · Search · Suggestions (AI)

The Stacks project, tag 00RD, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/00RD

Openness of Cohen-Macaulay loci

In this section we characterize the Cohen-Macaulay property of finite type algebras in terms of flatness. We then use this to prove the set of points where such an algebra is Cohen-Macaulay is open.

Lemma 10.130.1 (00RE) official page ↗

Let \(S\) be a finite type algebra over a field \(k\). Let \(\varphi : k[y_1, \ldots, y_d] \to S\) be a quasi-finite ring map. As subsets of \(\Spec(S)\) we have \[\{ \mathfrak q \mid S_{\mathfrak q} \text{ flat over }k[y_1, \ldots, y_d]\} = \{ \mathfrak q \mid S_{\mathfrak q} \text{ CM and }\dim_{\mathfrak q}(S/k) = d\}\] For notation see Definition 10.125.1.

Proof. Let \(\mathfrak q \subset S\) be a prime. Denote \(\mathfrak p = k[y_1, \ldots, y_d] \cap \mathfrak q\). Note that always \(\dim(S_{\mathfrak q}) \leq \dim(k[y_1, \ldots, y_d]_{\mathfrak p})\) by Lemma 10.125.4 for example. Moreover, the field extension \(\kappa(\mathfrak q)/\kappa(\mathfrak p)\) is finite and hence \(\text{trdeg}_k(\kappa(\mathfrak p)) = \text{trdeg}_k(\kappa(\mathfrak q))\).

Let \(\mathfrak q\) be an element of the left hand side. Then Lemma 10.112.9 applies and we conclude that \(S_{\mathfrak q}\) is Cohen-Macaulay and \(\dim(S_{\mathfrak q}) = \dim(k[y_1, \ldots, y_d]_{\mathfrak p})\). Combined with the equality of transcendence degrees above and Lemma 10.116.3 this implies that \(\dim_{\mathfrak q}(S/k) = d\). Hence \(\mathfrak q\) is an element of the right hand side.

Let \(\mathfrak q\) be an element of the right hand side. By the equality of transcendence degrees above, the assumption that \(\dim_{\mathfrak q}(S/k) = d\) and Lemma 10.116.3 we conclude that \(\dim(S_{\mathfrak q}) = \dim(k[y_1, \ldots, y_d]_{\mathfrak p})\). Hence Lemma 10.128.1 applies and we see that \(\mathfrak q\) is an element of the left hand side.

Lemma 10.130.2 (00RF) official page ↗

Let \(S\) be a finite type algebra over a field \(k\). The set of primes \(\mathfrak q\) such that \(S_{\mathfrak q}\) is Cohen-Macaulay is open in \(S\).

This lemma is a special case of Lemma 10.130.4 below, so you can skip straight to the proof of that lemma if you like.

Proof. Let \(\mathfrak q \subset S\) be a prime such that \(S_{\mathfrak q}\) is Cohen-Macaulay. We have to show there exists a \(g \in S\), \(g \not \in \mathfrak q\) such that the ring \(S_g\) is Cohen-Macaulay. For any \(g \in S\), \(g \not \in \mathfrak q\) we may replace \(S\) by \(S_g\) and \(\mathfrak q\) by \(\mathfrak qS_g\). Combining this with Lemmas 10.115.5 and 10.116.3 we may assume that there exists a finite injective ring map \(k[y_1, \ldots, y_d] \to S\) with \(d = \dim(S_{\mathfrak q}) + \text{trdeg}_k(\kappa(\mathfrak q))\). Set \(\mathfrak p = k[y_1, \ldots, y_d] \cap \mathfrak q\). By construction we see that \(\mathfrak q\) is an element of the right hand side of the displayed equality of Lemma 10.130.1. Hence it is also an element of the left hand side.

By Theorem 10.129.4 we see that for some \(g \in S\), \(g \not \in \mathfrak q\) the ring \(S_g\) is flat over \(k[y_1, \ldots, y_d]\). Hence by the equality of Lemma 10.130.1 again we conclude that all local rings of \(S_g\) are Cohen-Macaulay as desired.

Lemma 10.130.3 (00RG) official page ↗

Let \(k\) be a field. Let \(S\) be a finite type \(k\) algebra. The set of Cohen-Macaulay primes forms a dense open \(U \subset \Spec(S)\).

Proof. The set is open by Lemma 10.130.2. It contains all minimal primes \(\mathfrak q \subset S\) since the local ring at a minimal prime \(S_{\mathfrak q}\) has dimension zero and hence is Cohen-Macaulay.

Lemma 10.130.4 (00RH) official page ↗

Let \(R\) be a ring. Let \(R \to S\) be of finite presentation and flat. For any \(d \geq 0\) the set \[\left\{ \begin{matrix} \mathfrak q \in \Spec(S) \text{ such that setting }\mathfrak p = R \cap \mathfrak q \text{ the fibre ring}\\ S_{\mathfrak q}/\mathfrak pS_{\mathfrak q} \text{ is Cohen-Macaulay} \text{ and } \dim_{\mathfrak q}(S/R) = d \end{matrix} \right\}\] is open in \(\Spec(S)\).

Proof. Let \(\mathfrak q\) be an element of the set indicated, with \(\mathfrak p\) the corresponding prime of \(R\). We have to find a \(g \in S\), \(g \not \in \mathfrak q\) such that all fibre rings of \(R \to S_g\) are Cohen-Macaulay. During the course of the proof we may (finitely many times) replace \(S\) by \(S_g\) for a \(g \in S\), \(g \not \in \mathfrak q\). Thus by Lemma 10.125.2 we may assume there is a quasi-finite ring map \(R[t_1, \ldots, t_d] \to S\) with \(d = \dim_{\mathfrak q}(S/R)\). Let \(\mathfrak q' = R[t_1, \ldots, t_d] \cap \mathfrak q\). By Lemma 10.130.1 we see that the ring map \[R[t_1, \ldots, t_d]_{\mathfrak q'} / \mathfrak p R[t_1, \ldots, t_d]_{\mathfrak q'} \longrightarrow S_{\mathfrak q}/\mathfrak p S_{\mathfrak q}\] is flat. Hence by the critère de platitude par fibres Lemma 10.128.8 we see that \(R[t_1, \ldots, t_d]_{\mathfrak q'} \to S_{\mathfrak q}\) is flat. Hence by Theorem 10.129.4 we see that for some \(g \in S\), \(g \not \in \mathfrak q\) the ring map \(R[t_1, \ldots, t_d] \to S_g\) is flat. Replacing \(S\) by \(S_g\) we see that for every prime \(\mathfrak r \subset S\), setting \(\mathfrak r' = R[t_1, \ldots, t_d] \cap \mathfrak r\) and \(\mathfrak p' = R \cap \mathfrak r\) the local ring map \(R[t_1, \ldots, t_d]_{\mathfrak r'} \to S_{\mathfrak r}\) is flat. Hence also the base change \[R[t_1, \ldots, t_d]_{\mathfrak r'} / \mathfrak p' R[t_1, \ldots, t_d]_{\mathfrak r'} \longrightarrow S_{\mathfrak r}/\mathfrak p' S_{\mathfrak r}\] is flat. Hence by Lemma 10.130.1 applied with \(k = \kappa(\mathfrak p')\) we see \(\mathfrak r\) is in the set of the lemma as desired.

Lemma 10.130.5 (00RI) official page ↗

Let \(R\) be a ring. Let \(R \to S\) be flat of finite presentation. The set of primes \(\mathfrak q\) such that the fibre ring \(S_{\mathfrak q} \otimes_R \kappa(\mathfrak p)\), with \(\mathfrak p = R \cap \mathfrak q\) is Cohen-Macaulay is open and dense in every fibre of \(\Spec(S) \to \Spec(R)\).

Proof. The set, call it \(W\), is open by Lemma 10.130.4. It is dense in the fibres because the intersection of \(W\) with a fibre is the corresponding set of the fibre to which Lemma 10.130.3 applies.

Lemma 10.130.6 (00RJ) official page ↗

Let \(k\) be a field. Let \(S\) be a finite type \(k\)-algebra. Let \(K/k\) be a field extension, and set \(S_K = K \otimes_k S\). Let \(\mathfrak q \subset S\) be a prime of \(S\). Let \(\mathfrak q_K \subset S_K\) be a prime of \(S_K\) lying over \(\mathfrak q\). Then \(S_{\mathfrak q}\) is Cohen-Macaulay if and only if \((S_K)_{\mathfrak q_K}\) is Cohen-Macaulay.

Proof. During the course of the proof we may (finitely many times) replace \(S\) by \(S_g\) for any \(g \in S\), \(g \not \in \mathfrak q\). Hence using Lemma 10.115.5 we may assume that \(\dim(S) = \dim_{\mathfrak q}(S/k) =: d\) and find a finite injective map \(k[x_1, \ldots, x_d] \to S\). Note that this also induces a finite injective map \(K[x_1, \ldots, x_d] \to S_K\) by base change. By Lemma 10.116.6 we have \(\dim_{\mathfrak q_K}(S_K/K) = d\). Set \(\mathfrak p = k[x_1, \ldots, x_d] \cap \mathfrak q\) and \(\mathfrak p_K = K[x_1, \ldots, x_d] \cap \mathfrak q_K\). Consider the following commutative diagram of Noetherian local rings \[\xymatrix{ S_{\mathfrak q} \ar[r] & (S_K)_{\mathfrak q_K} \\ k[x_1, \ldots, x_d]_{\mathfrak p} \ar[r] \ar[u] & K[x_1, \ldots, x_d]_{\mathfrak p_K} \ar[u] }\] By Lemma 10.130.1 we have to show that the left vertical arrow is flat if and only if the right vertical arrow is flat. Because the bottom arrow is flat this equivalence holds by Lemma 10.100.1.

Lemma 10.130.7 (00RK) official page ↗

Let \(R\) be a ring. Let \(R \to S\) be of finite type. Let \(R \to R'\) be any ring map. Set \(S' = R' \otimes_R S\). Denote \(f : \Spec(S') \to \Spec(S)\) the map associated to the ring map \(S \to S'\). Set \(W\) equal to the set of primes \(\mathfrak q\) such that the fibre ring \(S_{\mathfrak q} \otimes_R \kappa(\mathfrak p)\), \(\mathfrak p = R \cap \mathfrak q\) is Cohen-Macaulay, and let \(W'\) denote the analogue for \(S'/R'\). Then \(W' = f^{-1}(W)\).

Proof. Trivial from Lemma 10.130.6 and the definitions.

Lemma 10.130.8 (00RL) official page ↗

Let \(R\) be a ring. Let \(R \to S\) be a ring map which is (a) flat, (b) of finite presentation, (c) has Cohen-Macaulay fibres. Then we can write \(S = S_0 \times \ldots \times S_n\) as a product of \(R\)-algebras \(S_d\) such that each \(S_d\) satisfies (a), (b), (c) and has all fibres equidimensional of dimension \(d\).

Proof. For each integer \(d\) denote \(W_d \subset \Spec(S)\) the set defined in Lemma 10.130.4. Clearly we have \(\Spec(S) = \coprod W_d\), and each \(W_d\) is open by the lemma we just quoted. Hence the result follows from Lemma 10.24.3.