Asynchronous quorum protocol model and split-brain impossibility #
Defines the deterministic crash-tolerant AsyncQuorumProtocol model and proves the original
disjoint-quorum partition impossibility (not_synod_safe_of_disjoint_quorums,
not_safeSingleQuorum_of_card_le_two_mul).
Main definitions #
Cslib.Distributed.Paxos.Packet,Cslib.Distributed.Paxos.NodeProcState,Cslib.Distributed.Paxos.NetState,Cslib.Distributed.Paxos.NetAction,Cslib.Distributed.Paxos.AsyncQuorumProtocol: general asynchronous crash-tolerant message-passing protocol model for single-quorum progress analysis.
Main results #
Cslib.Distributed.Paxos.not_synod_safe_of_disjoint_quorums: split-brain impossibility for anyAsyncQuorumProtocoladmitting progress on disjoint subsetsQ₁, Q₂.Cslib.Distributed.Paxos.not_safeSingleQuorum_of_card_le_two_mul: impossibility oft-crash single-quorum progress when2 ≤ Fintype.card P ≤ 2 * t.
Part 3: Disjoint-quorum split-brain impossibility #
Global configuration of an asynchronous message-passing consensus protocol.
Sent network packets (subject to arbitrary reordering, duplication, and delay/partition).
- proc : P → NodeProcState S V
Local state of each process.
Transition labels of an AsyncQuorumProtocol: spontaneous local steps, packet deliveries, and
stuttering.
- localStep {P : Type u_1} {L : Type u_2} {M : Type u_3} (p : P) (lbl : L) : NetAction P L M
Process
ptakes a local step with parameterlbl. - deliver {P : Type u_1} {L : Type u_2} {M : Type u_3} (pkt : Packet P M) : NetAction P L M
Packet
pktin the network is delivered topkt.dest. - stutter {P : Type u_1} {L : Type u_2} {M : Type u_3} : NetAction P L M
Dummy stuttering step.
General deterministic asynchronous crash-tolerant message-passing protocol over processes P,
local state S, local-step labels L, messages M, and value domain V.
- init : P → V → S
Initial local state of process
pgiven its inputinp p : V. - localEnabled : P → L → NodeProcState S V → Prop
Guard for spontaneous local step
(p, lbl). - onLocal : P → L → NodeProcState S V → StepResult P S M V
Transition function for spontaneous local step
(p, lbl). - onRecv : P → P → M → NodeProcState S V → StepResult P S M V
Initial network state for input assignment inp : P → V.
Apply a StepResult emitted by process p to global state s.
Labelled transition system of π.
π.Reachable inp s holds when s is reachable from π.start inp in π.lts.
Consensus safety: in every reachable state, all decided values agree with one another and every decided value equals some process's initial input.
Single-quorum progress on subset Q: for every uniform input fun _ => v, there exists a
finite Q-internal execution (InGroup Q, i.e., with all nodes outside Q silent/crashed from the
start) in which some node q ∈ Q decides a value.
Original asynchronous partition / split-brain impossibility over AsyncQuorumProtocol
(motivating the quorum-intersection condition B2 of [Lam98] §§1.2, 2.1 and [Lam01]
§2.2, rather than formalizing a numbered theorem of those papers): over any nontrivial value domain
[Nontrivial V], if subsets Q₁, Q₂ : Finset P are disjoint (Disjoint Q₁ Q₂), no deterministic
asynchronous message-passing protocol π can simultaneously guarantee SafeConsensus and
single-quorum progress (CanDecideIn) on both Q₁ and Q₂.
Original split-brain impossibility corollary at 2 ≤ |P| ≤ 2t over AsyncQuorumProtocol: over
any nontrivial value domain [Nontrivial V], when 2 ≤ Fintype.card P ≤ 2 * t, no
AsyncQuorumProtocol can guarantee SafeConsensus together with single-quorum progress on every
(n - t)-element subset (i.e., progress tolerating t process crashes).