# nLab connected space

### Context

#### Topology

topology

algebraic topology

# Contents

## Idea

A space is connected if it can't be split up into two independent parts. On this page we focus on connectedness for topological spaces.

Every topological space can be decomposed into disjoint maximal connected subspaces, called its connected components. The underlying set of a topological space is the disjoint union of the underlying sets of its connected components, but the space itself is not necessarily the coproduct of its connected components in the category of spaces.

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 (such as for example locally connected spaces; see below).

## Definitions

Speaking category-theoretically a topological space $X$ is connected if the representable functor

$\mathrm{hom}\left(X,-\right):\mathrm{Top}\to \mathrm{Set}$hom(X, -): Top \to Set

preserves coproducts. It's actually enough to require that it preserves binary coproducts (a detailed proof in a more general setting is given at connected object); in that case, notice that we always have a map

$\mathrm{hom}\left(X,Y\right)+\mathrm{hom}\left(X,Z\right)\to \mathrm{hom}\left(X,Y+Z\right),$hom(X,Y) + hom(X,Z) \to hom(X,Y + Z) ,

so $X$ 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 $X$ is connected in more elementary terms:

• Whenever $X\cong Y+Z$, where the right side is the coproduct of spaces $Y,Z$ (so that $Y,Z$ are identified with disjoint open subspaces of $X$), then exactly one of $Y,Z$ is inhabited (so the other is empty, making the inhabited one homeomorphic to $X$).
• If $K\subseteq X$ is clopen (both closed and open), then $K=X$ if and only if $K$ is inhabited.

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

$\mathrm{hom}\left(X,Y\right)+\mathrm{hom}\left(X,Z\right)\to \mathrm{hom}\left(X,Y+Z\right)$hom(X,Y) + hom(X,Z) \to hom(X,Y + Z)

be surjections. However, many results come out more cleanly by disqualifying the empty space (much as one disqualifies $1$ when one defines the notion of prime number). See also the discussion at empty space and too simple to be simple.

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.

## Basic results

###### Result

The image of a connected space $X$ under a continuous map $f:X\to Y$ is connected.

###### Result

Wide pushouts 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 $\mathrm{Set}$ commute with wide pullbacks. More memorably: connected colimits of connected spaces are connected.

###### Result

An arbitrary product of connected spaces is connected. (This relies on some special features of $\mathrm{Top}$. Discussion of this point can be found at connected object.)

###### Result

The interval $\left[0,1\right]$, as a subspace of $ℝ$, is connected. (This is the topological underpinning of the intermediate value theorem.)

###### Result

If $S\subseteq X$ is a connected subspace and $S\subseteq T\subseteq \overline{S}$ (i.e. if $T$ is between $S$ and its closure), then $T$ is connected.

## Exotic examples

The basic results above give a plethora of ways to construct connected spaces. More exotic examples are sometimes useful, especially for constructing counterexamples.

###### Example

The following, due to Bing, is a countable connected Hausdorff space. Let $Q=\left\{\left(x,y\right)\in ℚ×ℚ:y\ge 0\right\}$, topologized by defining a basis of neighborhoods ${N}_{ϵ,a,b}$ for each point $\left(a,b\right)\in Q$ and $ϵ>0$:

${N}_{a,b}≔\left\{\left(a,b\right)\right\}\cup \left\{\left(s,0\right)\in Q:\mid a+b/\theta -s\mid <ϵ\right\}\cup \left\{\left(s,0\right)\in Q:\mid a-b/\theta -s\mid <ϵ\right\}$N_{a, b} \coloneqq \{(a, b)\} \cup \{(s, 0) \in Q: {|a + b/\theta - s|} \lt \epsilon\} \cup \{(s, 0) \in Q: {|a - b/\theta - s|} \lt \epsilon\}

where $\theta <0$ is some chosen fixed irrational number. It is easy to see this space is Hausdorff (using the fact that $\theta$ is irrational). However, the closure of ${N}_{ϵ,a,b}$ consists of points $\left(x,y\right)$ of $Q×Q$ with either $\left(x-a\right)-ϵ\le \left(y-b\right)/\theta \le \left(x-a\right)+ϵ$ or $\left(x-a\right)-ϵ\le -\left(y-b\right)/\theta \le \left(x-a\right)+ϵ$, in other words, the union of two infinitely long strips of width $2ϵ$ and slopes $\theta$, $-\theta$. Clearly any two such closures intersect, and therefore the space is connected.

###### Example

This example is due to Golomb. Topologize the set of natural numbers $ℕ$ by taking a basis to consist of sets ${A}_{a,b}≔\left\{ak+b\mid k=1,2,\dots \right\}$, where $a,b\in ℕ$ are relatively prime. The space is Hausdorff, but the intersection of the closures of two non-empty open sets is never empty, so this space is connected.

## Connected components

Every topological space $X$ admits an equivalence relation $\sim$ where $x\sim y$ means that $x$ and $y$ belong to some subspace which is connected. The equivalence class $\mathrm{Conn}\left(x\right)$ of an element $x$ is thus the union of all connected subspaces containing $x$; it follows readily from Result 2 that $\mathrm{Conn}\left(x\right)$ is itself connected. It is called the connected component of $x$. It is closed, by Result 5. A space is connected if and only if it has exactly one connected component (or at most one, if you allow the empty space to be connected).

There is another equivalence relation ${\sim }_{q}$ where $x{\sim }_{q}y$ if $f\left(x\right)=f\left(y\right)$ for every continuous $f:X\to D$ mapping to a discrete space $D$. The equivalence class of $x$ may be alternatively described as the intersection of all clopens that contain $x$. This is called the quasi-component of $x$, denoted here as $\mathrm{QConn}\left(x\right)$. It is easy to prove that

$\mathrm{Conn}\left(x\right)\subseteq \mathrm{QConn}\left(x\right)$Conn(x) \subseteq QConn(x)

and that equality holds if $X$ is compact Hausdorff or is locally connected (see below), but also in other circumstances (such as the space of rational numbers as a topological subspace of the real line).

###### Example

For an example where $\mathrm{Conn}\left(x\right)\ne \mathrm{QConn}\left(x\right)$, take $X$ to be the following subspace of $\left[0,1\right]×\left[0,1\right]$:

$X=\left\{\left(0,0\right),\left(0,1\right)\right\}\cup \bigcup _{n\ge 1}\left\{1/n\right\}×\left[0,1\right]$X = \{(0, 0), (0, 1)\} \cup \bigcup_{n \geq 1} \{1/n\} \times [0, 1]

In this example, $\mathrm{Conn}\left(\left(0,1\right)\right)=\left\{\left(0,1\right)\right\}$, but $\mathrm{QConn}\left(\left(0,1\right)\right)=\left\{\left(0,0\right),\left(0,1\right)\right\}$.

## Locally connected spaces

An entry point is given in the following remark/warning:

###### Warning

It is not generally true that a space is the coproduct (in $\mathrm{Top}$) of its connected components, nor of its quasi-components. For example, the connected components in Cantor space ${2}^{ℕ}$ (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 topological subspace of the real line).

###### Definition

A space $X$ is locally connected if every open set, as a topological space, is the coproduct (in $\mathrm{Top}$) of its connected components. Equivalently, a space is locally connected if every point has a neighborhood basis of connected open sets.

In a locally connected space, every connected component $S$ is clopen; in particular, connected components and quasi-components coincide. We warn that connected spaces need not be locally connected; for example, the topologist’s sine curve of Example 4 is connected but not locally connected.

Examples of locally connected spaces include topological manifolds.

Let $i:\mathrm{LocConn}↪\mathrm{Top}$ be the full inclusion of locally connected spaces. The following result is straightforward but useful.

###### Theorem

$\mathrm{LocConn}$ is a coreflective subcategory of $\mathrm{Top}$, i.e., the inclusion $i$ has a right adjoint $R$. For $X$ a given space, $R\left(X\right)$ has the same underlying set as $X$, topologized by letting connected components of open subspaces of $X$ generate a topology.

Being a coreflective category of a complete and cocomplete category, the category $\mathrm{LocConn}$ is also complete and cocomplete. Of course, limits and particularly infinite products in $\mathrm{LocConn}$ are not calculated as they are in $\mathrm{Top}$; rather one takes the limit in $\mathrm{Top}$ and then retopologizes it according to Theorem 1. (For finite products of locally connected spaces, we can just take the product in $\mathrm{Top}$ – the result will be again locally connected.)

Let $\Gamma :\mathrm{LocConn}\to \mathrm{Set}$ be the underlying set functor, and let $\nabla ,\Delta :\mathrm{Set}\to \mathrm{LocConn}$ be the functors which assign to a set the same set equipped with the codiscrete and discrete topologies, respectively. Let ${\Pi }_{0}:\mathrm{LocConn}\to \mathrm{Set}$ be the functor which assigns to a locally connected space the set of its connected components.

###### Theorem

There is a string of adjoints

${\Pi }_{0}⊣\Delta ⊣\Gamma ⊣\nabla :\mathrm{Set}\to \mathrm{LocConn}$\Pi_0 \dashv \Delta \dashv \Gamma \dashv \nabla \colon Set \to LocConn

and moreover, the functor ${\Pi }_{0}$ preserves finite products.

The proof is largely straightforward; we point out that the continuity of the unit $X\to \Delta {\Pi }_{0}X$ is immediate from a locally connected space’s being the coproduct of its connected components. As for ${\Pi }_{0}$ preserving finite products, write locally connected spaces $X$, $Y$ as coproducts of connected spaces

$X=\sum _{i}{C}_{i};\phantom{\rule{2em}{0ex}}Y=\sum _{j}{D}_{j};$X = \sum_i C_i; \qquad Y = \sum_j D_j;

then their product in $\mathrm{LocConn}$ coincides with their product in $\mathrm{Top}$, and is

$X×Y\cong \sum _{i,j}{C}_{i}×{D}_{j}$X \times Y \cong \sum_{i, j} C_i \times D_j

where each summand ${C}_{i}×{D}_{j}$ is connected by Result 3. From this it is immediate that ${\Pi }_{0}$ preserves finite products.

The category of sheaves on a locally connected space is a locally connected topos. For related discussions, see also cohesive topos.

Finally,

###### Definition

A space $X$ is totally disconnected if its connected components are precisely the singletons of $X$.

In other words, a space is totally disconnected if its coreflection into $\mathrm{LocConn}$ is discrete. Such spaces recur in the study of Stone spaces.

## Path-connectedness

An important variation on the theme of connectedness is path-connectedness. If $X$ is a space, define the path component $\left[x\right]$ to be the subspace of all $y\in X$ for which there exists a continuous map $h:\left[0,1\right]\to X$ where $h\left(0\right)=x$, $h\left(1\right)=y$.

The set ${\pi }_{0}\left(X\right)$ of path components (the 0th “homotopy group”) is thus the coequalizer in

$\mathrm{hom}\left(\left[0,1\right],X\right)\stackrel{\stackrel{{\mathrm{ev}}_{0}}{\to }}{\underset{{\mathrm{ev}}_{1}}{\to }}\mathrm{hom}\left(1,X\right)\to {\pi }_{0}\left(X\right).$\hom([0, 1], X) \stackrel{\overset{ev_0}{\to}}{\underset{ev_1}{\to}} \hom(1, X) \to \pi_0(X) .

Observe that this is a reflexive coequalizer, as witnessed by the mutual right inverse $\mathrm{hom}\left(!,X\right):\mathrm{hom}\left(1,X\right)\to \mathrm{hom}\left(\left[0,1\right],X\right)$.

(We can even topologize ${\pi }_{0}\left(X\right)$ by taking the coequalizer in $\mathrm{Top}$ of

${X}^{\left[0,1\right]}\stackrel{\stackrel{{\mathrm{ev}}_{0}}{\to }}{\underset{{\mathrm{ev}}_{1}}{\to }}X,$X^{[0, 1]} \stackrel{\overset{ev_0}{\to}}{\underset{ev_1}{\to}} X,

taking advantage of the fact that the locally compact Hausdorff space $\left[0,1\right]$ is exponentiable. The resulting quotient space will be discrete if $X$ is locally path-connected.)

We say $X$ is path-connected if it has exactly one path component.

It follows easily from the basic results above that each path component $\left[x\right]$ is connected. However, it need not be closed (and therefore need not be the connected component of $x$); see the following example. The path components and connected components do coincide if $X$ is locally path-connected.

###### Example

The topologist’s sine curve

$\left\{\left(x,y\right)\in {ℝ}^{2}\phantom{\rule{thickmathspace}{0ex}}:\phantom{\rule{thickmathspace}{0ex}}\left(0\{ (x, y) \in \mathbb{R}^2 \;:\; (0 \lt x \leq 1 \;\wedge\; y = sin(1/x)) \;\vee\; (0 = x \;\wedge\; -1 \leq y \leq 1) \}

provides a classic example where the path component of a point need not be closed. (Specifically, consider a point on the locus of $y=\mathrm{sin}\left(1/x\right)$.)

The basic categorical Results 1, 2, and 3 above carry over upon replacing “connected” by “path-connected”. (As of course does 4, trivially.)

As a contrast to a path-connected space, a totally path-disconnected space is a space such that its set of path components is equal to the underlying set of the space. Equivalently, that there are no non-constant paths. This by far does not mean that the space is discrete!

### Path-components functor

As above, let ${\pi }_{0}:\mathrm{Top}\to \mathrm{Set}$ be the functor which assigns to each space $X$ its set of path components ${\pi }_{0}\left(X\right)$.

###### Proposition

The functor ${\pi }_{0}:\mathrm{Top}\to \mathrm{Set}$ preserves arbitrary products.

###### Proof

Let ${X}_{i}$ be a family of spaces; we must show that the comparison map

${\pi }_{0}\left(\prod _{i}{X}_{i}\right)\to \prod _{i}{\pi }_{0}\left({X}_{i}\right)$\pi_0(\prod_i X_i) \to \prod_i \pi_0(X_i)

is invertible. Injectivity: suppose $\left({x}_{i}\right),\left({y}_{i}\right)\in {\prod }_{i}{X}_{i}$ are tuples that map to the same tuple of path-components $\left({c}_{i}\right)$; we must show that $\left({x}_{i}\right)$ and $\left({y}_{i}\right)$ belong to the same path component. For each $i$, both ${x}_{i}$ and ${y}_{i}$ belong to ${c}_{i}$, so we may choose a path ${\alpha }_{i}:I\to {X}_{i}$ connecting ${x}_{i}$ to ${y}_{i}$. Then $⟨{\alpha }_{i}⟩:I\to {\prod }_{i}{X}_{i}$ connects $\left({x}_{i}\right)$ to $\left({y}_{i}\right)$. (Note this uses the axiom of choice.) Surjectivity: for any tuple $\left({c}_{i}\right)\in {\prod }_{i}{\pi }_{0}\left({X}_{i}\right)$, the component ${c}_{i}$ is nonempty for each $i$, so we may choose an element ${x}_{i}$ therein. Then $\left({x}_{i}\right)$ maps to $\left({c}_{i}\right)$. Again this uses the axiom of choice.

An elegant proof of the previous proposition but for preservation of finite products is as follows: both $\mathrm{hom}\left(I,-\right)$ and $\mathrm{hom}\left(1,-\right)$ preserve products, and a reflexive coequalizer of product-preserving functors $C\to \mathrm{Set}$, being a sifted colimit, is also product-preserving.

###### Proposition

The functor ${\pi }_{0}:\mathrm{Top}\to \mathrm{Set}$ preserves arbitrary coproducts.

###### Proof

The functor $\mathrm{hom}\left(I,-\right):\mathrm{Top}\to \mathrm{Set}$ preserves coproducts since $I$ is connected, and similarly for $\mathrm{hom}\left(1,-\right)$. The coequalizer of a pair of natural transformations between coproduct-preserving functors is also a coproduct-preserving functor.

## References

Examples of countable connected Hausdorff spaces were give in

• R.H. Bing, A connected countable Hausdorff space, Proc. Amer. Math. Soc. 4 (1953), 474.
• Solomon W. Golomb, A Connected Topology for the Integers, Amer. Math. Monthly, Vol. 66 No. 8 (Oct. 1959), 663-665.

Revised on April 7, 2013 02:57:47 by Todd Trimble (67.81.93.26)