Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/discrete-mathematics-continuous-mathematics-and-probability-resit/1/d/ii/solution

First suppose the sets are finite, with cardinalities and . The power set and Cartesian product counting rules give
Since , the desired inequality follows.
The power-set product cardinality inequality also has an injection proof that does not assume finiteness. Choose distinct and distinct . For and , define the subset of
These three encoding regions are disjoint. The row with second coordinate recovers ; the column with first coordinate and second coordinate different from recovers ; the extra position records whether . Thus is injective, proving for arbitrary sets
Encoding by alone would fail: all pairs with either factor empty would have the same output.

New to topics? Read the docs here!