The Unexpected Hanging Paradox
"A prisoner proves a surprise hanging is impossible, then is surprised anyway, exactly as promised."
"A prisoner proves a surprise hanging is impossible, then is surprised anyway, exactly as promised."
The unexpected hanging paradox, also known as the surprise examination paradox, is a logical and epistemic puzzle about self-reference and prediction. A judge tells a condemned prisoner that he will be hanged at noon on one weekday of the coming week, Monday through Friday, but that the day will be a surprise: the prisoner will not know which day until the executioner arrives at noon. The prisoner reasons his way to the conclusion that no such surprise hanging is possible, and is reassured. Yet he is then hanged on a day in the middle of the week and is genuinely, completely surprised, just as the judge said. The judge's seemingly self-contradictory announcement turns out true and the prisoner's apparently airtight logic turns out wrong. The paradox appears in equivalent forms, including a teacher announcing a surprise examination, and it has been discussed by logicians including W. V. O. Quine and popularised by Martin Gardner.
Rated Heuristic: a dependable rule of thumb, not a proven theorem. The other 224.
The prisoner argues by backward induction. The hanging cannot be on Friday, he reasons, because if he were still alive after Thursday he would know Friday was the only day left, so it would not be a surprise. Having eliminated Friday, he argues it cannot be Thursday either, since after Wednesday only Thursday and the already-excluded Friday would remain, making Thursday no surprise. Repeating the elimination backward through Wednesday, Tuesday, and Monday, he concludes the surprise hanging cannot occur on any day and so cannot happen at all. The twist is that this reasoning, by convincing him no day can surprise him, is exactly what allows any day to surprise him: when the executioner comes on, say, Wednesday, the prisoner is caught off guard, vindicating the judge. There is no consensus on precisely where the argument fails. One influential line, due to Quine, holds that the prisoner is not entitled to his opening step, since he cannot actually rule out any day, including Friday, given the self-referential nature of the announcement.
The equivalent form in which a teacher promises a surprise test next week, generating the same backward-induction argument and the same ironic outcome.
Quine's proposed analysis that the prisoner's opening elimination is unjustified, since he cannot legitimately rule out any day, including the last.
The unexpected hanging paradox is a famous puzzle studied across logic, epistemology, and game theory, prized for how a seemingly flawless chain of reasoning collides with an obviously possible outcome. It sharpens questions about self-reference, about what it means to know or predict a future event, and about the limits of backward induction, and it connects to other epistemic paradoxes such as the preface paradox and Moore's paradox, as well as to the principle that knowing entails knowing that one knows. Its resistance to any agreed solution has generated a large scholarly literature and made it a recurring test case for theories of knowledge and rational belief.
The unexpected hanging paradox has no canonical resolution; proposed diagnoses locate the flaw in different places, and none commands consensus. Quine's line rejects the prisoner's opening elimination, treating the announcement as self-referential in a way that blocks the inference, while other analyses fault the notion of surprise, the assumption that the prisoner can carry out the induction, or the interaction of knowledge and self-knowledge. The two standard forms, the hanging and the surprise examination, are equivalent, so a solution should cover both. Because the puzzle turns on delicate features of prediction, knowledge, and self-reference, it functions as an open problem that continues to test theories of epistemic logic rather than as a settled result, and its exact historical origin is likewise uncertain.
The paradox is not resolved by simply saying the prisoner reasoned badly; the difficulty is precisely to say where his seemingly valid argument fails, and there is no agreed answer. It is not merely a trick of wording, since the equivalent surprise-examination version raises the same problem. And the judge's announcement is not straightforwardly self-contradictory: the ironic outcome shows it can come true, which is what makes the prisoner's confident elimination so puzzling rather than obviously mistaken.
Real as a rule of thumb, not as a theorem. The Unexpected Hanging Paradox is rated Heuristic here: dependable enough to plan with, and with no proof behind it.
Rated from two sources. 225 of the 1,116 entries carry this rating. How the scale works.
The best-known laws are the least likely to rest on measurement.
A logical and epistemic paradox about a judge's promise of a surprise hanging, appearing also as a surprise examination, discussed by logicians including W. V. O. Quine and popularised by Martin Gardner; its precise historical origin is uncertain.
9 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.
Everything above traces to en.wikipedia.org and plato.stanford.edu: two secondary sources, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.