Suspect-Forwarding Gossip Reduction from Weak to Strong Completeness #
Formalizes the suspect-forwarding gossip transducer step after Chandra and Toueg, §3, Figure 3, Lemmas 3.1–3.3 and Theorem 3.4, pp. 235–238 (part of #7503).
Transducer model #
In Chandra and Toueg, §3, Figure 3, p. 236, each process p maintains an
emulated suspect set output_p (initially ∅), periodically broadcasts (p, suspects_p) queried
from its underlying local failure detector, and upon receiving (q, suspects_q) updates
output_p ← (output_p ∪ suspects_q) \ {q}.
Here we model asynchronous suspect-forwarding runs directly via:
GossipPacket P: a tagged suspect-list broadcast(sender, sendTick)carryingH sender sendTick.applyGossipPacket H out pkt: Figure 3's Task-2 state transition(out ∪ H pkt.sender pkt.sendTick) \ {pkt.sender}.gossipHistory H sched: executable discrete-tick transducer foldingapplyGossipPacket Hover the packet listsched p tdelivered topduring tickt, allowing arbitrary unbounded finite message delays and out-of-order delivery across ticks.AdmissibleGossipSchedule F sched: causal, crash-respecting, duplicate-free asynchronous delivery in which every correct sender has infinitely many post-t₀packets delivered to every correct recipient, witnessed constructively (with zero-delaysendTick = tdelivery) for everyFbysyncGossipSchedule.
We prove the three key properties P1–P3 as discrete-tick gossip-transducer steps for #7503 (after
Lemmas 3.1–3.3, p. 237) for every AdmissibleGossipSchedule F sched:
- P1 (
gossipHistory_strongCompleteness): boostsWeakCompleteness F HtoStrongCompleteness F (gossipHistory H sched)on finiteP. - P2 (
gossipHistory_preserves_perpetual_notMem): if no alive process suspectspbefore ticktinH, then no process suspectspat ticktingossipHistory H sched, preserving bothStrongAccuracyandWeakAccuracy. - P3 (
gossipHistory_preserves_eventual_notMem): if no correct process suspects a correctpfromt₁onward inH, then eventually no correct process suspectspingossipHistory H sched, preserving bothEventualStrongAccuracyandEventualWeakAccuracy.
Combining P1–P3 yields all four gossip-transducer reduction steps Q → P, W → S, ◇Q → ◇P, and
◇W → ◇S (gossipHistory_isPerfect_of_isQuasiPerfect, gossipHistory_isStrong_of_isWeak,
gossipHistory_isEventuallyPerfect_of_isEventuallyQuasiPerfect,
gossipHistory_isEventuallyStrong_of_isEventuallyWeak, and
DetectorClass.gossipHistory_sat_boost).
Main definitions #
Cslib.Distributed.FailureDetectors.GossipPacket:(sender, sendTick)identifier of a broadcast suspect set.Cslib.Distributed.FailureDetectors.applyGossipPacket,Cslib.Distributed.FailureDetectors.gossipHistory: executable Task-2 update and discrete-tick suspect-forwarding transducer.Cslib.Distributed.FailureDetectors.AdmissibleGossipSchedule: asynchronous causality, crash validity, non-duplication, and correct-to-correct liveness conditions on a gossip schedule.Cslib.Distributed.FailureDetectors.syncGossipSchedule: zero-delay (sendTick = t) all-to-all gossip schedule witnessing non-vacuity ofAdmissibleGossipSchedule F.Cslib.Distributed.FailureDetectors.DetectorClass.boost: projection of the 8 detector classes onto the 4 strong-completeness classes{.P, .S, .EP, .ES}.
Main results #
Cslib.Distributed.FailureDetectors.gossipHistory_strongCompleteness: discrete-tick gossip-transducer step for #7503 boostingWeakCompletenesstoStrongCompleteness(after Lemma 3.1, p. 237).Cslib.Distributed.FailureDetectors.gossipHistory_strongAccuracy,Cslib.Distributed.FailureDetectors.gossipHistory_weakAccuracy: discrete-tick gossip-transducer steps for #7503 preserving perpetual accuracy (after Lemma 3.2, p. 237).Cslib.Distributed.FailureDetectors.gossipHistory_eventualStrongAccuracy,Cslib.Distributed.FailureDetectors.gossipHistory_eventualWeakAccuracy: discrete-tick gossip-transducer steps for #7503 preserving eventual accuracy on finiteP(after Lemma 3.3, p. 237).Cslib.Distributed.FailureDetectors.gossipHistory_isPerfect_of_isQuasiPerfect,Cslib.Distributed.FailureDetectors.gossipHistory_isStrong_of_isWeak,Cslib.Distributed.FailureDetectors.gossipHistory_isEventuallyPerfect_of_isEventuallyQuasiPerfectandCslib.Distributed.FailureDetectors.gossipHistory_isEventuallyStrong_of_isEventuallyWeak,Cslib.Distributed.FailureDetectors.DetectorClass.gossipHistory_sat_boost: discrete-tick gossip-transducer steps for #7503 forQ → P,W → S,◇Q → ◇P, and◇W → ◇S(after Theorem 3.4, p. 237, and Corollary 3.5, p. 238).Cslib.Distributed.FailureDetectors.admissible_syncGossipSchedule: non-vacuity ofAdmissibleGossipSchedule FviasyncGossipSchedule.
References #
Suspect-forwarding packets and executable transducer #
Identifier for a suspect-list broadcast (sender, H sender sendTick) emitted at global clock
tick sendTick (Chandra and Toueg, §3, Figure 3, Task 1, p. 236).
Task-2 update of Chandra and Toueg, §3, Figure 3, p. 236: upon receiving
(q, suspects_q) (pkt), process p adds H pkt.sender pkt.sendTick to its emulated suspect set
and removes pkt.sender.
Executable discrete-tick suspect-forwarding transducer: starts with ∅ at tick 0 and folds
applyGossipPacket H across the packets sched p t delivered to p during tick t.
List-fold transfer lemmas for applyGossipPacket #
Asynchronous gossip schedule admissibility #
Asynchronous admissibility of a packet-delivery schedule sched for failure pattern F
(modeling the asynchronous run assumptions of
Chandra and Toueg, §2.5, p. 234; §3, pp. 236–237):
valid_delivery: packets delivered topat ticktrequirep ∉ F t,pkt.sendTick ≤ t, andpkt.sender ∉ F pkt.sendTick.unique_delivery_tick: a given packetpktis delivered to recipientpin at most one tick.fair_delivery: for any correct senderq ∈ F.Correct, correct recipientp ∈ F.Correct, and thresholdt₀, some packet sent byqatt_send ≥ t₀is delivered topatt_recv ≥ t_send.
- valid_delivery (p : P) (t : ℕ) (pkt : GossipPacket P) : pkt ∈ sched p t → p ∉ F.atTime t ∧ pkt.sendTick ≤ t ∧ pkt.sender ∉ F.atTime pkt.sendTick
Only non-crashed processes receive packets, and every delivered packet was sent no later than the delivery tick by a process not yet crashed at
sendTick. - unique_delivery_tick (p : P) (t₁ t₂ : ℕ) (pkt : GossipPacket P) : pkt ∈ sched p t₁ → pkt ∈ sched p t₂ → t₁ = t₂
At-most-once delivery tick per
(recipient, packet)pair (preventing unbounded replay of pre-crash messages). - fair_delivery (q : P) : q ∈ F.Correct → ∀ p ∈ F.Correct, ∀ (t₀ : ℕ), ∃ (t_send : ℕ) (t_recv : ℕ), t₀ ≤ t_send ∧ t_send ≤ t_recv ∧ { sender := q, sendTick := t_send } ∈ sched p t_recv
Every correct process infinitely often broadcasts packets that reach every correct process.
Finite horizon for stale packet deliveries #
Lemmas 3.1, 3.2, and 3.3 of Chandra–Toueg (1996, p. 237) #
Discrete-tick gossip-transducer step for #7503 (Property P2, after
Chandra and Toueg, Lemma 3.2, p. 237): in gossipHistory, if no non-crashed
process suspects p strictly before tick t in H, then no process suspects p at tick t in
gossipHistory H sched.
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Lemma 3.2, p. 237): gossipHistory preserves
StrongAccuracy.
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Lemma 3.2, p. 237): gossipHistory preserves
WeakAccuracy.
Discrete-tick gossip-transducer step for #7503 (Property P1, after
Chandra and Toueg, Lemma 3.1, p. 237): on finite P, if H satisfies
WeakCompleteness F H, then gossipHistory H sched satisfies StrongCompleteness F for every
AdmissibleGossipSchedule F sched.
Discrete-tick gossip-transducer step for #7503 (Property P3, after
Chandra and Toueg, Lemma 3.3, p. 237): on finite P, if p ∈ F.Correct and
no correct process suspects p from tick t₁ onward in H, then there is a tick T from which
onward no correct process suspects p in gossipHistory H sched.
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Lemma 3.3, p. 237): gossipHistory preserves
EventualStrongAccuracy on finite P.
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Lemma 3.3, p. 237): gossipHistory preserves
EventualWeakAccuracy on finite P.
The four completeness-boosting reductions (Q → P, W → S, ◇Q → ◇P, ◇W → ◇S) #
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Theorem 3.4, p. 237): gossipHistory upgrades
IsQuasiPerfect (Q) to IsPerfect (P).
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Theorem 3.4, p. 237): gossipHistory upgrades IsWeak
(W) to IsStrong (S).
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Theorem 3.4, p. 237): gossipHistory upgrades
IsEventuallyQuasiPerfect (◇Q) to IsEventuallyPerfect (◇P).
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Theorem 3.4, p. 237): gossipHistory upgrades
IsEventuallyWeak (◇W) to IsEventuallyStrong (◇S).
Projects each of the eight detector classes onto its strong-completeness counterpart (step map for #7503, after Chandra and Toueg, Corollary 3.5, p. 238).
Discrete-tick gossip-transducer step for #7503 (after
Chandra and Toueg, Theorem 3.4, p. 237, and Corollary 3.5, p. 238): for every
c : DetectorClass and every AdmissibleGossipSchedule F sched on finite P,
gossipHistory H sched upgrades c to c.boost.
Non-vacuity witness for AdmissibleGossipSchedule #
Zero-delay (sendTick = t) all-to-all gossip schedule witnessing non-vacuity of
AdmissibleGossipSchedule F: at each tick t, every non-crashed process p ∉ F t receives one
suspect-list packet ⟨q, t⟩ from each non-crashed process q ∉ F t in procs.dedup.
Non-vacuity of AdmissibleGossipSchedule F: the zero-delay (sendTick = t) schedule
syncGossipSchedule F procs satisfies AdmissibleGossipSchedule F whenever procs lists every
process in P.