← The Books

The Limits of Agreement

Can a group of computers always reach an agreement when messages can take any amount of time and even one machine might silently stop?

To find out, we follow four part-time legislators in the Chamber of Paxos as they look for a voting rule that always works. Separated across a wide rotunda with poor acoustics, communicating only by messengers across the floor, they must agree whether to paint the temple frieze blue or red, knowing that at any moment one of them may go home. They try one rule after another, and then learn why no rule can ever succeed.

To find out, we look for a protocol that always works. Four processes, each holding an input value, must settle on one decision over a network with no bound on message delay, knowing that any one of them may crash. We try one protocol after another, and then prove that the search can never succeed.

After Michael J. Fischer, Nancy A. Lynch and Michael S. Paterson, Impossibility of Distributed Consensus with One Faulty Process, 1985

Before the round columned Chamber of Paxos, a grey-bearded legislator in white speaks with a young messenger in a short blue tunic
Where this book sits
Draws on
Leads to

Each line traces an idea passed from one paper to another. Hover over or tap a connection to see how they relate.

a paper this book retells a paper retold in another book a paper outside the series

Inside the Chamber at noon: two legislators in white sit side by side on the bench by the wall, talking, the sunburst floor and the columns before them
Paxos · The ChamberThe model

Four legislators, wandering in and outFour processes, one unreliable network

Four part-time legislators sit in the Chamber of Paxos, one to a bench, separated across the wide black-and-white marble floor where the acoustics are too poor for speeches.* Before them lies a single choice, the colour of the temple frieze: blue or red, and they must settle it together.Four processes, P1 to P4, run on separate machines, each holding a private input and answering to no central coordinator. Before any of them acts, they must settle one binary decision together.

Messengers onlyThe four send word across the hall only by messenger. Every messenger arrives in the end, but no messenger has a longest walk across the floor or the island road.Messages onlyThe four exchange information only by messages over the network. Every message is delivered intact in the end, but there is no bound on how long delivery may take.
Nobody liesEvery legislator reports honestly, and every messenger delivers the exact words that were written.No liarsEvery process reports honestly and follows the protocol faithfully, and every message is delivered exactly as sent.
Any legislator may go homeAt most one of the four may go home, or sail away, during the session and not come back. An absent member simply falls silent, and no note announces their departure. Members also step out through the door into the grove on errands and return, while their messengers still carry their notes. An empty seat is plain to everyone in the hall, but it shows only that someone is away from the bench, not that they have gone for good.One may crashAt most one of the four processes may crash during the execution. A crashed process simply takes no further steps: nobody replaces it, and no message announces the crash.
What the four are looking forWhat the protocol must do

Paint it blue, or paint it redDecide 0, or decide 1

The four legislators must decide whether the frieze of the temple is to be painted blue or red, and they must all paint it the same colour. If two legislators paint different colours, the temple is left with a frieze of two colours. Before the session opens, the four want a voting rule that settles the colour every time, however slowly the messengers walk and whichever member goes home.The four processes must decide between 1 and 0, and they must all decide the same value. If their decisions split, part of the system acts on one value while part acts on the other. Before the system starts, we want a protocol that reaches a decision every time, however long messages take and whichever process crashes.

On entering the Chamber, each legislator holds an initial opinion, blue or red. A legislator commits by painting their own panel of the frieze, and once painted, that colour cannot be scraped off. The rule the four are looking for must meet three demands.Each process starts with an input value, 1 or 0. A process decides when it irrevocably outputs a value. The protocol we are looking for must satisfy three properties.

First demand · AgreementFirst property · Agreement

No two commit differentlyNo two processes decide differently

Nobody paints blue while another paints red. Every legislator who commits paints the same colour.No process decides 1 while another decides 0. Every process that decides outputs the same value.

Second demand · ValiditySecond property · Validity

A unanimous opinion winsA shared input wins

The decision must depend on what they brought into the hall: if all entered favouring blue, they paint it blue; if all favoured red, they paint it red.The decision must depend on the inputs: if every input is 1 the decision is 1, and if every input is 0 the decision is 0.

Third demand · TerminationThird property · Termination

Somebody eventually commitsSome process eventually decides

They cannot debate for ever. Sooner or later, at least one legislator paints their panel.The protocol cannot run for ever undecided. Sooner or later, at least one process decides.

Each demand closes off an easy shortcut. The second demand rules out agreeing in advance to paint it blue regardless of what anyone favoured on entering, which keeps everyone in agreement but makes their opinions pointless. The third demand rules out never painting anything at all, which keeps the first two demands by doing nothing. One more rule binds the four: they cannot draw lots or flip coins. Each legislator acts by a fixed rule, based only on their own initial opinion and the notes that have reached their bench.Each property closes off an easy shortcut. Validity rules out the trivial protocol that always decides 0 regardless of the inputs, which guarantees agreement but makes the inputs pointless. Termination rules out the protocol where nobody ever decides, which satisfies the first two properties by doing nothing. The second property is slightly stronger than what the paper requires, which is only that both outcomes be possible; the stronger form keeps the argument short. One more rule binds the four: there is no randomization. Each process acts deterministically, driven only by its own input and the messages that have reached it.

The search starts with the two simplest rules. Try each one on the initial opinions below, and then try the second when Legislator 3 has gone home.The search starts with the two simplest protocols. Try each one on the inputs below, and then try the second in an execution where P3 has crashed.

The first two rules try eachThe first two protocols try each

The Chamber from above. The badge beside each bench shows what that legislator favoured on entering: blue or red.Each lane is one process, with real time running left to right. The badge beside each name is its input, 1 or 0; each arrow is a message, dashed while in transit, and a decision is marked where it is made.

Try a rule, and see which demands it keeps.Try a protocol, and see which properties it keeps.

Always painting blue keeps the frieze one colour by ignoring what anyone thought. Waiting for every note does far better: whenever all four legislators stay in the hall, every bench collects the same four opinions, since nobody lies, applies the same rule, and paints the same colour. That rule fails only when one member goes home, and the way it fails comes from the messengers.Always deciding 0 keeps the decisions equal by ignoring the inputs. Waiting for every input does far better: whenever all four processes stay up, every process collects the same four inputs, since nobody lies, applies the same rule, and reaches the same decision. That protocol fails only when one process crashes, and the way it fails comes from the network.

The heart of the problem

An absent legislator, or a slow messenger?Crashed, or only slow?

The messengers can be trusted in every way but one: every note arrives intact in the end, but there is no limit on how long a messenger may take crossing the floor or the island road.The network can be trusted in every way but one: every message is delivered intact in the end, but there is no bound on how long delivery takes.

A messenger might cross the black-and-white marble floor in moments, or linger under the colonnade outside for hours. Because no walk has a longest time, there is no hour after which a legislator can look at an empty desk and know that no note is coming.A message might arrive in milliseconds, or sit in transit for hours. Because no delay is too long to be possible, there is no moment after which a process can look at an empty inbox and know that no message is on the way.

Now combine slow messengers with the rule that one legislator may go home and leave their bench silent for good. A legislator waiting on a silent bench cannot tell which session they are in. Wait at Legislator 2's bench below, and see whether waiting longer ever tells the two apart.Now combine slow messages with the possibility that one of the four processes crashes and falls silent. A process waiting on one that has not answered cannot tell which execution it is in. Wait at P2’s inbox below, and see whether waiting longer ever tells the two apart.

Inside the Chamber, a young messenger in blue crosses the sunburst floor carrying a folded note, while across the hall a legislator writes on a scroll and the open door shines behind

Two sessions seen from legislator 2's benchTwo executions seen by P2

One sessionOne execution

Suppose Legislator 1 has gone home. No note was sent, and none will ever come.Suppose P1 has crashed. It sent no message, and none will ever come.

Legislator 2's deskP2's inboxempty
Another sessionAnother execution

Suppose Legislator 1 has not gone home, though they may be out on an errand. Their messenger left hours ago, but is still crossing the hall.Suppose P1 is alive and well. It sent its message hours ago, but the message is still in transit.

Legislator 2's deskP2's inboxempty

Legislator 2 has heard nothing from legislator 1. Which session is this?P2 has heard nothing from P1. Which execution is this?

In both sessions, Legislator 2 sees the same thing: an empty desk. Waiting another hour never turns that silence into an answer. Any rule that waits for all four legislators will stall for ever whenever one member goes home. To guarantee that someone commits, the rule must let a legislator commit after hearing from at most three benches.In both executions, P2 sees the same thing: an empty inbox. Waiting another hour never turns that silence into an answer. Any protocol that waits for all four inputs will stall for ever whenever one process crashes. To guarantee termination, a protocol must allow processes to decide after hearing from at most three of the four.

The search therefore turns to rules that go on without one bench. There are two natural ways to do it: let every legislator decide from the first three opinions they hold, or let one legislator choose for everyone and name a successor if the chooser falls silent.The search therefore turns to protocols that go on without one process. There are two natural ways to do it: let every process decide from the first three inputs it holds, or let one process choose for everyone and hand the choice to another if the first falls silent.

Two rules that do not wait for everyoneTwo protocols that do not wait for everyone

Going on without one benchDeciding without one process

A rule that lets the four go on without one bench has to decide what a silent bench means. Whatever it decides, the bench may only be slow, and its note may still be on the floor.A protocol that lets the four go on without one process has to decide what a silent process means. Whatever it decides, the process may only be slow, and its message may still be in transit.

The first rule asks each legislator to paint as soon as they hold three opinions, their own and the first two notes to arrive, and to follow the majority of those three. The second rule asks Legislator 1 to choose a colour, paint it, and send it to the others, who paint whatever the chooser's note says; if no note comes for a long while, Legislator 2 chooses instead. Below, the four enter with Legislators 1 and 4 favouring blue and Legislators 2 and 3 favouring red. Try each rule.The first protocol has each process decide as soon as it holds three inputs, its own and the first two to arrive, and take the majority of those three. The second has P1 choose a value, decide it, and send it to the others, who decide whatever P1's message says; if no message comes before a timeout, P2 chooses instead. Below, P1 and P4 start with input 0 and P2 and P3 with input 1. Try each protocol.

Two more rules try eachTwo more protocols try each

The Chamber from above. The badge beside each bench shows what that legislator favoured on entering, and the word beside it is the colour they paint.Each lane is one process, with real time running left to right. The badge beside each name is its input; each arrow is a message, dashed while in transit, and a decision is marked where it is made.

Neither rule waits for all four benches. Find what each gives up instead.Neither protocol waits for all four processes. Find what each gives up instead.

Following the first three opinions lets every bench finish without the fourth, and that is exactly what splits the frieze. Legislator 1 never heard from Legislator 3 in time, Legislator 3 never heard from Legislator 1, and with opinions divided two against two, the bench a legislator misses decides which colour they paint. The notes they missed all arrive in the end, after the paint is dry.Taking the majority of the first three inputs lets every process finish without the fourth, and that is exactly what splits the decision. P1 never received P3's input in time, P3 never received P1's, and with inputs divided two against two, the process whose message is late decides which value each one picks. The late messages are all delivered in the end, after the decisions are made.

Letting one legislator choose fails in the two ways a silent bench allows. If the others wait for the chooser, they wait for ever when the chooser has gone home. If they name a successor after a long while, the chooser may only have had slow messengers, and has already painted a colour the successor does not know. No while is long enough to rule that out, because no messenger has a longest walk.Letting one process choose fails in the two ways a silent process allows. If the others wait for it, they wait for ever when it has crashed. If they hand the choice to another after a timeout, the first may only have had slow messages, and has already decided a value its successor does not know. No timeout is long enough to rule that out, because there is no bound on message delay.

Each rule can be repaired: a second exchange of notes to compare what each bench heard, a successor who first asks the others what the chooser said. But every repair runs into the same question one exchange later, since each new round must also go on without one bench. Trying rules one at a time can go on as long as anyone likes, and a failed rule proves nothing about the next one. To end the search, the argument has to judge every rule at once.Each protocol can be repaired: a second round to compare what each process received, a successor that first asks the others what P1 sent. But every repair meets the same question one round later, since each new round must also proceed without one process. Testing protocols one at a time never ends, and a failed protocol proves nothing about the next one. To end the search, the argument has to judge every protocol at once.

Judging every rule at onceJudging every protocol at once

When is the colour settled?When is the decision settled?

Judging every voting rule at once means saying nothing about how any particular rule works. All the argument may use is what every rule shares: four benches, notes crossing the floor, and a moment when the colour stops being in doubt. Three words describe the Chamber that way.Judging every protocol at once means saying nothing about how any particular protocol works. All the argument may use is what every protocol shares: four processes, messages in transit, and a point after which the decision is no longer in doubt. Three terms describe the system that way.

A positionA configuration

The whole hall at one momentThe whole system at one moment

A position is everything in the Chamber at a given instant: what each of the four legislators holds in mind, together with every note currently carried across the floor.A configuration is the complete state of the system at a given instant: the internal state of each of the four processes, together with every message currently in transit.

A deliveryA step

One legislator takes in one noteOne process receives one message

The session moves forward one delivery at a time: one legislator reads an arriving note (or checks an empty desk), updates their notes, and may send new messengers.The execution moves forward one step at a time (an event in the paper): one process receives a message (or checks an empty inbox), updates its state, and may send new messages.

Open or closedBivalent or univalent

Can the delivery order still tip it?Can the delivery order still tip it?

A position is open if later deliveries can still lead to blue and can still lead to red. It is closed once only one colour remains reachable.A configuration is bivalent if later steps can still lead to decision 0 and can still lead to decision 1. It is univalent once only one decision remains reachable.

Whether a position is open or closed does not describe what any single legislator thinks; it describes the whole hall from above. While a position is open, the order in which messengers arrive can still tip the final colour either way. Once a position is closed, the colour is fixed: every continuation from that point ends in the same colour, even if nobody has written it down yet.Whether a configuration is bivalent or univalent does not describe what any single process knows; it describes the whole system from above. While a configuration is bivalent, the order in which messages arrive can still tip the final decision either way. Once a configuration is univalent, the decision is fixed: every continuation from that point leads to the same value, even if no process has decided yet.

First, see what happens when two groups of benches act with no legislator in common. Below, Legislators 1 and 2 trade notes on one side of the hall, while Legislators 3 and 4 trade notes on the other. Run them in one order, start again, and run them in the other order.First, see what happens when two sets of steps have no process in common. Below, P1 and P2 exchange messages, and so do P3 and P4. Run them in one order, start over, and run them in the other order.

Separate benches run them in either orderIndependent steps run them in either order

Each line is one bench over time. An arc is a messenger carrying a note from one bench to another, and a hollow dot is a legislator who has not yet committed.Each lane is one process, with real time running left to right. An arrow is a message sent from one process to another, and a hollow dot is a step taken by a process that has not yet decided.

Legislators 1 and 2 have notes to trade, and so have Legislators 3 and 4. Which pair goes first?P1 and P2 have messages to exchange, and so have P3 and P4. Which pair goes first?

When two sequences of deliveries touch completely separate benches, their order does not matter: run either first, and the Chamber ends in the exact same position. Each delivery changes only the bench that receives the note and the messengers on the floor for that bench, so neither pair touches anything the other pair reads.When two sequences of steps involve disjoint sets of processes, their order does not matter: run either first, and the system reaches the exact same configuration (they commute). Each step changes only the state of the process taking the step and the messages in transit for it, so neither sequence touches anything the other reads.

With these words, the hope behind each repair can be tested against every rule at once. The first hope is that a clever enough rule lets the opinions brought into the hall settle the colour before any messenger walks, so that a missing note never matters. That hope concerns the start of the session, when each legislator holds an initial opinion and no messenger has crossed the floor.With these terms, the hope behind each repair can be tested against every protocol at once. The first hope is that a clever enough protocol lets the inputs fix the decision before any message is sent, so that a late message never matters. That hope concerns the initial configuration, when each process holds its input and no message is in transit.

Proof · Courses with no legislator in common commute (Lemma 1)Proof · Schedules with no process in common commute (Lemma 1)

In the paper's terms, a position is a configuration, a delivery is an event, a course is a schedule, a fair course is an admissible run, and open and closed are bivalent and univalent. Lemma 1. Let courses σ₁ and σ₂ both be applicable at a position, and let the set A of legislators who act in σ₁ and the set B of legislators who act in σ₂ be disjoint. Then each course can be run after the other, and both orders reach the exact same position.Lemma 1. Let schedules σ₁ and σ₂ both be applicable to a configuration, and let the set A of processes that take steps in σ₁ and the set B of processes that take steps in σ₂ be disjoint. Then each schedule can be applied after the other, and both orders reach the exact same configuration.

  1. A position consists of what each legislator holds in mind together with the notes in transit. A delivery changes only two parts of it: the single legislator who receives the note, and the floor (one note delivered, and perhaps new messengers sent).A configuration consists of the internal state of every process together with the message buffer. A step changes only two parts of it: the state of the single process that takes the step, and the buffer (one message removed, and perhaps new ones added).
  2. Let σ₁ involve a set of legislators A and σ₂ a disjoint set B. Running σ₁ alters only the legislators in A, whose state σ₂ never reads; and vice versa.Let σ₁ involve the set of processes A and σ₂ the disjoint set B. Applying σ₁ alters only the states of processes in A, which σ₂ never reads; and vice versa.
  3. Neither course disables the other across the hall: every note is addressed to a single bench, so the notes consumed by σ₂ are addressed to legislators in B, whereas σ₁ removes only notes addressed to legislators in A. Both orders are therefore valid.Neither schedule disables the other through the buffer: every message is addressed to a single process, so the messages consumed by σ₂ are addressed to processes in B, whereas σ₁ removes only messages addressed to processes in A. Both orders are therefore applicable.
  4. In either order, the legislators of A experience the exact same deliveries of σ₁ and the legislators of B experience the exact same deliveries of σ₂, each in its own order, and the floor has had the identical notes sent and delivered. Thus the resulting positions are identical.∎In either order, the processes of A experience the exact same steps of σ₁ and the processes of B experience the exact same steps of σ₂, each in its own order, and the buffer has had the identical messages removed and added. Thus the resulting configurations are identical.∎
The first hope · The opinions settle itThe first hope · The inputs settle it

Entering that settles nothingInputs alone settle nothing

The first hope is that a rule can let the opinions settle the colour before any messenger walks. To test it, line up five possible beginnings. On the left all four legislators favour blue; at each step to the right one more changes to red, first Legislator 1, then 2, then 3, then 4, until on the right all four favour red.The first hope is that a protocol can let the inputs fix the decision before any message is sent. To test it, line up five initial configurations, from 0000 on the left to 1111 on the right, changing one more input from 0 to 1 at each step: first P1’s, then P2’s, then P3’s, then P4’s.

Under any rule, each beginning is either closed for one colour, or open, when the order of the messengers can still tip it either way. The second demand fixes the two ends: all-blue is closed for blue, and all-red is closed for red. The hope is that the rule closes every beginning in between as well. Mark each of the middle three below, and try to close them all.Under any protocol, each initial configuration is either univalent (0-valent or 1-valent) or bivalent, when the order of delivery can still tip it either way. Validity fixes the two ends: 0000 is 0-valent, and 1111 is 1-valent. The hope is that the protocol makes every configuration in between univalent as well. Mark each of the middle three below, and try to make them all univalent.

A row of beginnings press the middle threeA row of initial configurations press the middle three

Two neighbours in the row can never be closed for opposite colours. They differ only in what one legislator favoured, and that legislator may go home before sending a single note. The other three then hold the same opinions and receive the same notes in both sessions, so they paint the same colour in both, and that colour can be reached from either beginning. The row has to turn from blue to red somewhere between its ends, and it cannot turn in one step from closed-for-blue to closed-for-red, so it must pass through an open beginning. Under any voting rule, at least one combination of initial opinions leaves the session open at the start.Two adjacent configurations can never be univalent for opposite values. They differ only in one process’s input, and that process may crash before sending a single message. The other three then hold the same inputs and receive the same messages in both executions, so they decide the same value in both, and that value is reachable from either configuration. The row has to turn from 0 to 1 somewhere between its ends, and it cannot turn in one step from 0-valent to 1-valent, so it must pass through a bivalent configuration. Under any protocol, at least one assignment of inputs leaves the initial configuration bivalent.

The first hope fails for every rule: the session can begin open. That leaves the second hope. If the opinions do not settle the colour, perhaps the notes do, and some delivery must sooner or later tip the balance and close the room. A rule would then only need its legislators to keep trading notes until that delivery comes.The first hope fails for every protocol: an execution can begin bivalent. That leaves the second hope. If the inputs do not fix the decision, perhaps the messages do, and some delivery must sooner or later tip the balance and make the configuration univalent. A protocol would then only need its processes to keep exchanging messages until that delivery comes.

Proof · Some beginning is open (Lemma 2)Proof · Some initial configuration is bivalent (Lemma 2)

A beginning is an initial configuration: the four legislators' initial opinions, with no messenger yet sent. Lemma 2. Whatever voting rule the four follow, at least one beginning is open (bivalent).Lemma 2. An initial configuration gives each process an input, with no message yet in transit. Whatever protocol the four processes run, at least one initial configuration is bivalent.

  1. Suppose, for contradiction, that every possible beginning were closed, each already settled for either blue or red by the initial opinions alone.Suppose, for contradiction, that every initial configuration were univalent, each already fixed at 0 or at 1 by the inputs alone.
  2. Both colours must occur: the second demand (validity) forces blue when all four favour blue, and red when all four favour red.Both values must occur: validity forces decision 0 when all four inputs are 0, and decision 1 when all four are 1.
  3. Call two beginnings neighbours when they differ in only one legislator's opinion. Stepping from all-blue to all-red one opinion at a time, there must be two adjacent neighbours B₀ and B₁, differing only in the opinion of one legislator p, that are settled for opposite colours (say, B₀ for blue and B₁ for red).Call two initial configurations adjacent when they differ in only one process’s input. Stepping from all-0 to all-1 one input at a time, there must be two adjacent configurations B₀ and B₁, differing only in the input of one process p, that are univalent for opposite decisions (say, B₀ for 0 and B₁ for 1).
  4. Take a fair course starting from B₀ in which legislator p never takes a step. This is permitted because the rule must still reach a decision when one member is absent; thus the remaining three eventually commit to blue.Take an admissible schedule from B₀ in which process p takes no step. This is permitted because the protocol must still decide when one process crashes; thus the remaining three eventually decide 0.
  5. Now run that exact same course starting from B₁. Since p never acts and p's opinion is the only difference between B₀ and B₁, the other three legislators see the exact same opinions and receive the exact same notes in the same order, so they must commit to blue here too.Apply that exact same schedule from B₁. Since p takes no step and p’s input is the only difference between B₀ and B₁, the other three processes see the same inputs and receive the same messages in the same order, so they must decide 0 here too.
  6. But B₁ was supposedly settled for red, and a closed beginning admits no course to the opposite colour. This contradiction proves that some beginning must be open.∎But B₁ was supposedly 1-valent, and a univalent configuration admits no reachable decision of the opposite value. This contradiction proves that some initial configuration must be bivalent.∎
The second hope · Some note settles itThe second hope · Some message settles it

The note that would settle it can always be held backThe message that would settle it can always be delayed

A rule that waits for the delivery that closes the room needs such a delivery to come. Suppose the session is open, and a note is ready to be delivered that would close the room. By holding that messenger back for a while and letting other notes arrive first, the Chamber can always reach a position where that waiting note is finally delivered and the room stays open.A protocol that waits for the delivery that settles the decision needs such a delivery to come. Suppose the system is in a bivalent configuration, and a message is ready to be delivered that would make it univalent. By delaying that message for a while and letting other steps happen first, the system can always reach a configuration where that waiting message is finally delivered and the configuration stays bivalent.

The note is never lost, since every messenger arrives in the end. The argument only checks whether its delivery has to close the session. Scroll through the seven steps below to follow the reasoning.The message is never lost, since the network eventually delivers every message. The argument only checks whether its delivery has to make the configuration univalent. Scroll through the seven steps below to follow the reasoning.

1 · An open session1 · A bivalent configuration

One note is waiting to arriveOne message is waiting to be delivered

The Chamber stands in an open position: both blue and red can still be reached. One note is on the floor, ready to be delivered. Because messengers are reliable, that note must be delivered sooner or later.The system stands in a bivalent configuration: both 0 and 1 can still be decided. One message is in transit, ready to be delivered. Because the network is reliable, that message must be delivered sooner or later.

2 · Hold it back2 · Delay it

Other deliveries can come firstOther steps can come first

Hold that messenger back while other deliveries happen first. The top row shows the positions reached while that note waits. Directly beneath each top position, the bottom row shows the position reached when the waiting note is finally delivered.Delay that message while other steps happen first. The top row shows the configurations reached while that message waits. Directly beneath each top configuration, the bottom row shows the configuration reached when the waiting message is finally delivered.

3 · Suppose

Suppose its arrival always settled the colourSuppose its delivery always settled the outcome

Suppose, for contradiction, that delivering this note always closed the session. Then every position in the bottom row would be closed, either for blue or for red. Because the starting position was open, both colours must appear somewhere along the bottom row.Suppose, for contradiction, that delivering this message always made the configuration univalent. Then every configuration in the bottom row would be univalent, either 0-valent or 1-valent. Because the starting configuration was bivalent, both 0 and 1 must appear somewhere along the bottom row.

4 · Neighbours

Somewhere, two neighbours split

Because the positions in the top row are linked by single deliveries, there must be two adjacent positions in the top row, one delivery apart, where delivering the waiting note at the first closes the room for blue, while delivering it at the second closes the room for red.Because the configurations in the top row are linked by single steps, there must be two adjacent configurations in the top row, one step apart, where delivering the waiting message at the first yields a 0-valent configuration, while delivering it at the second yields a 1-valent one.

5 · Another bench's delivery5 · Another process’s step

Case 1: The step is at another benchCase 1: The step is at another process

Suppose the single delivery between the two top neighbours happens at a different bench than the one our waiting note is addressed to. By our first fact, deliveries at separate benches commute: delivering the waiting note first and taking that step second reaches the exact same position as taking that step first and delivering the waiting note second. That would mean a position closed for blue can step straight into a position closed for red, which is impossible.Suppose the single step between the two top neighbours is taken by a different process than the one our waiting message is addressed to. By Lemma 1, steps at different processes commute: delivering the waiting message first and taking that step second reaches the exact same configuration as taking that step first and delivering the waiting message second. That would mean a 0-valent configuration can step straight into a 1-valent one, which is impossible.

6 · The same bench's delivery6 · The same process’s step

Case 2: The step is at the same benchCase 2: The step is at the same process

Suppose both deliveries happen at the same bench. Then let that legislator go home while the other three finish the session and commit on their own. Because the other three never hear from that bench, their deliveries commute with its deliveries. So even after the other three have committed, delivering the waiting note alone to that bench would force blue, while delivering both notes to it would force red. A finished session would still be open, which is also impossible.Suppose both steps are taken by the same process. Then let that process take no steps while the other three finish the protocol and decide on their own. Because the other three never hear from that process, their steps commute with its steps. So even after the other three have decided, delivering the waiting message alone to that process would force 0, while taking both of its steps would force 1. A decided configuration would still be bivalent, which is also impossible.

7 · So

The note arrives, and the session is open stillThe message is delivered, and the configuration is bivalent still

Both cases are impossible, so the supposition fails. Somewhere in the bottom row, delivering the waiting note leaves the Chamber open. No single note is ever forced to close the session.Both cases are impossible, so the supposition fails. Somewhere in the bottom row, delivering the waiting message leaves the configuration bivalent. No single message is ever forced to settle the decision.

Every delivery that happens while a note waits either touches another bench (so the two deliveries commute) or touches the same bench (whose legislator could go home while the other three finish). In either case, the boundary between blue and red cannot hold. Two facts are now established: the session can begin open, and any waiting note can be delivered without closing it. Each refutes one hope, for every rule at once. Used together without stopping, they end the search.Every step that happens while a message waits either touches another process (so the two steps commute) or touches the same process (which could stop while the other three finish). In either case, the boundary between 0-valent and 1-valent cannot hold. Two facts are now established: an execution can begin bivalent, and any pending message can be delivered without making it univalent. Each refutes one hope, for every protocol at once. Used together without stopping, they end the search.

Proof · A delivery can always be deferred and the session left open (Lemma 3)Proof · A step can always be deferred and the configuration left bivalent (Lemma 3)

Lemma 3. Let C be an open position and e a delivery applicable at C. Let 𝒞 be the set of positions reachable from C without allowing e, and 𝒟 the set of positions obtained by finally allowing e from each position in 𝒞. Then 𝒟 contains at least one open position.Lemma 3. Let C be a bivalent configuration and e an event applicable to C. Let 𝒞 be the set of configurations reachable from C without applying e, and 𝒟 the set of configurations obtained by finally applying e to each configuration in 𝒞. Then 𝒟 contains at least one bivalent configuration.

  1. Let C be open and e a delivery ready to occur at C. Suppose, for contradiction, that no position in 𝒟 is open, so every position in 𝒟 is closed for either blue or red.Let C be bivalent and e an event applicable to C. Suppose, for contradiction, that no configuration in 𝒟 is bivalent, so every configuration in 𝒟 is univalent, either 0-valent or 1-valent.
  2. Both colours must occur in 𝒟. Since C is open, some course from C ends in blue and another ends in red. If such a course never allows e, its positions lie in 𝒞 and allowing e at the end gives a member of 𝒟 closed for that same colour; if the course does allow e, the position immediately after e occurs is already in 𝒟 and closed for that colour.Both values must occur in 𝒟. Since C is bivalent, some schedule from C leads to a decision of 0 and another leads to a decision of 1. If such a schedule never applies e, its configurations lie in 𝒞 and applying e at the end gives a member of 𝒟 that is univalent for that same value; if the schedule does apply e, the configuration immediately after e is already in 𝒟 and univalent for that value.
  3. So 𝒞 contains neighbours that split in 𝒟. Because every position in 𝒞 is connected by single steps from C, walking from a position whose image in 𝒟 is closed for blue to one whose image is closed for red must cross two neighbours C₀ and C₁ = f(C₀), one delivery f apart, whose images D₀ = e(C₀) and D₁ = e(C₁) are closed for opposite colours.So 𝒞 contains neighbours that split in 𝒟. Because every configuration in 𝒞 is connected by single events from C, walking from a configuration whose image in 𝒟 is 0-valent to one whose image is 1-valent must cross two neighbours C₀ and C₁ = f(C₀), one event f apart, whose images D₀ = e(C₀) and D₁ = e(C₁) are univalent for opposite values.
  4. Case 1: f is another legislator's delivery. By Lemma 1 (separate benches commute), e and f commute, so D₁ = f(D₀). But every position reachable from the blue-closed position D₀ must also be closed for blue, whereas D₁ is closed for red, a contradiction.Case 1: f is an event at a different process than e. By Lemma 1 (disjoint schedules commute), e and f commute, so D₁ = f(D₀). But every configuration reachable from the 0-valent D₀ must also be 0-valent, whereas D₁ is 1-valent, a contradiction.
  5. Case 2: f is the same legislator's delivery, say p's. Take a fair course σ starting from C₀ in which p never takes a step and the remaining three legislators eventually commit; this is permitted because p could be the one absent member. Call the decided position reached by σ position A.Case 2: f is an event at the same process, say p. Take an admissible schedule σ from C₀ in which p takes no step and the remaining three processes eventually decide; this is permitted because p could be the one crashed process. Call the configuration reached by σ configuration A, in which a decision has been made.
  6. Because σ has no member in common with e or f, Lemma 1 says σ can also be run from D₀ and from D₁, reaching e(A) and e(f(A)) respectively. Since these are reached from D₀ and D₁, e(A) is closed for blue while e(f(A)) is closed for red. That means both outcomes are still reachable from A, so A is open, contradicting the fact that σ had already finished and passed a colour at A.Because σ has no process in common with e or f, Lemma 1 says σ can also be applied from D₀ and from D₁, reaching e(A) and e(f(A)) respectively. Since these are reached from D₀ and D₁, e(A) is 0-valent while e(f(A)) is 1-valent. That means both decisions are still reachable from A, so A is bivalent, contradicting the fact that σ had already finished and decided at A.
  7. Since both cases lead to a contradiction, 𝒟 must contain an open position.∎Since both cases lead to a contradiction, 𝒟 must contain a bivalent configuration.∎
The search ends

A fair session in which nothing is ever settledA fair execution in which nothing is ever decided

Used one after another without rest, those two facts build a session that is fair to every legislator and every messenger, yet never closes. The session can be built against any voting rule the four adopt, the ones the search tried and every one it did not.Used one after another without rest, those two lemmas build an execution that is fair to every process and every message, yet never becomes univalent. The execution can be built against any protocol, the ones the search tried and every one it did not.

Start from initial opinions that leave the Chamber open. Place all four legislators in a queue. At each turn, look at the legislator at the front of the queue and find the note that has been on the floor longest for their bench (or let them check an empty desk if none is waiting). By the second fact, other notes can be delivered first so that delivering that oldest note leaves the Chamber open. Then move that legislator to the back of the queue and repeat. Every legislator's turn comes round again and again, and every note is delivered at last.Start from an initial configuration that is bivalent (Lemma 2). Place all four processes in a round-robin queue. At each turn, take the process at the front of the queue and find the message that has been in transit longest for it (or let it take a step with an empty inbox if none is waiting). By Lemma 3, other steps can be taken first so that delivering that oldest message leaves the configuration bivalent. Then move that process to the back of the queue and repeat. Every process’s turn comes round again and again, and every message is eventually delivered.

Let the session run below and watch the count of committed legislators stay at zero. Then give the messengers a longest walk, and watch what changes.Let the execution run below and watch the count of decided processes stay at zero. Then give messages a maximum delay, and watch what changes.

The sessionThe execution

0deliveries taken insteps taken0notes on the floormessages in transit0legislators committedprocesses decided

No legislator is starved of a turn, and every note is delivered at last.No process is starved of a turn, and every message is delivered at last.

The picture follows the rotating queue: each turn delivers the note longest on the floor for the bench at the head of the queue, and our two facts guarantee that against any fixed voting rule the four could choose, the deliveries can be ordered so the session stays open.The picture follows the round-robin queue: each turn delivers the oldest message in transit for the process at the head of the queue, and Lemmas 2 and 3 guarantee that against any deterministic protocol the four could choose, the steps can be ordered so the configuration stays bivalent.

Continued without end, this session is completely fair: no note is lost, no legislator is starved of a turn, and every messenger reaches their bench. Yet at every step the Chamber stays open, so no legislator can ever paint their panel. The same endless session can be arranged against any fixed voting rule the four could devise, so the search for one that always works is over.Continued without end, this execution is completely fair: no message is lost, no process is starved of a turn, and every message is delivered. Yet at every step the configuration stays bivalent, so no process can ever decide. The same endless execution can be arranged against any deterministic protocol the four could run, so the search for one that always works is over.

No rule guarantees that anyone ever commitsNo protocol guarantees that any process ever decides

Nobody actually goes home in this session. The single departure allowed by the rules was used only to show that three legislators must be able to finish without the fourth. In the session itself, all four legislators stay in the Chamber all day.Nobody actually crashes in this execution. The single crash allowed by the model was used only to show that three processes must be able to decide without the fourth. In the execution itself, all four processes stay up and take steps forever.

Agreement is never broken. No two legislators ever paint different colours, because nobody paints a panel at all.Agreement is never broken. No two processes ever decide different values, because no process decides at all.

One legislator committing was all we asked. The third demand asked only that at least one legislator eventually paint a panel, and even that cannot be promised.One process deciding was all we asked. Termination asked only that at least one process eventually decide, and even that cannot be promised.

Four benches are not special. The same argument holds for any group of two or more legislators choosing between two or more colours.Four processes are not special. The same argument holds for any group of two or more processes choosing between two or more values.

The Chamber terrace in the low afternoon sun: a woman in a pale chiton shades her eyes and looks out over cypresses and the hills towards the sea, a golden statue on its plinth beside her and long shadows across the paving

Giving the messengers a deadline ended the waiting at once, which shows what has to change before agreement can be guaranteed.Bounding the message delay ended the waiting at once, which shows what has to change before consensus can be guaranteed.

Proof · No voting rule guarantees that the session ever closes (Theorem 1)Proof · No protocol guarantees that the execution ever decides (Theorem 1)

Theorem 1 (Fischer, Lynch, and Paterson, 1985). No completely asynchronous consensus protocol can tolerate even a single unannounced crash failure.Theorem 1 (Fischer, Lynch, and Paterson, 1985). No completely asynchronous consensus protocol can tolerate even a single unannounced crash failure.

  1. By Lemma 2, there is an initial beginning C₀ that is open.By Lemma 2, there is an initial configuration C₀ that is bivalent.
  2. Place the four legislators in a queue, and keep the notes in transit ordered by the time they were sent.Place the four processes in a queue, and keep the messages in transit ordered by the time they were sent.
  3. Suppose stage k has reached an open position Ck. Let p be the legislator at the head of the queue, and let e be the earliest note in transit addressed to p (or an empty-desk check by p if no note is waiting for p).Suppose stage k has reached a bivalent configuration Ck. Let p be the process at the head of the queue, and let e be the earliest message in transit addressed to p (or an empty-inbox step by p if no message is waiting for p).
  4. By Lemma 3, there is a finite sequence of deliveries from Ck, ending with e, that reaches an open position Ck+1. Move p to the back of the queue and repeat from Ck+1.By Lemma 3, there is a finite schedule from Ck, ending with e, that reaches a bivalent configuration Ck+1. Move p to the back of the queue and repeat from Ck+1.
  5. Stringing these stages together without end produces a fair course in which every legislator takes infinitely many turns and every note is delivered, yet every stage ends in an open position, so nobody ever commits.∎Stringing these stages together without end produces an admissible run in which every process takes infinitely many steps and every message is delivered, yet every stage ends in a bivalent configuration, so no process ever decides.∎
Three ways out

What would have to change

Slow messengers alone do not cause the deadlock, and neither do notes that arrive out of order. The deadlock comes from two things together: no longest walk for a messenger, and an absent legislator looking just like a slow messenger. Changing any one of three assumptions breaks it.Slow messages alone do not cause the impossibility, and neither do messages that arrive out of order. The impossibility comes from two things together: no bound on message delay, and a crashed process looking just like a slow message. Changing any one of three assumptions breaks it.

One

A deadline on messengersA bound on message delay

If every messenger arrives within a known time, silence past that time proves a bench is empty, and the remaining legislators can go on without it.If every message arrives within a known time bound, silence past that deadline proves a process has crashed, and the remaining processes can go on without it.

Two

An attendance slateAn imperfect failure detector

Give each legislator an attendance slate that marks who appears to have left, provided it eventually marks every absent member and eventually spares at least one present member.*Give each process a failure detector that suspects crashed processes, provided it eventually suspects every crashed process and eventually spares at least one correct process.*

Three

Departures only before the sessionCrashes only before the start

If no legislator goes home once the session has begun, and absences happen only beforehand, a present majority can always settle the colour.If no process crashes once the protocol has begun, and crashes happen only beforehand, a correct majority can always reach agreement.

When none of these holds in the Chamber, the legislators give up the promise that every session finishes on its own: their numbered ballots keep the scrolls safe through any delay or absence, and settle the colour as soon as one president's notes go back and forth unchallenged.* Across the water on Mount Phyle, the mercenaries take two other paths: a coin tossed in the tent breaks a tie by chance,* and waiting for the mountain wind to drop gives their birds a bounded flight at last.*When none of these holds in an asynchronous network, practical protocols give up unconditional termination: Paxos guarantees safety under all delays and crashes, and makes progress whenever a single leader is able to communicate with a majority.* Randomization* and partial synchrony* take the other two paths.

When messages may take any amount of time and even one machine may crash, no deterministic protocol can guarantee that the group ever decides.

Agreement itself is never broken. What cannot be promised is an end to the waiting.

Real-world distributed systems live with this result by relaxing the rules slightly: assuming message delays eventually stay within bounds, using imperfect failure detectors, or flipping coins.

Setting The Chamber of Paxos · Part-Time Legislators Passing Laws

The paper behind this book

The paper behind this book. Michael J. Fischer, Nancy A. Lynch and Michael S. Paterson, “Impossibility of Distributed Consensus with One Faulty Process,” Journal of the ACM 32, 2 (April 1985), 374–382.

The ideas. No deterministic protocol can guarantee consensus in an asynchronous network if even a single process is allowed to crash. The proof centers on bivalence (what our story calls an open position): a system configuration from which both possible decisions are still reachable. The authors prove two key lemmas: first, every protocol has at least one bivalent initial configuration (Lemma 2); second, from any bivalent configuration, any pending message delivery can be delayed behind other steps so that delivering it still leaves the system in a bivalent configuration (Lemma 3). Chaining these together lets an adversarial scheduler construct an infinite, fair run in which every process takes steps and every message is delivered, yet no decision is ever reached. Three subtleties make the theorem especially striking: the infinite run constructed by the proof contains no actual crash at all (the single permitted fault is used only to show that processes cannot wait for everyone); safety (agreement and validity) is never violated, and only termination (liveness) is lost; and the impossibility holds even when we only require a single process to eventually decide. The root obstacle is not slow messages alone, but the inability to distinguish a crashed process from a slow one. Relaxing that constraint by bounding message delays (even only eventually), adding an unreliable failure detector, allowing randomness, or restricting crashes to occur only before the protocol begins (as shown in §4 of the paper) makes consensus solvable again.

Fischer, M. J., Lynch, N. A., and Paterson, M. S. Impossibility of distributed consensus with one faulty process. J. ACM 32, 2 (1985), 374–382.

Lamport, L. The part-time parliament. ACM Trans. Comput. Syst. 16, 2 (1998), 133–169.

Dwork, C., Lynch, N., and Stockmeyer, L. Consensus in the presence of partial synchrony. J. ACM 35, 2 (1988), 288–323.

Chandra, T. D., and Toueg, S. Unreliable failure detectors for reliable distributed systems. J. ACM 43, 2 (1996), 225–267.

In the paper, term by term
four benches in the ChamberFour processes (N ≥ 2 in the paper). §2.
an opinion on entering (blue or red)A binary input register xp ∈ {0, 1}. §2.
painting a panel of the friezeWriting 0 or 1 to a write-once output register yp. §2.
a messenger carrying a note across the floorA message (p, m) in the message buffer, delivered eventually but after an arbitrary finite delay. §2.
one legislator going homeAt most one crash fault (stopping failure). §1, §2.
a position of the ChamberA configuration C: all internal states plus the contents of the message buffer. §2.
a voting ruleA deterministic consensus protocol: each process's transition function. The rules tried (always one colour, waiting for all, the first three opinions, one chooser) are examples; the theorem covers every protocol. §2.
a run of stepsA schedule σ, a finite or infinite sequence of events e = (p, m). §2.
Separate BenchesLemma 1: schedules on disjoint sets of processes commute and reach the same configuration. §2.
an open position; a settled positionA bivalent configuration (V(C) = {0, 1}); a univalent (0-valent or 1-valent) configuration. §2.
Entering That Settles NothingLemma 2: every partially correct protocol has a bivalent initial configuration. §3.
two neighbouring positionsConfigurations D0 and D1 that differ by a single step e' = (p, m'). §3.
The Note That Would Settle ItLemma 3: any pending event e from a bivalent configuration can be delayed to reach another bivalent configuration. §3.
A Fair Session in Which Nothing Is Ever SettledTheorem 1: chaining Lemma 2 and Lemma 3 along a round-robin queue builds an admissible deciding-free run. §3.