PuzzleReels
Sections

The Islanders

The maths · Episode 16 · 4:58 · gives the answer

The puzzle

An island of 100 people, every one of them with blue eyes. Nobody may be told their own eye colour, and there are no mirrors. Everyone can see everyone else's eyes perfectly. Anyone who works out their own colour must leave on the ferry that night, and everybody sees who goes. They are perfect logicians, and they know that about each other, without end.

Nothing happens for a hundred years. Then a visitor stands in front of them all and says out loud: "At least one of you has blue eyes." Every islander already knew that, because each was looking at 99 pairs of blue eyes. He leaves. For 99 nights the ferry does not move, and on night 100 all 100 islanders get on it.

What did he tell them?

The maths, properly

First the island, made exact, because loose versions of this puzzle are easy to break.

Say there are n islanders (100 in the film). A world is a choice of eye colour, blue or brown, for every one of them. An islander sees every colour but her own, so in a world w the only other world she cannot tell apart from it is wi, the same world with her own colour flipped. The departures are the only news on the island. On each night, an islander leaves exactly when she knows her colour: every world she still thinks possible gives her the same one. In world w, after some nights, islander i still thinks v possible when v is w or wi, v fits everything announced, and in v the same people would have left on every night so far as did in w. Everyone knows these rules and knows that everyone else follows them, so anyone can work out what would happen in any world. Night 1 is the night of the day the visitor spoke.

Proof one: run the island small, and climb

The film's route is induction on the number of blue-eyed islanders. The hypothesis has to be stated with care, for a reason the film's pictures hide. When Alice supposes her own eyes are brown, she is thinking about a world in which she is brown-eyed, and in that world the other world she cannot rule out is the real one, with one more blue. So the hypothesis cannot be about all-blue islands only, or even about islands with exactly k blue. It has to be about every world:

P(k): in every world with at least k blue-eyed islanders, nobody leaves on nights 1,…,k−1; and in every world with exactly k blue-eyed islanders, all of them leave on night k.

Base case, k=1. The first half says nothing, since there are no nights before night 1. For the second, take a world with one blue-eyed islander. She sees no blue eyes at all. The only other world she cannot tell from this one is the world in which nobody has blue eyes, and the visitor has just ruled that out. So on night 1 she knows, and leaves.

The step. Assume P(k) for some k≥1, and prove P(k+1).

Nobody leaves early. Take a world w with at least k+1 blue-eyed islanders. It has at least k, so by P(k) nobody leaves in it on nights 1,…,k−1. Now night k. Take any islander i, blue or brown. Flipping one colour changes the count by one, so wi has at least k blue-eyed islanders. That means the announcement did not rule it out, and by P(k) nobody leaves in it on nights 1,…,k−1 either. Up to night k she has seen exactly what she would have seen in wi. Both worlds are still possible to her, they give her different colours, so she does not know hers and does not leave. Nobody leaves on nights 1,…,k.

Everyone blue leaves on night k+1. Take a world w with exactly k+1 blue-eyed islanders, and a blue-eyed islander A in it. Her other world wA has exactly k, so by P(k) its blue-eyed islanders leave on night k. In w, by the half just proved, nobody leaves on night k. So the empty ferry on night k rules out wA. On night k+1 the only world left to her is w, she knows she is blue, and she leaves. So does every blue-eyed islander, by the same argument.

That is P(k+1), so P(k) holds for every k. The film's island is P(100): nobody before night 100, everybody on it.

Notice what no islander ever does: hold 99 levels of supposition in her head. On the last night each of them needs one thought, "if I were brown, the others would have gone last night". The induction is what guarantees that thought is right.

Proof two: count the floors of knowing

The film's second route stops tracking islanders and tracks a sentence. Let B be "at least one islander has blue eyes", and let EX mean "everybody knows X". In a world w, EX is true when X is true in w and in every wi, because those are the worlds somebody cannot rule out. The floors of the tower are B, EB, E2B, and so on.

Before the announcement, EjB is true in a world exactly when it has at least j+1 blue-eyed islanders. By induction on j. For j=0 this is what B says. Suppose it holds for j, and take a world w with m blue-eyed islanders. Ej+1B holds at w when EjB holds at w and at every wi. If m=0, B fails at w, so EjB fails there too. Otherwise flipping a blue islander gives m−1, the fewest of all, so the condition is m−1≥j+1, that is m≥j+2.

On the film's island m=100, so EjB holds for every j up to 99 and fails at j=100: 99 floors, and the next one missing. Written out with names, the missing floor is "islander 1 knows that islander 2 knows that ... islander 100 knows B". Unwind it. Islander 1 cannot rule out that she is brown. In that world, islander 2 cannot rule out that he is brown too. Each link supposes one more pair of eyes away, and after 99 of them one blue-eyed islander is left, the last in the chain, who sees no blue eyes at all and cannot rule out that there are none. She does not know B. That is the bottom of the film's tower.

So the visitor told islanders different things depending on how many there were. With one blue-eyed islander, B itself was news. With two, everyone knew B, but Alice did not know that Bob knew it. With three or more, everyone knew that everyone knew it, and only a deeper floor was missing.

After the announcement every floor holds. He spoke in public, so the world with no blue eyes is ruled out for everyone, in every world anyone can imagine. B is true in every world still in play, so EB is too, and E2B, and every floor: B is common knowledge. The one world that made floor 100 fail is exactly the world the announcement removed.

Without the announcement, nothing ever happens. If no world is ruled out, then in every world each islander's other world is still in play, so on night 1 nobody knows their colour, in any world. Nobody leaves anywhere, the empty ferry rules nothing out, and night 2 is night 1 again, for ever. This is why depth matters. Proof one is a chain of suppositions, 100 blue, then one fewer, down to one; the last link needs the world with no blue eyes to be out of play at the bottom of a chain 100 deep. That was the one floor the islanders did not have.

What the silence takes away

Group the worlds by how many blue-eyed islanders they have, which runs from 0 to n. The announcement strikes 0, leaving 100. By the claim, a world with j blue-eyed islanders would have seen departures on night j, and one with more than t sees none on nights 1,…,t. So after t empty nights exactly the worlds with more than t blue remain, n−t of them: 99 after one night, 98 after two, and 1 after 99, the real one. On night 100 there is nothing left to suppose. That is the column of slabs in the film.

A worked case: three islanders

The film draws the three-islander chain as three worlds, one inside another. Each is the world the one outside it supposes, with one more islander's eyes supposed brown:

WorldSupposed brownBlue-eyedWould empty on night
the real island033
Alice thinks122
Bob thinks, inside that211

Night 1 passes with the ferry empty, so the innermost world, where Carol alone is blue and leaves on night 1, is false. In Alice's thought Bob and Carol now leave on night 2. Night 2 is empty too, so Alice's thought is false, and on night 3 all three leave. Each row is P(k) at work for a smaller k, and each empty night breaks the innermost world still standing. With two islanders the chain is one shorter: the real island empties on night 2, Alice's supposed world on night 1.

The step then fills the film's table, checked case by case:

Blue-eyed islandersAll leave on night
11
22
33
44
55
66
1010
5050
100100

What changes if the puzzle changes

Some islanders have brown eyes. The claim already covers it: the k blue-eyed leave on night k. Then the brown-eyed leave on night k+1. A brown-eyed islander's other world has k+1 blue, and in it, by P(k+1), nobody leaves on night k. In the real world the blue-eyed did, so that world is ruled out, and she knows she is brown. This uses the rule that there are only two colours. With a third colour she learns only that she is not blue, and stays. The source story said the brown-eyed learn nothing, which is true only with more than two colours; the film does not make the claim. Proof one itself never uses the number of colours.

He whispers it to each islander in turn. Now a world says both who is blue and who heard the sentence, and an islander who heard it cannot tell who else did. Nobody is told it in the world with no blue eyes, because there it is false. On night 1 the only islanders who can know their colour are those who are the only blue-eyed one and heard it, so the night strikes exactly those worlds. After that nobody knows anything, in any world still in play. Islander i can always picture her own colour flipped and nobody but herself having heard, and night 1 never strikes that picture: it could only do so if i were its one blue-eyed islander and had heard, and then the world she is really in would have no blue eyes, where nobody hears anything. Nobody ever leaves, and from night 2 on the island never changes. With one islander, private and public are the same thing.

IslandersWorlds in the modelLeaveSettled after
1311 night
21302 nights
35702 nights
424102 nights
599302 nights
6403302 nights

The words are the same and so are the listeners. What is missing is that everyone saw everyone else hear it.

Checking it

scripts/islanders.mjs builds the possible-worlds model above and runs it night by night. It asserts all of the following before it writes the numbers this page uses.

The full model. Every island of 1 to 10 islanders, with every number k of blue-eyed ones: 55 cases, each with all 2n worlds. With the announcement, the blue-eyed leave on night k and not before, and the brown-eyed on night k+1. Without it, nobody ever leaves, and the model does not change after night 1.

At 100. The full model would have 2n worlds, too many to run. By symmetry it is enough to track how many islanders are blue, and the script checks that this smaller model agrees with the full one in every one of the 55 cases. Then it runs it at 100: all leave on night 100, none before, and nobody ever without the announcement. It also tries several smaller numbers of blue-eyed islanders among 100, and the step's recurrence, night k+1 from night k, against the model.

The tower. At the real world, EjB holds exactly for j≤n−1, in the full model up to 10 islanders and in the counting model at 100, where that is 99 floors. After the announcement B is a fixed point of E, so every floor holds.

The silence and the chains. After t empty nights, n−t worlds remain, for every t up to 99. The two-islander and three-islander chains above are run as islands of their own.

The whisper. Islands of up to 6, as in the table.

What is not checked. The claim for every k is the induction above; the script runs the full model only up to 10 islanders, and reaches 100 through the counting model, whose agreement with the full model is checked only as far. The whisper is checked up to 6 islanders, and the argument above is what covers the rest. Islands with more than two colours are not modelled.

Where this shows up

  • Common knowledge was named and studied by the philosopher David Lewis in Convention (1969), as what lets people coordinate on things like driving on the left.
  • Agreeing to disagree. Robert Aumann showed in 1976 that two people with the same prior beliefs cannot have different estimates of a probability once those estimates are common knowledge.
  • The muddy children puzzle has the same structure: children with mud on their foreheads, a parent who says "at least one of you is muddy", and rounds of "do you know?". It is the opening example of Reasoning About Knowledge by Fagin, Halpern, Moses and Vardi (1995), which develops the possible-worlds model used here.
  • The emperor's new clothes. Everyone in the crowd can see he is naked. The child's shout adds no fact, only common knowledge, and then the whole town says it.
  • Messages that might be lost. Two generals who can only send messengers that may be captured can never make "we attack at dawn" common knowledge, however many acknowledgements go back and forth. It is a standard result about coordination in computer networks.

Try it yourself

1. Four islanders, all blue-eyed. Alice supposes she is brown, then supposes what Bob supposes, and so on down. What are the worlds, and when would each empty?

The real island has 4 blue and empties on night 4. Alice's supposed world has 3 and would empty on night 3. Bob's world inside that has 2, night 2. Carol's inside that has 1, and Dave, who sees no blue eyes there, would leave on night 1. Each empty night breaks one of them from the inside out, and on night 4 all four leave.

2. The visitor says "at least two of you have blue eyes" instead, and it is true. When do the blue-eyed islanders leave?

One night earlier, on night k−1. The announcement now rules out every world with fewer than two blue, so in a world with exactly two, each blue islander's other world, with one, is already gone, and both leave on night 1. The induction then runs exactly as before, one night ahead.

3. One islander has blue eyes and the rest brown. What happens on nights 1 and 2?

The blue-eyed one sees no blue eyes, so the announcement tells her she is blue, and she leaves on night 1. Each brown-eyed islander had been unable to rule out being blue, in which case there were two blue and nobody would have left on night 1. Someone did, so on night 2 they all know they are brown, and leave.

4. With two blue-eyed islanders, what exactly did the visitor tell Alice?

That Bob knows B. She already knew B, because she could see Bob. But if her own eyes were brown, Bob would be looking at no blue eyes at all and would not know B. After the announcement he knows it in every world, so his staying on night 1 means something.