Asynchronous-Round ◇S Consensus and |P| ≤ 2t Resilience Lower Bound #
Formalizes asynchronous-round consensus steps with unreliable failure detectors after Chandra and Toueg, §§6.2–6.3, Figure 6, Theorem 6.2.3, Corollary 6.2.4, and Theorem 6.3.1, pp. 242–248 (part of #7503).
Model scope relative to primary sources #
Chandra and Toueg, §6.2, Figure 6, p. 243 and
Chandra, Hadzilacos and Toueg, §§2.3–2.4, pp. 690–692 model
event-driven asynchronous automata (F, H_D, I, S, T) in which processes may occupy arbitrarily
skewed asynchronous round numbers concurrently while running background diffusion R-broadcast.
Here we formalize an explicit asynchronous-round model (FDAsyncRoundProtocol,
AdmissibleFDNetwork) in which subround k completes at global tick tick k (StrictMono tick)
under adversarial per-subround link delivery deliver : ℕ → P → P → Bool subject to:
wait_or_suspect: for every subroundk, correct recipientp ∈ F.Correct, and senderq, eitherqis alive attick kand its subround-kmessage reachesp(q ∉ F (tick k) ∧ deliver k q p = true), orp's failure detector suspectsqattick k(q ∈ H p (tick k)). WhenStrongCompleteness F Hfails (e.g.H = ∅with a crashed process), noAdmissibleFDNetworkexists (not_admissibleFDNetwork_emptyDetector_of_crashed), capturing Phase-3 blocking on crashed coordinators.quorum_delivery: in every subroundk, every correct process receives messages from at leastFintype.card P - tnon-crashed senders (while an adversary freely chooses which subset of size≥ |P| - tarrives).
Within this unified FDAsyncRoundProtocol interface we prove both directions of the 2 * t < |P|
resilience threshold:
t-oblivious 4-stage rotating-coordinator◇Sprotocol (ctRoundProtocol): Matches Chandra and Toueg, §6.2, Figure 6, p. 243, and remark on p. 244 in beingt-oblivious, waiting for strict-majority quorums of sizeFintype.card P / 2 + 1(⌈(n + 1)/2⌉). Relative to Figure 6, this asynchronous-round realization incorporates two intentional adaptations: (i)0-indexed roundsr = k / 4storing updated timestampsts := r + 1so0remains the unupdated initial timestamp (ts_p ← 0), and (ii) lockstep global subroundskwith a Subround-3(k % 4 = 3).phase4 s.decidedbroadcast by all decided processes in place of skewed-round execution and Figure 4's asynchronous diffusionR-broadcast.- Unconditional safety (
ctRoundProtocol_irrevocable,ctRoundProtocol_validity,ctRoundProtocol_lock_preservation,ctRoundProtocol_uniform_agreement): holds without any fault-count assumption across allP, all failure patternsF, all detector historiesH(including arbitrarily Byzantine/lying detectors that suspect everyone or no one), all clock mapstick, and all delivery tablesdeliver, because any two strict majorities of size≥ |P| / 2 + 1intersect (|Q₁ ∩ Q₂| ≥ 1). - Conditional termination under
◇Sand◇W(2 * t < Fintype.card P,ctRoundProtocol_terminates_of_isEventuallyStrong,ctRoundProtocol_terminates_of_isEventuallyWeak_gossip): when2 * t < Fintype.card P, we haveFintype.card P / 2 + 1 ≤ Fintype.card P - t, so once global time passes crash stabilization and eventual-weak-accuracy stabilization for an unsuspected correct processq*, the next coordinator turn ofq*gathers≥ |P| / 2 + 1acks and decides across allF.Correct. Thus a singlet-obliviousctRoundProtocol P V procs fallbacksolvesSolvesFDAsyncRoundConsensus t IsEventuallyStrongsimultaneously for everytwith2 * t < Fintype.card P.
- Unconditional safety (
- Resilience tightness (
not_solvesFDAsyncRoundConsensus_eventuallyPerfect): when2 ≤ Fintype.card P ≤ 2 * tand[Nontrivial V], partitioningPintoA₀andA₁of size≤ t(each of size≥ |P| - t) shows that noFDAsyncRoundProtocolsolvest-resilient consensus even under◇P(IsEventuallyPerfect), yielding the exact thresholdFintype.card P ≤ 1 ∨ 2 * t < Fintype.card P(exists_solvesFDAsyncRoundConsensus_eventuallyStrong_iff,exists_solvesFDAsyncRoundConsensus_eventuallyPerfect_iff).
Event-driven step-schedule realizations of Figures 5–6 and the valence-DAG necessity reduction
D ⪰ Ω ⪰ ◇W of Chandra, Hadzilacos and Toueg, §6 remain open in
#7503.
Main definitions #
Cslib.Distributed.FailureDetectors.FDAsyncRoundProtocol: deterministic asynchronous-round consensus protocol querying a failure detector historyH.Cslib.Distributed.FailureDetectors.AdmissibleFDNetwork: asynchronous network admissibility (StrictMono tick,wait_or_suspect, andquorum_delivery).Cslib.Distributed.FailureDetectors.FDAsyncRoundProtocol.SolvesFDAsyncRoundConsensus:t-crash-tolerant consensus specification parameterized by a detector class predicate.Cslib.Distributed.FailureDetectors.ownInputFDProtocol: zero-communication protocol forFintype.card P ≤ 1.Cslib.Distributed.FailureDetectors.CTState,CTMsg,ctRoundProtocol:t-oblivious 4-subround rotating-coordinator◇Sconsensus protocol after Figure 6 (usingCslib.Distributed.rotatingCoordinator).Cslib.Distributed.FailureDetectors.LockedInRound: round-rstrict-majority quorum-locking invariant on(r, v).
Main results #
Cslib.Distributed.FailureDetectors.exists_admissibleFDNetwork_of_strongCompleteness,Cslib.Distributed.FailureDetectors.not_admissibleFDNetwork_emptyDetector_of_crashed:StrongCompletenesssuffices for admissible schedules, whereasH = ∅admits none once any process crashes.Cslib.Distributed.FailureDetectors.ctRoundProtocol_irrevocable,Cslib.Distributed.FailureDetectors.ctRoundProtocol_validity,Cslib.Distributed.FailureDetectors.ctRoundProtocol_lock_preservation,Cslib.Distributed.FailureDetectors.ctRoundProtocol_uniform_agreement: unconditional safety ofctRoundProtocolunder arbitraryF, H, tick, deliverwithout anytbound (step after Lemma 6.2.1, pp. 244–245).Cslib.Distributed.FailureDetectors.ctRoundProtocol_terminates_of_isEventuallyStrong,Cslib.Distributed.FailureDetectors.solvesFDAsyncRoundConsensus_ctRoundProtocol,Cslib.Distributed.FailureDetectors.ctRoundProtocol_terminates_of_isEventuallyWeak_gossip: termination under◇Sand gossip-boosted◇Wfor2 * t < Fintype.card P(steps after Lemma 6.2.2, Theorem 6.2.3, and Corollary 6.2.4, pp. 245–247).Cslib.Distributed.FailureDetectors.not_solvesFDAsyncRoundConsensus_eventuallyPerfect,Cslib.Distributed.FailureDetectors.exists_solvesFDAsyncRoundConsensus_eventuallyStrong_iff,Cslib.Distributed.FailureDetectors.exists_solvesFDAsyncRoundConsensus_eventuallyPerfect_iff:2 ≤ |P| ≤ 2timpossibility step under◇P(after Theorem 6.3.1, p. 247) and exact resilience characterizations.
References #
Asynchronous-round failure-detector protocol model #
A deterministic consensus protocol in the asynchronous-round model with failure detector queries (step model for #7503, after Chandra and Toueg, §§2.5, 6.2).
In subround k (occurring at global clock tick tick k), each non-crashed process p ∉ F (tick k)
sends send k p s q to each recipient q, queries its local failure detector H p (tick k), and
updates its state via update k p s (H p (tick k)) recv. Crashed processes stutter in their last
pre-crash state and emit no messages.
- init : P → V → State
Initial local state of process
pwith proposed valuev. - send : ℕ → P → State → P → Msg
Message sent by non-crashed process
pin statestoqin subroundk. Next local state of
pafter subroundkgiven suspected setH p (tick k)and delivered messagesP → Option Msg.- output : P → State → Option V
Optional decision read from local state (
nonewhile undecided).
Asynchronous network admissibility for subround clock tick and link schedule deliver under
failure pattern F, detector history H, and fault budget t (step network model for #7503):
tick_strictMono: subround completion ticks advance strictly (k ≤ tick k).wait_or_suspect: for each correct recipientp ∈ F.Correctand processq, eitherqis non-crashed attick kand delivers top, orpsuspectsqattick k(q ∈ H p (tick k)).quorum_delivery: every correct recipient receives messages from at least|P| - tnon-crashed processes in every subround.
- tick_strictMono : StrictMono tick
Subrounds occur at strictly increasing global clock ticks.
- wait_or_suspect (k : ℕ) (p : P) : p ∈ F.Correct → ∀ (q : P), q ∉ F.atTime (tick k) ∧ deliver k q p = true ∨ q ∈ H p (tick k)
A correct process skips waiting for
q's subround-kmessage only ifq ∈ H p (tick k). - quorum_delivery (k : ℕ) (p : P) : p ∈ F.Correct → Fintype.card P - t ≤ {q : P | decide (q ∉ F.atTime (tick k) ∧ deliver k q p = true) = true}.card
At least
|P| - tnon-crashed processes deliver to each correct process in each subround.
Immediate corollary of wait_or_suspect: if q is not suspected by p ∈ F.Correct at
tick k, then q's subround-k message is delivered to p.
Asynchronous-round step for #7503 (after Chandra and Toueg, §6.2, p. 243):
whenever ∀ s, (F s).card ≤ t and StrongCompleteness F H holds, shifting tick k := T_sc + k
with full delivery between alive processes yields an AdmissibleFDNetwork.
Asynchronous-round step for #7503: if any process crashes in F while F.Correct.Nonempty,
the blind detector fun _ _ => ∅ admits no AdmissibleFDNetwork (every correct process eventually
blocks waiting for the crashed process).
Incoming message map delivered to p in subround k from alive senders.
Local state of process p after k subrounds under (F, H, tick, deliver) and inputs x.
Optional decision of process p after k subrounds.
π solves t-crash-tolerant consensus in the asynchronous-round model using failure detectors
satisfying DetPred (step specification for #7503, after
Chandra and Toueg, §5, p. 239).
- irrevocable (F : FailurePattern P) : (∀ (s : ℕ), (F.atTime s).card ≤ t) → ∀ (H : DetectorHistory P) (tick : ℕ → ℕ) (deliver : ℕ → P → P → Bool) (x : P → V), AdmissibleFDNetwork F H t tick deliver → DetPred F H → ∀ (k₁ k₂ : ℕ), k₁ ≤ k₂ → ∀ p ∈ F.Correct, ∀ (v : V), π.decision F H tick deliver x k₁ p = some v → π.decision F H tick deliver x k₂ p = some v
Decisions of correct processes are irrevocable across subrounds.
- agreement (F : FailurePattern P) : (∀ (s : ℕ), (F.atTime s).card ≤ t) → ∀ (H : DetectorHistory P) (tick : ℕ → ℕ) (deliver : ℕ → P → P → Bool) (x : P → V), AdmissibleFDNetwork F H t tick deliver → DetPred F H → ∀ (k₁ k₂ : ℕ), ∀ p₁ ∈ F.Correct, ∀ p₂ ∈ F.Correct, ∀ (v₁ v₂ : V), π.decision F H tick deliver x k₁ p₁ = some v₁ → π.decision F H tick deliver x k₂ p₂ = some v₂ → v₁ = v₂
No two correct processes ever decide distinct values.
- validity (F : FailurePattern P) : (∀ (s : ℕ), (F.atTime s).card ≤ t) → ∀ (H : DetectorHistory P) (tick : ℕ → ℕ) (deliver : ℕ → P → P → Bool) (x : P → V), AdmissibleFDNetwork F H t tick deliver → DetPred F H → ∀ (k : ℕ), ∀ p ∈ F.Correct, ∀ (v : V), π.decision F H tick deliver x k p = some v → ∃ (q : P), x q = v
Every decided value was proposed by some process (
Uniform validity). - termination (F : FailurePattern P) : (∀ (s : ℕ), (F.atTime s).card ≤ t) → ∀ (H : DetectorHistory P) (tick : ℕ → ℕ) (deliver : ℕ → P → P → Bool) (x : P → V), AdmissibleFDNetwork F H t tick deliver → DetPred F H → ∀ p ∈ F.Correct, ∃ (k : ℕ), (π.decision F H tick deliver x k p).isSome = true
Every correct process eventually decides under any admissible schedule and
DetPreddetector.
Monotonicity in the detector predicate: if DetPred₁ implies DetPred₂ (e.g. ◇P → ◇S), any
protocol solving consensus under the weaker class DetPred₂ also solves it under DetPred₁.
Trivial zero-communication protocol deciding each process's own initial value when |P| ≤ 1.
Original base-case helper for #7503: when P is a subsingleton (Fintype.card P ≤ 1),
ownInputFDProtocol solves SolvesFDAsyncRoundConsensus for any fault budget t and detector
predicate DetPred.
Maximum-timestamp selector #
Deterministic selector returning an (estimate, timestamp) pair maximizing the timestamp in a
nonempty list (Chandra and Toueg, §6.2, Figure 6, Phase 2, p. 243).
The 4-stage Chandra–Toueg ◇S rotating-coordinator round protocol #
Local process state for ctRoundProtocol
(after Chandra and Toueg, §6.2, Figure 6, p. 243).
- est : V
Current estimate of the decision value (
estimate_p, initiallyinput_p). - ts : ℕ
Round number (
r + 1) in whichestwas last adopted (ts_p, initially0). Round-tagged coordinator proposal
(r, v)selected in Subround0of roundr.Round-tagged Phase-3 reply
(r, true)(ack) or(r, false)(nack).- decided : Option V
Write-once Consensus decision (
nonewhile undecided).
Subround messages of ctRoundProtocol across the four stages of round r = k / 4.
- phase1 {V : Type u_1} (est : V) (ts : ℕ) : CTMsg V
Subround
0(Phase 1): process sends(est, ts)to coordinatorc. - phase2 {V : Type u_1} (proposal : Option (ℕ × V)) : CTMsg V
Subround
1(Phase 2): coordinator broadcasts round-taggedproposal. - phase3 {V : Type u_1} (reply : Option (ℕ × Bool)) : CTMsg V
Subround
2(Phase 3): process sends round-taggedack/nackreply toc. - phase4 {V : Type u_1} (decided : Option V) : CTMsg V
Subround
3(Phase 4): processes broadcast any latcheddecidedvalue.
Outgoing subround message of ctRoundProtocol.
State transition of ctRoundProtocol in subround k (r = k / 4, phase k % 4), using the
t-oblivious strict-majority quorum threshold Fintype.card P / 2 + 1.
Asynchronous-round step for #7503 (after
Chandra and Toueg, §6.2, Figure 6, p. 243, and remark on p. 244):
t-oblivious 4-subround rotating-coordinator ◇S consensus protocol waiting for strict-majority
quorums of size Fintype.card P / 2 + 1. Relative to Figure 6, this asynchronous-round realization
uses 0-indexed rounds r = k / 4 storing updated timestamps ts := r + 1 (so 0 remains the
unupdated initial timestamp) and lockstep global subrounds k with a Subround-3 (k % 4 = 3)
.phase4 s.decided broadcast by all decided processes in place of skewed-round execution and
Figure 4's asynchronous diffusion R-broadcast.
Unconditional safety of ctRoundProtocol #
Round-r strict-majority quorum-locking predicate for ctRoundProtocol: coordinator c_r
proposed (r, v) at the end of Subround 0, and at least Fintype.card P / 2 + 1 processes
recorded ack (some (r, true)) at the end of Subround 1.
Asynchronous-round step for #7503 (after
Chandra and Toueg, §6.2, Figure 6, p. 243): once decided = some v at any
process p (correct or faulty) in ctRoundProtocol, decided remains some v at all subsequent
subrounds under arbitrary F, H, tick, deliver.
Asynchronous-round step for #7503 (after
Chandra and Toueg, Lemma 6.2.1, pp. 244–245): once LockedInRound holds for
(r, v), every coordinator proposal (r', w) in any later round r' > r satisfies w = v,
unconditionally across all P, F, H, tick, deliver.
Asynchronous-round step for #7503 (after
Chandra and Toueg, Theorem 6.2.3, p. 246): any value decided by any process in
ctRoundProtocol under any (F, H, tick, deliver) was proposed as some process's initial input
x q.
Asynchronous-round step for #7503 (after
Chandra and Toueg, Lemma 6.2.1, pp. 244–245): no two processes (correct or
faulty) ever decide distinct values in ctRoundProtocol under any (F, H, tick, deliver) (even if
any number of processes crash or H is an arbitrarily lying failure detector).
Conditional termination under ◇S (IsEventuallyStrong) and ◇W (IsEventuallyWeak) #
Asynchronous-round step for #7503 (after
Chandra and Toueg, Lemma 6.2.2, pp. 245–246): under 2 * t < Fintype.card P, if
rStar is coordinated by qStar ∈ F.Correct, all faulty processes have crashed by
tick (4 * rStar), and no correct process suspects qStar from tick (4 * rStar) onward, then
every p ∈ F.Correct has decided in ctRoundProtocol by subround 4 * (rStar + 1).
Asynchronous-round step for #7503 (after
Chandra and Toueg, Lemma 6.2.2, pp. 245–246): under 2 * t < Fintype.card P and
IsEventuallyStrong F H (◇S), every correct process eventually decides in ctRoundProtocol.
Asynchronous-round step for #7503 (after
Chandra and Toueg, Theorem 6.2.3, p. 246): the t-oblivious protocol
ctRoundProtocol P V procs fallback solves t-resilient consensus under IsEventuallyStrong
(◇S) for every t with 2 * t < Fintype.card P.
Asynchronous-round step for #7503 (after
Chandra and Toueg, Corollary 6.2.4, pp. 246–247): given any ◇W history H
(IsEventuallyWeak F H) and AdmissibleGossipSchedule F gSched, running ctRoundProtocol over the
gossip-boosted history gossipHistory H gSched terminates across all F.Correct under any
AdmissibleFDNetwork (which exists by exists_admissibleFDNetwork_of_strongCompleteness) whenever
2 * t < Fintype.card P.
2 ≤ Fintype.card P ≤ 2 * t Impossibility Even Under ◇P (IsEventuallyPerfect) #
Asynchronous-round step for #7503 (after
Chandra and Toueg, Theorem 6.3.1, pp. 247–248): when
2 ≤ Fintype.card P ≤ 2 * t and V has at least two distinct values, no FDAsyncRoundProtocol
solves SolvesFDAsyncRoundConsensus t IsEventuallyPerfect (and hence none solves it under ◇S or
◇W).
Exact asynchronous-round resilience characterizations #
Asynchronous-round step for #7503 (after
Chandra and Toueg, Theorems 6.2.3 and 6.3.1, pp. 246–248): over
[Nontrivial V], t-resilient consensus in FDAsyncRoundProtocol under IsEventuallyStrong
(◇S) is solvable if and only if Fintype.card P ≤ 1 ∨ 2 * t < Fintype.card P.
Asynchronous-round step for #7503 (after
Chandra and Toueg, Theorems 6.2.3 and 6.3.1, pp. 246–248): over
[Nontrivial V], strengthening ◇S to ◇P (IsEventuallyPerfect) yields the identical
asynchronous-round resilience threshold Fintype.card P ≤ 1 ∨ 2 * t < Fintype.card P.