Documentation

CslibFrontier.Computability.Distributed.Paxos.Liveness.Duelling

Crash-free duelling-proposers livelock on Fin 3 #

Constructs exists_duelling_proposers_livelock after the two-proposer scenario of [Lam01] §2.4 and [Lam98] §2.4 in the crash-stop Single-Decree Synod model.

Main definitions #

Main results #

Part 1: Duelling-proposers livelock on Fin 3 #

Strict-majority quorum system on Fin 3 tolerating t = 1 acceptor crash (quorums of size at least 2).

theorem Cslib.Distributed.Paxos.exists_duelling_proposers_livelock {Learner : Type u_1} {V : Type u_2} [DecidableEq Learner] [DecidableEq V] [Nontrivial V] :
∃ (inputs : Fin 2 → V) (ss : ωSequence (SynodState (Fin 2) (Fin 3) Learner V)) (xs : ωSequence (SynodAction (Fin 2) (Fin 3) Learner V)), inputs 0 ≠ inputs 1 ∧ ss 0 = initState inputs ∧ (synodLts majorityQuorumsFin3).OmegaExecution ss xs ∧ (∀ (n : ℕ), xs n ≠ SynodAction.stutter ∧ ∀ (m : Msg (Fin 2) (Fin 3) V), xs n ≠ SynodAction.drop m) ∧ (∀ (k : ℕ), ∃ (n : ℕ), Msg.phase1a { round := k, proposer := 0 } ∈ (ss n).msgs ∧ Msg.phase1a { round := k, proposer := 1 } ∈ (ss n).msgs ∧ Msg.phase2a { round := k, proposer := 0 } (inputs 0) ∈ (ss n).msgs ∧ Msg.phase2a { round := k, proposer := 1 } (inputs 1) ∈ (ss n).msgs) ∧ (∀ (n : ℕ) (a : Fin 3), ((ss n).acceptors a).maxVoted = none) ∧ ∀ (n : ℕ) (l : Learner), ((ss n).learners l).learned = none

Crash-free livelock witness after the two-proposer scenario of [Lam01] §2.4 and [Lam98] §2.4 in the crash-stop Single-Decree Synod model (not a cited theorem endpoint): over any nontrivial value domain [Nontrivial V], synodLts on Fin 3 acceptors (majorityQuorumsFin3) and Fin 2 proposers admits an explicit crash-free, drop-free, stutter-free infinite execution with distinct proposer inputs (inputs 0 ≠ inputs 1) in which both proposers prepare and propose in every round k : ℕ, yet alternating Phase1a prepares perpetually preempt Phase2b so no acceptor ever votes and no learner ever decides.