## 10.21 Connected components of spectra

Connected components of spectra are not as easy to understand as one may think at first. This is because we are used to the topology of locally connected spaces, but the spectrum of a ring is in general not locally connected.

Lemma 10.21.1. Let $R$ be a ring. Let $T \subset \mathop{\mathrm{Spec}}(R)$ be a subset of the spectrum. The following are equivalent

$T$ is closed and is a union of connected components of $\mathop{\mathrm{Spec}}(R)$,

$T$ is an intersection of open and closed subsets of $\mathop{\mathrm{Spec}}(R)$, and

$T = V(I)$ where $I \subset R$ is an ideal generated by idempotents.

Moreover, the ideal in (3) if it exists is unique.

**Proof.**
By Lemma 10.16.11 and Topology, Lemma 5.12.12 we see that (1) and (2) are equivalent. Assume (2) and write $T = \bigcap U_\alpha $ with $U_\alpha \subset \mathop{\mathrm{Spec}}(R)$ open and closed. Then $U_\alpha = D(e_\alpha )$ for some idempotent $e_\alpha \in R$ by Lemma 10.20.3. Then setting $I = (1 - e_\alpha )$ we see that $T = V(I)$, i.e., (3) holds. Finally, assume (3). Write $T = V(I)$ and $I = (e_\alpha )$ for some collection of idempotents $e_\alpha $. Then it is clear that $T = \bigcap V(e_\alpha ) = \bigcap D(1 - e_\alpha )$.

Suppose that $I$ is an ideal generated by idempotents. Let $e \in R$ be an idempotent such that $V(I) \subset V(e)$. Then by Lemma 10.16.2 we see that $e^ n \in I$ for some $n \geq 1$. As $e$ is an idempotent this means that $e \in I$. Hence we see that $I$ is generated by exactly those idempotents $e$ such that $T \subset V(e)$. In other words, the ideal $I$ is completely determined by the closed subset $T$ which proves uniqueness.
$\square$

Lemma 10.21.2. Let $R$ be a ring. A connected component of $\mathop{\mathrm{Spec}}(R)$ is of the form $V(I)$, where $I$ is an ideal generated by idempotents such that every idempotent of $R$ either maps to $0$ or $1$ in $R/I$.

**Proof.**
Let $\mathfrak p$ be a prime of $R$. By Lemma 10.16.11 we have see that the hypotheses of Topology, Lemma 5.12.10 are satisfied for the topological space $\mathop{\mathrm{Spec}}(R)$. Hence the connected component of $\mathfrak p$ in $\mathop{\mathrm{Spec}}(R)$ is the intersection of open and closed subsets of $\mathop{\mathrm{Spec}}(R)$ containing $\mathfrak p$. Hence it equals $V(I)$ where $I$ is generated by the idempotents $e \in R$ such that $e$ maps to $0$ in $\kappa (\mathfrak p)$, see Lemma 10.20.3. Any idempotent $e$ which is not in this collection clearly maps to $1$ in $R/I$.
$\square$

## Comments (2)

Comment #1146 by OlgaD on

Comment #1167 by Johan on