Start with the segment from to and remove its middle third. Then remove the middle third of each of the two pieces that are left, and keep going forever. Each step keeps only two thirds of the remaining length, so the total length shrinks toward zero. Is anything left at the end? This page builds the Cantor set, shows that it has total length zero and still contains infinitely many points, and uses base three to say exactly which points survive.
Key terms
Cantor set
Definition The middle-thirds Cantor set is built in stages. Stage is the closed interval . To pass from one stage to the next, take each closed interval of the current stage, let , and remove its open middle third, the points strictly between and , keeping the two closed outer thirds and . Stage , written , consists of separate closed intervals, each of length , with total length . The Cantor set is the set of points that belong to every stage,
The total length of the stages tends to , and has total length zero, yet is not empty. It contains , and every endpoint of every interval of every stage, because an endpoint is never strictly inside a removed middle third, and it also contains points that are never endpoints, such as . The Cantor set is made of two copies of itself, each scaled by ,
where is the set of all numbers with in , and adding shifts that copy to the right end. It is named after Georg Cantor, who described it in 1883.
In plain words Keep cutting out the middle of every piece. The pieces get so short, so fast, that their total length disappears in the limit. But cutting out an open middle never touches the ends of a piece, and those ends, along with many other points, are never removed.
Example The first two stages are
with total lengths and , and has intervals of length with total length . The point lies in the left third . Stretching that third by to fill sends to , which lies in the right third, and stretching the right third to fill sends back to . So the pattern left, right, left, right repeats forever, always lands in a kept third, and it is in . It is never an endpoint, because every endpoint is a fraction whose denominator is a power of , while would need , an odd number equal to an even one.
Open interval
Definition For real numbers , the open interval is the set of all with , and the closed interval is the set of all with . Both have length , but the open interval leaves out its two endpoints and the closed one includes them. Removing an open interval from a closed interval with leaves the two closed intervals and , so the points and stay. In the Cantor construction every removed middle third is open, so every stage is a union of closed intervals and every endpoint created at any stage stays in the Cantor set. A single point has length zero, so removing or keeping endpoints never changes a length, but it does change which points are left.
In plain words Open means without the ends. Taking out the open middle third of takes out every point strictly between and , so and themselves stay.
Example Removing from leaves . The point is strictly between and , so it is removed at the first step. The point is never removed, since at every later step it is the right endpoint of the interval that contains it, first , then , and so on, and the removed middle of an interval never contains its endpoints.
Measure zero
Definition A set of real numbers has measure zero, or length zero, if for every positive number there is a finite or endless list of intervals that covers , meaning every point of lies in at least one of them, and whose lengths add up to less than . Each stage covers the Cantor set with intervals of total length , and because this total drops below any given once is large enough. So the Cantor set has measure zero. Measure zero does not mean empty or finite. A single point, every finite set and every set whose elements can be arranged in one endless list, such as the rational numbers, have measure zero, and the Cantor set has measure zero although its points cannot be arranged in such a list at all.
In plain words A set has measure zero when it can be hidden inside intervals whose total length is as small as you like. Points have no length, so even infinitely many of them can take up no length at all.
Example To cover the Cantor set with intervals of total length less than , stage works. Its intervals each have length , and their total is
Stage is not enough, since its total is . The removed intervals, of length , then of length , then of length and so on, have total length
the whole length of , and still they do not remove every point. Measure zero depends on removing enough. If step removed from each of the intervals only an open middle piece of length , the removed lengths would add up to , and the points that remain, a set often called a fat Cantor set, would have total length .
Ternary expansion
Definition A ternary expansion, or base-three expansion, of a number in is an endless string of digits , each digit equal to , or , such that
Every in has at least one ternary expansion. A number has exactly two when it is a fraction strictly between and , one ending in endless s and one ending in endless s, as in , and every other number has exactly one. The first digit tells which third of contains . An expansion beginning with puts in , one beginning with puts it in , and lies in the removed open middle third exactly when every expansion of begins with . Each later digit does the same inside the third chosen before. So belongs to the Cantor set exactly when it has at least one ternary expansion that uses only the digits and . Such an expansion is unique, so the points of the Cantor set match the endless strings of s and s one to one, and the reasoning of Cantor’s diagonal argument, applied to these strings, shows that they cannot all be listed.
In plain words A ternary expansion is a set of directions for finding a point. Each digit says which third to go into, for the left, for the middle and for the right. The middle thirds are the parts that get removed, so the points that survive are exactly the ones that can be reached without ever going into a middle third.
Example The expansion says left, right, left, right and so on. Its value is a geometric series with first term and ratio ,
so is in the Cantor set, as found above. In the same way is in it. The number has only this one expansion, so it is not. The endpoint shows why the rule says at least one expansion. Its expansion contains a , but its other expansion , whose value is , uses only and , so is in the Cantor set, as the construction says.
Check yourself
- How many intervals make up stage , how long is each one, and how much total length has been removed by then?
Show the answer
Each step doubles the number of intervals and divides their length by , so stage has intervals, each of length . Their total length is , so the removed length is
Adding the removed pieces step by step gives the same value, since .
- The numbers and have the ternary expansions and , which both contain the digit . Decide whether each number belongs to the Cantor set.
Show the answer
The digit in these expansions alone decides nothing, because membership asks whether some expansion avoids the digit . Each of these numbers is a fraction with denominator , so each has a second expansion ending in endless s.
For the second expansion is , whose value is . It uses only and , so is in the Cantor set. It is the right endpoint of the interval of stage .
For the second expansion is , which still begins with . Both expansions begin with , so lies in the open middle third and is removed at the first step.
- Change the rule so that the closed middle third of each piece is removed, endpoints included. Which of the points , and survive, and what happens to the total length?
Show the answer
The point is an endpoint of the first closed middle third , so it is removed at the first step, and what is left is , which is no longer a union of closed intervals.
A closed middle third is the open middle third together with its two endpoints, and these endpoints are fractions strictly between and whose denominators are powers of . The point is never strictly inside an open middle third, as in the original construction, and it is not strictly between and , so it survives. The point is never inside an open middle third either, because it is in the Cantor set, and it is not a fraction with a power of as denominator, so it survives as well.
The total length after steps is still , because the extra points removed have no length, and the set that survives still has measure zero. The change removes the endpoints of all the removed middle thirds and keeps every other point of the Cantor set.