The Cantor function possesses several
symmetries. For 0\le x\le 1, there is a reflection symmetry :c(x)=1-c(1-x) and a pair of magnifications, one on the left and one on the right: :c\left(\frac{x}{3}\right) = \frac{c(x)}{2} and :c\left(\frac{x+2}{3}\right) = \frac{1+c(x)}{2} The magnifications can be cascaded; they generate the
dyadic monoid. This is exhibited by defining several helper functions. Define the reflection as :r(x)=1-x The first self-symmetry can be expressed as :r\circ c = c\circ r where the symbol \circ denotes function composition. That is, (r\circ c)(x)=r(c(x))=1-c(x) and likewise for the other cases. For the left and right magnifications, write the left-mappings :L_D(x)= \frac{x}{2} and L_C(x)= \frac{x}{3} Then the Cantor function obeys :L_D \circ c = c \circ L_C Similarly, define the right mappings as :R_D(x)= \frac{1+x}{2} and R_C(x)= \frac{2+x}{3} Then, likewise, :R_D \circ c = c \circ R_C The two sides can be mirrored one onto the other, in that :L_D \circ r = r\circ R_D and likewise, :L_C \circ r = r\circ R_C These operations can be stacked arbitrarily. Consider, for example, the sequence of left-right moves LRLLR. Adding the subscripts C and D, and, for clarity, dropping the composition operator \circ in all but a few places, one has: :L_D R_D L_D L_D R_D \circ c = c \circ L_C R_C L_C L_C R_C 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 y=n/2^m for integer
n and
m and as finite length of bits y=0.b_1b_2b_3\cdots b_m with b_k\in \{0,1\}. 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 g_0 and g_1 stand for L and R. Function composition extends this to a
monoid, in that one can write g_{010}=g_0g_1g_0 and generally, g_Ag_B=g_{AB} 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 \gamma\in M as a general element of the monoid, there is a corresponding self-symmetry of the Cantor function: :\gamma_D\circ c= c\circ \gamma_C 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 SL(2,\mathbb{Z}). Note that the Cantor function bears more than a passing resemblance to
Minkowski's question-mark function. In particular, it obeys analogous symmetry relations, with only a slightly altered form. == Generalizations ==