Chapter 6 has already used bijections, injections, surjections, countability, and the Axiom of Choice to compare sizes of sets. The final part of the chapter makes an important warning explicit:
there is no single mathematical meaning of the word "large".
An interval can be short in length but as large as in cardinality. The Cantor set can have total removed length and still have the same cardinality as the real line. The rationals are countable, yet dense in . The natural numbers are well-ordered, while the integers and positive rationals are not well-ordered by their usual orders.
These are not contradictions. They are different structures asking different questions. We first compare intervals and the Cantor set by bijections, then separate density from cardinality, and finally ask which orders have a least element in every nonempty subset. The final connection with choice is stated precisely; its transfinite-recursion proof requires tools beyond this course.
Closed intervals and half-closed intervals
We have already used open intervals such as . Now add the closed version.
Definition
Closed interval
Let with . The closed interval from to is
The endpoint convention matters:
- excludes both endpoints;
- includes both endpoints;
- includes but excludes ;
- excludes but includes ;
- and are defined analogously.
When , the interval is a singleton, whereas , , and are empty. These are the degenerate cases.
This notation matters because later constructions often depend on whether endpoints remain present. That will matter immediately for the Cantor set: at each stage, closed intervals remain, so their endpoints are not removed.
Common mistake
Do not treat interval notation as decoration
The intervals and differ as subsets of . They have the same cardinality, but they are not the same set. In proofs, first decide whether you are proving equality of sets, equality of cardinalities, or a statement about length.
Intervals and cardinality
The interval has the same cardinality as .
Theorem
The interval has cardinality
There is a bijection
Here is the verification. Since
both terms decrease strictly when increases in , so is injective. For a direct surjectivity check, given put
The denominator is greater than , so . Substitution, or solving , verifies ; thus is surjective by direct formula.
For interval cardinality, begin with the linear reduction. For non-degenerate finite intervals,
maps bijectively onto when . Half-infinite and infinite intervals can then be compared by injections. The endpoint change is explicit: define by
and let at every other point. It shifts the sequence and fixes all remaining points, hence is a bijection. For a non-degenerate interval , the inclusion is injective. Choose with ; composing with gives an injection . Cantor–Bernstein now yields . The only endpoint cases outside this argument are the empty intervals and singleton .
The Cantor set construction
The Cantor set is introduced to push this distinction further.
Start with
At each later stage, remove the open middle third of every interval that remains.
-
Stage :
-
Stage : remove , leaving
-
Stage : remove the middle third from each of the two intervals in , leaving
-
Stage :
-
Stage : is the union of closed intervals, each of length .
Definition
Cantor set
The Cantor set is the common intersection
The sets are nested:
This nesting is why the intersection is a meaningful object. A point belongs to exactly when it survives every stage of middle-third removal.
Worked example
Endpoints survive
At stage 1, the open interval is removed, but the endpoints and stay.
At later stages, endpoints of remaining closed intervals again stay. Therefore points such as
are not removed at the stage where they first appear as endpoints.

Figure. Each stage removes the middle third from every interval that survived the previous stage.
Read and try
Step through the Cantor set construction
The viewer shows how repeated middle-third removal creates a set that is small by length but large by cardinality.
Stage
C_0
Remaining intervals
1
Removed length so far
0
The limit set keeps exactly those points that can be written in ternary using only the digits 0 and 2.
Ternary expansions and membership in
Next give an arithmetic description using base .
Every can be written in ternary form
As in decimal notation, representations are not always unique. For example, just as in base , one has
- At stage , an expansion with first digit represents a point in ; its interior is removed, while the two endpoint values have alternate expansions using and . Later stages apply the same branch labelling to the next digit.
- Consequently, the Cantor set consists exactly of numbers in that have at least one ternary expansion using only the digits and .
Theorem
Ternary description of the Cantor set
For , the point belongs to if and only if it has a ternary expansion
where every digit is either or .
Proof. If all ternary digits are or , then after digits the remaining tail lies between and
Thus the number lies in the corresponding closed component of for every , so it lies in . Conversely, if , choose at each stage the left or right surviving component containing , assigning digit or . The nested components have lengths , so their endpoints converge to and give a /-only expansion. This is an existence statement: , so the endpoint is retained even though one of its expansions contains a .
Worked example
Another retained endpoint
The point is the left endpoint of the second component of . Its terminating expansion uses only and ; appending zeros already proves . Every later removal is an open middle third, so this endpoint remains present.
This description is an existence statement. A point can also have another ternary expansion containing ; the endpoint is the example above.
The length paradox
The construction removes many intervals. At stage , it removes one interval of length . At stage , it removes two intervals of length . At stage , it removes
intervals, each of length
The total removed length is therefore
After the first stages the cumulative removed length is
while the total length of is . Thus the finite-stage quantities already show how the removed lengths approach one without implying that the intersection is empty.
Since has length , this calculation suggests that the remaining set should be extremely small. In the language of length, the Cantor set has no length left after the removals.
But length is still not cardinality.
The Cantor set has cardinality
In fact, the Cantor set is not merely non-empty. It is uncountable, and in fact has the same cardinality as .
Theorem
The Cantor set has the same cardinality as
Let be the set of all infinite binary sequences
Define
Identify subsets with these positively indexed sequences by setting exactly when , and otherwise. This is a bijection between and .
This sends a binary sequence to the ternary expansion whose th digit is if and if . Thus the image lies in .
This is a bijection. To justify injectivity without a false claim that ordinary ternary expansions are always unique, suppose two binary sequences first differ at index . Their leading difference has magnitude , while the largest possible magnitude of the tail is
The leading difference is strictly larger, so it cannot be cancelled. Surjectivity follows from the ternary characterization: every point of has a /-only expansion, which gives a binary sequence by dividing each digit by .
It remains to justify . The coding above is an injection because . In the other direction, fix an enumeration and define
If , density of gives for some , so . Thus is injective. Cantor– Bernstein gives , and therefore
Common mistake
Zero length does not mean countable
The Cantor set is often described as dust because it is produced by removing open intervals at every scale. But the cardinality theorem says it still has as many points as the real line. Length and cardinality are different measurements.
Empty interior
The Cantor set has empty interior. Let and . Choose with . The component interval of containing has length ; its open middle third contains a point with . Hence no point of has an open neighbourhood contained in . Since , it is also not dense in , for example because misses it. This is compatible with having cardinality .
Density in the real line
The next section introduces a different notion of largeness.
Definition
Dense subset of
A subset is dense if for every and every , there exists such that
This definition does not ask how many elements has. It asks whether elements of can approximate every real number arbitrarily well.
Equivalently, no matter where you stand on the real line and no matter how small a tolerance you choose, some element of lies within that tolerance.
Integers are not dense
Theorem
is not dense in
Take
For every integer ,
So no integer lies within distance of . Hence is not dense in .
The proof only needs one failed target point and one failed tolerance. To show that a set is not dense, you do not have to check every real number. You only need to find a gap that the set cannot enter.
Rationals are dense
Theorem
is dense in
Let and let . By the Archimedean property, choose such that
Choose the largest integer satisfying
Then
Dividing by gives
Thus
satisfies . Therefore is dense in .
Worked example
A concrete rational approximation
Take and . Choose , so . The largest integer at most is ; consequently satisfies . This is the density proof with a particular target and tolerance.
This proof shows exactly what density means: for any requested tolerance, a rational approximation can be chosen inside that tolerance.
Common mistake
Dense does not mean uncountable
The rationals are dense in , but earlier cardinality results show that is countable. Density measures approximation, not cardinality.
The same idea can be restricted to a subset of the real line.
Definition
Dense in a subset
Let . A subset is dense in if for every and every , there exists such that
Well-ordering
The last part of Chapter 6 turns from size and approximation to order.
Definition
Well-ordered set
Let be a totally ordered set. We say is well-ordered if every non-empty subset has a minimum.
This is stronger than merely being totally ordered. A total order lets you compare two elements. A well-order additionally says that every non-empty subcollection has a first element.
Worked example
Finite initial segments of
In the von Neumann construction, a natural number is identified with
Ordered by inclusion, this is the usual order on the finite initial segment. For , there is no nonempty subset, so the assertion holds. Assume every nonempty subset of has a least element and let be nonempty. If , its least element is . Otherwise is nonempty, and its least element supplied by induction is also least in . Thus every finite initial segment is well-ordered.
Theorem
The natural numbers are well-ordered
The usual order on is a well-order: every non-empty subset of has a minimum.
The proof is by contradiction using induction. If a non-empty subset had no minimum, induction would show that , then , then , and so on. Hence no natural number would lie in , contradicting non-emptiness.
Orders that are not well-orders
Theorem
is not well-ordered by the usual order
The subset has no minimum. For any , the integer also lies in and satisfies . Therefore no element can be first.
Theorem
is not well-ordered by the usual order
The subset has no minimum. For any positive rational , the number is also positive rational and satisfies .
The second example is especially important because all elements are positive. The failure is not caused by negative numbers. It is caused by an infinite descending process with no first positive rational.
Common mistake
A minimum is not the same as a lower bound
The set has lower bounds in , such as , but . A minimum of a set must belong to the set itself.
Countable sets can be well-ordered
Now separate two statements:
- a particular order may fail to be a well-order;
- the underlying set may still admit some other well-order.
Theorem
Every countable set can be well-ordered
If is finite, list it as
and order the elements by their indices.
If is countably infinite, choose a bijection
Define
This transports the well-ordering of to .
For example, is not well-ordered by its usual order, but it is countable, so it can be well-ordered by choosing an enumeration of its elements.
The Well-Ordering Theorem
The chapter ends by connecting well-ordering to the Axiom of Choice.
Theorem
Well-Ordering Theorem
The Axiom of Choice is equivalent to the statement:
every set can be well-ordered.
One direction is direct. Let be a family in which every member is non-empty. If , the unique empty function is a choice function. Otherwise, well-order and choose from each member its least element. That gives a choice function.
The other direction uses the Axiom of Choice to choose an element from every non-empty subset of , then tries to build an order by repeatedly choosing the next unused element. This direction is more technical because making the construction precise requires transfinite recursion, which is beyond the course.
Common mistake
The Well-Ordering Theorem is not saying the usual order works
The usual order on , , or may fail to be a well-order. The theorem says that some well-order exists, assuming the Axiom of Choice. It does not give a familiar or computationally useful order.
Common mistakes
- Endpoint inclusion is a set-theoretic condition. The open middle third removes neither endpoint, so belongs to through .
- Length, cardinality, density, and interior are independent properties. is countable and dense, while is uncountable and has empty interior.
- A minimum belongs to the set. The lower bound of is not its minimum.
- The Well-Ordering Theorem asserts some well-order under the Axiom of Choice; it does not make the usual order on , , or a well-order.
Proof sketch or proof idea
The interval proof uses two injections and Cantor–Bernstein. The Cantor proof uses the geometric series for finite stages and a first-difference estimate for binary coding. Density fixes an arbitrary target and tolerance before choosing a rational approximation; well-ordering requires a minimum for every non-empty subset. Keeping these quantifiers separate is the main conceptual safeguard.
Summary
Non-degenerate intervals and the Cantor set have cardinality , while is countable and dense and has empty interior. Well-ordering concerns the existence of minima in every non-empty subset.
Exercises
Write a justification before opening the corresponding model solution. These questions ask for mathematical reasoning; compare the argument, not just the final statement.
Exercise 1. Determine and justify your answer using injections.
Solution · Model solution
The affine map sends into , giving an injection after composing with . Inclusion gives the reverse injection. Cantor–Bernstein therefore gives .
Exercise 2. Why does even though contains the digit ?
Solution · Model solution
Because , it has a ternary expansion using only and . It is also the retained endpoint of .
Exercise 3. Why is not dense in ?
Solution · Model solution
Take and . Every satisfies , so this target and tolerance disprove density.
Exercise 4. Why is dense in even though is countable?
Solution · Model solution
Countability concerns cardinality, while density concerns approximation. The Archimedean and largest-integer argument constructs a rational within any prescribed positive tolerance of any real number.
Exercise 5. Prove that is not well-ordered by its usual order.
Solution · Model solution
If , then and . Thus the non-empty subset has no minimum, so its usual order is not a well-order.
Exercise 6. Let be countably infinite and a bijection. Why does the transported order on become a well-order?
Solution · Model solution
For non-empty , the preimage is a non-empty subset of , so it has a least element . Then is the least element of in the transported order.
Related notes
Read this after 2.2 Functions and relations, 4.2 Upper bounds, supremum, and infimum, and 4.3 Completeness and gaps in Q. Then continue to 7.1 Binary operations, monoids, and groups.