"

Set-builder notation and Russell’s paradox

There is way of representing sets, both small and extremely large, using what is called ‘set-builder notation’. Set-builder notation specifies sets according to some specifiable rule, which decides whether something is in a given set or not. An example is: S={xx is a sheep}S=\{x \mid x\text{ is a sheep}\} What is specified above is that the set SS consists of all xx provided xx is a sheep. In other words, SS is the set of all sheep. On the right side, after the symbol ‘\mid’, the rule for belonging, or not belonging, to the set is given. Namely, for any object xx whatsoever, check if xx is a sheep. If it is, it belongs to the set. If not, it does not belong to the set.

Here is another example: Even={xthere is an n such that n×2=x}Even=\{x\mid \text{there is an }n \in \mathbb{N}\text{ such that }n \times 2=x\} Here, the test is a bit more involved. It says that something belongs to the set EvenEven provided you can find a natural number, nn, and multiplying by 22 you get xx. If you think about it, only the even numbers will pass this test. First, every even number xx is such that you can find another number, nn, and n×2=xn\times 2=x. For example, 66 is an even number, and there is another number, 33, such that 3×2=63 \times 2=6. On the other hand, something like 1313 will not pass the test, since there is no natural number nn such that n×2=13n\times 2=13. This is because 13/2=6.513/2=6.5, and 6.56.5 is not a natural number.

Interestingly, the set EvenEven is, of course, infinite, but what the set-builder notation allows us to do is specify it precisely, in a finite manner, without relying on murky notation like the dots ‘...’ above, which only implies that we can ‘go on’ indefinitely with listing our input-output pairs.

In fact, you can consider more extreme circumstances, like sheep. Take, for example, the famous cloned sheep Dolly. Is there a natural number nn such that n×2=Dollyn \times 2=Dolly? Clearly, there is no such number, so Dolly is also not in EvenEven.

Exercise 3.10. According to the above definition, is 0Even0 \in Even? If it is, give a definition of a set in set-builder notation in which 00 is not a member. If it is not, give a definition of a set in set-builder notation in which 00 is a member.

Russell’s paradox

At the inception of modern set theory, it was thought that every specifiable collection of things constitutes a set. That is, given any rule RR, the following always gives you a set: S={xx passes R}S=\{x \mid x \text{ passes }R\}

However, it was quickly discovered that this will not do, since not just any specifiable collection of things is a set. How could this be? The reason for this is usually attributed to Bertrand Russell, a philosopher-logician-mathematician (yet another one!), and one of the most important intellectuals of the 20th^\text{th} century. Hence the name ‘Russell’s paradox’.

Let’s start from the beginning. As we said, some sets can be members of other sets. For example, regarding the set S={{1,4,2},3,6}S=\{\{1, 4, 2\}, 3, 6\}, the set {1,4,2}\{1, 4, 2\} is in SS. But if anything specifiable is a set, we may get some pretty weird stuff. Consider a set, SS, and ask whether SS is in SS. Can a set have itself as its own member? At first glance, there is no reason why not. We can specify: S={xx=S}S=\{x\mid x = S\} In this case, SS would have a single member, SS itself!

We can generalize on this idea, specifiying a set as follows: Q={xxx}Q=\{x \mid x \in x\} The set QQ is then the set of all sets that contain themselves. So the set S={xx=S}S=\{x \mid x =S\} would be in QQ. But the set {1,4,2}\{1, 4, 2\} would not be, since {1,4,2}{1,4,2}\{1, 4, 2\} \notin \{1, 4, 2\}. Indeed, we seem to also be able to specify the set of all sets that do not contain themselves, by specifying: R={xxx}R=\{x \mid x \notin x\} Regarding RR, if S={xx=S}S=\{x \mid x =S\}, SRS \notin R, since SSS \in S. On the other hand, since {1,4,2}{1,4,2}\{1, 4, 2\} \notin \{1, 4, 2\}, {1,4,2}R\{1, 4, 2\} \in R.

In general, QQ sounds like a set of rather weird sets that contain themselves, while RR seems like a set of perfectly normal sets that do not have as members themselves. But in fact, RR is quite problematic!

For note that RR is specified by being made up of all sets that do not contain themselves. And RR is itself a set! So presumably, we can apply the rule, specified for RR, and see whether RR is in RR, or RR is not in RR. Now the rule specified for RR is that if xxx \notin x, for any xx, then xRx \in R, otherwise, xRx \notin R. But now consider RR itself!

Well, if RRR \in R, then it must have passed the rule for RR, so RRR \notin R. And if RRR \notin R, then it passes the rule, so RRR \in R. But surely, this is absurd! As a general rule, we want to say that a set is either in a set, or it is not in a set, but not both or neither. So we have two choices: either RRR \in R, or RRR \notin R. In the first case, we immediately get that RRR \in R and RRR \notin R. In the second case, we immediately get that RRR \notin R and RRR \in R. So in either case, we are in an impossible situation where RR is both in RR, and not in RR. A paradox.

There is an well-known illustration of Russell’s paradox, sometimes called the barber paradox. Suppose you are in a town that has a barber with a seemingly straightforward rule. The barber shaves those, and only those people who do not shave themselves. So if you shave yourself, the barber does not shave you! But if you do not shave yourself, the barber does shave you. But what about the barber himself? If he shaves himself, then given the fact that he is the barber that only shaves those who do not shave themselves, he does not shave himself. And if he does not shave himself, then given the fact that he only shaves those who do not shave themselves, he does shave himself! So either way, we have the same problem as before, that the barber both does and does not shave himself.

Exercise 3.11. Let U={xx is a set}U=\{x \mid x \text{ is a set}\}. How would you describe this set? Is UUU \in U? If Q={xxx}Q=\{x \mid x \in x\}, is UQU \in Q? Conversely, is QUQ \in U?

Because of issues like Russell’s paradox, modern set theory needed to look for firmer foundations than it was originally based on. In more modern formulations, like Zermelo–Fraenkel set theory (usually denoted ZF), sets cannot be members of themselves, hence Russell’s paradox is avoided. This also means that U is not a set either. Since we won’t run into these types of issues later, we will not go into these matters further.

If you are interested in set theory, I recommend the book Set Theory: An Open Introduction by the Open Logic Project. As the name suggests, it is a free and open source textbook, available here.

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Learning Logic Backwards Copyright © by Peter Susanszky is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.