Cantor set C0
First of all C0 is a subset of the closed unit interval [0, 1] = {x: 0
x
1}.
C0 is what's left over after removal of a sequence of open subintervals of [0, 1]. The algorithm is as follows:
- Divide the remaining intervals each into three equal parts.
- Remove the open middle interval.
- Repeat 1.
Thus first we remove the interval (1/3,2/3). This leaves a union of two closed intervals: [0,1/3]
[2/3,1].
I'll call the removed interval d1,1. Next we split each of the remaining intervals [0,1/3] and [2/3,1] into three smaller ones and remove
the middle part d2,1 = (1/9,2/9) from the first and d2,2 = (7/9,8/9) from the second, respectively. We are left with the union of four intervals:
[0,1/9]
[2/9,1/3]
[2/3,7/9]
[8/9,1].
Observe that we started with the interval [0, 1] of length 1. After removing d1,1, the total length of the remaining intervals became 2/3. d2,1 and d2,2
totaled 1/3 of this. So after their removal, the four remaining intervals had the total length of (2/3)2. Next we remove
4 middle intervals d3,1,...,d3,4 leaving 8 smaller (closed) intervals with the total length of (2/3)3. The process never stops. In general, on the step number
p we remove 2p-1 intervals dp,1,...,dp,2p-1. The total length of the remaining intervals is (2/3)p.
Obviously, as p grows, the length (2/3)p tends to 0. However, this does not mean that C0 is empty. Moreover, the set is not even countable. The most convenient way
to see this is by using ternary representation of the decimals from [0, 1]. In the ternary system the only digits allowed are 0,1, and 2.
For example (1/3)10 = (0.1)3, (2/3)10 = (0.2)3, (1/9)10 = (0.01)3, (2/9)10 = (0.02)3, (7/9)10 = (0.21)3,
and (8/9)10 = (0.22)3. It's important to note that the points inside the
interval (1/3,2/3) all have the first digit equal to 1. The only other point with this feature is 1/3. However, 1/3 can also be written as 0.022222.... Therefore, if we adopt the convention of replacing
ternary representations that end with 1000... with those that end with 0222..., we can say that on the first step all the decimals whose ternary representation started with 1 have been removed. Similarly,
on the second step we removed all the decimals (among the remaining ones) whose second digit was 1. On the third step the numbers with the third digit equal 1 have been removed. And so on. On the other hand,
numbers in [0, 1] whose ternary representation contains no 1's will be left over even after an infinite number of steps. The conclusion is that C0 = {x: x = (0.a1a2a3...)3, where each ai = 0 or 2}.
Applying the diagonal process we immediately see that C0 is not countable.
Cantor function
Let x = (0.a1a2a3...)3
C0 which means
all ai's are either 0 or 2. Let define a function f: C0
[0, 1] the following way:
let bi = ai/2, then define f(x) = (0.b1b2b3...)2, where x = (0.a1a2a3...)3.
What's interesting is that at the end points of the intervals dp,k thus defined function takes on equal values. Consider, for example,
d1,1 = (1/3,2/3). Then f(1/3) = f(0.0222...) = (0.0111...)2 = (0.1)2 = 1/2. On the other hand, f(2/3) = f(0.2) = (0.1)2.
Therefore f(1/3) = f(2/3). The same argument works for other intervals as well. So far f has been defined on C0. Using the feature we just
discussed, we can extend (lift) the definition of f to the whole [0, 1]. Set f constant on every interval dp,k. Since C0 has no
isolated points, and is monotonous on C0, the extended function is actually continuous being constant on intervals of total length 1!. In other words,
a nonconstant function f that has a derivative equal to 0 on intervals of total length 1 manages to grow from 0 to 1 on the interval [0, 1]. The derivative
is, of course, discontinuous; it's undefined at points of the Cantor set C0.
Remark
Cantor function is as famous as it is useful for other exceptional constructs. For example,
let g: [0, 1]
[0, 1]×[0, 1] be a Peano curve. Then g(f): [0, 1]
[0, 1]×[0, 1] is another Peano curve that is constant almost everywhere.
References
- B.R.Gelbaum and J.M.H.Olmsted, Counterexamples in Analysis, Holden-Day, 1964
- B.R.Gelbaum and J.M.H.Olmsted, Theorems and Counterexamples in Mathematics, Springer-Verlag, 1990
