Jehannum said:
I've copied part of the book below:
Theorem 2.2 There are infinite sets that are not enumerable.
Proof Consider the powerset of N, in other words the collection P whose members are all the sets of numbers (so X ∈ P iff X ⊆ N).
Suppose for reductio that there is a function f : N→P which enumerates P, and consider what we’ll call the diagonal set D ⊆ N such that n ∈ D iff n /∈ f(n).
Since D ∈ P and f by hypothesis enumerates all the members of P, there must be some number d such that f(d) = D.
So we have, for all numbers n, n ∈ f(d) iff n /∈ f(n). Hence in particular d ∈ f(d) iff d /∈ f(d). Contradiction!
O.k., but this is not what you wrote. ##n \in f## is something different to ##n \in f(n)## where ##f: \mathbb{N}\rightarrow \mathcal{P}(\mathbb{N})## is a function which values are sets ##X##, so ##n \in X=f(n) \in \mathcal{P}(\mathbb{N})## makes sense. This is not the same as ##n \in f \in \mathcal{P}( \mathbb{N} \times \mathbb{N})## which we explained in the previous posts.
The theorem is proven by the so called diagonal argument. It is a formal notation of the following principle:
We want to show, that the set of all subsets of ##\mathbb{N}## isn't enumerable.
If we have an element ##X \in \mathcal{P}(\mathbb{N})##, i.e. a subset ##X \subseteq \mathbb{N}##, then we can write it down number by number: ##X= n_1n_2n_3n_4 \ldots##
Now let's assume ##\mathcal{P}(\mathbb{N})## is enumerable. Then there would be a complete list like
$$\begin{matrix} 1: &X_1 & = & n_{11}n_{12}n_{13} \ldots \\ 2: &X_2 & = & n_{21}n_{22}n_{23} \ldots \\ 3: & X_3 & = & n_{31}n_{32}n_{33} \ldots \\ &\vdots &&\\ \end{matrix}$$
which contains all elements of ##\mathcal{P}(\mathbb{N})##, or subsets of ##\mathbb{N}##.
The diagonal ##d## is now the number ##d=n_{11}n_{22}n_{33} \ldots## We next add ##+1## to all of the numbers ##n_{ii}\,##.
Since by assumption we have enumerated all, this new number ##d'## (or subset ##d'=\{n_{11}+1,n_{22}+1,n_{33}+1, \ldots\}## if you like) has to occur somewhere, say ##d'=X_k##. However the ##k-##th position of ##d'## is ##n_{kk}## by enumeration of the ##X_i## and ##n_{kk}+1## by construction of ##d'##. This cannot both be true, which means there is no way to enumerate ##\mathcal{P}(\mathbb{N})##.
You might want to read the proof in the book again and figure out, why both are basically the same. It is also the method used to show why ##[0,1]## or ##\mathbb{R}## are uncountable. Whether ##|\mathcal{P}(\mathbb{N})| = |\mathbb{R}|## holds is called the continuum hypothesis. It cannot be deduced from the usual axioms of set theory, i.e. by the Zermelo-Fraenkel axioms (ZF). If you read ZFC somewhere, then Zermelo-Fraenkel + Contnuum hypothesis is meant. (Usually it is also assumed, if nothing is said.)