Tutorials › Real Analysis › Proof That Intervals Are Connected

Connectedness · Tutorial 310 of 1000

Proof That Intervals Are Connected

Use finite chains and positive separation on a compact subinterval to prove that every interval is connected.

Intermediate 10 min read

What You'll Learn

  • Identify the compact interval between points chosen from opposite sides of a proposed separation
  • Explain why restricting a separation to a closed subinterval gives compact pieces
  • Use positive distance between disjoint compact sets to obstruct a sufficiently fine chain
  • Apply the chain-connectedness of intervals to rule out a separation
  • See why boundedness of the whole interval is not needed for the proof

A Proof Built from Chains and Compactness

The previous tutorial showed that any two points of an interval can be joined by a finite chain whose steps are smaller than a prescribed positive number. Here we use that fact to prove that intervals are connected. The idea is to compare two properties: a chain can cross from one side of a separation to the other only in a step that crosses the gap between the pieces, while compactness will force that gap to have positive size on a suitable closed subinterval.

This proof gives a useful reason to focus on a closed segment even when the interval under consideration is open or unbounded. If a separation existed, choose one point from each side. The segment between those two points is a compact interval contained in the original interval. On that segment, the two sides become disjoint nonempty compact sets, and disjoint compact sets in the real line have positive distance. A chain with sufficiently small steps cannot cross between them.

We use the standard definition: a separation of a set \(E\subseteq\mathbb{R}\) is a representation \(E=A\cup B\), where \(A\) and \(B\) are disjoint, nonempty, and relatively open in \(E\). To prove that \(E\) is connected, it is enough to show that no such separation exists.

Separated Pieces Cannot Be Crossed by a Fine Chain

Lemma (Positive Separation Obstructs Fine Chains): Suppose \(E=A\cup B\) is a separation of \(E\), and \(\operatorname{dist}(A,B)=d>0\). If \(0<\varepsilon\leq d\), there is no \(\varepsilon\)-chain in \(E\) that starts in \(A\) and ends in \(B\).

Proof. Suppose \(x_0,x_1,\ldots,x_n\) were such a chain, with \(x_0\in A\) and \(x_n\in B\). Since the chain starts in \(A\) and ends in \(B\), there is a first index \(k\) for which \(x_k\in B\). Then \(x_{k-1}\in A\): it cannot be in \(B\), by the choice of \(k\), and every point of \(E=A\cup B\) belongs to one of the two sets. By the definition of distance between sets, every point of \(A\) is at distance at least \(d\) from every point of \(B\). Hence \(|x_k-x_{k-1}|\geq d\geq\varepsilon\). But an \(\varepsilon\)-chain requires \(|x_k-x_{k-1}|<\varepsilon\). This contradiction proves the lemma. \(\square\)

The strict inequality in the chain definition matters here. Even if \(\varepsilon=d\), a step from \(A\) to \(B\) has length at least \(d=\varepsilon\), so it still cannot be an allowed step. In the proof below, we can choose \(\varepsilon\) strictly smaller than \(d\), which also makes the contradiction immediate.

Worked Example: A Gap Prevents Small-Step Travel

Let \(E=[-1,0]\cup[3,4]\), with \(A=[-1,0]\) and \(B=[3,4]\). These sets are disjoint, nonempty, and their union is \(E\). They are separated: each is relatively open in \(E\), since a sufficiently small neighborhood of any point in one interval does not meet the other interval. The distance between the pieces is \(\operatorname{dist}(A,B)=3-0=3\).

Take \(\varepsilon=1\). Any \(\varepsilon\)-chain starting in \(A\) and ending in \(B\) would have a first step from a point in \(A\) to a point in \(B\). The length of that step would be at least \(3\), whereas every allowed step must have length less than \(1\). Thus no such chain exists. This example illustrates the lemma: a positive gap blocks chains at scales smaller than the gap.

Restricting a Proposed Separation to a Compact Segment

Suppose an interval \(J\) had a separation \(J=A\cup B\). Choose \(p\in A\) and \(q\in B\). If \(p<q\), put \(a=p\) and \(b=q\), retaining the names \(A\) and \(B\). If \(q<p\), interchange the names \(A\) and \(B\), then put \(a=q\) and \(b=p\). In either case, \(a<b\), \(a\) belongs to the set currently named \(A\), and \(b\) belongs to the set currently named \(B\). This ordering ensures that the endpoints of the segment we use lie on opposite sides.

Because \(J\) is an interval and \(a,b\in J\), the whole closed segment \(K=[a,b]\) lies in \(J\). Define \(A_0=A\cap K\) and \(B_0=B\cap K\). Both sets are nonempty, since \(a\in A_0\) and \(b\in B_0\). Also, \(A_0\) and \(B_0\) are disjoint and their union is \(K\).

Each of \(A\) and \(B\) is relatively closed in \(J\), because it is the complement in \(J\) of the other relatively open set. Consequently, \(A_0\) and \(B_0\) are closed in \(K\). The closed interval \(K\) is compact, so its closed subsets \(A_0\) and \(B_0\) are compact. The Positive Separation of a Compact Set and a Closed Set theorem from earlier in the course now applies: \(A_0\) is nonempty and compact, and \(B_0\) is nonempty and closed in \(\mathbb{R}\). It follows that \(\operatorname{dist}(A_0,B_0)=d>0\).

The use of compactness is local. The interval \(J\) itself need not be bounded or closed. The selected points \(a\) and \(b\) always determine a bounded closed segment \(K\), and that is enough to obtain the positive distance needed for the argument.

Worked Example: Applying the Compact-Segment Step

Consider the interval \(J=(1,\infty)\). Suppose, for illustration, that a proposed separation placed \(2\) in \(A\) and \(7\) in \(B\). The segment between them is \(K=[2,7]\), and \(K\subseteq(1,\infty)\). Restricting the proposed pieces gives \(A_0=A\cap[2,7]\) and \(B_0=B\cap[2,7]\). Each is nonempty, since \(2\in A_0\) and \(7\in B_0\), and each is closed in \(K\), since the original pieces are relatively closed in \(J\).

Thus \(A_0\) and \(B_0\) are compact. The positive-separation theorem gives some \(d>0\) such that every point of \(A_0\) is at least distance \(d\) from every point of \(B_0\). The argument does not need to calculate \(d\): its positivity is enough. An \(\varepsilon\)-chain in \(K\) from \(2\) to \(7\), with \(\varepsilon=d/2\), would have to make a step from one piece to the other. That step would have length at least \(d\), contradicting the requirement that its length be less than \(d/2\).

Theorem: Intervals Are Connected

Theorem (Intervals Are Connected): Every interval \(J\subseteq\mathbb{R}\) is connected.

Proof. The empty set has no separation, and a singleton cannot be the union of two disjoint nonempty sets. It remains to consider an interval with at least two points. Suppose, for a contradiction, that \(J=A\cup B\) is a separation. Choose \(a\in A\) and \(b\in B\), relabeling \(A\) and \(B\) if necessary so that \(a<b\). As described above, \(K=[a,b]\) is contained in \(J\), and the restrictions \(A_0=A\cap K\) and \(B_0=B\cap K\) are disjoint nonempty compact sets whose union is \(K\).

By the Positive Separation of a Compact Set and a Closed Set theorem, \(d=\operatorname{dist}(A_0,B_0)>0\). Set \(\varepsilon=d/2\), so \(0<\varepsilon<d\). The interval \(K\) is chain connected by the theorem “Intervals Are Chain Connected” from the previous tutorial. Therefore there is an \(\varepsilon\)-chain in \(K\) from \(a\) to \(b\). It starts in \(A_0\) and ends in \(B_0\), while every pair of points from opposite pieces is at distance at least \(d\). This contradicts the lemma: no \(\varepsilon\)-chain can cross between \(A_0\) and \(B_0\) when \(\varepsilon<d\). The assumed separation cannot exist, so \(J\) is connected. \(\square\)

Worked Example: Why an Unbounded Interval Causes No Exception

Take \(J=[-2,\infty)\). If \(J\) had a separation, choose one point from each piece. For example, suppose the chosen points were \(a=-1\) in \(A\) and \(b=6\) in \(B\). The closed segment \(K=[-1,6]\) lies inside \(J\), even though \(J\) is unbounded. Restricting the pieces to \(K\) gives disjoint nonempty compact sets, so their distance is some \(d>0\).

The chain-connectedness theorem supplies a \(d/2\)-chain in \(K\) from \(-1\) to \(6\). As the chain moves through points of \(K=A_0\cup B_0\), it must have a first step whose endpoint is in the other piece. That step has length at least \(d\), not less than \(d/2\), which is impossible. The contradiction uses only a bounded segment of \(J\); no compactness claim about the unbounded interval is needed.

What the Proof Uses—and What It Does Not

The proof combines two earlier ideas in a way that is useful beyond this particular theorem. Chain connectedness provides a finite route with controllably small steps. Compactness, after restricting to a segment, prevents the two sides of a separation from approaching each other arbitrarily closely. Together they rule out the possibility that the chain changes sides.

A common pitfall is to use chain connectedness alone to infer connectedness. That inference is not valid: as the previous tutorial explained, the rational numbers admit arbitrarily fine finite chains between any two of their points, yet they are disconnected as a subset of \(\mathbb{R}\). The additional feature used here is not merely that chains exist. A hypothetical separation of an interval, when restricted to the segment between two points on opposite sides, would yield two disjoint compact pieces at positive distance. That positive gap is what makes a sufficiently fine chain impossible.

The argument also shows why the endpoint type of an interval is irrelevant. Whether \(J\) is open, closed, half-open, bounded, or unbounded, any two selected points determine a closed segment contained in \(J\). The proof uses compactness on that segment, not on the whole interval.

Check Your Understanding

Use the chain and compactness argument to answer the following questions.

  1. In the chain obstruction lemma, why must a chain from \(A\) to \(B\) contain a consecutive pair with one point in each set?
  2. Why are \(A\cap[a,b]\) and \(B\cap[a,b]\) closed in \([a,b]\) if \(A\) and \(B\) form a separation of an interval \(J\) containing \([a,b]\)?
  3. If points \(p\in A\) and \(q\in B\) satisfy \(q<p\), how should the names of the pieces and the endpoints be assigned so that \(a<b\), \(a\in A\), and \(b\in B\)?
  4. Why does the proof for an unbounded interval not require the interval itself to be compact?
  5. What additional fact, beyond the existence of fine chains, is used to rule out a separation of an interval?