summaryrefslogtreecommitdiff
path: root/library/set/cantor.tex
blob: 093adee60f3cd09abda6ee851b21beade3f66bd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\import{set/powerset.tex}
\import{function.tex}

\subsection{Cantor's theorem}


\begin{theorem}[Cantor]\label{cantor}
    There exists no surjection from $A$ to $\pow{A}$.
\end{theorem}
\begin{proof}
    Assume there exists a surjection from $A$ to $\pow{A}$.
    Take $f$ such that $f$ is a surjection from $A$ to $\pow{A}$ by assumption.
    Let $B = \{a \in A \mid a\notin f(a)\}$.
    We have $B\subseteq A$ by \cref{subseteq}.
    Thus $B\in\pow{A}$ by \cref{pow_iff}.
    Take $a'$ such that $a'\in A$ and $f(a') = B$ by \cref{surj}.
    We have if $a'\in B$, then $a'\notin B$ by assumption.
    We have if $a'\notin B$, then $a'\in B$ by assumption.
    Contradiction by assumption.
\end{proof}