Low Lying Island

(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 A and B be finite sets with cardinalities a and b, respectively. Let (A,B) be the set of functions from A to B. As each element of xA has b choices to map to under f, the cardinality of (A,B) is ba. That is why sometimes you will see the set of functions between A and B written as BA. 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 A which is called the power set of A. The power set of A is the set of functions from A to {0,1} wherein we construct a subset AfA corresponding to the function f by setting f(x)=1 if and only if xA. The notation for the power set of A is traditionally (A), or alternatively {0,1}A. There is nothing special about the 2-element set {0,1}, and as all sets of a given cardinality are isomorphic, we should feel no shame in using the notation 2A for the power set.

Exponent laws for sets

For the following exposition, let A,B,S be finite sets. To remember that YX is the set of functions from X to Y 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 XY if there exists a bijection between the sets X and Y, i.e., they have the same cardinality

Unions and Products

We first prove
Proposition: SA×SBSAB where A and B are disjoint sets.

Proof. Let us construct a bijection ϕ:SA×SB=SAB. Consider any function (f,g)SA×SB with f:AS and g:BS. As A and B are disjoint, we can unambiguously describe a function h=ϕ(f,g) such that h|A=f and h|B=g, and thus ϕ(f,g)SAB. On the other hand, if we start with any function h on SAB, we can define ϕ1(h)=(h|A,h|B), thus giving us a bijection. .

One can check the consequences of this proposition on special examples such as B= while noting that |S|=1 because S consists only of the empty function. The case where |S|=2 corresponds to the power sets, and so (A)×(B)=(AB) 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 AB to mean all elements of A not contained in B. From the previously proved proposition, we can show SAB×SBSA which is almost what we need but here is an explicit description of SAB that feels more satiating.

Proposition: For any two functions f and g in SA, let f~g if and only if f|AB=g|AB. We have SAB=SA/~.

Proof. Any representative function f¯SA/~ is a unique function on SAB which gives us our bijection.

We can understand the equivalence relation as not caring what the function values are on the set B. By abuse of notation, we can write SAB=SA/SB as we are removing the part of a function on A that evaluates on B.

Exponent of an exponent

This one is quite cool and I will sketch out a proof conversationally. The exponent-like law (SA)BSA×B 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 f:B(SA) which maps bB to fb. Here fb is a function defined as fb(a)=f(a,b). This is exactly a function on the set A×B. 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 A to S. This procedure is called currying.

Product with the same base

The base multiplication law AS×BS(A×B)S is straightforward to prove. Pick a function fAS and a function gBS. This gives us a function (f,g) on S that takes values in A×B. Conversely, any function f:SA×B, can be broken into two function f|A:SA and f|B:SB where f|A(s)=x and f|B(s)=y for f(s)=(x,y).

For completeness...

The set S1 is in bijection with S as for each sS, there is a function fs such that fs(1)=s. Similarly, the set Sn is in bijection with the set S{1,2,,n} where an element (s1,s2,,sn) is constructed using the function f with f(i)=si.

The final bijection

One of my favorite fact about the naturals is 24=42. In the set-theoretic world this means that the number of functions from a set of size 4 to a set of size 2 ((4,2)) is the same as the number of functions from a set of size 2 to a set of size 4 ((2,4)).

One bijection that uses 22=4 proceeds as follows. For f:{1,2,3,4}{1,2}, consider the following cases:

  1. f(1)=f(2)=1
  2. f(1)<f(2)
  3. f(2)<f(1)
  4. f(1)=f(2)=2.

We define ϕ:(4,2)(2,4) by setting ϕ(f)(1) to be the case number satisfied above. Similarly, we can write the cases for 3 and 4 to define ϕ(f)(2). This completely dictates the map ϕ(f).

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 24=42.

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.