Prove Cantor's theorem completely: for every set , .
Get from the injection , and rule out any surjection with the diagonal set .
Show proof
comes from the injection , : if then , so is injective. (For the empty map is injective.)
Now we show no is surjective.
Form the diagonal set (, so ).
If were surjective, some would satisfy .
For that : is equivalent by definition to , and since , this is equivalent to .
So β a contradiction.
Hence no such exists, is not in the range of , and is not surjective.
If there would be a bijection, hence in particular a surjection β contradicting the above.
So , and together with from the first step, .
QED.