Here is the question:
If a set, $A$, is finite, then $|A| < 2^{|A|} = |P(A)|$, and so there is no surjection from set $A$ to its powerset. Show that this is still true if $A$ is infinite.
Here is the proof:
We prove there is no surjection by contradiction: suppose there was a surjection f : A → P(A) for some set A. Let W ::= {x in A | x not in f(x)}. So by definition, (x in W) ←→ (x not in f(x)) for all x in A. But W ⊆ A by definition and hence is a member of P(A). This means W = f(a) for some a in A, since f is a surjection to P(A). So (x in f(a)) ←→ (x not in f(x)) for all x in A. Substituting "a" for "x" yields a contradiction, proving that there cannot be such an f.
My question is what exactly does the definition of W mean? I don't understand the condition of "x not in f(x)". Second, I'm trying to learn proofs and I'm struggling with how one would be able to know to create W, which seems to be important to this proof. Third, how does one know how to create auxiliary information such as W when proving things in general?