24. Russell’s Paradox
The setbuilder notation has a bug: for some predicates $P (x)$, the notation $\{x | P (x )\}$ does not define a set. An example is the predicate “$x$ is a set”. In that case, if $\{x | x$ is a set $\}$ were a set, it would be the set of all sets. However, there is no such thing as the set of all sets. This can be proved using the theory of infinite cardinals, but will not be done here.
We now give another example of a definition $\{x | P (x )\}$ which does not give a set, and we will prove that it does not give a set. It is historically the first such example and is due to Bertrand Russell. He took $P (x)$ to be “$x$ is a set and $x$ is not an element of itself.” This gives the expression “$\{x | x \notin x\}$”.
We now prove that that expression does not denote a set. Suppose $S=\{x | x \notin x\}$ is a set. There are two possibilities: (i) $S \in S$. Then by definition of $S, S$ is not an element of itself, i.e., $S \notin S$. (This follows from the rule of inference (18.1) on page 29.) (ii) $S \notin S$. In this case, since $S$ is not an element of $S$ and $S$ is the set of all sets which are not elements of themselves, it follows from Rule (18.1) that $S \in S$. Both cases are impossible, so there is no such set as $S$. This is an example of a proof by contradiction, which we will study in detail in Section 86, page 125.
As a result of the phenomenon that the setbuilder notation can’t be depended on to give a set, set theory as a mathematical science (as opposed to a useful language) had to be developed on more abstract grounds instead of in the naive way described in this book. The most widely-accepted approach is via Zermelo-Frankel set theory, which unfortunately is complicated and not very natural in comparison with the way mathematicians actually use sets.
Luckily, for most practitioners of mathematics or computer science, this difficulty with the setbuilder notation does not usually arise. In most applications, the notation “$\{x | P (x )\}$” has $x$ varying over a specific type whose instances (unlike the type “set”) are already known to constitute a set (e.g., $x$ is real — the real numbers form a set). In that case, any meaningful predicate defines a set $\{x | P (x )\}$ of elements of that type.
For more about Russell’s Paradox, see [Wilder, 1965], starting on page 57.
24.0.8 Exercise (discussion) In considering Russell’s Paradox, perhaps you tried unsuccessfully to think of a set which is an element of itself. In fact, most axiomatizations of set theory rule out the possibility of a set being an element of itself. Does doing this destroy Russell’s example? What does it say about the collection of all sets?
Page 35 of the book (PDF).