Crash-Stop Synod Livelock, Conditional Sole-Leader Step, and Split-Brain Impossibility #
This module formalizes liveness and quorum-intersection results for the crash-stop Single-Decree
Synod model of CslibFrontier.Computability.Distributed.Paxos.Basic as intermediate steps towards
[Lam98] and [Lam01] (and not the crash-recovery or timeout-based leader-election
endpoints of those papers), together with an original asynchronous split-brain impossibility
theorem motivating quorum intersection:
- Duelling-Proposers Livelock (
exists_duelling_proposers_livelock): Crash-free livelock witness after the two-proposer scenario of [Lam01] §2.4 (and [Lam98] §2.4): onFin 3acceptors (t = 1majority quorums) andFin 2proposers with distinct inputs (inputs 0 ≠ inputs 1), an explicit crash-free, drop-free, stutter-free infinite execution alternatesPhase1aprepares so each proposer'sPhase2aaccept request is preempted beforePhase2bcan fire, preventing any acceptor from voting and any learner from deciding. - Conditional Sole-Leader Progress Step (
paxos_liveness_of_sole_leader_crashStop): Conditional crash-stop 4-phase progress step towards [Lam01] §2.4 and [Lam98] §2.1 Theorem 2 / §2.4 (and not a complete leader-election or timeout-based liveness result): from any reachable crash-stop Synod state, assuming an already-selected live leaderpprepares a ballotb = ⟨r, p⟩strictly exceeding all previously seen or promised ballots (BallotsBelow), no ballot strictly greater thanbis subsequently prepared, and ballot-bpackets amongp, one live cohortQcontaining a prepare and an accept quorum (qs.Supports Q), and a live learnerlare delivered without loss,llearns a decree value across1a → 1b → 2a → 2balongside arbitrary deliveries or drops of older ballots< b(exists_sole_leader_execution_crashStopconstructs an explicit 4-phase execution). Leader election, NACKnextBal[q]ballot-bumping, persistent-storage crash recovery, and [Lam98] §2.4's real-time hourglass timeout bounds remain open. - Disjoint-Quorum Split-Brain Impossibility (
not_synod_safe_of_disjoint_quorums): Original asynchronous partition / split-brain impossibility overAsyncQuorumProtocol(motivating the quorum-intersection conditionB2of [Lam98] §§1.2, 2.1 and [Lam01] §2.2, rather than formalizing a numbered theorem of those papers): over[Nontrivial V], no deterministic asynchronous message-passing protocol guarantees agreement and uniform validity while allowing independent single-quorum progress on disjoint subsetsQ₁, Q₂(Disjoint Q₁ Q₂, in particular whenever2 ≤ Fintype.card P ≤ 2 * t). Conversely, crash-stopsynodQuorumProtocolsatisfies both safety and progress in every cohort containing a quorum of each phase (synodQuorumProtocol_safeCohort_crashStop).
Main definitions #
Cslib.Distributed.Paxos.majorityQuorumsFin3: strict-majority quorum system onFin 3(t = 1).Cslib.Distributed.Paxos.Msg.ballot,Cslib.Distributed.Paxos.BallotsBelow,Cslib.Distributed.Paxos.LiveAndLossless: ballot extractor, fresh-ballot dominance predicate, and live cohort / lossless ballot-delivery hypothesis for conditional sole-leader progress.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.Cslib.Distributed.Paxos.SynodNodeState,Cslib.Distributed.Paxos.synodQuorumProtocol: co-located crash-stop Single-Decree Synod instantiated as anAsyncQuorumProtocol.
Main results #
Cslib.Distributed.Paxos.exists_duelling_proposers_livelock: explicit crash-free non-terminating duelling-proposers execution onFin 3acceptors andFin 2proposers with distinct inputs.Cslib.Distributed.Paxos.paxos_liveness_from_phase2a_crashStop: phase-2 progress using only an accept quorum after the proposal is sent, without requiring a live prepare quorum.Cslib.Distributed.Paxos.paxos_liveness_of_sole_leader_crashStop: conditional crash-stop 4-phase learner termination step under a live sole leader at a fresh highest ballot.Cslib.Distributed.Paxos.exists_sole_leader_execution_crashStop: constructive 4-phase execution witness from any reachable crash-stop state (with[Finite Acceptor]).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.Cslib.Distributed.Paxos.synodQuorumProtocol_safeCohort_crashStop: crash-stop step showingsynodQuorumProtocol qsachievesSafeConsensusandCanDecideIn Qwheneverqs.Supports Q.