Barber paradox
From Exampleproblems
The Barber paradox is a paradox that relates to mathematical logic and set theory.
Contents |
The paradox
The paradox describes a male barber who shaves every man who does not shave himself, and no one else. This results is a paradox when he shaves himself:
- If the barber does not shave himself, he must abide by the rule and shave himself.
- If he does shave himself, according to the rule he will not shave himself.
Thus his rules result in an impossible situation.
History
This paradox was attributed to Bertrand Russell, a British logician who in 1901 constructed Russell's paradox to demonstrate the self-contradictory nature of Georg Cantor's naive set theory by formalizing the Barber paradox. The paradox also underlies the proof of Gödel's incompleteness theorem as well as Alan Turing's proof of the undecidability of the halting problem. The paradox is also an instance of the proof technique known as diagonalization.
In prolog
In Prolog, one aspect of the Barber paradox can be expressed by a self-referencing clause:
shaves(barber,X) :- male(X), not shaves(X,X). male(barber).
where negation as failure is assumed. If we apply the stratification test known from Datalog, the predicate shaves is exposed as unstratifiable since it is defined recursively over its negation.
In literature
In his book Alice in Puzzleland, the logician Raymond Smullyan had the character Humpty Dumpty explain the apparent paradox to Alice. Smullyan argues that the paradox is akin to the statement "I know a man who is both five feet tall and six feet tall," in effect claiming that the "paradox" is merely a contradiction, not a true paradox at all, as the two axioms above are mutually exclusive.de:Barbier-Paradoxon et:Habemeajaja paradoks fr:Paradoxe du barbier he:פרדוקס הספר ja:床屋のパラドックス pt:Paradoxo do barbeiro zh:理发师悖论
