Ballot freshness and fairness predicates for sole-leader progress #
Defines Msg.ballot, BallotsBelow, and LiveAndLossless, shared by conditional sole-leader
liveness, the constructive 4-phase witness, and clients of Liveness.
Main definitions #
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.
Part 2: Single-distinguished-leader 4-phase liveness #
Every ballot present in s.msgs or promised in any acceptor's maxBal is strictly below
b.
Live cohort and lossless eventual delivery for ballot b among leader p, cohort Q, and
learner l along infinite execution (ss, xs).
Proposer
premains live throughout the execution.Every acceptor in cohort
Qremains live throughout the execution.Learner
lremains live throughout the execution.No packet carrying ballot
bis dropped by the network.- fair_phase1a (n : ℕ) : Msg.phase1a b ∈ (ss n).msgs → ∀ a ∈ Q, ∃ (j : ℕ), n ≤ j ∧ xs j = SynodAction.recvPhase1a a b
Fair Phase 1a delivery:
Phase1a(b)is eventually delivered to everya ∈ Q. - fair_phase1b (n : ℕ) (a : Acceptor) (mv : Option (Vote Proposer V)) : a ∈ Q → Msg.phase1b a b mv ∈ (ss n).msgs → ∃ (j : ℕ), n ≤ j ∧ xs j = SynodAction.recvPhase1b p a b mv
Fair Phase 1b delivery: every
Phase1b(a, b, mv)froma ∈ Qis eventually delivered top. - fair_phase2a (n : ℕ) (v : V) : Msg.phase2a b v ∈ (ss n).msgs → ∀ a ∈ Q, ∃ (j : ℕ), n ≤ j ∧ xs j = SynodAction.recvPhase2a a b v
Fair Phase 2a delivery:
Phase2a(b, v)is eventually delivered to everya ∈ Q. - fair_phase2b (n : ℕ) (a : Acceptor) (v : V) : a ∈ Q → Msg.phase2b a b v ∈ (ss n).msgs → ∃ (j : ℕ), n ≤ j ∧ xs j = SynodAction.recvPhase2b l a b v
Fair Phase 2b delivery: every
Phase2b(a, b, v)froma ∈ Qis eventually delivered tol.