Documentation

CslibFrontier.Computability.Distributed.Paxos.Liveness

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:

  1. Duelling-Proposers Livelock (exists_duelling_proposers_livelock): Crash-free livelock witness after the two-proposer scenario of [Lam01] §2.4 (and [Lam98] §2.4): on Fin 3 acceptors (t = 1 majority quorums) and Fin 2 proposers with distinct inputs (inputs 0 ≠ inputs 1), an explicit crash-free, drop-free, stutter-free infinite execution alternates Phase1a prepares so each proposer's Phase2a accept request is preempted before Phase2b can fire, preventing any acceptor from voting and any learner from deciding.
  2. 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 leader p prepares a ballot b = ⟨r, p⟩ strictly exceeding all previously seen or promised ballots (BallotsBelow), no ballot strictly greater than b is subsequently prepared, and ballot-b packets among p, one live cohort Q containing a prepare and an accept quorum (qs.Supports Q), and a live learner l are delivered without loss, l learns a decree value across 1a → 1b → 2a → 2b alongside arbitrary deliveries or drops of older ballots < b (exists_sole_leader_execution_crashStop constructs an explicit 4-phase execution). Leader election, NACK nextBal[q] ballot-bumping, persistent-storage crash recovery, and [Lam98] §2.4's real-time hourglass timeout bounds remain open.
  3. Disjoint-Quorum Split-Brain Impossibility (not_synod_safe_of_disjoint_quorums): 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 [Nontrivial V], no deterministic asynchronous message-passing protocol guarantees agreement and uniform validity while allowing independent single-quorum progress on disjoint subsets Q₁, Q₂ (Disjoint Q₁ Q₂, in particular whenever 2 ≤ Fintype.card P ≤ 2 * t). Conversely, crash-stop synodQuorumProtocol satisfies both safety and progress in every cohort containing a quorum of each phase (synodQuorumProtocol_safeCohort_crashStop).

Main definitions #

Main results #

References #