Barber paradox
A village barber shaves everyone who does not shave themselves, and only them. Does he shave himself? If he does, he must not; if he doesn’t, he must. So no such barber exists. Bertrand Russell used it as an illustration of his paradox about sets. The same trick, a question about itself, proves the halting problem undecidable.
The point is two sets. The villagers split into set , those who shave themselves, and set , those the barber shaves. The rule says is exactly everyone not in , so every villager is in one and only one set. The barber is a villager too, and he has nowhere to go. If he is in , he shaves himself, so the barber shaves him, so he is in . If he is in , the barber shaves him, that is, he shaves himself, so he is in . The contradiction shows that such a rule can’t be satisfied.
Russell’s original 1901 paradox is about sets. An ordinary set does not contain itself: the set of cats is not a cat. Some sets do contain themselves: the set of everything that is not a cat is itself not a cat, so it lies inside itself. Take , the set of all sets that do not contain themselves: . If , then by definition ; if , then fits the definition and . The barber is the same question in everyday clothes: villagers instead of sets and “shaves” instead of “contains”.
Source: Wikipedia: Barber paradox
Where it appears · 1
- Rice's theorem in plain words · Specs and context