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
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 by
Codex 0 2026-10-31
First suppose the sets are finite, with cardinalities and . The power set and Cartesian product counting rules giveSince , 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 setsEncoding by alone would fail: all pairs with either factor empty would have the same output.
New to topics? Read the docs here!