Logic

The announcement everybody already knew

Three children play in the mud and two get dirty foreheads. Each sees the others but not themselves. Their father says that at least one of them is muddy — which every child could already see — and asks, again and again, whether anyone knows their own state. Nobody can answer the first time; at the second asking both muddy children know. Without the father's sentence they would never know. Drawn as a cube of possible worlds, his sentence deletes one corner, and that corner is the difference between everybody knowing a fact and the fact being common knowledge.

Worth reading first: The axiom is the shape of the graph · Two diagrams the language cannot tell apart.

Three children, Ann, Bob and Cat, have been playing outside, and two of them, Ann and Bob, have mud on their foreheads. Each child can see the other two foreheads but not their own, and nobody will say anything about anybody else’s. Their father gathers them and tells them that at least one of them has mud on their forehead. Then he asks whether anyone knows if they are muddy. Nobody answers. He asks again. This time Ann and Bob both say yes, they are muddy; and at the third asking Cat says she is clean.

Every step of that is forced, and every step can be checked. But the puzzle’s real content is a question it raises in passing. When the father spoke, he told the children nothing they did not already know: each of them could see at least one muddy forehead. Yet if he had stayed silent and simply asked his question over and over, nobody would ever have answered. His sentence changed what the children could deduce without changing what any of them knew. What it changed was what they knew about each other’s knowledge, and about each other’s knowledge of that, all the way up.

This essay draws the puzzle the way modal logic draws knowledge — as a set of possible worlds with arrows between the ones an agent cannot tell apart — and computes every step by deleting worlds. The worlds-and-arrows picture is the one that turns each axiom into a shape of graph; here there are several agents, each with their own arrows, and the axioms are not in question. What is in question is how a public sentence changes the picture.

A cube of possible worlds

Three children and the cube of worlds. 8 worlds, edges along each child's own digit; actual 110; nobody knows
Fig. 1 Three children and every possible pattern of mud as the 8 corners of a cube, each written as three digits for Ann, Bob and Cat. Each child’s arrows run along the direction of their own digit, the one thing they cannot see; in the actual world 110 every child has an arrow.

Before anybody speaks, there are eight ways the mud could be distributed, one for each subset of the three children, and the figure puts them at the corners of a cube — the same cube on which each truth assignment to three letters is a corner, since a world here is exactly an assignment of muddy or clean to each child. A corner is written as three digits — Ann’s, Bob’s, Cat’s, with 1 for muddy — so the actual world is 110. A child cannot see her own forehead and can see everything else, so two worlds look the same to Ann exactly when they differ only in Ann’s digit. Those pairs are joined by Ann’s edges, which all run in one direction of the cube; Bob’s run in a second direction and Cat’s in the third.

This is a Kripke model with three agents. Each agent’s relation is an equivalence relation — every world is linked to itself, and the links are symmetric and transitive — which is the class of frames on which the axioms of the logic called S5 hold, the standard logic of knowledge. A child knows a statement at a world if the statement is true at every world she cannot rule out from there: at that world and at the far end of her edge.

So in the actual world 110, Ann cannot rule out 010, in which she is clean, and therefore does not know whether she is muddy. The same is true of Bob, whose edge runs to 100, and of Cat, whose edge runs to 111. Everybody can see somebody muddy, nobody can see themselves, and nobody knows their own state. That is the picture before a word is said, and it is the picture that the father’s sentence and the children’s answers will change, one deleted corner at a time.

The rounds that empty the cube

The rounds in the world 111. actual 111: models 7,4,1; knows at round 3: Ann,Bob,Cat
Fig. 2 The model in the world 111, where all three are muddy, as worlds are deleted. The father removes 000; each public “nobody knows” removes every world where some child would have known. After 2 rounds all three find their arrow leads only to a deleted world.

A public announcement of a true sentence removes every world in which the sentence is false, and everybody sees the removal, since everybody heard it. The father’s sentence, that at least one of them is muddy, removes 000. The figure follows the harder case, in which all three children are muddy and the actual world is 111.

After the father speaks, look at the worlds with exactly one muddy child, such as 100. In that world Ann sees two clean foreheads; her edge leads to 000, which has just been deleted; so in world 100 Ann would know she is muddy. When the father asks his question and nobody answers, that silence is itself a public announcement — nobody knows — and it deletes every world in which somebody would have known, which is exactly the three worlds with one muddy child. Four worlds are left: 110, 101, 011 and 111.

Now repeat. In the world 110, Ann’s edge leads to 010, which has gone, so in 110 Ann would know. The same holds for every world with exactly two muddy children. At the second question nobody answers again, in the actual world 111, and the silence deletes the three worlds with two muddy. Only 111 is left. At the third question every child’s edge leads to a deleted world, and all three know they are muddy.

The general pattern is visible in the panels. Each round of silence deletes one layer of the cube, the worlds with one more muddy child than the last; the actual world survives until its own layer is reached, and then every muddy child knows. With kk muddy children, the muddy ones know at the kk-th question. In the essay’s opening world, 110, two children are muddy and they know at the second asking — after which Cat, seeing that they knew, can delete every world in which she is muddy and knows she is clean.

Everybody knows, and everybody knows that everybody knows

Knowing that everyone knows, to a depth. n=4: depth = muddy − 1 at every world; silent play learns nothing
Fig. 3 The 16 worlds of four children by how many are muddy. With k muddy, “at least one is muddy” is known to everyone to depth k − 1 but not to depth k: a chain of k edges, one child’s doubt about another’s doubt, reaches the clean world.

The puzzle hides its real question in the father’s first sentence. In the world 110, Ann sees Bob muddy, Bob sees Ann muddy, Cat sees both. Every child knows that at least one is muddy. So what did the father add?

The answer needs knowledge about knowledge. Write pp for at least one child is muddy, and EpEp for everybody knows pp. In 110, EpEp holds. Does EEpEEp — everybody knows that everybody knows pp? Consider Ann. She cannot rule out 010, where only Bob is muddy. In 010, Bob cannot rule out 000, where nobody is. So in 110 Ann cannot rule out that Bob cannot rule out that nobody is muddy: Ann does not know that Bob knows pp, and EEpEEp fails. The figure draws this for four children, with the worlds arranged by how many are muddy and an edge wherever one child cannot tell two worlds apart. From the world 1110, with three muddy, a chain of three edges — one child’s doubt about a second’s doubt about a third’s — reaches 0000.

With kk muddy children, pp holds to depth k−1k - 1 and fails at depth kk: Ek−1pE^{k-1}p is true and EkpE^k p is false, because the shortest chain of edges from the actual world to the clean world has exactly kk links. The computation in the figure checks this at every one of the sixteen worlds by repeatedly deleting the worlds where everybody knows fails. A fact that holds at every depth is common knowledge — everyone knows it, everyone knows that everyone knows it, and so on for ever — and before the father spoke, pp was not common knowledge in any world.

After he spoke, it was. The deletion of the clean world means no chain of edges, of any length, can reach a world where pp fails. And it is precisely the missing depth that the rounds use up: each round of silence peels off one layer, and the induction that ends with the muddy children knowing needs the chain to be cut at its far end. The father’s sentence was the one piece of information nobody had, not because anybody lacked the fact but because nobody could be sure that everybody else’s chain of reasoning was anchored too. Without it, the figure’s computation finds that no child in any world ever knows anything new: silence at a question deletes nothing, because in the uncut cube nobody would ever have known.

Every world for six children

Every world for six children. n=6: by k 6,15,20,15,6,1; round = k in all 63
Fig. 4 All 63 worlds of six children in which at least one is muddy, each played out by deleting worlds from the model of 64. In every world the first to know are exactly the muddy children, at question k, and at that moment the possible worlds are those with at least k muddy.

The induction is easy to state and easy to get wrong, and the cube for three children is small enough that a reader might suspect a special case. So the figure plays the game out mechanically for six children: 64 worlds, the father’s announcement, and then at every question the public silence deleting every world in which some child would have known. It does this from each of the 63 worlds in which at least one child is muddy.

In every one of the 63, the first children to know are exactly the muddy ones, and they know at question kk, the number of muddy children. There is no case in which a clean child knows first, or in which some muddy children know earlier than others. The bottom row records the size of the model at the moment the muddy children know: 63 worlds when one child is muddy, then 57, 42, 22, 7 and 1, which are the numbers of worlds with at least kk muddy children. The model shrinks by whole layers, as it did on the cube, and it is the size of a layer, not the identity of the children, that sets the pace.

The theorem that the figure confirms is proved by induction on kk. If one child is muddy, she sees only clean foreheads and the father’s sentence tells her she is the one. If kk are muddy, each muddy child sees k−1k - 1 muddy foreheads and reasons that, were she clean, those k−1k - 1 would have known at question k−1k - 1; their silence then tells her she is not clean. The deletion of worlds is that induction, run as a computation and checked at every world rather than argued once.

A father who says more

A father who says more. m1: 1:1 2:2 3:3 4:4 5:5 6:6; m2: 2:1 3:2 4:3 5:4 6:5; m3: 3:1 4:2 5:3 6:4; m4: 4:1 5:2 6:3
Fig. 5 The question at which the muddy children first know, for six children, when the father announces that at least m are muddy. The answer is k − m + 1: every announcement deletes the worlds with fewer than m muddy, and the induction starts higher.

The father’s sentence is the base of the induction, and a stronger sentence moves the base. Suppose he announces that at least two of them are muddy. That deletes every world with fewer than two muddy children — the clean world and the whole first layer — and now a child who sees exactly one muddy forehead knows at once that she is the second. The figure computes the answer for six children and every announcement from at least one to at least four: the muddy children know at question k−m+1k - m + 1.

So the more the father says, the sooner they know, and if he announces the exact number, the muddy children know at the first question. A father whose announcement is false — at least three, when only two are muddy — has no answer; the grey cells mark those worlds, in which his sentence would delete the actual world itself. In the logic of public announcements a false announcement cannot be made, and in the puzzle it would lead every child to a wrong conclusion.

The table also shows what does not matter. Nothing depends on which children are muddy, only on how many; nothing depends on the order in which the children answer, as long as each round’s answers are public; and nothing depends on the children being clever in different ways. Everything depends on the answers being public. If the father asked each child privately, nobody would learn anything from the others’ silence, and the induction would never start.

Two generals and a plan that never becomes common

Two generals and a plan never common knowledge. D=6: depth after d messages = d − 1
Fig. 6 Two generals exchanging messengers who may be lost. After d messages have arrived, the plan is known to everyone to depth d − 1 and no further, so no finite exchange makes it common knowledge; 6 messages are drawn.

The gap between knowing to every finite depth and common knowledge is not a curiosity of puzzles. Two generals on either side of a valley must attack at dawn together or not at all, and they communicate by messengers who may be captured. General A sends attack at dawn. If the messenger arrives, B knows the plan, but A does not know that B knows. So B sends an acknowledgement; if it arrives, A knows that B knows, but B does not know that A knows that B knows. And so on.

The figure sets this up as a model of worlds, one for each number of messages delivered before one is lost, with each general unable to distinguish two worlds in which they received the same number of messages. Exactly as with the muddy children, after dd messages have arrived the plan is known to everyone to depth d−1d - 1 and no further, because a chain of dd doubts — perhaps my last message was lost; perhaps, then, he thinks his was lost — reaches the world in which nothing was delivered. Each message buys one level. No finite number buys them all.

Joseph Halpern and Yoram Moses made this a theorem in 1984: over a channel that can lose messages, no protocol produces common knowledge of anything that was not common knowledge at the start, and so no protocol guarantees an attack that both generals must be certain of. The father’s announcement worked because it was public — said once, heard by everyone at the same moment, and seen to be heard. Coordination under small doubts about what the other knows is the economist’s version of the same fact, where an arbitrarily small chance of disagreement collapses a whole band of agreements to one.

What the cube cannot represent

The model assumes a great deal that the puzzle states lightly. It assumes the children are perfect reasoners, that each knows the others are, that they answer truthfully and simultaneously, and that every one of these assumptions is itself common knowledge. If one child is slow, or if a child might lie — as the islanders in the question a liar answers truthfully do — the deletions in the figures no longer describe what anyone could conclude, and the round at which the muddy children know may never come.

The pictures also cannot represent common knowledge directly. Every figure shows knowledge to some finite depth or the deletion of finitely many worlds; common knowledge is a statement about all depths at once, an infinite conjunction, and it appears in the cube only as the absence of any path to a bad world. That is enough to compute with, but it is a reformulation, and it is the point at which the ordinary modal language runs out: common knowledge cannot be written as any finite combination of the individual children’s knowledge operators, and logics that reason about it add it as a new operator with its own axioms.

Finally, the model fixes the worlds in advance. Every possibility the children consider is a pattern of mud, and the cube is the whole model; two models that the language cannot tell apart by any formula would give the children exactly the same deductions, so nothing in the argument depends on drawing it as a cube rather than any equivalent picture. Real reasoning about other people’s reasoning also considers possibilities about how they reason, which the cube has no corner for.

Still open: how much the language can say

The muddy children are the standard first example of dynamic epistemic logic, in which announcements, observations and private messages change a Kripke model, and the field’s questions are about what such changes can and cannot achieve. Some are settled: a public announcement of a plain fact, such as at least one is muddy, makes it common knowledge — though not every true sentence survives being said, since a child told that she does not know she is muddy thereby learns it, and the sentence becomes false the moment it is announced — and without a common-knowledge operator every announcement can be rewritten as a statement about the model before it was made. Others are not. Adding common knowledge to a logic with announcements makes the language strictly more expressive, and for many combinations of operators the exact complexity of deciding whether a formula is satisfiable is unknown — the same kind of question left open for the fifteen logics of a single agent, now with several agents and a changing model.

A different direction asks how many rounds a puzzle of this kind can be made to last. Variants with hats instead of mud — including the infinite ones in which infinitely many guessers can arrange for only finitely many to be wrong — with several fathers, with sums and products of hidden numbers, produce chains of public silence of many lengths, and which lengths are achievable with how many agents is computed case by case. The same structure — information that lies in what others do not say — underlies the hat-guessing strategies in guesses that are wrong together, where the trick is again to make one public fact do the work of many private ones.

A fact everyone knew, made common

With kk muddy children, after the father’s announcement the muddy ones know their state at the kk-th question, in every world — and without the announcement, nobody ever knows. The announcement told no child anything they could not see, since every child saw a muddy forehead when k≥2k \ge 2; what it changed was the depth of shared knowledge. Drawn as a cube of possible worlds with each child’s arrows along their own digit, “at least one is muddy” holds to depth k−1k - 1 and fails at depth kk, because a chain of kk doubts reaches the clean world; the public sentence deletes that world and makes the fact common knowledge, and each public silence then deletes one more layer. The computation confirms it in all 63 worlds of six children, shows a father who says more being answered sooner, and finds the same chain in two generals whose messengers can be lost — where each message adds one level of knowledge and no number of them makes a plan common.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Common knowledgeExhaustive searchInductionKripke modelModal logicPublic announcement