Connectedness in Metric Spaces


Connectedness in Metric Spaces

Hope
Welcome back to A2 Metric Spaces. This episode introduces connectedness, one way of formalizing the idea that a space is joined up, and then classifies all connected subsets of the real line.

Corey
And it is useful to keep connectedness separate from path connectedness. Connectedness asks whether a space can be split into two pieces, while path connectedness, which comes later, asks whether points can be joined by paths.

Hope
Let us define disconnectedness first. A metric space X is disconnected if it can be written as a disjoint union of two nonempty open sets, say U and V. In that situation, U and V are said to disconnect X. If no such decomposition exists, X is connected.

Corey
So the word open is relative to the space being considered, which can be surprising. Take X to be the union of the closed intervals from zero to one and from two to three. Relative to X, each of those intervals is open, as well as being closed in X. They are disjoint, nonempty, and cover X, so they disconnect X.

Hope
That example contrasts with intervals in the real line. We will eventually prove that every interval in the real numbers is connected, and in fact that the intervals are exactly the connected subsets of the real line, apart from the usual convention that a single point is also an interval.

Corey
There are three equivalent ways to recognize connectedness. A metric space X is connected if and only if every continuous map from X to the two-point space consisting of zero and one is constant, and if and only if the only subsets of X that are both open and closed are the empty set and X itself.

Hope
Let us prove the first implication. Suppose X is connected and f maps X continuously into the two-point space consisting of zero and one. The singleton sets containing zero and one are open in that two-point space, so their inverse images under f are open in X.

Corey
Those inverse images are also disjoint, and together they cover X. Since X is connected, one of them must be empty. If the inverse image of zero is empty, everything maps to one; if the inverse image of one is empty, everything maps to zero. Either way, f is constant.

Hope
Now suppose every continuous map from X to the two-point space is constant, and let A be both open and closed in X. Its complement is also open. Define f to be one on A and zero on the complement of A. The inverse images of zero and one are open, so f is continuous.

Corey
By assumption, f must be constant. If it is constantly one, A equals X; if it is constantly zero, A is empty. Thus the only clopen subsets are the empty set and X.

Hope
For the final implication, assume the only clopen subsets are the empty set and X. If U and V were disjoint open sets whose union was X, then the complement of U would be V, which is open. Therefore U would be both open and closed.

Corey
Since U can only be empty or all of X, such a decomposition cannot have two nonempty pieces. Therefore X is connected. The three characterizations are equivalent.

Hope
Next, suppose Y is a subspace of a metric space X. There is a useful criterion for deciding whether Y is connected using open subsets of X. The set Y is connected exactly when, for any open sets U and V in X satisfying Y contained in U union V and having U, V, and Y with empty common intersection, either Y is contained in U or Y is contained in V.

Corey
The reason is that the open sets in the subspace Y have the form U intersected with Y, where U is open in X. These two relative open sets are disjoint precisely when U, V, and Y have empty common intersection, and they cover Y precisely when Y is contained in U union V.

Hope
If neither relative open set is empty, then Y is disconnected. So connectedness says that under those first two conditions, one of the relative open sets must be empty. That is equivalent to Y being contained entirely in U or entirely in V.

Corey
Now for an important union principle, sometimes called the sunflower lemma. Suppose we have connected subsets A_i of X, and suppose all of them have at least one common point. Then their union is connected.

Hope
To see this, take a continuous function from the union of the A_i into the two-point space. Choose a point x_0 common to every A_i. On each connected set A_i, the function must be constant. Any point x in the union belongs to some A_i along with x_0, so f(x) equals f(x_0). Thus f is constant on the whole union, proving that the union is connected.

Corey
The sunflower picture is helpful: each connected set is like a petal, and the common point is the center. The petals may be quite different, but because they all meet at the center, their union cannot be split apart.

Hope
Connectedness also survives taking closures, and more generally it survives for any set B lying between a connected set A and its closure: A is contained in B, and B is contained in the closure of A.

Corey
Here is the argument using the subspace criterion. Suppose B is contained in U union V, where U and V are open in X, and the intersection of U, V, and B is empty. Since A is contained in B, the same conditions hold for A. Connectedness of A means A lies entirely in U or entirely in V; suppose, without loss of generality, that A is contained in U.

Hope
Because there are no points of A in V, and A is already contained in U, A is contained in the complement of V. The complement of V is closed, so it contains the closure of A. Since B is contained in the closure of A, B is also contained in the complement of V. Combining that with B being contained in U union V gives B contained in U. Therefore B is connected.

Corey
Another fundamental property is that continuous images of connected sets are connected. If X is connected and f from X to Y is continuous, then f of X is connected.

Hope
We can replace Y by f of X and assume f is onto. If two disjoint open sets U and V covered Y, then their inverse images would be disjoint open subsets of X covering X. Connectedness of X forces one inverse image to be empty.

Corey
Because f is onto, an empty inverse image means the corresponding set itself is empty. So U or V must be empty, and Y cannot be disconnected. A continuous map cannot pull a connected space apart.

Hope
The sunflower lemma leads naturally to connected components. For each point x in X, take the union of all connected subsets containing x. Since all those sets contain x, the sunflower lemma says their union is connected. It is the unique maximal connected subset containing x, called the connected component of x, often written as Gamma of x.

Corey
These connected components partition X. If the component of x and the component of y overlap, their union is connected by the sunflower lemma. That union contains x, so maximality forces the component of x to contain the component of y, and the reverse argument gives equality.

Hope
Thus two components are either disjoint or identical. Also, X is connected exactly when it has just one connected component, namely X itself.

Corey
Now let us classify connected subsets of the real line. A subset E of the real numbers has the interval property if whenever x and y belong to E with x less than y, every point of the closed interval from x to y also belongs to E.

Hope
We will prove two facts: first, E is connected if and only if it has the interval property; second, E has the interval property if and only if E is an interval. Together, these say that the connected subsets of the real line are precisely the intervals.

Corey
For the first direction, suppose E is connected and choose x and y in E with x less than y. If some point c strictly between them were missing from E, take U to be all real numbers less than c and V to be all real numbers greater than c.

Hope
These are disjoint open sets. Their union is the real line with c removed, so they cover E because c is not in E. But x lies in U and y lies in V, so neither U nor V contains all of E. By the subspace criterion, U and V disconnect E, contradicting connectedness. Therefore every point between x and y belongs to E.

Corey
For the converse, suppose E has the interval property but is disconnected. Then there are open subsets U and V of the real line such that E is contained in U union V, the three-way intersection of E, U, and V is empty, and E is contained in neither U nor V.

Hope
Choose x in E intersected with U and y in E intersected with V, and assume x is less than y. The interval property puts the entire closed interval from x to y inside E. Now consider S, the set of points z in that interval that lie in U. It is nonempty because it contains x, and it is bounded above, so it has a supremum c.

Corey
Since c belongs to the interval and the interval lies in E, c belongs to U or V. If c belongs to U, openness of U gives points just to the right of c that remain in U and in the interval. Those points would belong to S and exceed its supremum, a contradiction.

Hope
If c belongs to V, openness of V gives an interval immediately to the left of c contained in V. That interval contains no points of S, so a number slightly less than c would still be an upper bound for S. This contradicts c being the least upper bound.

Corey
Both possibilities are impossible. Therefore E was not disconnected, so E is connected. The interval property and connectedness are equivalent for subsets of the real line.

Hope
We still need to show that having the interval property is exactly the same as being an interval. To handle bounded and unbounded cases together, let c be the infimum of E and let C be the supremum of E, allowing c to be minus infinity and C to be plus infinity when necessary.

Corey
The definition of infimum and supremum immediately gives E contained in the closed interval from c to C, with the understood conventions at infinity. The key point is to show that the open interval from c to C is contained in E.

Hope
Take any z strictly between c and C. Since z is bigger than the infimum, z cannot be a lower bound for E, so there is an x in E with x less than z. Similarly, since z is smaller than the supremum, z cannot be an upper bound, so there is a y in E with z less than y.

Corey
The interval property then puts the whole closed interval from x to y in E, including z. Therefore every point strictly between c and C lies in E, while E itself lies between c and C.

Hope
That means E is squeezed between an open interval and its corresponding closed interval. Depending on whether the endpoints are included, E can be the open, half-open, or closed version of that interval. The same description includes rays such as the numbers greater than two or the numbers greater than or equal to two, and also the whole real line.

Corey
So we have the complete classification: the connected subsets of the real line are precisely the intervals, allowing finite or infinite endpoints and allowing endpoints to be open or closed.

Hope
This also explains the intermediate value theorem. If f is continuous on the closed interval from a to b, then that interval is connected. Continuous images preserve connectedness, so f of the interval from a to b is a connected subset of the real line.

Corey
A connected subset of the real line is an interval. Therefore the image contains every real number between f of a and f of b. In other words, whenever a continuous function takes two values, it also takes every intermediate value between them.

Hope
That is the central payoff: connectedness gives a structural explanation of why continuous functions on real intervals cannot skip values. We have covered the definition, equivalent criteria, subspaces, unions, closures, continuous images, components, and the full classification of connected subsets of the real line.

Ask anything
We've read this whole study set, so questions about it get the best answers.