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

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

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

The decomposition

Spec(K1×K2)SpecK1⨿SpecK2\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.