Skip to content
Tutorials Center
My learning

Topics

Lesson 23 of 36 ยท Connectedness

Connected Spaces

Understand what it means for a space to be connected, how separations work, why intervals are the connected subsets of R, and test finite spaces by code.

A space is connected when it comes in one piece. A pair of disjoint disks is not connected; a single disk is. Topology makes this precise without distances or pictures: a space is connected if you cannot split it into two nonempty open parts. Connectedness is preserved by continuous maps, so it is another topological invariant, and it can be used to tell spaces apart.

This lesson gives the definition, the standard examples, the characterization of connected subsets of the real line, and a program that tests connectedness in small finite spaces.

Separations and connectedness

A separation of a space X is a pair of disjoint nonempty open sets U and V with U โˆช V = X. The space is connected if no separation exists, and disconnected otherwise.

Because U and V are complementary, each is also closed. So an equivalent test is: X is connected if and only if the only subsets that are both open and closed (clopen) are โˆ… and X itself.

A subset A โІ X is connected if it is connected in the subspace topology. Concretely, A is disconnected when there are open sets U, V of X with A โІ U โˆช V, A โˆฉ U โ‰  โˆ…, A โˆฉ V โ‰  โˆ… and A โˆฉ U โˆฉ V = โˆ….

The empty set and one-point spaces are connected. Some authors exclude the empty set; the choice does not matter for the theory.

Examples

  • โ„ is connected (shown below).
  • [0, 1) โˆช (1, 2] is disconnected: take U = [0, 1) and V = (1, 2], both open in the subspace.
  • โ„š is disconnected: take U = {q : q < โˆš2} and V = {q : q > โˆš2}. Both are open in โ„š and every rational is in exactly one, because no rational is equal to โˆš2.
  • Any discrete space with at least two points is disconnected.
  • Any indiscrete space is connected, since the only open sets are โˆ… and X.
  • The punctured plane โ„ยฒ \ {0} is connected, while โ„ \ {0} is not. Removing a point from the line disconnects it; removing a point from the plane does not.

Connected subsets of the real line

Theorem. A subset of โ„ is connected if and only if it is an interval (a set I such that a, b โˆˆ I and a < c < b imply c โˆˆ I).

Intervals are connected (idea for [a, b]). Suppose [a, b] = U โˆช V is a separation with a โˆˆ U. Let s be the supremum of all x with [a, x] โІ U. If s were in U, openness of U would let you go a little further right (unless s = b), contradicting the definition of s. If s were in V, openness of V would give a whole interval below s inside V, but points just below s are in U. Both cases fail unless s = b and [a, b] โІ U, so V is empty.

Connected sets are intervals. If a < c < b with a, b โˆˆ A but c โˆ‰ A, then (โˆ’โˆž, c) โˆฉ A and (c, โˆž) โˆฉ A form a separation of A.

Python Brute-force connectedness test for a finite topological space

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The "chain" space is connected even though it is not "path-like" in any visual sense: its only clopen subsets are โˆ… and the whole space. Connectedness is a purely set-theoretic condition on the open sets.

The rationals are totally disconnected

The rational numbers can be split into two open pieces by cutting at any irrational number. This code makes the separation of โ„š at โˆš2 concrete.

Python A separation of the rationals at โˆš2

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Because U and V are disjoint, nonempty, open in โ„š and cover โ„š, the rationals are disconnected. Between any two rationals there is an irrational, so โ„š is in fact totally disconnected: the only connected subsets are single points.

Continuous images and unions

  • Image. If X is connected and f: X โ†’ Y is continuous, then f(X) is connected. (A separation of f(X) would pull back to a separation of X.)
  • Union. If are connected subsets all sharing one common point, then โˆช A_i is connected.
  • Closure. If A is connected and A โІ B โІ cl(A), then B is connected.
  • Products. A product of two connected spaces is connected (you will see this in the chapter on products).

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which description is equivalent to 'X is connected'?

    A separation U, V gives a clopen set U (it is open, and its complement V is open). Conversely a proper nonempty clopen set yields a separation.
  2. 2. Which subset of the real line is connected?

    Connected subsets of โ„ are exactly intervals. (โˆ’3, 7] is an interval; the other sets have gaps.
  3. 3. Why is โ„š disconnected?

    No rational equals โˆš2, so the two sets partition โ„š, and each is open in the subspace topology.
  4. 4. If X is connected and f: X โ†’ Y is continuous, what is true of f(X)?

    A separation of f(X) would pull back, via the continuous f, to a separation of X.

Summary

  • A separation is a pair of disjoint nonempty open sets covering the space; connected means none exists.
  • Equivalently, the only clopen sets are โˆ… and X.
  • The connected subsets of โ„ are exactly the intervals; โ„š is totally disconnected.
  • Continuous images of connected spaces are connected.
  • Finite topological spaces can be tested by listing their clopen sets.

Next: The Intermediate Value Theorem, Topologically