The Muddy Children Puzzle
The canonical puzzle in epistemic logic: children who can see everyone's dirty face but not their own only work out that they themselves are dirty once a public announcement makes their private knowledge common knowledge.
Prerequisites: How to Attack a Brainteaser
children play together; of them get mud on their forehead. Each child can see everyone else's forehead but not their own, and no one is allowed to tell anyone else whether they're muddy. A parent announces, truthfully and publicly: "At least one of you has a muddy forehead." Then the parent repeats, every minute: "If you know you're muddy, step forward now." Nothing happens for rounds — and then, on round , all muddy children step forward simultaneously. Nobody told them anything they didn't already know by looking around. What changed?
The core idea: public versus private knowledge
Before the announcement, if , every child already knows — as a fact — that at least one child is muddy, simply by looking at the others. The announcement tells nobody a new fact. What it creates is common knowledge: not just "everyone knows it" but "everyone knows that everyone knows it, and everyone knows that, and so on" without limit. That infinite tower of "knows-that-you-know" is exactly what's missing beforehand, and it's what the repeated silent rounds slowly build.
Working through small cases
muddy child. That one child sees zero muddy foreheads among everyone else. The announcement "at least one is muddy" combined with seeing nobody else muddy immediately tells them it must be themself. They step forward on round 1.
muddy children, call them A and B. Each sees exactly one muddy forehead (the other's) and, before the announcement, could imagine two scenarios: "I'm clean and only the other is muddy" or "we're both muddy." The announcement doesn't resolve this by itself. But now reason about round 1: A thinks, "if I were clean, B would see zero other muddy children, know the announcement means them, and step forward on round 1." When round 1 passes with nobody stepping forward, A learns that B did not see zero muddy foreheads — meaning A themself must be muddy too. B reasons symmetrically. Both step forward together on round 2.
General . By induction, if only children were muddy, they would all deduce it and step forward on round using exactly the round- version of this argument applied to what each of them observes. When round passes with no one stepping forward, every muddy child among the true learns that the number of muddy foreheads they can see (namely ) is not the true count — so they themselves must add one more, making the true count , and they step forward on round .
Public announcements can change what people know even when they add no new fact, because they convert private knowledge into common knowledge — everyone knowing that everyone knows, recursively. The passage of silent rounds is itself informative: each round that passes without a deduction rules out a smaller count.
What this means in practice
This puzzle is the cleanest introduction to why "everyone already knows X" is not the same as "it's common knowledge that X" — a distinction that matters directly in markets. A piece of news that every trader has individually seen doesn't move a price until it becomes common knowledge that everyone has seen it and is trading on it; that's why a headline can sit unpriced for minutes until an official announcement, a print in size, or an exchange notice makes the information common rather than merely widespread. Interviewers use this puzzle to test whether a candidate can reason about layered belief ("I know that you know that I know...") rather than stopping at the first level.
The common mistake is assuming the announcement "at least one is muddy" is useless because everyone already knew it. It's not the fact that matters but the common knowledge of the fact — the recursive tower of mutual awareness the announcement establishes, which private observation alone never builds.
Related concepts
Practice in interviews
Further reading
- Fagin, Halpern, Moses & Vardi, Reasoning About Knowledge, ch. 1