Tutorials › Real Analysis › Nested Interval Theorem

Compactness · Tutorial 295 of 1000

Nested Interval Theorem

Learn to track the endpoints of nested closed intervals and use successive bisection to construct binary expansions.

Intermediate 10 min read

What You'll Learn

  • State the Nested Interval Theorem for decreasing sequences of nonempty closed intervals
  • Translate interval containment into inequalities between successive endpoints
  • Prove that the endpoint sequences converge and their limits are ordered
  • Construct a binary expansion by repeatedly bisecting an interval
  • Explain why a binary expansion need not be unique

Why Intervals Make Nesting Visible

The Nested Compact Sets Theorem says that a decreasing sequence of nonempty compact sets in \(\mathbb{R}\) has a common point. Closed intervals are a particularly useful case: instead of tracking arbitrary sets, we can track their left and right endpoints. The endpoints move in opposite directions, and their limiting positions describe how the intervals are narrowing.

This interval version is also a practical construction tool. Repeatedly choose one half of an interval, then the half of that half, and continue. The resulting nested intervals can encode a real number. We will use this idea to prove that every number in \([0,1]\) has a binary expansion.

Definition: A sequence of closed intervals \(I_n=[a_n,b_n]\), where \(a_n\leq b_n\), is nested decreasing if \(I_{n+1}\subseteq I_n\) for every positive integer \(n\).

If \(I_{n+1}\subseteq I_n\), the left endpoint of \(I_{n+1}\) cannot lie to the left of \(a_n\), and its right endpoint cannot lie to the right of \(b_n\). Thus nesting is equivalent to

$$ a_n\leq a_{n+1}\leq b_{n+1}\leq b_n $$

for every \(n\). In particular, the left endpoints move weakly to the right, while the right endpoints move weakly to the left.

The Interval Form of Nested Compactness

Each closed bounded interval is compact by the Heine–Borel Theorem. Consequently, the Nested Compact Sets Theorem immediately gives the interval statement below. It guarantees a common point; it does not, by itself, say that the common point is unique.

Theorem (Nested Interval Theorem): Let \(I_n=[a_n,b_n]\) be nonempty closed intervals such that \(I_{n+1}\subseteq I_n\) for every positive integer \(n\). Then \(\bigcap_{n=1}^{\infty}I_n\neq\varnothing\).

The interval structure adds useful information that is not visible from the general compact-set statement alone. Because the endpoints are monotone and remain bounded, they each approach a limiting position. The following result makes that endpoint behavior precise without needing to identify the intersection.

Theorem (Convergence of Nested Interval Endpoints): Suppose \(I_n=[a_n,b_n]\) is a nested decreasing sequence of nonempty closed intervals. Then \((a_n)\) converges to a finite number \(\alpha\), \((b_n)\) converges to a finite number \(\beta\), and \(\alpha\leq\beta\).

Proof. The containment inequalities show that \((a_n)\) is increasing. Since \(a_n\leq b_n\leq b_1\), it is bounded above. Let \(\alpha=\sup\{a_n:n\geq1\}\). For any \(\varepsilon>0\), the definition of supremum gives an index \(N\) such that \(a_N>\alpha-\varepsilon\). For every \(n\geq N\), monotonicity gives \(a_N\leq a_n\leq\alpha\), so \(|a_n-\alpha|<\varepsilon\). Therefore \(a_n\to\alpha\).

The sequence \((b_n)\) is decreasing, and \(b_n\geq a_n\geq a_1\), so it is bounded below. Let \(\beta=\inf\{b_n:n\geq1\}\). Given \(\varepsilon>0\), the definition of infimum gives an index \(M\) with \(b_M<\beta+\varepsilon\). For \(n\geq M\), \(\beta\leq b_n\leq b_M\), and hence \(|b_n-\beta|<\varepsilon\). Thus \(b_n\to\beta\).

It remains to check the order of the limits. For any positive integers \(n\) and \(m\), we have \(a_n\leq b_m\). If \(n\geq m\), then \(a_n\leq b_n\leq b_m\); if \(n<m\), then \(a_n\leq a_m\leq b_m\). Thus every \(b_m\) is an upper bound for all the \(a_n\), so \(\alpha\leq b_m\) for every \(m\). Taking the infimum over \(m\) gives \(\alpha\leq\beta\). \(\square\)

The inequalities also imply that the interval lengths have a limit: \(b_n-a_n\to\beta-\alpha\), by the algebra of limits. This observation helps distinguish intervals that settle around a nontrivial interval from intervals that narrow to a single location. The Shrinking-Diameter Theorem from the previous tutorial gives the singleton conclusion when these lengths tend to zero.

Worked Examples: Following the Endpoints

Worked Example: A Sequence Narrowing Toward an Interval

For \(n\geq1\), let \(I_n=[3-1/n,\,5+1/n]\). The left endpoint increases, since \(1/(n+1)<1/n\), and the right endpoint decreases for the same reason. Moreover, the endpoints satisfy

$$ 3-\frac{1}{n}\leq 3-\frac{1}{n+1} \leq 5+\frac{1}{n+1}\leq 5+\frac{1}{n}. $$

So the intervals are nested. Their endpoint limits are \(3\) and \(5\). Every point of \([3,5]\) belongs to every \(I_n\). If \(x<3\), choose \(n\) large enough that \(1/n<3-x\); then \(3-1/n>x\), so \(x\notin I_n\). If \(x>5\), choose \(n\) large enough that \(1/n<x-5\); then \(5+1/n<x\), so again \(x\notin I_n\). Therefore

$$ \bigcap_{n=1}^{\infty} I_n=[3,5]. $$

Here the intervals narrow, but their limiting length is \(5-3=2\), not zero.

Worked Example: Nested Intervals with One Common Point

Let \(J_n=[4-1/n,\,4+1/n]\). The left endpoints increase and the right endpoints decrease, so the intervals are nested. Their lengths are

$$ \left(4+\frac{1}{n}\right)-\left(4-\frac{1}{n}\right)=\frac{2}{n}\longrightarrow0. $$

The point \(4\) belongs to every \(J_n\). If \(x\) belongs to every \(J_n\), then \(|x-4|\leq1/n\) for every \(n\). If \(|x-4|>0\), the Archimedean property gives an \(n\) with \(1/n<|x-4|\), a contradiction. Thus the intersection consists of \(4\) alone, consistent with the Shrinking-Diameter Theorem.

Worked Example: Why the Closed-Interval Hypothesis Matters

Consider the open intervals \(U_n=(0,1/n)\). They are nonempty and nested decreasing. But no real number belongs to all of them: membership would require \(x>0\) and \(x<1/n\) for every \(n\), which is impossible because for any \(x>0\) there is an \(n\) with \(1/n<x\). Their intersection is empty.

This does not contradict the Nested Interval Theorem: these are open intervals, not compact closed intervals. The example shows why the closedness and compactness hypotheses cannot simply be dropped.

Bisection and Binary Expansions

A binary digit is either \(0\) or \(1\). A binary expansion of \(x\in[0,1]\) is a representation of the form \(\sum_{j=1}^{\infty}\varepsilon_j/2^j\), where each \(\varepsilon_j\) is a binary digit. The nested interval idea constructs such digits one at a time: at each step, keep the half containing \(x\).

Theorem (Binary Expansion by Nested Bisection): Every \(x\in[0,1]\) has a binary expansion. More precisely, there is a sequence \((\varepsilon_j)\) with each \(\varepsilon_j\in\{0,1\}\) such that \(x=\sum_{j=1}^{\infty}\varepsilon_j/2^j\).

Proof. Start with \(I_0=[0,1]\). Suppose the interval at stage \(n-1\) is \(I_{n-1}=[k/2^{n-1},(k+1)/2^{n-1}]\) and contains \(x\). Bisect it at its midpoint. If \(x\) is at or to the left of the midpoint, retain the left half and set \(\varepsilon_n=0\). Otherwise retain the right half and set \(\varepsilon_n=1\). In either case, the retained interval \(I_n\) is closed, has length \(2^{-n}\), and contains \(x\).

Write \(I_n=[k_n/2^n,(k_n+1)/2^n]\). The choice of half gives \(k_n=2k_{n-1}+\varepsilon_n\), with \(k_0=0\). Dividing by \(2^n\) and applying this relation successively yields

$$ \frac{k_n}{2^n}=\frac{\varepsilon_1}{2}+\frac{\varepsilon_2}{2^2}+\cdots+\frac{\varepsilon_n}{2^n}. $$

Since \(x\in I_n\), its distance from the left endpoint is between zero and the interval length. Consequently,

$$ 0\leq x-\sum_{j=1}^{n}\frac{\varepsilon_j}{2^j}\leq\frac{1}{2^n}. $$

The right side tends to zero, so the partial sums converge to \(x\). This proves the claimed binary expansion. \(\square\)

Worked Example: Bisection Produces an Expansion of Five-Eighths

Take \(x=5/8\). Beginning with \([0,1]\), retain the right half \([1/2,1]\), giving first digit \(1\). Next retain the left half \([1/2,3/4]\), giving digit \(0\). At the next bisection, \(5/8\) is the midpoint; the rule retains the left half \([1/2,5/8]\), giving digit \(0\). At the following bisection, retain the right half, and continue. The resulting digits begin \(1,0,0,1,1,\ldots\), not \(1,0,1\): the tie rule chose the lower interval at stage three.

After three stages, the partial sum is \(1/2\), and the remaining distance to \(5/8\) is \(1/8\). At each later stage the interval containing \(5/8\) has half the preceding length, so the partial sums approach \(5/8\). In fact, the digits are \(1,0,0,1,1,1,\ldots\), and their sum is

$$ \frac12+\sum_{j=4}^{\infty}\frac{1}{2^j} =\frac12+\frac{1/16}{1-1/2} =\frac12+\frac18 =\frac58. $$

This example illustrates why a point that is a midpoint at one stage can determine all the later digits; it does not prevent the construction from converging to the point.

Why Binary Expansions Can Be Ambiguous

The bisection theorem guarantees at least one expansion, not exactly one. The familiar ambiguity occurs at endpoints of dyadic intervals. For example, the number \(3/4\) has both the terminating expansion \(0.11000\ldots\) and the expansion \(0.10111\ldots\), because

$$ \frac12+\frac14=\frac34 \qquad\text{and}\qquad \frac12+\sum_{j=3}^{\infty}\frac{1}{2^j} =\frac12+\frac14=\frac34. $$

In general, a tail of all \(1\)s has sum \(\sum_{j=n+1}^{\infty}2^{-j}=2^{-n}\), exactly the size of one unit at the \(n\)th place. Thus a terminating expansion can be replaced by one that decreases an earlier digit by \(1\) and follows it with an infinite string of \(1\)s, whenever that earlier digit is \(1\). This is not a failure of the Nested Interval Theorem: the theorem concerns the point retained by the intervals, while different choices of endpoint representation can describe that same point.

The endpoint viewpoint and the bisection construction are useful for different purposes. Monotone endpoints reveal whether nested intervals retain a whole interval or narrow to one location. Bisection turns successive choices into a concrete numerical representation. In both settings, the closed, nested intervals keep the construction controlled: later stages refine earlier ones rather than abandoning them.

Check Your Understanding

Use the interval statements and constructions in this tutorial to answer the following questions.

  1. What inequalities between \(a_n,a_{n+1},b_{n+1},b_n\) express that \([a_{n+1},b_{n+1}]\subseteq[a_n,b_n]\)?
  2. Why are the left endpoints of a nested sequence bounded above, and why are the right endpoints bounded below?
  3. For the intervals \([3-1/n,5+1/n]\), what are the endpoint limits and the limiting interval length?
  4. In the binary bisection construction, how does the choice of the left or right half determine the next digit?
  5. Why can \(0.11000\ldots\) and \(0.10111\ldots\) represent the same real number?