When messages can take arbitrarily long and even a single computer might crash without warning, no deterministic plan can guarantee that the group will ever reach agreement. But what if a machine that finds itself deadlocked simply flips a coin? Can pure chance break a tie that no fixed rule can escape?
To see how, we return to the four Greek mercenaries camped at the foot of Mount Phyle and watch how a silver coin, tossed privately by each mercenary inside their tent, breaks their deadlock and brings the camp to a single decision.
To see how, we follow the protocol round by round. Four processes, stuck in a deadlock that no fixed rule can escape, each flip a private random bit, and that is enough to bring the system to a single decision.
After Michael Ben-Or, Another Advantage of Free Choice: Completely Asynchronous Agreement Protocols, 1983

Each link traces how one paper built upon another. Hover over or tap any link to see the connection.
a paper this book retells a paper retold in another book a paper outside the series
Four mercenaries camp at the foot of Mount Phyle, one to a tent, hidden from one another by the folds of the hillside and under nobody's command.* Bandits hold the summit above them, and the four mercenaries are known by the numbers of their tents.Four processes, P1 to P4, run on separate machines with no coordinator, as before. Each is known by its number.
Before dawn, all four mercenaries must either attack the hill together or hold their ground together. Each mercenary formed an initial sighting at dusk, and committing is final: once a mercenary steps out of their tent to attack or hold, they leave their ravens behind for the night.All four processes must decide the same value, 1 or 0. Each starts with an input value, and deciding is final: a process that decides then stops.
Because a silent tent could belong either to a dead comrade or to a living one whose raven is still sitting in the pines, no deterministic plan can guarantee that the four ever commit: the order in which ravens arrive can always be scheduled to keep the camp balanced on a knife-edge all night.* Let us state the three demands the mercenaries want to satisfy:Because a silent process could be crashed or merely slow, no deterministic protocol can guarantee that the four ever decide: the order in which messages arrive can always be scheduled to keep the system balanced on a knife-edge forever.* Let us state the three properties the processes want to satisfy:
Never does one mercenary go out to attack while another stays to hold (agreement).No process decides 1 while another decides 0 (agreement).
If all four mercenaries saw the same sighting at dusk, that is the plan they commit to (validity).If all four inputs are equal, that is the value decided (validity).
Every mercenary who has not been killed eventually commits to a plan (termination).Every process that does not crash eventually decides (termination).
Notice that these second and third demands are even stronger than the minimum the impossibility proof across the water needs, which is only that both outcomes be possible and that at least one mercenary eventually commit.* Since even those weaker demands cannot be guaranteed by any fixed plan, these stronger ones certainly cannot be either.Notice that these second and third properties are even stronger than the minimum needed to trigger the impossibility proof, which only required that both values be possible and that at least one process eventually decide.* Since even those weaker properties cannot be guaranteed by any deterministic protocol, these stronger ones certainly cannot be either.
Yet the impossibility proof quietly relied on one hidden assumption: the mercenaries are not allowed to draw lots. In that proof, every mercenary is deterministic: given the same initial sighting and the same sequence of incoming ravens, they must make the exact same move every single time.Yet the impossibility proof quietly relied on one hidden assumption: the processes may not use randomness. In that proof, every process is deterministic: given the same input and the same sequence of incoming messages, it must make the exact same move every single time.
Nothing in the three demands forbids a mercenary from leaving a choice to chance. Suppose we drop that single assumption and give each mercenary a coin inside their tent.Nothing in the three properties forbids a process from leaving a choice to chance. Suppose we drop that single assumption and give each process a private random bit.
Every mercenary at the foot of Mount Phyle was paid in Attic silver tetradrachms, which bear the head of Athena on one side and her owl on the other. Before pitching their tents, the four agreed on a simple convention: the owl stands for hold, and the goddess stands for attack.Before the protocol starts, the processes agree on a convention: a random bit of 0 means favoring the value 0, and a random bit of 1 means favoring the value 1.
Whenever the rules of a round leave a mercenary unable to settle on an answer from the ravens alone, they flip their silver coin high off their thumb, catches it in their palm, and adopts whichever answer the coin shows.Whenever the rules of a round leave a process unable to settle on a value from the messages alone, it flips a local coin, draws a random bit, and adopts whichever value the bit shows.
Crucially, there are four separate coins in four separate tents. The mercenaries cannot gather to watch a single shared coin toss, because the hillside keeps them apart. Nor can they appoint one mercenary to flip a coin for everyone and send the result by raven, for that mercenary might be the one who was killed, or their raven might be the one delayed in the pines! So each mercenary flips their own coin privately inside their tent, and no one else knows how it landed unless a later raven reports it. Try tossing the coins in one tent or across all four below.Crucially, there are four separate coins at four separate processes. The processes cannot watch a single shared coin, because they can only communicate by messages. Nor can they appoint one process to flip a coin for everyone and send the result, for that process might be the one that crashed, or its message might be the one that is delayed! So each process flips its own coin privately, and no other process knows how it landed unless a later message reports it. Try flipping the coins at one process or at all four below.
Over many tosses, owl and goddess come up equally often, though in any short run they can easily diverge.Over many flips, 0 and 1 come up equally often, though in any short run they can easily diverge.
For the plan to work, each mercenary's coin toss must have three properties:For the protocol to work, each process’s coin flip must have three properties:
On every toss, the coin lands owl with probability 1/2 and goddess with probability 1/2.On every flip, the coin yields 0 with probability 1/2 and 1 with probability 1/2.
Each toss is completely independent of every earlier toss in that tent or any other.Each flip is completely independent of every earlier flip at that process or any other.
Before a toss is made, nothing in the world can predict how it will land; after it lands, its outcome is no longer a secret.Before a flip is made, nothing in the world can predict how it will land; after it lands, its outcome is no longer a secret.
The third property, that a toss cannot be foreseen before it is made, matters so much because of how the impossibility proof across the water in the Chamber of Paxos worked: we imagined a worst-case scheduler (an arranger) who can see inside every desk, read every note in flight, and choose the exact order in which messengers arrive so as to keep the assembly divided.* Here we grant that adversarial arranger the exact same omniscience over all ravens and all past coin flips.The third property, that a flip cannot be foreseen before it is made, matters so much because of how the impossibility proof worked: we imagined a worst-case scheduler (an adversary) who can see the state of every process, read every message in transit, and choose the exact order of deliveries so as to keep the system divided.* Here we grant that adversary the exact same omniscience over all messages and all past coin flips.
The one power the arranger does not have is a crystal ball: they cannot see how a coin will land before the mercenary actually flips it! Now let us see how the mercenaries structure their rounds of ravens so that this one blind spot is enough to defeat the arranger.The one power the adversary does not have is a crystal ball: it cannot see how a coin will land before the process actually flips it! Now let us see how the processes structure their rounds of messages so that this one blind spot is enough to defeat the adversary.
The mercenaries organize their night into numbered rounds (1, 2, 3, …), writing the round number on every strip so that a slow bird from round 2 is never confused with a bird from round 3.The processes organize the execution into numbered rounds (1, 2, 3, …), tagging every message with its round number so that a slow message from round 2 is never confused with one from round 3.
In each round, every mercenary sends two waves of ravens to all the other tents (and counts their own strip at each wave as arriving immediately). The first wave is their report: the answer they currently favors at the start of the round (in round 1, this is simply their dusk sighting). The second wave is their second bird, which says either sure of an answer (if the reports they read in step two showed a strict majority of the entire camp, at least three out of four, favoring that answer) or unsure. Each round follows three steps:In each round, every process sends two waves of messages to all the other processes (and counts its own message at each wave as arriving immediately). The first wave is its report: the value it currently favors at the start of the round (in round 1, this is simply its input). The second wave is its proposal: either D(v), meaning “I am sure of v” (sent if the reports it read in step two showed a strict majority of the entire system, at least three out of four, favoring v), or ?, meaning “unsure”. Each round follows three steps:
Send a report naming the answer you currently favor to all tents.Send a report naming the value you currently favor to all processes.
Wait until three reports from this round have arrived (your own plus two others). If all three name the same answer, a strict majority of all four tents, send a second bird saying sure of that answer; otherwise send unsure.Wait until three reports from this round have arrived (your own plus two others). If all three name the same value v, a strict majority of all four processes, send the proposal D(v); otherwise send ?.
Wait until three second birds from this round have arrived. If two or more say sure of an answer, you are settled on that answer! If only one says sure of an answer, adopt that answer for the next round. If none say sure, flip your coin and adopt the answer it shows.Wait until three proposals from this round have arrived. If two or more are D(v), you decide v! If only one is D(v), adopt v for the next round. If none is a D-message, flip your coin and adopt the value it shows.
A mercenary waits for three birds at each step, never all four, because one of the four comrades might have been killed. Since at most one mercenary can die and no raven is ever permanently lost, at least three birds are guaranteed to arrive at every step. Waiting for the fourth bird would risk waiting forever for a dead mercenary.A process waits for three messages at each step, never all four, because one of the four might have crashed. Since at most one process can crash and no message is ever permanently lost, at least three messages are guaranteed to arrive at every step. Waiting for the fourth would risk waiting forever for a crashed process.

Try running a single round at Tent 1 below. Click the reports and the second birds to change what they say, and see when Tent 1 settles, when it adopts an answer without flipping, and when it flips its coin.Try running a single round at P1 below. Click the reports and the proposals to change what they say, and see when P1 decides, when it adopts a value without flipping, and when it flips its coin.
Tent 1 has read three reports: its own and two ravens. Press a report to change what it says.P1 has read three reports: its own and two from other processes. Press a report to change what it says.
Then three second birds: its own, which the reports decide, and two ravens.Then three proposals: its own, which the reports decide, and two from other processes.
A mercenary who becomes settled at the end of Step 3 must still leave their tent and commit. The comrades still inside their tents need three birds in the next round to finish their own steps. As we prove below, whenever one mercenary settles on an answer in that round, every comrade who finishes that round is guaranteed to adopt that exact same answer for the next round, so in the next round everyone will report that answer and everyone will send sure of that answer. Therefore, a mercenary who settles in that round can immediately send out both of their birds for the next round in advance, their report and their sure of bird for that answer, and then step out of their tent and commit! We call this the rule of parting.A process that decides at the end of step 3 must still stop. Remember that the other processes still need three messages in the next round to finish their own steps. As we prove below, whenever one process decides a value in round r, every process that finishes round r is guaranteed to adopt that exact same value for round r + 1, so in round r + 1 everyone will report that value and everyone will propose D of it. Therefore, a process that decides in round r can immediately send both of its round r + 1 messages in advance, its report and its D proposal for that value, and then halt! We call this the halting rule.
Because those two parting birds are the exact same birds they would have sent had they stayed inside their tent for the next round, the comrades who remain in their tents receive the three birds they need in the next round and settle right behind them.Because those two messages are the exact same messages it would have sent had it stayed for round r + 1, the processes that remain receive the three messages they need in round r + 1 and decide right behind it.
Next comes the crucial safety question. Each mercenary flips their coin alone in their tent, so it must be shown that different coin flips can never cause two mercenaries to commit to opposite answers.Next comes the crucial safety question. Each process flips its coin alone, so it must be shown that different coin flips can never cause two processes to decide opposite values.
In the paper's terms the four tents are N = 4 processes, at most t = 1 of which may crash; a sighting is an initial value, a report is the message (1, r, x), sure of v is the D-message (2, r, v, D), unsure is (2, r, ?), being settled is deciding, and a process waits for N − t = 3 messages at each step. The three steps below are the paper's round, written for one process.Take N = 4 processes, at most t = 1 of which may crash, each waiting for N − t = 3 messages at each step. A report is the message (1, r, x); a proposal is (2, r, v, D) or (2, r, ?). The three steps below are the paper's round, written for one process.
One round, r, at one tent.One round, r, at one process.
The same, for N mercenaries of whom t may fall silent. Wait each time for N − t birds. Send sure of v when more than N/2 of the reports received name v. Favour v on one sure of v; settle on v on more than t of them; toss otherwise. The arrangement needs N > 2t. On the hill, N = 4 and t = 1.The same, for N processes of which t may crash. Wait each time for N − t messages. Send (2, r, v, D) when more than N/2 of the reports received name v. Favour v on one D-message for v; decide v on more than t of them; flip otherwise. The arrangement needs N > 2t. Here N = 4 and t = 1.
The rule of parting. A mercenary who becomes settled on an answer in round r at once sends both birds of round r + 1 to all: the report, that answer, and the second bird, sure of that answer. Then the mercenary leaves the tent and commits to it.The halting rule. A process that decides v in round r at once sends both messages of round r + 1 to all: the report v and the proposal D(v). Then it halts.
This rule is not in Ben-Or's paper. There a process that has decided simply goes on taking part, and nothing is said of stopping. On the hill deciding is committing, and committing is silence, so the rule is needed; the two birds it sends early are exactly the two the mercenary would have sent by staying.This rule is not in Ben-Or’s paper. There a process that has decided simply goes on taking part, and nothing is said of stopping. Here a decided process halts, so the rule is needed; the two messages it sends early are exactly the two it would have sent by staying.
No matter how the coins fall or how the ravens are delayed, two mercenaries can never commit to different answers. Both safety demands, agreement and validity, hold on every run, and the entire proof rests on a simple fact about overlapping majorities.No matter how the coins fall or how the messages are delayed, two processes can never decide different values. Both safety properties, agreement and validity, hold on every execution, and the entire proof rests on a simple fact about overlapping majorities.
Within any single round, it is impossible for one mercenary to send sure of hold while another sends sure of attack.Within any single round, it is impossible for one process to send D(0) while another sends D(1).
If any mercenary settles on an answer in that round, every mercenary who finishes that round adopts that same answer, and every living mercenary settles on it in the next round.If any process decides a value in round r, every process that finishes round r adopts that same value, and every non-crashed process decides it in round r + 1.
If all four mercenaries saw the same sighting at dusk, every living mercenary settles on it in round 1 without ever touching a coin.If all four inputs are equal, every non-crashed process decides that value in round 1 without ever touching a coin.
A single round can never produce both sure of hold and sure of attack, because each mercenary sends only one report per round, so there are at most four reports in total. Sending sure of hold requires seeing three reports of hold; sending sure of attack requires seeing three reports of attack. Out of four tents, any two groups of three must overlap in at least two tents, and no tent sends two different reports in the same round!A single round can never produce both D(0) and D(1), because each process sends only one report per round, so there are at most four reports in total. Sending D(0) requires seeing three reports of 0; sending D(1) requires seeing three reports of 1. Out of four processes, any two groups of three must overlap in at least two, and no process sends two different reports in the same round!
Now see why a single settled mercenary locks the entire camp onto their answer. To settle on hold in Step 3, a mercenary had to read at least two sure of hold birds. Every other mercenary reads three of the four second birds in Step 3, which means they miss at most one bird in the entire camp. Even if a comrade misses one of the two sure of hold birds, they are guaranteed to read the other one! And since no sure of attack bird can exist in that round, every single comrade reads at least one sure of hold bird, adopts hold (without flipping a coin!), and enters the next round unanimously favoring hold. Scroll through the round below to see this in action.Now see why a single decided process locks the entire system onto its value. To decide 0 in step 3, a process had to read at least two D(0) proposals. Every other process reads three of the four proposals in step 3, which means it misses at most one proposal in the entire system. Even if a process misses one of the two D(0) proposals, it is guaranteed to read the other one! And since no D(1) proposal can exist in that round, every single process reads at least one D(0), adopts 0 (without flipping a coin!), and enters the next round unanimously favoring 0. Scroll through the round below to see this in action.
At the start of the round, Tents 1, 2, and 4 favor hold, while Tent 3 favors attack. In Step 2, each mercenary reads three of the four reports and misses one.At the start of the round, P1, P2 and P4 favor 0, while P3 favors 1. In step 2, each process reads three of the four reports and misses one.
Tents 1 and 2 happen to miss Tent 3's report, so each reads three reports of hold and sends sure of hold. Tents 3 and 4 see Tent 3's report of attack among their three, so they send unsure. Nobody can send sure of attack.P1 and P2 happen to miss P3’s report, so each reads three reports of 0 and sends D(0). P3 and P4 see P3’s report of 1 among their three, so they send ?. Nobody can send D(1).
In Step 3, Tent 1 reads both sure of hold birds and settles! Tents 2, 3, and 4 each miss one of the sure of hold birds, but because each mercenary misses at most one bird out of four, each of them still reads the other sure of hold bird and adopts hold. Nobody flips a coin.In step 3, P1 reads both D(0) proposals and decides! P2, P3 and P4 each miss one of the D(0) proposals, but because each process misses at most one message out of four, each of them still reads the other D(0) and adopts 0. Nobody flips a coin.
Before leaving their tent to commit, Number 1 sends their two parting birds for the next round: a report of hold and a second bird saying sure of hold, the exact birds they would have sent had they stayed.Before halting, P1 sends its two messages for the next round: a report of 0 and the proposal D(0), the exact messages it would have sent had it stayed.
In the next round, every report is hold. Each remaining mercenary reads three reports of hold, sends sure of hold, reads three sure of hold birds, and settles on hold.In the next round, every report is 0. Each remaining process reads three reports of 0, sends D(0), reads three D(0) proposals, and decides 0.
Because a mercenary only flips their coin when they see zero sure birds, nobody ever flips a coin in a round where a comrade settles. Coins can never break agreement once it is reached.Because a process only flips its coin when it sees zero D-messages, nobody ever flips a coin in a round where another process decides. Coins can never break agreement once it is reached.
So the coins can never divide the camp, and when all four sightings match at dusk, everyone settles in round 1 without flipping a coin at all. What remains is a night when the sightings start out split and nobody can get three matching reports. On that night, the coins do their work.So the coins can never divide the system, and when all four inputs are equal, everyone decides in round 1 without flipping a coin at all. What remains is an execution where the inputs start out split and no process can get three matching reports. There, the coins do their work.
In the paper's terms the four tents are N = 4 processes, at most t = 1 of which may crash; a sighting is an initial value, a report is the message (1, r, x), sure of v is the D-message (2, r, v, D), unsure is (2, r, ?), being settled is deciding, and a process waits for N − t = 3 messages at each step. Claim. If a process decides v in round r, then every process that completes round r adopts v, and every process that does not crash decides v in round r + 1. This is Theorem 1 (iii).Take N = 4 processes, at most t = 1 of which may crash, each waiting for N − t = 3 messages at each step. A report is the message (1, r, x); a proposal is (2, r, v, D) or (2, r, ?). Claim. If a process decides v in round r, then every process that completes round r adopts v, and every process that does not crash decides v in round r + 1. This is Theorem 1 (iii).
In the paper's terms the four tents are N = 4 processes, at most t = 1 of which may crash; a sighting is an initial value, a report is the message (1, r, x), sure of v is the D-message (2, r, v, D), unsure is (2, r, ?), being settled is deciding, and a process waits for N − t = 3 messages at each step. Claim. If all N initial values are equal, every process that does not crash decides that value in round 1. This is Theorem 1 (ii).Take N = 4 processes, at most t = 1 of which may crash, each waiting for N − t = 3 messages at each step. A report is the message (1, r, x); a proposal is (2, r, v, D) or (2, r, ?). Claim. If all N initial values are equal, every process that does not crash decides that value in round 1. This is Theorem 1 (ii).
When the sightings start out split, the coins come into play in any round where no mercenary sees a sure bird. Let us trace one such night with Tent 4 silent from dusk, so that Tents 1, 2, and 3 always hear from one another.When the inputs start out split, the coins come into play in any round where no process sees a D-message. Let us trace one such execution with P4 crashed from the start, so that P1, P2 and P3 always hear from one another.
At dusk, Tent 1 saw hold, Tent 2 saw attack, and Tent 3 saw hold. Step through the rounds below and watch what happens when the three coins first land split, and then happen to land alike.At the start, P1 has input 0, P2 has input 1 and P3 has input 0. Step through the rounds below and watch what happens when the three coins first land split, and then happen to land alike.
As long as the three reports are split 2-to-1, nobody sees three matching reports, every second bird says unsure, and each of the three mercenaries flips their coin. As soon as their three coins happen to land on the same face in the same round, all three mercenaries enter the next round with the same favored answer, and that next round settles the entire camp!As long as the three reports are split 2-to-1, nobody sees three matching reports, every proposal is ?, and each of the three processes flips its coin. As soon as their three coins happen to land on the same value in the same round, all three enter the next round with the same favored value, and that next round settles the entire system!
Notice two details in the run above. First, in round 1 two of the three living mercenaries favored hold, and in round 2 two of the three favored attack, yet neither round produced a sure bird. Two out of three is not enough, because Tent 4 is not necessarily dead; its bird might simply be slow. If two matching reports out of three were enough to send a sure bird, then on a night when all four mercenaries are alive and split 2-to-2, two mercenaries could read two hold reports and send sure of hold while the other two read two attack reports and send sure of attack, shattering safety. Requiring three matching reports, a strict majority of all four tents, guarantees that at most one answer can ever be called sure in any round.Notice two details in the run above. First, in round 1 two of the three live processes favored 0, and in round 2 two of the three favored 1, yet neither round produced a D-message. Two out of three is not enough, because P4 is not necessarily crashed; its message might simply be slow. If two matching reports out of three were enough to send a D-message, then in an execution where all four processes are alive and split 2-to-2, two processes could read two reports of 0 and send D(0) while the other two read two reports of 1 and send D(1), shattering safety. Requiring three matching reports, a strict majority of all four processes, guarantees that at most one value can ever appear in a D-message in any round.
Second, in the example above the three coins happened to land alike in round 2, ending the night in three rounds. The coins might keep landing split instead, and the night must still end eventually.Second, in the example above the three coins happened to land alike in round 2, ending the execution in three rounds. The coins might keep landing split instead, and the execution must still end eventually.
No randomized arrangement can promise to finish within a fixed number of rounds on every conceivable sequence of coin flips. Just as you could theoretically flip a fair coin and get heads a thousand times in a row, there is a theoretical run in which the mercenaries' coins keep landing split round after round forever.No randomized protocol can promise to finish within a fixed number of rounds on every conceivable sequence of coin flips. Just as you could theoretically flip a fair coin and get heads a thousand times in a row, there is a theoretical execution in which the coins keep landing split round after round forever.
What the arrangement can promise is that the probability of staying split forever is zero. With at most one of the four tents silent, and no matter how maliciously the ravens' arrivals are scheduled, the probability that every living mercenary eventually commits is 1. Choose the initial sightings below and run night after night to see how the number of rounds varies with the coins.What the protocol can promise is that the probability of staying split forever is zero. With at most one of the four processes crashed, and no matter how maliciously message arrivals are scheduled, the probability that every non-crashed process eventually decides is 1. Choose the inputs below and run execution after execution to see how the number of rounds varies with the coins.
Choose what each tent saw at dusk. In this simulation the ravens arrive in random order, with each mercenary missing one of the other three.Choose each process’s input. In this simulation messages arrive in random order, with each process missing one of the other three.
Press to run a night.Press to run an execution.
The probability of finishing reaches 1 because in every round at most one answer can appear on any sure bird. Anyone who does not see a sure bird flips a fresh, fair coin that the arranger cannot foresee. Whenever all the coins flipped in a round happen to land on that round's single viable answer (or all land alike when there is no sure bird), every mercenary enters the next round favoring the exact same answer, and the next round settles everyone! Because every round gives the camp a fresh, non-zero chance of snapping into unanimity, the chance of missing that exit for round after round shrinks exponentially toward zero.The probability of finishing reaches 1 because in every round at most one value can appear in a D-message. Any process that does not see a D-message flips a fresh, fair coin that the adversary cannot foresee. Whenever all the coins flipped in a round happen to land on that round’s single viable value (or all land alike when there is no D-message), every process enters the next round favoring the exact same value, and the next round settles everyone! Because every round gives the system a fresh, non-zero chance of snapping into unanimity, the chance of missing that exit for k rounds in a row shrinks exponentially toward zero as k grows.
Notice what this does and does not say. No fixed round number can be named in advance by which the camp is guaranteed to have committed. A mercenary who wonders whether the camp is guaranteed to have committed by round 40 can only be told that it almost certainly has, with probability very close to 1, but not with 100% certainty. The infinite runs have not been erased from the tree of possibilities; their combined probability has simply been shrunk to zero.Notice what this does and does not say. No fixed round number can be named in advance by which the system is guaranteed to have decided. Whether the system is guaranteed to have decided by round 40 can only be answered this way: almost certainly, with probability very close to 1, but not with 100% certainty. The infinite executions have not been erased from the tree of possibilities; their combined probability has simply been shrunk to zero.
Interestingly, the quick textbook proof sketch for this (given in the proof drawer below) has a subtle flaw when the arranger can stagger rounds, a gap that stood open for nearly thirty years until Marcos Aguilera and Sam Toueg published a complete proof in 2012.Interestingly, the quick textbook proof sketch for this (given in the proof drawer below) has a subtle flaw when the adversary can stagger rounds, a gap that stood open for nearly thirty years until Marcos Aguilera and Sam Toueg published a complete proof in 2012.

Comparing the night with coins against the night without them shows the exact nature of what randomization changes.Comparing the execution with coins against the execution without them shows the exact nature of what randomization changes.
In the paper's terms the four tents are N = 4 processes, at most t = 1 of which may crash; a sighting is an initial value, a report is the message (1, r, x), sure of v is the D-message (2, r, v, D), unsure is (2, r, ?), being settled is deciding, and a process waits for N − t = 3 messages at each step. A local coin is step 3(c): set the value to 0 or 1 with probability 1/2 each. g is a value, defined in step 1 below. Claim. With N > 2t, every process that does not crash decides with probability 1. This is Theorem 1 (i), which the paper states without proof.Take N = 4 processes, at most t = 1 of which may crash, each waiting for N − t = 3 messages at each step. A report is the message (1, r, x); a proposal is (2, r, v, D) or (2, r, ?). A local coin is step 3(c): set the value to 0 or 1 with probability 1/2 each. g is a value, defined in step 1 below. Claim. With N > 2t, every process that does not crash decides with probability 1. This is Theorem 1 (i), which the paper states without proof.
Why is this only a sketch? Step 1 treats the target answer g of round r as if it were fixed before anyone flips a coin in round r. In an asynchronous network, however, a fast mercenary might finish round r and flip their coin while a slow mercenary is still in Step 3 of round r − 1! An adaptive arranger can wait to see how the fast mercenary's coin lands in round r, and then choose which round r − 1 birds reach the slow mercenary so as to steer round r's majority g against the coin flip that already happened. Ben-Or's 1983 paper stated Theorem 1 without proof; a complete proof that defeats even this adaptive arranger was given by Aguilera and Toueg in 2012.Why is this only a sketch? Step 1 treats the target value g of round r as if it were fixed before anyone flips a coin in round r. In an asynchronous network, however, a fast process might finish round r and flip its coin while a slow process is still in step 3 of round r − 1! An adaptive adversary can wait to see how the fast process’s coin lands in round r, and then choose which round r − 1 messages reach the slow process so as to steer round r’s majority g against the flip that already happened. Ben-Or’s 1983 paper stated Theorem 1 without proof; a complete proof that defeats even this adaptive adversary was given by Aguilera and Toueg in 2012.
What is not claimed? No upper bound on the number of rounds can be guaranteed in advance; termination holds with probability approaching 1 as the number of rounds grows.
Look back at how the endless session in the Chamber of Paxos was constructed:* the arranger found an initial preference that left both outcomes open, and from each open state carefully picked which messenger arrived next so the assembly stayed bivalent forever.Look back at how the endless execution was constructed:* the adversary found an initial configuration that left both outcomes open, and from each bivalent configuration carefully picked which message arrived next so the system stayed bivalent forever.
That entire strategy depended on determinism: because each mercenary followed a fixed rule, the arranger could look ahead along every branch of the tree and know with certainty where delivering a bird would lead. A coin takes that foresight away.That entire strategy depended on determinism: because each process followed a fixed rule, the adversary could look ahead along every branch of the tree and know with certainty where delivering a message would lead. A coin takes that foresight away.
Whenever a mercenary flips a coin, the night forks into two branches, one for the owl and one for the goddess, and the coin chooses which branch is taken, not the arranger.Whenever a process flips a coin, the execution forks into two branches, one for 0 and one for 1, and the coin chooses which branch is taken, not the adversary.
If you fixed the sequence of coin outcomes in advance, the deterministic impossibility proof would work all over again.* With live coin flips, keeping the night open forever requires the coins themselves to keep landing against agreement round after round, an event of probability zero.If you fixed the sequence of coin outcomes in advance, the deterministic impossibility proof would work all over again.* With live coin flips, keeping the execution bivalent forever requires the coins themselves to keep landing against agreement round after round, an event of probability zero.
The FLP theorem remains completely true: no protocol can terminate on every path. Randomization trades certainty on every path for termination with probability 1, while keeping safety 100% guaranteed on every path.
Notice how different the coin is from the other ways out of the impossibility across the water, a wind that eventually drops, or a slate that marks the absent.* Those other escapes give the mercenaries more information about the outside world. The coin gives the mercenaries no new information about the hill at all, instead, it gives the adversarial schedule less power over them.Notice how different the coin is from the other ways out of the impossibility, a bound on message delay that eventually holds or a failure detector that marks the crashed.* Those other escapes give the processes more information about the outside world. The coin gives the processes no new information about the system at all, instead, it gives the adversarial scheduler less power over them.
Even with coins, however, the schedule retains one power that no arrangement can overcome: two of the four mercenaries may fall silent, which no coin can answer.Even with coins, however, the scheduler retains one power that no protocol can overcome: two of the four processes may crash, which no coin can answer.
The first limit on randomized agreement is the number of silent tents. Coins cannot save a camp of four if two mercenaries may die: any arrangement, randomized or not, requires more living mercenaries than twice the number who may die.The first limit on randomized agreement is the number of crashed processes. Coins cannot save a system of four if two may crash: any protocol, randomized or not, requires a strict majority of correct processes (N > 2t).
Why half is too many. Suppose up to two of the four mercenaries might die during the night. Then if Tents 1 and 2 never hear a word from Tents 3 and 4, they must still eventually commit (with probability 1), since 3 and 4 might be dead. And if Tents 1 and 2 both saw hold, they must commit to hold, because for all they know, 3 and 4 also saw hold and died at dusk, in which case the second demand requires the survivors to choose hold regardless of how their coins fall! By the exact same reasoning, if Tents 3 and 4 both saw attack and hear nothing from 1 and 2, they must commit to attack. Now let all four live, hold back all ravens between {1, 2} and {3, 4} until both pairs have committed, and watch them commit to opposite plans below.Why half is too many. Suppose up to two of the four processes might crash. Then if P1 and P2 never hear a word from P3 and P4, they must still eventually decide (with probability 1), since P3 and P4 might have crashed. And if P1 and P2 both have input 0, they must decide 0, because for all they know, P3 and P4 also have input 0 and crashed at the start, in which case validity requires the survivors to decide 0 regardless of how their coins fall! By the exact same reasoning, if P3 and P4 both have input 1 and hear nothing from P1 and P2, they must decide 1. Now let all four live, delay all messages between {P1, P2} and {P3, P4} until both pairs have decided, and watch them decide opposite values below.
Nobody actually dies here, every cross-camp bird is simply held in the pines until both pairs have committed.Nobody actually crashes here, every cross-pair message is simply delayed until both pairs have decided.
Because each pair hears only from itself, neither pair can tell this split night from a unanimous night on which the other pair died at dusk. No coin can help them, because on a unanimous night the second demand forbids the coins from overturning the shared sighting!Because each pair hears only from itself, neither pair can tell this split execution from one where the other pair crashed at the start. No coin can help them, because when the inputs are equal validity forbids the coins from overturning the shared input!
In the paper's terms this is the case N ≤ 2t, here N = 4 and t = 2, a process being able to crash at any moment. Claim. No protocol, randomized or not, meets agreement, validity when all inputs are equal, and termination for every process that does not crash. This is the remark after Theorem 1: the schedule can simulate a partition.Take the case N ≤ 2t, here N = 4 and t = 2, a process being able to crash at any moment. Claim. No protocol, randomized or not, meets agreement, validity when all inputs are equal, and termination for every process that does not crash. This is the remark after Theorem 1: the schedule can simulate a partition.
Three further questions round out what a coin can and cannot do:Three further questions round out what a coin can and cannot do:
At the foot of the hill nobody lies. Ben-Or also gave a second randomized arrangement for a camp where mercenaries may lie, which needs more than five mercenaries for every liar (at least six to tolerate one), and Gabriel Bracha later improved it in 1987 to the best possible, more than three for every liar (four mercenaries for one liar).*In the model above nobody lies. Ben-Or also gave a second randomized protocol for systems with Byzantine processes (N > 5t, or at least six processes to tolerate one liar), which Gabriel Bracha later improved in 1987 to the optimal N > 3t (four processes for one liar).*
When N is large and the adversary schedules messages worst-first, waiting for N independent coins to land alike can take an exponential number of rounds on average (though when faults are at most O(√N) and messages arrive in lockstep, it takes only a constant number of rounds!). Later protocols replaced private coins with a cryptographic shared coin to finish in a small constant number of rounds on average.
When all four sightings agree at dusk, the arrangement preserves that unanimous choice in round 1. When sightings are split, the coins simply break the tie so that all four mercenaries act together rather than staying paralyzed in their tents.When all four inputs are equal, the protocol preserves that unanimous choice in round 1. When inputs are split, the coins simply break the tie so that all four processes act together rather than staying paralyzed.
When an asynchronous machine cannot decide from messages alone, flipping a random coin guarantees that no two machines ever decide differently and that every working machine decides with probability one.
The FLP impossibility theorem still holds for deterministic rules. Randomization escapes it by changing one assumption, requiring a working majority, and trading worst-case termination for termination with probability one.
Later randomized consensus protocols replaced independent local coins with a cryptographic common coin, bringing the expected number of rounds down to a small constant.
Setting Four Mercenaries Who Must Agree
Michael Ben-Or, Another Advantage of Free Choice: Completely Asynchronous Agreement Protocols (extended abstract). Proceedings of the 2nd ACM Symposium on Principles of Distributed Computing (PODC), Montreal, August 1983, 27–30. Presents the randomized consensus protocol for crash failures with N > 2t (Theorem 1), the Byzantine protocol with N > 5t (Theorem 2), and constant expected rounds when t = O(√N) (Theorem 3).
The ideas. Fischer, Lynch, and Paterson proved that no deterministic protocol can guarantee consensus in an asynchronous system if even a single process may crash: an adversarial scheduler can always delay and order messages to keep the system bivalent forever. Crucially, their proof relies on determinism, which lets the adversary predict how each process will react to any message delivery.
Ben-Or showed that local randomness breaks the adversary's control without requiring any timing assumptions at all. Processes execute numbered rounds of two message phases each. In Phase 1 of round r, each process broadcasts its preference and waits for N − t reports; if strictly more than N/2 reports favor the same value v, it broadcasts a Phase 2 decision proposal D(v), and otherwise broadcasts “?”. In Phase 2, it waits for N − t Phase 2 messages: if it sees more than t proposals D(v), it decides v; if it sees at least one D(v), it adopts v for round r + 1; and if it sees no D-proposals at all, it flips a private fair coin to choose 0 or 1 for round r + 1.
Safety holds unconditionally on every execution: because two strict majorities of N must overlap, at most one value v can be proposed with D in any round; and if any process decides v (seeing at least t + 1 messages D(v)), every other process (missing at most t messages) sees at least one D(v), adopts v without flipping a coin, and decides v in the next round. Termination holds with probability 1 whenever N > 2t (rigorously proved against an adaptive adversary by Aguilera and Toueg in 2012). Non-terminating executions still exist, but their total probability measure is zero.