(math) Functions as exponentiation for Sets
Many arithmetic operations are "shadows" of set operations. For instance, a disjoint union of sets is just addition on numbers and Cartesian product is the analog of multiplication. We can translate from the world of sets to those of numbers using cardinality. Let and be finite sets with cardinalities and , respectively. Let be the set of functions from to . As each element of has choices to map to under , the cardinality of is . That is why sometimes you will see the set of functions between and written as . This notation, although sickening, is quite suggestive. This is the analog of exponentiation for functions, and an invitation to play around.
An Example: power sets
The first non-trivial example of our framework is the set of subsets of which is called the power set of . The power set of is the set of functions from to wherein we construct a subset corresponding to the function by setting if and only if . The notation for the power set of is traditionally , or alternatively . There is nothing special about the 2-element set , and as all sets of a given cardinality are isomorphic, we should feel no shame in using the notation for the power set.
Exponent laws for sets
For the following exposition, let be finite sets. To remember that is the set of functions from to and not the other way, think of how powers are brought down while performing derivatives or logarithms. Let us now see some exponent laws through the eyes of sets of functions. I will write if there exists a bijection between the sets and , i.e., they have the same cardinality
Unions and Products
We first prove
Proposition: where and are disjoint sets.
Proof. Let us construct a bijection . Consider any function with and . As and are disjoint, we can unambiguously describe a function such that and , and thus . On the other hand, if we start with any function on , we can define , thus giving us a bijection. .
One can check the consequences of this proposition on special examples such as while noting that because consists only of the empty function. The case where corresponds to the power sets, and so holds for disjoint sets. Having rested upon our laurels for a bit, we must face the eventual question -- if we have the addition law, then we must have the subtraction law. But what is a natural notion for division of sets?
Differences and Equivalence Relations
We use the notation to mean all elements of not contained in . From the previously proved proposition, we can show which is almost what we need but here is an explicit description of that feels more satiating.
Proposition: For any two functions and in , let if and only if . We have .
Proof. Any representative function is a unique function on which gives us our bijection.
We can understand the equivalence relation as not caring what the function values are on the set . By abuse of notation, we can write as we are removing the part of a function on that evaluates on .
Exponent of an exponent
This one is quite cool and I will sketch out a proof conversationally. The exponent-like law holds. This law is capturing the idea that a two-variable function is a one-variable function when you fix one of the inputs. On the left hand side, we have a function which maps to . Here is a function defined as . This is exactly a function on the set . To see that this is indeed a bijection, we start with a function on the product and "fix" the second input, to obtain a function from to . This procedure is called currying.
Product with the same base
The base multiplication law is straightforward to prove. Pick a function and a function . This gives us a function on that takes values in . Conversely, any function , can be broken into two function and where and for .
For completeness...
The set is in bijection with as for each , there is a function such that . Similarly, the set is in bijection with the set where an element is constructed using the function with .
The final bijection
One of my favorite fact about the naturals is . In the set-theoretic world this means that the number of functions from a set of size 4 to a set of size 2 () is the same as the number of functions from a set of size 2 to a set of size 4 ().
One bijection that uses proceeds as follows. For , consider the following cases:
- .
We define by setting to be the case number satisfied above. Similarly, we can write the cases for and to define . This completely dictates the map .
This is an unsatisfying bijection due to its foundation on casework. This bijection can be visualized if one imagines these functions as certain bipartite graphs between 2 and 4 vertices. In that case, we are picking pairs of edges to replace with a single edge. Even this picture is not quite natural, so we end on a sombre note, wishing for a canonical (or as close to it) bijective proof of .
The idea that fascinates me here is that we can compress 4 edges into 2 edges, thus there is redundancy in the data. The above bijection picks up on this redundancy.