A space is connected if it can't be split up into two independent parts. Every space is a disjoint union (but not necessarily a coproduct in the category of spaces) of connected components. One often studies topological ideas first for connected spaces and then generalises to general spaces; this is especially true if one is studying such nice topological spaces that every space is a coproduct of connected components.
Speaking category-theoretically a topological space is connected if the representable functor
preserves coproducts. It's actually enough to require that it preserves binary coproducts; in that case, notice that we always have a map
so is connected if this is always a bijection. This definition generalises to the notion of connected object in an extensive category.
Here are some equivalent ways to say that is connected in more elementary terms:
Many authors allow the empty space to be connected. You can get this concept from the elementary definitions above by changing ‘exactly one’ to ‘at most one’ and changing ‘if and only if’ to ‘if’. Categorially, this version of connectedness requires only that the maps
be surjections. However, many results come out more cleanly by disqualifying the empty space (much as one disqualifies when one defines the notion of prime number?). See also the discussion at empty space.
The elementary definitions above have been carefully phrased to be correct in constructive mathematics. One may also see classically equivalent forms that are constructively weaker.
The image of a connected space under a continuous map is connected.
Wide pushout?s of connected spaces are connected. (This would of course be false if the empty space were considered to be connected.) This follows from the hom-functor definition of connectedness, plus the fact that coproducts in commute with wide pullbacks. More memorably: connected colimits of connected spaces are connected.
An arbitrary product of connected spaces is connected.
The interval , as a subspace of , is connected. (This is the topological underpinning of the intermediate value theorem.)
If is a connected subspace and (i.e. if is between and its closure), then is connected.
Every topological space admits an equivalence relation where means that and belong to some subspace which is connected. The equivalence class of an element is thus the union of all connected subspaces containing ; it follows readily from the basic results above that is itself connected. It is called the connected component of . It is closed, by one of the basic results above.
Alternatively, observe that if and , where is a connected subspace and is clopen, then . Moreover, the intersection of all clopens containing is itself connected (because it cannot be further subdivided by a clopen). Hence
If we define connected components with this formula, then we can define a space to be connected if and only if it has exactly one connected component (or at most one, if you allow the empty space to be connected).
It is not generally true that a space is the coproduct (in ) of its connected components. For example, the connected components in Cantor space? (with its topology as a product of 2-point discrete spaces) are just the singletons, but the coproduct of the singleton subspaces carries the discrete topology; another example with this feature is the set of rational numbers with its absolute-value topology (the one induced as a subset of the real line).
Indeed, a space is the coproduct of its connected components precisely when it is locally connected (meaning that every point has a connected neighborhood). This occurs for example if there are only finitely many connected components (because then each connected component will be both closed and open).
For more on this see locally connected topos.
A space is totally disconnected if its connected components are precisely the singletons of .
An important variation on the theme of connectedness is path-connectedness. If is a space, define the path component to be the subspace of all for which there exists a continuous map where , . We say is path-connected if it has exactly one path component.
It follows easily from the basic results above that each path component is connected. However, it need not be closed (and therefore need not be the connected component of ). The topologist’s sine curve
provides a classic example of this happenstance. However, the path components and connected components coincide if is locally path-connected (meaning each point has an open neighborhood which is path-connected).
The basic categorical results 1., 2., and 3. above carry over upon replacing “connected” by “path-connected”. (As of course does 4., trivially.)