Building the Finite Stages
The middle-third construction is a recursive procedure on closed intervals. At each step, every interval still present is divided into three equal parts, and the open middle part is removed. The two closed outer parts survive. Keeping track of the intervals at the first few stages makes the general counting and length formulas visible, and the recursion lets us prove them without relying on a picture.
We work in \(\mathbb{R}\) with Lebesgue measure \(m\), and all intervals below are Borel sets, hence Lebesgue measurable. Set \(C_0=[0,1]\). For each integer \(n\geq 0\), obtain \(C_{n+1}\) by removing the open middle third of every interval of \(C_n\). The sets \(C_n\) are the finite stages of the construction; this tutorial concerns these finite stages, not a measure calculation for their limiting set.
Applying the rule to \(C_0\) gives \(C_1=[0,1/3]\cup[2/3,1]\). Applying it again to both intervals gives four intervals at stage two. A third application gives eight intervals. These lists are useful for checking the recursive rule, but the stage count grows, so we also want a formula that describes every interval at once.
A Formula for Every Surviving Interval
Each stage makes a left-or-right choice inside every interval. Encode those choices by a word \((\varepsilon_1,\ldots,\varepsilon_n)\), where each \(\varepsilon_j\) is either \(0\) (choose the left third) or \(1\) (choose the right third). For a word of length \(n\), define its interval by
For \(n=0\), the word is empty, the sum is zero, and the formula gives \(I_{\varnothing}=[0,1]\). The term \(2\varepsilon_j/3^j\) records the shift caused by choosing the right third at step \(j\); the final interval width is \(3^{-n}\).
Proof. We use induction on \(n\). For \(n=0\), there is one empty word and its interval is \([0,1]=C_0\), so the assertion holds. Suppose it holds at stage \(n\). From an interval with left endpoint \(a=\sum_{j=1}^n2\varepsilon_j/3^j\) and length \(3^{-n}\), the left child has left endpoint \(a\) and length \(3^{-(n+1)}\); the right child has left endpoint \(a+2\cdot3^{-(n+1)}\) and the same length. These are exactly the intervals given by appending \(0\) and \(1\), respectively, in the displayed formula. Thus the recursion produces all the specified intervals at stage \(n+1\).
There are two appended words for each length-\(n\) word, so there are \(2\cdot2^n=2^{n+1}\) intervals. The children of one parent are separated by the nonempty open middle third. Children of different parents are disjoint because the parent intervals are disjoint by the induction hypothesis. For their order, two distinct words first differ at some position \(j\). Their common choices before \(j\) place them in the same parent interval, and at position \(j\) the word with entry \(0\) selects the left child while the word with entry \(1\) selects the right child. This proves the lexicographic order and disjointness at stage \(n+1\). Each child has length one third of its parent, namely \(3^{-(n+1)}\). The induction is complete. \(\square\)
Worked Example: The First Deletion
Starting from \(C_0=[0,1]\), compute \(C_1\), list its intervals, and check their number and total length.
The open middle third of \([0,1]\) is \((1/3,2/3)\). Removing that open interval leaves its two closed outer thirds:
The two length-one words give the same result from the formula: the word \(0\) gives left endpoint \(0\) and right endpoint \(0+1/3=1/3\); the word \(1\) gives left endpoint \(2/3\) and right endpoint \(2/3+1/3=1\). Thus the count is \(2^1=2\), and the sum of the interval lengths is \(1/3+1/3=2/3\). Check: the original length was \(1\), and the removed open interval has length \(2/3-1/3=1/3\), so the surviving length is \(1-1/3=2/3\), as computed.
Worked Example: Listing Stage Two
Apply the deletion rule to both intervals of \(C_1\), and verify the interval count and total length.
The interval \([0,1/3]\) has open middle third \((1/9,2/9)\), leaving \([0,1/9]\) and \([2/9,1/3]\). The interval \([2/3,1]\) has open middle third \((7/9,8/9)\), leaving \([2/3,7/9]\) and \([8/9,1]\). Therefore
There are four intervals, in agreement with \(2^2=4\). Each has length \(1/9\), so their total length is \(4\cdot(1/9)=4/9\). Check: the two gaps removed have lengths \(2/9-1/9=1/9\) and \(8/9-7/9=1/9\). Together with the first gap of length \(1/3\), the removed length through stage two is \(1/3+1/9=4/9\). The remaining length \(1-4/9=5/9\) would not match the sum just computed, so this check needs care: the stage-two surviving total is \(4/9\), and the removed total is \(1/3+2(1/9)=5/9\). Hence \(1-5/9=4/9\), confirming the answer.
Counting Intervals, Lengths, and Removed Gaps
At stage \(n\), the theorem gives \(2^n\) pairwise disjoint closed intervals, each of length \(3^{-n}\). Since this is a finite disjoint union of measurable intervals, finite additivity of Lebesgue measure gives the length of \(C_n\). At step \(k\), there are \(2^{k-1}\) intervals to split, and each removed middle third has length \(3^{-k}\). These facts give both the remaining and removed lengths.
Proof. The interval count and individual lengths follow from the theorem. The intervals are pairwise disjoint and measurable, so finite additivity yields \(m(C_n)=2^n3^{-n}=(2/3)^n\). At step \(k\), each of the \(2^{k-1}\) intervals present at stage \(k-1\) contributes exactly one removed middle third. Its length is one third of \(3^{-(k-1)}\), which is \(3^{-k}\). The removed intervals at that step are disjoint because they lie in distinct stage-\((k-1)\) intervals. Thus the total length removed at step \(k\) is \(2^{k-1}3^{-k}\).
For \(n\geq1\), summing these finite-stage lengths gives
Here the finite geometric-sum identity applies because \(1-2/3=1/3\neq0\). For \(n=0\), no intervals have been removed, and the same total-length formula gives \(1-(2/3)^0=0\). This proves the proposition for every stated case. \(\square\)
Worked Example: Listing Stage Three and Checking Its Length
Use the word formula to list all intervals of \(C_3\), and check the count and total length by two calculations.
For three choices, the eight words in lexicographic order are \(000,001,010,011,100,101,110,111\). Substituting each into the formula gives
For example, the word \(101\) gives left endpoint \(2/3+0/9+2/27=20/27\), and right endpoint \(20/27+1/27=21/27\). The list has eight intervals, as \(2^3=8\), each of length \(1/27\), so their total length is \(8/27\). Independently, the proposition gives \(m(C_3)=(2/3)^3=8/27\). As a second check, the lengths removed at steps one, two, and three are \(1/3\), \(2/9\), and \(4/27\); their sum is \(9/27+6/27+4/27=19/27\), leaving \(1-19/27=8/27\).
Worked Example: A Stage-Four Interval and the Total Removed Length
Find the interval indexed by the word \(1011\), then calculate the length remaining and the total length removed through stage four.
The left endpoint for \(1011\) is
The interval length is \(3^{-4}=1/81\), so the interval is \([62/81,63/81]=[62/81,7/9]\). The stage-four count is \(2^4=16\), and each interval has length \(1/81\); hence the total remaining length is \(16/81\). The lengths removed at steps one through four are \(1/3,2/9,4/27,8/81\). Expressed with denominator \(81\), their sum is \(27/81+18/81+12/81+8/81=65/81\). Check: the two totals add to \(16/81+65/81=81/81=1\), the length of the original interval.
A Common Counting Error
A frequent mistake is to remove the middle third as a closed interval. At the first step, removing \([1/3,2/3]\) would leave \([0,1/3)\cup(2/3,1]\), incorrectly discarding both endpoints \(1/3\) and \(2/3\). The construction removes \((1/3,2/3)\), so the correct stage is the closed union \([0,1/3]\cup[2/3,1]\).
Another count error is to regard each surviving interval as producing three surviving intervals. It produces three thirds in the subdivision, but the middle third is removed; only the two outer closed thirds survive. Thus the number of intervals doubles at each step, rather than triples. For instance, stage two has \(2\cdot2=4\) intervals, not \(3\cdot2=6\).
The finite-stage formulas describe exactly how many intervals remain and their total length at any specified stage. Those statements use only a finite union and finite additivity. A conclusion about the measure of the limiting Cantor set requires a separate argument about the limit of these stages; the finite-stage calculations alone should not be silently substituted for that argument.
Check Your Understanding
Use the recursive definition and the formulas proved above to answer each question.
- Write the two intervals in \(C_1\), and explain why both endpoints of the removed open middle third remain.
- How many intervals are in \(C_5\), and what is the length of each interval?
- Compute the total length of the gaps removed at step three alone.
- Use the word formula to find the interval indexed by \(011\).
- Why does the finite-stage length formula not, by itself, establish the measure of the limiting Cantor set?