Maths WorkshopMaths problems with full solutions
Exercise 1463Logic, sets and proofs › Countability and cardinalityL3Added 31 Oct 2026

Cantor's theorem

#diagonal argument#sets

Statement

Let EE be a set and P(E)\mathcal{P}(E) the set of its subsets. Prove that there is no surjective map from EE onto P(E)\mathcal{P}(E).

Hint

Given f:E→P(E)f:E\to\mathcal{P}(E), consider A={x∈E:x∉f(x)}A=\{x\in E : x\notin f(x)\}.

Show solutionHide solution

Solution

Let f:E→P(E)f:E\to\mathcal{P}(E) be any map and define
A={x∈E: x∉f(x)}∈P(E).A=\{x\in E:\ x\notin f(x)\}\in\mathcal{P}(E).

Suppose ff is surjective. Then A=f(a)A=f(a) for some a∈Ea\in E.

  • If a∈Aa\in A, then by the definition of AA we have a∉f(a)=Aa\notin f(a)=A, a contradiction.
  • If a∉Aa\notin A, then a∉f(a)a\notin f(a) fails, so a∈f(a)=Aa\in f(a)=A, a contradiction.

Both cases are impossible, so ff is not surjective. Since ff was arbitrary, no surjection E→P(E)E\to\mathcal{P}(E) exists.