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.

- Definition
- Properties
- Lack of absolute continuity
- Alternative definitions
- Iterative construction
- Fractal volume
- Self-similarity
- Generalizations
- See also
- Notes
- References
- External links

It is also referred to as the **Cantor ternary function**, the **Lebesgue function**,^{ [1] }**Lebesgue's singular function**, the **Cantor–Vitali function**, the **Devil's staircase**,^{ [2] } the **Cantor staircase function**,^{ [3] } and the **Cantor–Lebesgue function**.^{ [4] } GeorgCantor ( 1884 ) 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 Scheeffer (1884), Lebesgue (1904) and Vitali (1905).

See figure. To formally define the Cantor function *c* : [0,1] → [0,1], let *x* be in [0,1] and obtain *c*(*x*) by the following steps:

- Express
*x*in base 3. - If
*x*contains a 1, replace every digit strictly after the first 1 by 0. - Replace any remaining 2s with 1s.
- Interpret the result as a binary number. The result is
*c*(*x*).

For example:

- 1/4 is 0.02020202... in base 3. There are no 1s so the next stage is still 0.02020202... This is rewritten as 0.01010101... When read in base 2, this corresponds to 1/3, so
*c*(1/4) = 1/3. - 1/5 is 0.01210121... in base 3. The digits after the first 1 are replaced by 0s to produce 0.01000000... This is not rewritten since there are no 2s. When read in base 2, this corresponds to 1/4, so
*c*(1/5) = 1/4. - 200/243 is 0.21102 (or 0.211012222...) in base 3. The digits after the first 1 are replaced by 0s to produce 0.21. This is rewritten as 0.11. When read in base 2, this corresponds to 3/4, so
*c*(200/243) = 3/4.

Equivalently, if is the Cantor set on [0,1], then the Cantor function *c* : [0,1] → [0,1] 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. (For some members of , the ternary expansion is repeating with trailing 2's and there is an alternative non-repeating expansion ending in 1. For example, 1/3 = 0.1_{3} = 0.02222..._{3} is a member of the Cantor set). Since *c*(0) = 0 and *c*(1) = 1, and *c* is monotonic on , it is clear that 0 ≤ *c*(*x*) ≤ 1 also holds for all .

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 (precisely, it is Hölder continuous of exponent *α* = log 2/log 3) but not absolutely continuous. It is constant on intervals of the form (0.*x*_{1}*x*_{2}*x*_{3}...*x*_{n}022222..., 0.*x*_{1}*x*_{2}*x*_{3}...*x*_{n}200000...), 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 Vitali (1905) 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. Scheeffer (1884) showed that the arc length of its graph is 2.

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, for every *δ* > 0 there are finitely many pairwise disjoint intervals (*x _{k}*,

Below we define a sequence {*f*_{n}} of functions on the unit interval that converges to the Cantor function.

Let *f*_{0}(*x*) = *x*.

Then, for every integer *n*≥ 0, the next function *f*_{n+1}(*x*) will be defined in terms of *f*_{n}(*x*) as follows:

Let *f*_{n+1}(*x*) = 1/2 ×*f*_{n}(3*x*), when 0 ≤ *x* ≤ 1/3 ;

Let *f*_{n+1}(*x*) = 1/2, when 1/3 ≤ *x* ≤ 2/3 ;

Let *f*_{n+1}(*x*) = 1/2 + 1/2 ×*f*_{n}(3 *x*− 2), when 2/3 ≤ *x* ≤ 1.

The three definitions are compatible at the end-points 1/3 and 2/3, because *f*_{n}(0) = 0 and *f*_{n}(1) = 1 for every *n*, by induction. One may check that *f*_{n} converges pointwise to the Cantor function defined above. Furthermore, the convergence is uniform. Indeed, separating into three cases, according to the definition of *f*_{n+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 *f*_{0}(0) = 0, *f*_{0}(1) = 1 and *f*_{0} is bounded ^{[ citation needed ]}.

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 [0, 1] that do not contain the digit 1 in their base-3 (triadic) expansion, except if the 1 is followed by zeros only (in which case the tail 1000 can be replaced by 0222 to get rid of any 1). It turns out that the Cantor set is a fractal with (uncountably) infinitely many points (zero-dimensional volume), but zero length (one-dimensional volume). Only the *D*-dimensional volume (in the sense of a Hausdorff-measure) 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

The Cantor function possesses several symmetries. For , there is a reflection symmetry

and a pair of magnifications, one on the left and one on the right:

and

The magnifications can be cascaded; they generate the dyadic monoid. This is exhibited by defining several helper functions. Define the reflection as

The first self-symmetry can be expressed as

where the symbol denotes function composition. That is, and likewise for the other cases. For the left and right magnifications, write the left-mappings

- and

Then the Cantor function obeys

Similarly, define the right mappings as

- and

Then, likewise,

The two sides can be mirrored one onto the other, in that

and likewise,

These operations can be stacked arbitrarily. Consider, for example, the sequence of left-right moves Adding the subscripts C and D, and, for clarity, dropping the composition operator in all but a few places, one has:

Arbitrary finite-length strings in the letters L and R correspond to the dyadic rationals, in that every dyadic rational can be written as both for integer *n* and *m* and as finite length of bits with Thus, every dyadic rational is in one-to-one correspondence with some self-symmetry of the Cantor function.

Some notational rearrangements can make the above slightly easier to express. Let and stand for L and R. Function composition extends this to a monoid, in that one can write and generally, for some binary strings of digits *A*, *B*, where *AB* is just the ordinary concatenation of such strings. The dyadic monoid *M* is then the monoid of all such finite-length left-right moves. Writing as a general element of the monoid, there is a corresponding self-symmetry of the Cantor function:

The dyadic monoid itself has several interesting properties. It can be viewed as a finite number of left-right moves down an infinite binary tree; the infinitely distant "leaves" on the tree correspond to the points on the Cantor set, and so, the monoid also represents the self-symmetries of the Cantor set. In fact, a large class of commonly occurring fractals are described by the dyadic monoid; additional examples can be found in the article on de Rham curves. Other fractals possessing self-similarity are described with other kinds of monoids. The dyadic monoid is itself a sub-monoid of the modular group

Note that the Cantor function bears more than a passing resemblance to Minkowski's question-mark function. In particular, it obeys the exact same symmetry relations, although in an altered form.

Let

be the dyadic (binary) expansion of the real number 0 ≤ *y* ≤ 1 in terms of binary digits *b*_{k}∈ {0,1}. This expansion is discussed in greater detail in the article on the dyadic transformation. Then consider the function

For *z* = 1/3, the inverse of the function *x* = 2 *C*_{1/3}(*y*) is the Cantor function. That is, *y* = *y*(*x*) is the Cantor function. In general, for any *z* < 1/2, *C*_{z}(*y*) 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,^{ [5] } 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 ^{ [6] } showed that this squaring relationship holds for all Ahlfor's regular, singular measures, i.e.

Later, Troscheit^{ [7] } 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.

- ↑ Vestrup 2003 , Section 4.6.
- ↑ Thomson, Bruckner & Bruckner 2008 , p. 252.
- ↑ http://mathworld.wolfram.com/CantorStaircaseFunction.html
- ↑ Bass 2013 , p. 28.
- ↑ Darst, Richard (1993-09-01). "The Hausdorff Dimension of the Nondifferentiability Set of the Cantor Function is [ ln(2)/ln(3) ]2".
*Proceedings of the American Mathematical Society*.**119**(1): 105–108. doi:10.2307/2159830. JSTOR 2159830. - ↑ Falconer, Kenneth J. (2004-01-01). "One-sided multifractal analysis and points of non-differentiability of devil's staircases".
*Mathematical Proceedings of the Cambridge Philosophical Society*.**136**(1): 167–174. Bibcode:2004MPCPS.136..167F. doi:10.1017/S0305004103006960. ISSN 1469-8064. - ↑ Troscheit, Sascha (2014-03-01). "Hölder differentiability of self-conformal devil's staircases".
*Mathematical Proceedings of the Cambridge Philosophical Society*.**156**(2): 295–311. arXiv: 1301.1286 . Bibcode:2014MPCPS.156..295T. doi:10.1017/S0305004113000698. ISSN 1469-8064. S2CID 56402751.

In calculus, the **chain rule** is a formula that expresses the derivative of the composition of two differentiable functions f and g in terms of the derivatives f and g. More precisely, if is the function such that for every x, then the chain rule is, in Lagrange's notation,

In mathematics, the **Cantor set** is a set of points lying on a single line segment that has a number of unintuitive properties. It was discovered in 1874 by Henry John Stephen Smith and introduced by German mathematician Georg Cantor in 1883.

In vector calculus, the **gradient** of a scalar-valued differentiable function *f* of several variables is the vector field whose value at a point is the vector whose components are the partial derivatives of at . That is, for , its gradient is defined at the point in *n-*dimensional space as the vector:

In mathematical analysis, the **Haar measure** assigns an "invariant volume" to subsets of locally compact topological groups, consequently defining an integral for functions on those groups.

In mathematical optimization, the **method of Lagrange multipliers** is a strategy for finding the local maxima and minima of a function subject to equality constraints. It is named after the mathematician Joseph-Louis Lagrange. The basic idea is to convert a constrained problem into a form such that the derivative test of an unconstrained problem can still be applied. The relationship between the gradient of the function and gradients of the constraints rather naturally leads to a reformulation of the original problem, known as the **Lagrangian function**.

In mathematics, **K-theory** is, roughly speaking, the study of a ring generated by vector bundles over a topological space or scheme. In algebraic topology, it is a cohomology theory known as topological K-theory. In algebra and algebraic geometry, it is referred to as algebraic K-theory. It is also a fundamental tool in the field of operator algebras. It can be seen as the study of certain kinds of invariants of large matrices.

In differential geometry, the **Lie derivative**, named after Sophus Lie by Władysław Ślebodziński, evaluates the change of a tensor field, along the flow defined by another vector field. This change is coordinate invariant and therefore the Lie derivative is defined on any differentiable manifold.

In the calculus of variations and classical mechanics, the **Euler-Lagrange equations** is a system of second-order ordinary differential equations whose solutions are stationary points of the given action functional. The equations were discovered in the 1750s by Swiss mathematician Leonhard Euler and Italian mathematician Joseph-Louis Lagrange.

In measure theory, Lebesgue's **dominated convergence theorem** provides sufficient conditions under which almost everywhere convergence of a sequence of functions implies convergence in the *L*^{1} norm. Its power and utility are two of the primary theoretical advantages of Lebesgue integration over Riemann integration.

In category theory, a branch of mathematics, a **monad** is an endofunctor, together with two natural transformations required to fulfill certain coherence conditions. Monads are used in the theory of pairs of adjoint functors, and they generalize closure operators on partially ordered sets to arbitrary categories.

**Faà di Bruno's formula** is an identity in mathematics generalizing the chain rule to higher derivatives. It is named after Francesco Faà di Bruno, although he was not the first to state or prove the formula. In 1800, more than 50 years before Faà di Bruno, the French mathematician Louis François Antoine Arbogast had stated the formula in a calculus textbook, which is considered to be the first published reference on the subject.

In mathematics, the **Minkowski question-mark function** denoted by ?(*x*), is a function possessing various unusual fractal properties, defined by Hermann Minkowski. It maps quadratic irrationals to rational numbers on the unit interval, via an expression relating the continued fraction expansions of the quadratics to the binary expansions of the rationals, given by Arnaud Denjoy in 1938. In addition, it maps rational numbers to dyadic rationals, as can be seen by a recursive definition closely related to the Stern–Brocot tree.

The **dyadic transformation** is the mapping

In mathematics, an **operad** is concerned with prototypical algebras that model properties such as commutativity or anticommutativity as well as various amounts of associativity. Operads generalize the various associativity properties already observed in algebras and coalgebras such as Lie algebras or Poisson algebras by modeling computational trees within the algebra. Algebras are to operads as group representations are to groups. An operad can be seen as a set of operations, each one having a fixed finite number of inputs (arguments) and one output, which can be composed one with others. They form a category-theoretic analog of universal algebra.

In mathematics, the **Frölicher–Nijenhuis bracket** is an extension of the Lie bracket of vector fields to vector-valued differential forms on a differentiable manifold.

In mathematics, the **blancmange curve** is a self-affine curve constructible by midpoint subdivision. It is also known as the **Takagi curve**, after Teiji Takagi who described it in 1901, or as the **Takagi–Landsberg curve**, a generalization of the curve named after Takagi and Georg Landsberg. The name *blancmange* comes from its resemblance to a pudding of the same name. It is a special case of the more general de Rham curve; see also fractal curve.

In mathematics, a **de Rham curve** is a certain type of fractal curve named in honor of Georges de Rham.

In the mathematical field of differential topology, the **Lie bracket of vector fields**, also known as the **Jacobi–Lie bracket** or the **commutator of vector fields**, is an operator that assigns to any two vector fields *X* and *Y* on a smooth manifold *M* a third vector field denoted [*X*, *Y*].

In complex analysis of one and several complex variables, **Wirtinger derivatives**, named after Wilhelm Wirtinger who introduced them in 1927 in the course of his studies on the theory of functions of several complex variables, are partial differential operators of the first order which behave in a very similar manner to the ordinary derivatives with respect to one real variable, when applied to holomorphic functions, antiholomorphic functions or simply differentiable functions on complex domains. These operators permit the construction of a differential calculus for such functions that is entirely analogous to the ordinary differential calculus for functions of real variables.

In mathematics, **infinite compositions of analytic functions (ICAF)** offer alternative formulations of analytic continued fractions, series, products and other infinite expansions, and the theory evolving from such compositions may shed light on the convergence/divergence of these expansions. Some functions can actually be expanded directly as infinite compositions. In addition, it is possible to use ICAF to evaluate solutions of fixed point equations involving infinite expansions. Complex dynamics offers another venue for iteration of systems of functions rather than a single function. For infinite compositions of a *single function* see Iterated function. For compositions of a finite number of functions, useful in fractal theory, see Iterated function system.

- Bass, Richard Franklin (2013) [2011].
*Real analysis for graduate students*(Second ed.). Createspace Independent Publishing. ISBN 978-1-4818-6914-0. - Cantor, G. (1884). "De la puissance des ensembles parfaits de points: Extrait d'une lettre adressée à l'éditeur" [The power of perfect sets of points: Extract from a letter addressed to the editor].
*Acta Mathematica*. International Press of Boston.**4**: 381–392. doi: 10.1007/bf02418423 . ISSN 0001-5962. Reprinted in: E. Zermelo (Ed.), Gesammelte Abhandlungen Mathematischen und Philosophischen Inhalts, Springer, New York, 1980. - Darst, Richard B.; Palagallo, Judith A.; Price, Thomas E. (2010),
*Curious curves*, Hackensack, NJ: World Scientific Publishing Co. Pte. Ltd., ISBN 978-981-4291-28-6, MR 2681574 - Dovgoshey, O.; Martio, O.; Ryazanov, V.; Vuorinen, M. (2006). "The Cantor function".
*Expositiones Mathematicae*. Elsevier BV.**24**(1): 1–37. doi: 10.1016/j.exmath.2005.05.002 . ISSN 0723-0869. MR 2195181. - Fleron, Julian F. (1994-04-01). "A Note on the History of the Cantor Set and Cantor Function".
*Mathematics Magazine*. Informa UK Limited.**67**(2): 136–140. doi:10.2307/2690689. ISSN 0025-570X. JSTOR 2690689. - Lebesgue, H. (1904),
*Leçons sur l'intégration et la recherche des fonctions primitives*[*Lessons on integration and search for primitive functions*], Paris: Gauthier-Villars - Leoni, Giovanni (2017).
*A first course in Sobolev spaces*.**181**(2nd ed.). Providence, Rhode Island: American Mathematical Society. p. 734. ISBN 978-1-4704-2921-8. OCLC 976406106. - Scheeffer, Ludwig (1884). "Allgemeine Untersuchungen über Rectification der Curven" [General investigations on rectification of the curves].
*Acta Mathematica*. International Press of Boston.**5**: 49–82. doi: 10.1007/bf02421552 . ISSN 0001-5962. - Thomson, Brian S.; Bruckner, Judith B.; Bruckner, Andrew M. (2008) [2001].
*Elementary real analysis*(Second ed.). ClassicalRealAnalysis.com. ISBN 978-1-4348-4367-8. - Vestrup, E.M. (2003).
*The theory of measures and integration*. Wiley series in probability and statistics. John Wiley & sons. ISBN 978-0471249771. - Vitali, A. (1905), "Sulle funzioni integrali" [On the integral functions],
*Atti Accad. Sci. Torino Cl. Sci. Fis. Mat. Natur.*,**40**: 1021–1034

This page is based on this Wikipedia article

Text is available under the CC BY-SA 4.0 license; additional terms may apply.

Images, videos and audio are available under their respective licenses.

Text is available under the CC BY-SA 4.0 license; additional terms may apply.

Images, videos and audio are available under their respective licenses.