Cantor function


In mathematics, the Cantor function is an example of a function that is continuous, but not absolutely continuous. It is a notorious counterexample in analysis, because it challenges naive intuitions about continuity, derivative, and measure. Though it is continuous everywhere and has zero derivative almost everywhere, its value still goes from 0 to 1 as its argument reaches from 0 to 1. Thus, in one sense the function seems very much like a constant one which cannot grow, and in another, it does indeed monotonically grow, by construction.
It is also referred to as the Cantor ternary function, the Lebesgue function, Lebesgue's singular function, the Cantor–Vitali function, the Devil's staircase, the Cantor staircase function, and the Cantor–Lebesgue function. introduced the Cantor function and mentioned that Scheeffer pointed out that it was a counterexample to an extension of the fundamental theorem of calculus claimed by Harnack. The Cantor function was discussed and popularized by, and.

Definition

See figure. To formally define the Cantor function c : → , let x be in and obtain c by the following steps:
  1. Express x in base 3.
  2. If x contains a 1, replace every digit strictly after the first 1 by 0.
  3. Replace any remaining 2s with 1s.
  4. Interpret the result as a binary number. The result is c.
For example:
Equivalently, if is the Cantor set on , then the Cantor function c : → can be defined as
This formula is well-defined, since every member of the Cantor set has a unique base 3 representation that only contains the digits 0 or 2.. Since c = 0 and c = 1, and c is monotonic on, it is clear that 0 ≤ c ≤ 1 also holds for all.

Properties

The Cantor function challenges naive intuitions about continuity and measure; though it is continuous everywhere and has zero derivative almost everywhere, goes from 0 to 1 as goes from 0 to 1, and takes on every value in between. The Cantor function is the most frequently cited example of a real function that is uniformly continuous but not absolutely continuous. It is constant on intervals of the form, and every point not in the Cantor set is in one of these intervals, so its derivative is 0 outside of the Cantor set. On the other hand, it has no derivative at any point in an uncountable subset of the Cantor set containing the interval endpoints described above.
The Cantor function can also be seen as the cumulative probability distribution function of the 1/2-1/2 Bernoulli measure μ supported on the Cantor set:. This probability distribution, called the Cantor distribution, has no discrete part. That is, the corresponding measure is atomless. This is why there are no jump discontinuities in the function; any such jump would correspond to an atom in the measure.
However, no non-constant part of the Cantor function can be represented as an integral of a probability density function; integrating any putative probability density function that is not almost everywhere zero over any interval will give positive probability to some interval to which this distribution assigns probability zero. In particular, as pointed out, the function is not the integral of its derivative even though the derivative exists almost everywhere.
The Cantor function is the standard example of a singular function.
The Cantor function is non-decreasing, and so in particular its graph defines a rectifiable curve. showed that the arc length of its graph is 2.

Lack of absolute continuity

Because the Lebesgue measure of the uncountably infinite Cantor set is 0, for any positive ε < 1 and δ, there exists a finite sequence of pairwise disjoint sub-intervals with total length < δ over which the Cantor function cumulatively rises more than ε.
In fact, to every δ > 0 there are finitely many pairwise disjoint intervals with and.

Alternative definitions

Iterative construction

Below we define a sequence of functions on the unit interval that converges to the Cantor function.
Let f0 = x.
Then, for every integer, the next function fn+1 will be defined in terms of fn as follows:
Let fn+1 =, when ;
Let fn+1 = 1/2, when ;
Let fn+1 =, when.
The three definitions are compatible at the end-points 1/3 and 2/3, because fn = 0 and fn = 1 for every n, by induction. One may check that fn converges pointwise to the Cantor function defined above. Furthermore, the convergence is uniform. Indeed, separating into three cases, according to the definition of fn+1, one sees that
If f denotes the limit function, it follows that, for every n ≥ 0,
Also the choice of starting function does not really matter, provided f0 = 0, f0 = 1 and f0 is bounded.

Fractal volume

The Cantor function is closely related to the Cantor set. The Cantor set C can be defined as the set of those numbers in the interval that do not contain the digit 1 in their base-3 expansion, except if the 1 is followed by zeros only. It turns out that the Cantor set is a fractal with infinitely many points, but zero length. Only the D-dimensional volume takes a finite value, where is the fractal dimension of C. We may define the Cantor function alternatively as the D-dimensional volume of sections of the Cantor set

Generalizations

Let
be the dyadic expansion of the real number 0 ≤ y ≤ 1 in terms of binary digits bk ∈. Then consider the function
For z = 1/3, the inverse of the function x = 2 C1/3 is the Cantor function. That is, y = y is the Cantor function. In general, for any z < 1/2, Cz looks like the Cantor function turned on its side, with the width of the steps getting wider as z approaches zero.
As mentioned above, the Cantor function is also the cumulative distribution function of a measure on the Cantor set. Different Cantor functions, or Devil's Staircases, can be obtained by considering different atom-less probability measures supported on the Cantor set or other fractals. While the Cantor function has derivative 0 almost everywhere, current research focusses on the question of the size of the set of points where the upper right derivative is distinct from the lower right derivative, causing the derivative to not exist. This analysis of differentiability is usually given in terms of fractal dimension, with the Hausdorff dimension the most popular choice. This line of research was started in the 1990s by Darst, who showed that the Hausdorff dimension of the set of non-differentiability of the Cantor function is the square of the dimension of the Cantor set,. Subsequently Falconer showed that this squaring relationship holds for all Ahlfor's regular, singular measures, i.e.Later, Troscheit obtain a more comprehensive picture of the set where the derivative does not exist for more general normalized Gibb's measures supported on self-conformal and self-similar sets.
Hermann Minkowski's question mark function loosely resembles the Cantor function visually, appearing as a "smoothed out" form of the latter; it can be constructed by passing from a continued fraction expansion to a binary expansion, just as the Cantor function can be constructed by passing from a ternary expansion to a binary expansion. The question mark function has the interesting property of having vanishing derivatives at all rational numbers.