Question
Can you prove all functions can be decomposed into binary functions?
Some Math
Layer-Cake Decomposition
For any function, imagine it as a cake. As with a cake, you can slice it horizontally infinitely many times. Define the following:
The function is the set of all x such that f(x) is greater than t. Note this is just a formality to scope this representation to ONLY the non-negative real space. Then condition every differential that if the to equal 1; 0 otherwise.
A slight aside is that the greater or equal to for the 0 condition is a formality but that the integral operation nullifies it.
Another comment is that we are integrating for the horizontal layers under the curve but the conditional in the first equation is for greater than. One may think that it’s 1 if over t. It’s written that way to imply we are measuring vertically up; indeed, it’s indicated 1 if under the curve not over.
Thus,
QED.
In other words, a real function is a stack of binary threshold signals.
Discrete binary expansion of functions is the discrete version of this.
It’s the same setup as the continuous version but since it’s discrete, we need to setup our own measuring stick, namely the base-2. So essentially, we sum up the layers where gives the thickness. The conditional is given by :
The way this acts as a conditional is that the first term tells you how many dyadic intervals of size fits in this term.
For , you get
In ordinary terms, that’s 5 intervals of size 1/8 fit in 0.7.
The second term does the same thing but uses a coarser scale by a factor of 1/2. When you subtract the two terms, you isolate whether the current layer exists or not. A good way to think about this is that each term is like a measuring stick. How many times you can measure with the measure stick gives you the first term. How many times you can measure with the measure stick gives you the second term. Since the is the “bigger” unit stick and is a smaller unit. It can never be more than 1 otherwise the coarser measuring stick would have another unit.
Regrouping to the key point,
States any bounded function is the weighted sum of binary signals.
Some additional examples
Binary basis of function spaces
The space bounded between 0 and 1 inclusive such that the square of the function is integrable.
And consider a wavelet, a small wave-like function localiyzed in space and frequency. They have zero mean
Short Answer
No. We know that every function can be represented by binary-valued pieces; however, it is NOT true that every possible function/space is composed of binary signals.
Representation Composition
Any representation can be written as:
where w = weights, b = binary
Note that can NEVER be produced by this representation.
Cardinality
The set of all functions
has size
Compare that to all binary representations in the set {0,1} which has cardinality .