A XX is connected if its underlying in the is connected: there do not exist disjoint nonempty open subsets U,V⊆XU,V\subseteq X with X=U∪VX=U\cup V. Equivalently, the only subsets that are both open and closed are ∅\varnothing and XX.

For an X=Spec⁡AX=\operatorname{Spec}A, this is equivalent to AA having no idempotents other than 00 and 11:

e2=e⟹e∈{0,1}.e^2=e\quad\Longrightarrow\quad e\in\{0,1\}.
Example

The decomposition

Spec⁡(K1×K2)≅Spec⁡K1⨿Spec⁡K2\operatorname{Spec}(K_1\times K_2) \cong \operatorname{Spec}K_1\amalg\operatorname{Spec}K_2

shows that the spectrum of a product of two fields is disconnected, whereas the one-point spectrum of a field is connected.

Warning

Connected does not mean , path connected, or connected in a Euclidean topology. Schemes are being tested in their Zariski topology, whose open sets are usually much larger than familiar analytic open sets.