The 2t + 1 resilience threshold for asynchronous linearizable atomic registers #
This module formalizes the partition-indistinguishability lower bound and sharp process-count
characterization for wait-free linearizable atomic registers over deterministic asynchronous
message passing. Attiya, Bar-Noy, and Dolev ([ABND95], §1, p. 127) motivate
majority resilience (⌊(n - 1)/2⌋ faults) by observing that suspending messages between two
groups of fewer than a majority lets the groups operate separately and perform contradicting
operations. Here we prove the quantified converse for 2 ≤ Fintype.card P ≤ 2 * t over any
nontrivial value domain [Nontrivial V] (not_implementsAtomicRegister_of_partition and
not_implementsAtomicRegister), and combine it with the single-process zero-message disjunct
implementsAtomicRegister_local_of_card_le_one (Fintype.card P ≤ 1) and the cardinality-quorum
envelope specialization implementsAtomicRegister_abd (2 * t < Fintype.card P, after
[LS97], §4.1–4.2 and [ABND95], §4) into Lean's resilience
characterization exists_linearizableRegister_iff.
Partition replay argument #
Partition P into two disjoint nonempty subsets A, B : Finset P with A.card ≤ t, B.card ≤ t,
a₀ ∈ A, and b₀ ∈ B, and choose v₁ ≠ v₀:
- Run 1 (
F = Bcrashed/delayed): starting fromπ.start, invokewrite v₁ata₀ ∈ Aand extend viaProtocol.exists_fair_omegaExecution B, delivering messages only toA. Byterminates B,a₀'s write completes at some reachable states₁in which everyp ∈ Bretains its initial local stateπ.start.proc pand every initial boot message addressed toBis still in transit (π.start.msgs.count e ≤ s₁.msgs.count e). - Run 2 (
F = Acrashed/delayed): starting fromπ.start, invokereadatb₀ ∈ Band extend viaProtocol.exists_fair_omegaExecution A, delivering messages only toB. Byterminates A,b₀'s read completes at some reachable states₂returningr, and bylinearizable s₂(with zero writes ins₂.history),r = v₀. - Run 3 (combined execution): starting from
s₁(afterwrite v₁has already completed at step< s₁.step), replayAction.invoke b₀ .readfollowed by Run 2'sB-only delivery prefix, holding all cross-partitionA → Bmessages in flight. BecauseB's local states matchπ.startand allB-destined envelopes from Run 2 are available ins₁.msgs, Run 3 reaches a stateu₂whereu₂.historyconsists of the completedwrite v₁(op 0) strictly preceding in real time (prec u₂.history 0 1) a completedreadreturningv₀(op 1), violatinglinearizable u₂.
Main results #
Cslib.Distributed.ABD.Protocol.not_implementsAtomicRegister_of_partition: partition impossibility given disjoint nonemptyA, BcoveringPwithA.card ≤ tandB.card ≤ t.Cslib.Distributed.ABD.Protocol.not_implementsAtomicRegister: no protocol implements at-fault wait-free linearizable atomic register when2 ≤ Fintype.card P ≤ 2 * tand[Nontrivial V].Cslib.Distributed.ABD.exists_linearizableRegister_iff: at-fault wait-free linearizable atomic register protocol over(P, V)exists if and only ifFintype.card P ≤ 1 ∨ 2 * t < Fintype.card P.
References #
Partition impossibility for asynchronous linearizable registers (formalizing the
two-group message-suspension obstruction noted in [ABND95], §1, p. 127): if P
can be partitioned into two disjoint subsets A, B each of size at most t, with a₀ ∈ A and
b₀ ∈ B, and there exists v₁ ≠ v₀, then π cannot implement a t-resilient wait-free
linearizable atomic register initialized to v₀.
No asynchronous wait-free linearizable register for 2 ≤ n ≤ 2t: over any nontrivial
value domain [Nontrivial V], no deterministic asynchronous protocol on P with
2 ≤ Fintype.card P ≤ 2 * t implements a t-resilient wait-free linearizable atomic register
(quantified converse to majority resilience, motivated by [ABND95], §1, p. 127).
Sharp fault-tolerance threshold (exists_linearizableRegister_iff) #
Resilience characterization for asynchronous linearizable atomic registers: over a finite
process set P and nontrivial value domain V, a deterministic asynchronous message-passing
protocol implementing a t-fault wait-free linearizable atomic register initialized to v₀
exists if and only if Fintype.card P ≤ 1 ∨ 2 * t < Fintype.card P:
- for
Fintype.card P ≤ 1,localRegisterProtocolexecutes locally in zero messages; - for
2 * t < Fintype.card P,abdProtocolprovides sufficiency via(n - t)-cardinality envelope quorums and idle-only invocations (an independent specialization after [LS97], §4.1–4.2 and [ABND95], §4, pairingabd_linearizablewithabd_terminates); - for
2 ≤ Fintype.card P ≤ 2 * t,Protocol.not_implementsAtomicRegisterproves impossibility by two-group partition replay (motivated by [ABND95], §1, p. 127).