Documentation

CslibFrontier.Computability.Distributed.Paxos.Liveness.SoleLeaderDefs

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 #

Part 2: Single-distinguished-leader 4-phase liveness #

def Cslib.Distributed.Paxos.Msg.ballot {Proposer : Type u_1} {Acceptor : Type u_2} {V : Type u_3} :
Msg Proposer Acceptor V → Ballot Proposer

Extract the ballot number carried by any Synod packet.

def Cslib.Distributed.Paxos.BallotsBelow {Proposer : Type u_1} {Acceptor : Type u_2} {Learner : Type u_3} {V : Type u_4} [LinearOrder Proposer] (s : SynodState Proposer Acceptor Learner V) (b : Ballot Proposer) :

Every ballot present in s.msgs or promised in any acceptor's maxBal is strictly below b.

structure Cslib.Distributed.Paxos.LiveAndLossless {Proposer : Type u_1} {Acceptor : Type u_2} {Learner : Type u_3} {V : Type u_4} (b : Ballot Proposer) (p : Proposer) (Q : Finset Acceptor) (l : Learner) (ss : ωSequence (SynodState Proposer Acceptor Learner V)) (xs : ωSequence (SynodAction Proposer Acceptor Learner V)) :

Live cohort and lossless eventual delivery for ballot b among leader p, cohort Q, and learner l along infinite execution (ss, xs).