Phase-specific Paxos quorums #
QuorumSystem has separate prepare and accept families. Every prepare quorum intersects every
accept quorum; quorums in the same phase need not intersect. This is the quorum condition used by
Flexible Paxos [HMS17]. The operational safety proof in Paxos.Basic consumes
this interface directly.
QuorumSystem.Supports describes a live cohort containing a quorum for each phase, the condition
needed to start a ballot and complete it. QuorumSystem.AvailableFor instead allows different
failure families in the two phases, distinguishing leader-election availability from availability
after a leader has prepared its ballot.
The finite-set results in this module are original library formulations:
exists_thresholdQuorums_iff: nonvacuous cardinality thresholdsqPrepareandqAcceptadmit a quorum system exactly when their sum exceeds the number of acceptors.thresholdQuorums_availableFor_iff: exact phase-specific availability for each fault set.exists_availableFor_iff: two nonempty failure families admit available cross-intersecting quorum families exactly when no prepare failure set and accept failure set cover all acceptors.exists_availableFor_card_iff: the sharp asymmetric crash thresholdfPrepare + fAccept < Fintype.card P.
These are quorum and availability statements, not assertions of unconditional asynchronous protocol termination. Protocol liveness additionally needs its delivery and leader hypotheses.
Two nonempty quorum families whose members intersect across phases. Same-phase intersection is not required. Prepare quorums collect promises; accept quorums certify a chosen value.
Quorums sufficient to finish the prepare phase.
Quorums sufficient to finish the accept phase.
- prepare_nonempty : self.prepareQuorums.Nonempty
At least one prepare quorum exists.
- accept_nonempty : self.acceptQuorums.Nonempty
At least one accept quorum exists.
- inter_nonempty (Q₁ : Finset P) : Q₁ ∈ self.prepareQuorums → ∀ Q₂ ∈ self.acceptQuorums, (Q₁ ∩ Q₂).Nonempty
Every prepare quorum intersects every accept quorum.
A prepare quorum is nonempty because it intersects an accept quorum.
An accept quorum is nonempty because it intersects a prepare quorum.
A cohort supports both phases when it contains a prepare quorum and an accept quorum.
Instances For
Supporting both phases is decidable by checking the two finite quorum families.
A cohort supporting both phases contains at least one acceptor.
The union of a prepare quorum and an accept quorum supports both phases.
Availability against possibly different failure families in the prepare and accept phases. Each allowed fault set leaves some quorum of the corresponding phase entirely correct.
Every prepare-phase fault set leaves a prepare quorum.
Every accept-phase fault set leaves an accept quorum.
All subsets meeting the respective cardinality thresholds form a phase-specific quorum system when each threshold is feasible and their sum exceeds the number of acceptors.
Membership in the prepare family is exactly the prepare cardinality threshold.
Membership in the accept family is exactly the accept cardinality threshold.
Exact cross-intersection criterion for feasible cardinality thresholds. Feasibility rules out the vacuous case of an empty quorum family with a threshold larger than the universe.
A threshold family remains available precisely when each permitted fault set leaves enough acceptors for that phase's threshold. The two phases may use different failure families.
Equal strict-majority families recover classical Paxos: each quorum contains at least
Fintype.card P - t acceptors, with 2 * t < Fintype.card P.
The classical prepare quorum cardinality test.
The classical accept quorum cardinality test.
Two nonempty failure families admit an available phase-specific quorum system exactly when no prepare fault set and accept fault set together cover the acceptor universe. Sufficiency uses the complements of the respective fault sets as quorums. No closure assumption on either failure family is needed.
Sharp asymmetric crash-availability threshold: prepare quorums can tolerate fPrepare
faults and accept quorums can tolerate fAccept faults exactly when their sum is below the
number of acceptors. In particular, requiring the same fault budget in both phases recovers
the strict-majority resilience bound.