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?
First the island, made exact, because loose versions of this puzzle are easy to break.
Say there are 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 the only other world she cannot tell apart from it is , 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 , after some nights, islander still thinks possible when is or , fits everything announced, and in the same people would have left on every night so far as did in . 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.
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 blue. It has to be about every world:
P(k): in every world with at least blue-eyed islanders, nobody leaves on nights ; and in every world with exactly blue-eyed islanders, all of them leave on night .
Base case, . 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 , and prove P(k+1).
Nobody leaves early. Take a world with at least blue-eyed islanders. It has at least , so by P(k) nobody leaves in it on nights . Now night . Take any islander , blue or brown. Flipping one colour changes the count by one, so has at least blue-eyed islanders. That means the announcement did not rule it out, and by P(k) nobody leaves in it on nights either. Up to night she has seen exactly what she would have seen in . 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 .
Everyone blue leaves on night . Take a world with exactly blue-eyed islanders, and a blue-eyed islander in it. Her other world has exactly , so by P(k) its blue-eyed islanders leave on night . In , by the half just proved, nobody leaves on night . So the empty ferry on night rules out . On night the only world left to her is , 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 . 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.
The film's second route stops tracking islanders and tracks a sentence. Let be "at least one islander has blue eyes", and let mean "everybody knows ". In a world , is true when is true in and in every , because those are the worlds somebody cannot rule out. The floors of the tower are , , , and so on.
Before the announcement, is true in a world exactly when it has at least blue-eyed islanders. By induction on . For this is what says. Suppose it holds for , and take a world with blue-eyed islanders. holds at when holds at and at every . If , fails at , so fails there too. Otherwise flipping a blue islander gives , the fewest of all, so the condition is , that is .
On the film's island , so holds for every up to 99 and fails at : 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 ". 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 . 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, itself was news. With two, everyone knew , 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. is true in every world still in play, so is too, and , and every floor: 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.
Group the worlds by how many blue-eyed islanders they have, which runs from 0 to . The announcement strikes 0, leaving 100. By the claim, a world with blue-eyed islanders would have seen departures on night , and one with more than sees none on nights . So after empty nights exactly the worlds with more than blue remain, 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.
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:
| World | Supposed brown | Blue-eyed | Would empty on night |
|---|---|---|---|
| the real island | 0 | 3 | 3 |
| Alice thinks | 1 | 2 | 2 |
| Bob thinks, inside that | 2 | 1 | 1 |
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 , 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 islanders | All leave on night |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 10 | 10 |
| 50 | 50 |
| 100 | 100 |
Some islanders have brown eyes. The claim already covers it: the blue-eyed leave on night . Then the brown-eyed leave on night . A brown-eyed islander's other world has blue, and in it, by P(k+1), nobody leaves on night . 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 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 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.
| Islanders | Worlds in the model | Leave | Settled after |
|---|---|---|---|
| 1 | 3 | 1 | 1 night |
| 2 | 13 | 0 | 2 nights |
| 3 | 57 | 0 | 2 nights |
| 4 | 241 | 0 | 2 nights |
| 5 | 993 | 0 | 2 nights |
| 6 | 4033 | 0 | 2 nights |
The words are the same and so are the listeners. What is missing is that everyone saw everyone else hear 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 of blue-eyed ones: 55 cases, each with all worlds. With the announcement, the blue-eyed leave on night and not before, and the brown-eyed on night . Without it, nobody ever leaves, and the model does not change after night 1.
At 100. The full model would have 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 from night , against the model.
The tower. At the real world, holds exactly for , in the full model up to 10 islanders and in the counting model at 100, where that is 99 floors. After the announcement is a fixed point of , so every floor holds.
The silence and the chains. After empty nights, worlds remain, for every 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 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.
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.
One night earlier, on night . 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.
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.
That Bob knows . She already knew , 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 . After the announcement he knows it in every world, so his staying on night 1 means something.