When a network partition severs two replicas, a distributed store faces an immediate dilemma: if a client writes a new value on one side and then reads from the other, the second replica cannot both answer immediately and guarantee it returns the fresh value. At PODC 2000, Eric Brewer conjectured that no web service can simultaneously provide consistency, availability, and partition tolerance. In 2002, Seth Gilbert and Nancy Lynch turned that observation into a formal impossibility proof inside the asynchronous and partially synchronous network models.

Engineers still quote “pick two of three” loosely, often treating CAP as a justification for weakening consistency during ordinary traffic or equating availability with four nines of uptime. Gilbert and Lynch’s note is far sharper and narrower. By pinning down exact formal definitions for an atomic read-write object, total request termination, and arbitrary message loss, they show precisely where the wall stands, why naive “detect the partition” tricks collapse without clocks, and how local timers restore atomic consistency on healthy days through weaker models like Delayed-t consistency.

  • Exact definitions drive the proof: CAP consistency means atomic (linearizable) read-write ordering, not database ACID invariants, and CAP availability means every non-failing node must answer every request rather than returning an error or hanging.
  • One split suffices: dividing as few as two nodes into non-empty components G1 and G2 with dropped cross-links creates an execution where a sequential read after a completed write must return the stale initial value v0.
  • Asynchrony blocks fallback designs: in a purely asynchronous network, no algorithm can even promise atomic consistency on partition-free runs if it promises availability everywhere, because lost messages look identical to slow ones.
  • Clocks rescue healthy runs, not partitions: adding unsynchronized local timers with message bound t_msg lets nodes time out after 2 * t_msg + t_local, staying atomic when all messages arrive and bounding staleness to an interval t once a partition heals.
What Gilbert and Lynch actually formalize versus common folklore
C: Atomic consistency
Linearizability on a single read-write register.
Total operation order at single instants
Any read starting after a write completes must return that write’s value or a later one. Distinct from ACID transactional invariants.
A: Continuous availability
Total termination on every reachable node.
100% response, no error rejections
Every non-failing node receiving a request must terminate with a valid reply, even if isolated from every other node.
P: Partition tolerance
Arbitrary message loss between components.
Two disjoint sets with zero cross-delivery
Any subset of messages sent between components G1 and G2 may be dropped; stopping crashes look like single-node partitions.

Formal definitions from Gilbert and Lynch (2002), Section 2.

The impossibility proof in Theorem 1 takes less than a page because the adversary needs almost no machinery. Assume an algorithm claims to implement an atomic read-write register across at least two nodes while remaining available through any network partition. Split the nodes into two non-empty, disjoint sets G1 and G2, initialize the register to v0, and drop every message traveling between G1 and G2.

Now construct two isolated prefixes. In execution alpha_1, a client writes a new value v1 (distinct from v0) to a node in G1, while no requests reach G2 and all cross-partition messages vanish. By the availability rule, G1 cannot hang forever waiting for G2; the write must terminate. In a separate execution alpha_2, a client reads from a node in G2 with no prior writes anywhere and all cross-partition messages lost. Again by availability, G2 must answer, and because no write ever occurred in alpha_2, its only legal answer is v0.

Finally, glue alpha_1 followed by alpha_2 into one combined execution alpha. From the local perspective of every node in G2, alpha is completely indistinguishable from alpha_2: no client contacted G2 during alpha_1, and zero messages from G1 ever arrived. Because a deterministic or local-history node in G2 sees the exact same inputs, the read in alpha must return v0. Yet in global real time, that read began strictly after the write of v1 completed in G1, shattering atomic consistency.

A subtle trap immediately follows in Corollary 1.1: in a purely asynchronous network (where nodes have no clocks and rely solely on local computation and message arrivals), you cannot even build an algorithm that guarantees availability always and atomic consistency only when no messages are lost. Why? An asynchronous node waiting for a peer cannot distinguish a dropped packet from an arbitrarily slow packet. If an algorithm ever risks returning a stale answer when messages are dropped, it produces that bad answer at some finite prefix alpha_0; an adversary can simply let all delayed messages arrive after alpha_0, turning a partition-free fair execution into a non-atomic one.

Why picking any two of three works in the asynchronous model
CP: G2 blocks or fails

A central coordinator, lock service, or majority quorum withholds answers on the isolated side until messages resume, sacrificing availability.

AP: G2 returns v0

Nodes answer immediately from local state (like web caches), preserving uptime while returning stale data after concurrent writes elsewhere.

CA: No dropped links

A single designated node or tightly coupled LAN cluster delivers every message and stays both atomic and available, until a link drops.

Async designs from Gilbert and Lynch (2002), Section 3.2.

Where timers actually change the theorem

Real production networks are not purely asynchronous; servers have local clocks. Section 4 of the paper asks whether adding clocks breaks the CAP barrier. Gilbert and Lynch give nodes unsynchronized clocks that tick at the same real rate (acting as reliable local timers), plus a known delivery bound t_msg for any non-lost message and a local processing bound t_local.

First, Theorem 2 proves CAP still holds: even with clocks and known message bounds, no protocol can guarantee 100% availability and atomic consistency when arbitrary messages are dropped. The construction mirrors Theorem 1, adding only an idle silent interval at the start of alpha_2' that lasts at least as long as all of alpha_1 before issuing the read on G2. When superimposed, G2 cannot tell alpha_1 occurred, waits out any timeout, and still must answer v0 after the write finished.

Where clocks do change everything is Corollary 1.1. With timers, a node querying a central coordinator C can wait exactly 2 * t_msg + t_local. If no reply arrives by that deadline, the node knows with certainty that a message was lost (because C would have answered within t_msg + t_local + t_msg otherwise). On partition-free runs, every request hears back from C before the timer fires and achieves full atomic consistency. Only when the timeout trips does the node fall back to returning its highest locally known value or a tentative write acknowledgment.

Section 4.4 formalizes how fast such a system recovers once a partition heals via Delayed-t consistency (Definition 3 and Theorem 4). In the modified centralized protocol, C attaches monotonically increasing sequence numbers to writes, nodes retry unacknowledged writes every t - 4 * t_timeout seconds, and C broadcasts missed values to lagging replicas every t - 2 * t_timeout seconds until acknowledged. Whenever the network experiences a clean interval longer than t with zero lost messages, every operation beginning after that interval is guaranteed to see every operation that finished before it. Atomicity holds on healthy intervals, and staleness is bounded by t after partitions mend.

Compare every CAP scenario on the same split

To see why engineers keep talking past one another about CAP, compare how the same two-component split {G1, G2} behaves under the paper’s four cases: the raw impossibility construction, a CP quorum, an AP cache, and a timed Delayed-t coordinator.

Four behaviors on the same two-component partition

Select a regime (or use Left and Right arrow keys) to trace what happens when a client writes v1 in G1 and reads in G2.

Indistinguishable histories break atomicity

Async proof

When G1 and G2 drop all messages between them, G2 cannot distinguish a post-write execution from an empty history.

Why naive fix breaks
Waiting for 'all healthy peers' fails in async networks (Corollary 1.1) because a dropped packet looks identical to an arbitrarily slow packet.
Paper's mechanism
Glue write prefix alpha_1 in G1 to isolated read prefix alpha_2 in G2; availability forces G1 to ack v1 and G2 to return v0.
Formal guarantee violated
Read in G2 starts after write in G1 finishes, yet returns initial value v0, violating linearizability.
Engineering lesson
If an isolated replica must always answer without errors, stale reads after a split are mathematically unavoidable.

Source: Gilbert and Lynch (2002), Sections 3 and 4.

If you prefer the takeaway without clicking through every tab, the four cases separate myth from math:

  • Theorem 1 (Async impossibility): two components G1 and G2 with zero cross-delivery force an available read in G2 to return v0 after G1 already completed writing v1.
  • CP quorum: centralizing ordering at C preserves atomicity in all executions, sacrificing availability for any client cut off from C or a majority quorum.
  • AP fallback: answering from local state preserves total availability, but in pure asynchrony Corollary 1.1 prevents guaranteeing atomicity even when zero messages drop.
  • Delayed-t consistency: adding unsynchronized timers (2 * t_msg + t_local) restores full atomicity on healthy runs and bounds post-partition staleness to t.

What the proof leaves out, and how systems use it today

Three boundaries keep Gilbert and Lynch’s note sharp in practice.

First, CAP says nothing about latency during normal operation. When no links are partitioned, the theorem permits a database to be both atomic and available. Yet replicating synchronously across continents still adds a full wide-area round trip to every write or read. Daniel Abadi’s PACELC framework exists specifically to name that healthy-day tradeoff between latency and consistency.

Second, 100% wait-free availability is stricter than what most production teams actually want. Gilbert and Lynch require every non-failing node in any partition component (even a single isolated server) to respond. Practical consensus systems like Paxos and Raft settle for availability on the majority side of a split while halting the minority side, giving up CAP’s A to keep strong consistency and survive node crashes. Conversely, systems like Dynamo choose AP with conflict reconciliation when keeping writes open on both sides of a split outweighs strict linearizability.

Third, CAP sits right alongside the FLP impossibility theorem. Just as FLP proves deterministic consensus cannot guarantee termination in an asynchronous network because slow nodes look like crashed nodes, Corollary 1.1 of CAP proves an asynchronous replicated register cannot even limit inconsistency to partition runs because delayed packets look like lost packets. Modern distributed databases such as Spanner use bounded clock uncertainty (TrueTime) precisely to move out of pure asynchrony into a timed model where normal-day external consistency holds cleanly, while reserving strict error behavior for rare partition or clock-drift failures.

For engineers designing storage systems, the real lesson of Gilbert and Lynch is not a bumper-sticker slogan. It is a design checklist: decide explicitly which operations require linearizable ordering, define how timers detect lost messages (2 * t_msg + t_local), and specify whether an isolated minority should fail closed (CP) or serve boundedly stale state (Delayed-t / AP) until the link heals.