Partial synchrony and unconditional pre-GST quorum-locking safety #
Deterministic fault-tolerant consensus in the basic round model of partial synchrony introduced by
Dwork, Lynch and Stockmeyer, §3.1 (which captures synchronous
processors with communication bound Δ holding from an unknown Global Stabilization Time GST
onward via §4.1).
Model #
A PartialSyncProtocol P V State Msg specifies deterministic round-based execution over processes
P with initial inputs in V, outgoing messages send, state transitions update taking
per-sender Option Msg deliveries, and optional write-once decisions
output : P → State → Option V.
Before GST, an adversarial network schedule deliver : ℕ → P → P → Bool may drop any subset of
point-to-point messages in any round, modeling arbitrary message loss and timeouts prior to
stabilization. IsGST deliver F gst asserts that from round gst onward, every message between
correct processes (∉ F) is delivered in its round. Two fault regimes share the same protocol
interface:
- Unauthenticated Byzantine faults (
byzantineState,SolvesByzantinePartialSync): faulty processesj ∈ Fsend arbitrary per-recipient messagesadv r j i : Option Msg(equivocation and omission), without cryptographic signatures (receivers know only direct sender identity). - Crash and omission faults (
omissionState,SolvesOmissionPartialSync): all processes execute protocol code from their initial values, whiledelivermay omit any message beforegstand any message sent or received byFat or aftergst. Every omission run is a special case of a Byzantine run (omissionState_eq_byzantineState), so tolerating Byzantine faults implies tolerating omission faults (SolvesByzantinePartialSync.toOmission).
Crucially, as emphasized in Dwork, Lynch and Stockmeyer, §1.2, p. 290,
the safety properties (irrevocability, agreement, and validity) hold unconditionally for
every deliver schedule—even if GST never arrives (GST = ∞)—while post-GST liveness is
established in CslibFrontier.Computability.Distributed.PartialSynchrony.Liveness.
Streamlined view-based quorum-locking protocols vs. [DLS88] §3.2 #
In Dwork, Lynch and Stockmeyer, §§3.2.1–3.2.3, Algorithms 1–3 alternate
trying phases with explicit lock-release phases and piggyback monotone PROPER sets on every
message, using a continuous Srikanth–Toueg echo broadcast across all subsequent rounds in the
unauthenticated Byzantine case (Algorithm 3, Figure 1, p. 301). Here we formalize two original
three- and six-subround rotating-coordinator view-based quorum-locking protocols over an arbitrary
[DecidableEq V] domain:
byzQuorumProtocol(3 * t < Fintype.card P, 6 subrounds per view, unauthenticated channels): Subrounds 0–1 perform a two-round raw/certified status and input-properness relay using thet + 1vs.n - tamplification gap so unauthenticated lock certificates (ViewLock) and proper initial values cannot be forged by|F| ≤ tfaulty senders yet relay from an honest coordinator to all correct voters afterGST; Subround 2 proposes (Proposal); Subround 3 runs an(n - t)echo/prevote stage (prevoteQuorum_unique); Subround 4 runs an(n - t)vote stage that updateslocked : Option (ViewLock V); and Subround 5 runs an(n - t)commit stage that setsdecided : Option V.omissionQuorumProtocol(2 * t < Fintype.card P, 3 subrounds per view): Subround 0 reports status and current lock, Subround 1 proposes the highest-view reported lock (or coordinator input when unlocked) and locks upon compatibility, and Subround 2 decides uponn - tacknowledgments. Because an omission-faulty process that omits nothing is indistinguishable from a correct process,SolvesOmissionPartialSyncuses DLS's strong unanimity hypothesis∀ i, x i = v(§2.4, p. 295), whereasbyzQuorumProtocolachieves the stronger correct-process validity∀ i ∉ F, x i = vfor3 * t < Fintype.card P.
Main definitions #
Cslib.Distributed.PartialSynchrony.PartialSyncProtocol: deterministic basic-round-model consensus protocol.Cslib.Distributed.PartialSynchrony.IsGST: post-stabilization reliable delivery among correct processes.Cslib.Distributed.PartialSynchrony.PartialSyncProtocol.SolvesByzantinePartialSync,Cslib.Distributed.PartialSynchrony.PartialSyncProtocol.SolvesOmissionPartialSync: consensus specifications under Byzantine and crash/omission faults.Cslib.Distributed.PartialSynchrony.ownInputProtocol: zero-communication protocol for|P| ≤ 1.Cslib.Distributed.PartialSynchrony.ViewLock,ProperReport,Proposal: named domain records for view locks, input-properness reports, and coordinator proposals.Cslib.Distributed.PartialSynchrony.byzQuorumProtocol: 6-subround unauthenticated Byzantine view-locking protocol (3 * t < Fintype.card P).Cslib.Distributed.PartialSynchrony.omissionQuorumProtocol: 3-subround omission/crash view-locking protocol (2 * t < Fintype.card P).
Main results #
Cslib.Distributed.PartialSynchrony.PartialSyncProtocol.omissionState_eq_byzantineState,Cslib.Distributed.PartialSynchrony.PartialSyncProtocol.SolvesByzantinePartialSync.toOmission: omission runs embed into Byzantine runs.Cslib.Distributed.PartialSynchrony.solvesByzantinePartialSync_ownInput: zero-communication consensus on at most one process.Cslib.Distributed.PartialSynchrony.quorum_inter_notMem: two quorums whose cardinalities sum to more than|P| + |F|share a correct process (∉ F).Cslib.Distributed.PartialSynchrony.prevoteQuorum_unique: within-view(n - t)echo/prevote quorum uniqueness under3 * t < Fintype.card P.Cslib.Distributed.PartialSynchrony.voterCerts_sound: unforgeability of unauthenticated view certificates (|F| ≤ t).Cslib.Distributed.PartialSynchrony.byzQuorum_lock_preservation: onceval₀is decided in viewv₀, at leastn - 2 * tcorrect processes hold locks onval₀at views≥ v₀across all higher views and no correct process ever Stage-2 votes forval ≠ val₀.Cslib.Distributed.PartialSynchrony.byzQuorum_irrevocable,byzQuorum_agreement,byzQuorum_validity: unconditional pre-GST irrevocability, global agreement, and strong correct-input validity forbyzQuorumProtocol.Cslib.Distributed.PartialSynchrony.omission_irrevocable,omission_agreement,omission_validity: unconditional pre-GST irrevocability, global agreement, and strong unanimity foromissionQuorumProtocol.
References #
Partial-synchrony basic round model #
A deterministic consensus protocol in the basic round model of partial synchrony Dwork, Lynch and Stockmeyer, §3.1.
Process i starts in init i (x i). In round r + 1, each correct process j attempts to send
send r j s i to i; i receives Option Msg per sender (none when omitted by the network or
sender) and transitions via update r i s recv. output i s is some v once i has decided v
and none while undecided.
- init : P → V → State
Initial local state of process
ion input valuev. - send : ℕ → P → State → P → Msg
Message sent by process
iin statesto recipientjduring roundr + 1. Next local state of
iafter roundr + 1given receivedP → Option Msg.- output : P → State → Option V
Decision value read from local state (
nonewhile undecided).
Global Stabilization Time condition
Dwork, Lynch and Stockmeyer, §3.1, p. 295: from round gst onward,
every message sent by a correct process j ∉ F to a correct process i ∉ F is delivered
(deliver r j i = true). Prior to gst, deliver is unconstrained.
State of process i after r rounds under unauthenticated Byzantine faults F with network
delivery schedule deliver, faulty-sender table adv, and initial inputs x.
Optional decision of process i after r rounds in a Byzantine partial-synchrony run.
State of process i after r rounds under crash/omission schedule deliver and inputs x
Dwork, Lynch and Stockmeyer, §§2.2, 3.1. Every process executes the
protocol transition function; omitted links deliver none.
Optional decision of process i after r rounds in an omission/crash partial-synchrony run.
Replays the messages of an omission run deliver for F inside a Byzantine run.
Every omission/crash run coincides with the Byzantine run against omissionAdv.
π solves consensus against at most t unauthenticated Byzantine faults under partial
synchrony Dwork, Lynch and Stockmeyer, §§1.2, 2.4: safety
(irrevocability, agreement, and validity when all correct inputs equal v) holds
unconditionally across all schedules deliver, and every correct process eventually decides once
IsGST deliver F gst holds.
- irrevocable (F : Finset P) : F.card ≤ t → ∀ (deliver : ℕ → P → P → Bool) (adv : ℕ → P → P → Option M) (x : P → V) (r₁ r₂ : ℕ), r₁ ≤ r₂ → ∀ i ∉ F, ∀ (v : V), π.byzantineDecision F deliver adv x r₁ i = some v → π.byzantineDecision F deliver adv x r₂ i = some v
Decisions of correct processes are write-once.
- agreement (F : Finset P) : F.card ≤ t → ∀ (deliver : ℕ → P → P → Bool) (adv : ℕ → P → P → Option M) (x : P → V) (r₁ r₂ : ℕ), ∀ i ∉ F, ∀ j ∉ F, ∀ (v₁ v₂ : V), π.byzantineDecision F deliver adv x r₁ i = some v₁ → π.byzantineDecision F deliver adv x r₂ j = some v₂ → v₁ = v₂
Unconditional agreement: no two correct processes ever decide distinct values, even without
GST. - validity (F : Finset P) : F.card ≤ t → ∀ (deliver : ℕ → P → P → Bool) (adv : ℕ → P → P → Option M) (x : P → V) (v : V), (∀ i ∉ F, x i = v) → ∀ (r : ℕ), ∀ i ∉ F, ∀ (w : V), π.byzantineDecision F deliver adv x r i = some w → w = v
Unconditional strong validity: if all correct processes start with
v, no correct process ever decides any value other thanv. - termination (F : Finset P) : F.card ≤ t → ∀ (deliver : ℕ → P → P → Bool) (gst : ℕ) (adv : ℕ → P → P → Option M) (x : P → V), IsGST deliver F gst → ∀ i ∉ F, ∃ (r : ℕ), (π.byzantineDecision F deliver adv x r i).isSome = true
Post-GST termination: if
IsGST deliver F gstholds, every correct process decides.
π solves consensus against at most t crash/omission faults under partial synchrony
Dwork, Lynch and Stockmeyer, §§2.4, 3.2.1. Strong unanimity assumes
∀ i, x i = v because an omission-faulty process that omits no messages behaves identically to a
correct process.
- irrevocable (deliver : ℕ → P → P → Bool) (x : P → V) (r₁ r₂ : ℕ) : r₁ ≤ r₂ → ∀ (i : P) (v : V), π.omissionDecision deliver x r₁ i = some v → π.omissionDecision deliver x r₂ i = some v
Decisions are write-once.
- agreement (F : Finset P) : F.card ≤ t → ∀ (deliver : ℕ → P → P → Bool) (x : P → V) (r₁ r₂ : ℕ), ∀ i ∉ F, ∀ j ∉ F, ∀ (v₁ v₂ : V), π.omissionDecision deliver x r₁ i = some v₁ → π.omissionDecision deliver x r₂ j = some v₂ → v₁ = v₂
Unconditional agreement across correct processes and rounds, even without
GST. - validity (deliver : ℕ → P → P → Bool) (x : P → V) (v : V) : (∀ (i : P), x i = v) → ∀ (r : ℕ) (i : P) (w : V), π.omissionDecision deliver x r i = some w → w = v
Unconditional strong unanimity: if all initial values equal
v, onlyvcan be decided. - termination (F : Finset P) : F.card ≤ t → ∀ (deliver : ℕ → P → P → Bool) (gst : ℕ) (x : P → V), IsGST deliver F gst → ∀ i ∉ F, ∃ (r : ℕ), (π.omissionDecision deliver x r i).isSome = true
Post-GST termination: once
IsGST deliver F gstholds, every correct process decides.
Any protocol solving unauthenticated Byzantine partial-synchrony consensus against t faults
also solves omission/crash partial-synchrony consensus against t faults.
Zero-communication protocol in which every process immediately decides its own initial input.
On at most one process, ownInputProtocol solves Byzantine partial-synchrony consensus for
every fault bound t.
Quorum intersection and list-based quorum counting #
Two finite sets of processes S₁, S₂ whose cardinalities sum to strictly more than
Fintype.card P + F.card intersect in at least one process outside F.
Counting elements of procs.dedup satisfying p agrees with (Finset.univ.filter p).card
whenever procs enumerates every P.
When procs enumerates P, procs.dedup.length = Fintype.card P.
Multiplicity of some v across procs.dedup in f : P → Option V.
Returns a value v carried by at least q distinct senders in procs.dedup, if any.
When Fintype.card P < 2 * q, at most one value can have q senders, so findQuorumVal
returns some v if and only if at least q senders carry some v.
Within-view (n - t) echo/prevote quorum uniqueness: when 3 * t < Fintype.card P and
F.card ≤ t, if every correct process h ∉ F sends at most one echo value honestEcho h in
view v, at most one value val can gather n - t echoes across any two recipients' views
m₁, m₂ (even if faulty senders equivocate across recipients).
Shared domain structures for view-based quorum locking #
Summary of initial-value properness computed in Subround 0 of a view.
A coordinator proposal in view v, carrying a proposed value and an optional justifying lock
view certView (none for a fresh unlocked proposal, some u for a certified lock at u < v).
- val : V
Proposed consensus value.
Justifying certificate view (
nonewhen unlocked).
Unauthenticated Byzantine 6-subround view-locking protocol (3 * t < Fintype.card P) #
Messages exchanged by byzQuorumProtocol across the 6 subrounds of each view v.
- rawStatus {V : Type u_1} (initVal : V) (votedViews : List (ViewLock V)) : ByzViewMsg V
Subround 0: initial value and history of Stage-2
ViewLockvotes emitted by the sender. - certStatus {V : Type u_1} (proper : ProperReport V) (certPairs : List (ViewLock V)) : ByzViewMsg V
Subround 1: amplified properness report and
(t + 1)-witnessed pastViewLockvotes. - propose {V : Type u_1} (view : ℕ) (prop : Proposal V) : ByzViewMsg V
Subround 2: coordinator proposal for view
v. - echo {V : Type u_1} (view : ℕ) (val : V) : ByzViewMsg V
Subround 3: Stage-1 echo/prevote for
(view, val). - vote {V : Type u_1} (view : ℕ) (val : V) : ByzViewMsg V
Subround 4: Stage-2 vote for
(view, val)(emitted aftern - techoes). - commit {V : Type u_1} (view : ℕ) (val : V) : ByzViewMsg V
Subround 5: Stage-3 commit for
(view, val)(emitted aftern - tvotes, upon locking). - idle {V : Type u_1} : ByzViewMsg V
Placeholder sent by non-leaders in Subround 2 or silent voters in Subrounds 3–5.
Local state of a process running byzQuorumProtocol.
- input : V
Process's initial input value.
Highest
(view, val)lock acquired aftern - tStage-2 votes (noneinitially).- decided : Option V
Write-once consensus decision (
noneuntiln - tStage-3 commits are observed). Append-only record of
(view, val)Stage-2 votes emitted by this process.- properReport : ProperReport V
Subround 0 → 1 properness summary.
Subround 0 → 1
(t + 1)-witnessed past vote pairs.- properSnapshot : List (ProperReport V)
Subround 1 → 2 received properness reports for voter check.
Subround 1 → 2
(t + 1)-amplified view certificates accepted by a voter.Subround 1 → 2 proposal prepared if this process is the view coordinator.
- myEcho : Option V
Subround 2 → 3 Stage-1 echo value, if accepted.
- myVote : Option V
Subround 3 → 4 Stage-2 vote value, if
n - techoes were observed. - myCommit : Option V
Subround 4 → 5 Stage-3 commit value, if
n - tvotes were observed.
Initial local state of byzQuorumProtocol on input v.
Extracts the initial value from a Subround-0 .rawStatus message.
Extracts the votedViews list from a Subround-0 .rawStatus message.
Number of distinct senders in procs.dedup reporting lk in Subround 0 for lk.view < v.
Subround 0 properness computation from received .rawStatus messages.
Subround 0 (t + 1)-witnessed ViewLock pairs for view v.
Extracts (proper, certPairs) from a Subround-1 .certStatus message.
Count of distinct senders in procs.dedup whose .certStatus carries lk (lk.view < v).
Number of ProperReport entries in snaps vouching for w.
Length of a filtered filterMap of Prod.fst over (ProperReport, certPairs) pairs.
Whether prop : Proposal V is acceptable to a voter holding state st.
Outgoing message of byzQuorumProtocol in round r (v = r / 6, subround r % 6).
Extracts a view-v .echo payload.
Extracts a view-v .vote payload.
Extracts a view-v .commit payload.
Local state transition of byzQuorumProtocol at the end of round r.
Original six-subround rotating-coordinator unauthenticated Byzantine quorum-locking
consensus protocol (3 * t < Fintype.card P) for the basic round model of
Dwork, Lynch and Stockmeyer, §3.1 (replacing Algorithm 3's alternating
trying/lock-release phases, monotone PROPER-set piggybacking, and continuous Srikanth–Toueg
broadcast in §3.2.3 with a two-round t + 1 / n - t status and
input-properness relay plus echo, vote/lock, and commit quorums). procs enumerates P
(∀ p : P, p ∈ procs) so quorum thresholds and candidate selection are computable without
[Fintype V] or Classical.choice.
Unconditional pre-GST safety of byzQuorumProtocol #
Incoming message function for recipient i in round r of a byzQuorumProtocol run.
One-step unfolding equation for byzQuorumProtocol's byzantineState.
input is invariant across all rounds of byzQuorumProtocol.
Decisions of byzQuorumProtocol are write-once across all rounds.
Unforgeability of unauthenticated view certificates (voterCerts_sound): if lk is in
voterCerts at the end of Subround 1 of view v (6 * v + 2), then lk.view < v and some
correct process h ∉ F held lk ∈ votedViews at round 6 * v.
Every lock locked = some lk held at round r satisfies 6 * lk.view + 4 < r and is backed
by at least n - 2 * t correct processes h ∉ F holding lk ∈ votedViews at round r.
Cross-view lock preservation (byzQuorum_lock_preservation): suppose
3 * t < Fintype.card P, F.card ≤ t, and a set L₀ ⊆ Finset.univ \ F of at least n - 2 * t
correct processes holds locked = some ⟨v₀, val₀⟩ at the end of view v₀ (6 * (v₀ + 1)). Then
across all views v ≥ v₀ and all rounds r:
- Every Stage-2 vote
⟨v, val⟩ ∈ votedViewswithv₀ ≤ vhasval = val₀. - At the end of every view
v ≥ v₀(6 * (v + 1)), everyq ∈ L₀holdslocked = some lkwithv₀ ≤ lk.viewandlk.val = val₀.
Unconditional pre-GST global agreement (byzQuorum_agreement): for 3 * t < Fintype.card P
and F.card ≤ t, no two processes ever decide distinct values in byzQuorumProtocol (even under
arbitrary pre-GST message loss and without GST ever holding).
Unconditional strong validity (byzQuorum_validity): when 3 * t < Fintype.card P,
F.card ≤ t, and every correct process starts with val₀ (∀ h ∉ F, x h = val₀), no process ever
decides any value w ≠ val₀ in byzQuorumProtocol (even without GST).
Crash/omission 3-subround view-locking protocol (2 * t < Fintype.card P) #
Messages exchanged by omissionQuorumProtocol across the 3 subrounds of each view v.
- status {V : Type u_1} (initVal : V) (locked : Option (ViewLock V)) : OmissionViewMsg V
Subround 0: sender's initial value and current highest
ViewLock, if any. - propose {V : Type u_1} (view : ℕ) (prop : Proposal V) : OmissionViewMsg V
Subround 1: coordinator proposal for view
v. - ack {V : Type u_1} (view : ℕ) (val : V) : OmissionViewMsg V
Subround 2: acknowledgment that the sender locked
(view, val). - idle {V : Type u_1} : OmissionViewMsg V
Placeholder sent by non-coordinators in Subround 1 or silent voters in Subround 2.
Local state of a process running omissionQuorumProtocol.
- input : V
Process's initial input value.
Highest
(view, val)lock acquired upon accepting a proposal (noneinitially).- decided : Option V
Write-once consensus decision (
noneuntiln - tacknowledgments are observed). Subround 0 → 1 proposal prepared if this process is the view coordinator.
- myAck : Option V
Subround 1 → 2 acknowledgment value, if a proposal was accepted in Subround 1.
Outgoing message of omissionQuorumProtocol in round r (v = r / 3, subround r % 3).
Whether an omission-protocol voter in state st accepts prop in view v (v' = v).
Extracts a view-v .ack payload.
Whether a received OmissionViewMsg is a Subround-0 .status message.
Extracts the optional ViewLock from a Subround-0 .status message.
Local state transition of omissionQuorumProtocol at the end of round r.
Original three-subround rotating-coordinator crash/omission quorum-locking consensus
protocol (2 * t < Fintype.card P) for the basic round model of
Dwork, Lynch and Stockmeyer, §3.1 (replacing Algorithm 1's alternating
trying/lock-release phases and monotone PROPER-set piggybacking in
§3.2.1 with single-lock status reporting, proposal/locking, and
n - t acknowledgments).
Unconditional pre-GST safety of omissionQuorumProtocol #
Incoming message function for recipient i in round r of an omissionQuorumProtocol run.
One-step unfolding equation for omissionQuorumProtocol's omissionState.
Decisions of omissionQuorumProtocol are write-once across all rounds.
Unconditional pre-GST agreement for omissionQuorumProtocol (omission_agreement):
when 2 * t < Fintype.card P, no two processes ever decide distinct values (even without GST).
Unconditional strong unanimity for omissionQuorumProtocol (omission_validity): when
2 * t < Fintype.card P and all initial inputs equal val₀ (∀ i, x i = val₀), no process ever
decides any value other than val₀ (even without GST).