Cantor’s proof that there are uncountably many reals uses a diagonalization argument that may be generalized in the following way.
Cantor's Theorem.
Let be any set. There is no surjective function .
Proof:
Assume towards contradiction that is surjective. Define .
Clearly, , so by surjectivity there is some such that .
Now, if , then by definition , contradiction. Similarly, if , then by definition , contradiction.
Thus, no such surjection can exist.