Combinatorial Sperner Parity and Wait-Free k-Set Agreement Impossibility in IIS #
As an R-round Iterated Immediate Snapshot (IIS) step toward #7504 (leaving the general
asynchronous read/write shared-memory to IIS simulation open in #7504), this module proves the
impossibility of wait-free k-set agreement for R-round deterministic IIS protocols
(after [HS99], §3.3, Lemma 3.2 and Theorem 3.3, pp. 880–881; [BG93b];
[SZ00]; [BG97], §3.5), via a purely combinatorial interior-facet
involution paired with Cslib.Sperner.odd_card_doors_iff_surjective.
- One-shot
ISsplit/merge involution (flipBlocks,ISSchedule.flip): for an active processq ∈ U, an ordered partitionπ : ISSchedule Ulies on theq-boundary (π.IsBoundaryAt q) precisely when{q}is the unique final block (π.blocks = init ++ [{q}]), so no other process observesq. Dropping{q}establishes a snapshot-preserving bijectionISSchedule.boundaryEquivwithISSchedule (U.erase q). On all non-boundary schedules, eitherqbelongs to a blockBwithB ≠ {q}(split{q}immediately beforeB.erase q) or{q}is a singleton block followed byC(merge{q}intoinsert q C). This defines an explicit fixed-point-free involutionISSchedule.flippreserving.snapshot pfor everyp ≠ q. R-roundIISexecution involution (flipIISExec): scanning backwards from the final roundRto find the last roundrin whichE ris notq-boundary, and applying the one-shotISSchedule.flipin roundr, yields an involution onFin R → ISSchedule Uwhose fixed points are exactly theq-boundary executions (IsBoundaryExecAt q E) and which preserves theR-round full-information viewiisRun inp E pfor everyp ≠ q(iisRun_flipIISExec_of_ne), because in all later roundsr' > r,{q}runs last alone so nop ≠ qobservesq's changed round-rview.- Odd Panchromatic
IISExecution Parity (odd_card_panchromatic_iis): by induction on#U, combiningCslib.Sperner.odd_card_doors_iff_surjectivewithflipIISExecon interior doors andboundaryExecEquivon boundary doors, every carrier-valid coloringc : IISView V Input R → V(∀ v, c v ∈ v.carrier) admits an odd number (hence at least one) of panchromaticR-roundIISexecutions hitting all#Ucolors. - Wait-Free
k-Set Agreement Impossibility & Quorum Sharpness (#7504steps):not_solvesSetAgreement_iis: whenk + 1 ≤ Fintype.card Vandk + 1 ≤ Fintype.card Val, noR-roundIISprotocol solvesk-set agreement (IISProtocol.SolvesSetAgreement).exists_iis_setAgreement_iff:k-set agreement is solvable inIISif and only ifFintype.card V ≤ k ∨ Fintype.card Val ≤ k.exists_quorumSetAgreement_of_lt: in contrast, in the one-round(n - t)-quorum model where at mostt < kprocesses are missed, the(t + 1)-leader protocol solvesk-set agreement.
Model scope #
The impossibility theorem not_solvesSetAgreement_iis applies to deterministic full-information
protocols in the R-round Iterated Immediate Snapshot (IIS) model (IISProtocol V Val R) as a
step toward #7504. The asynchronous read/write shared-memory to IIS simulation
([BG93b]; [BG97]; [HS99]) is tracked separately in #7504.
Main definitions #
Cslib.Distributed.SetAgreement.ISSchedule.IsBoundaryAt,Cslib.Distributed.SetAgreement.ISSchedule.flip,Cslib.Distributed.SetAgreement.ISSchedule.boundaryEquiv: one-shotq-boundary predicate, split/merge involution, and boundary schedule equivalence.Cslib.Distributed.SetAgreement.IsBoundaryExecAt,Cslib.Distributed.SetAgreement.flipIISExec,Cslib.Distributed.SetAgreement.boundaryExecEquiv:R-roundq-boundary predicate, backwards-from-Rexecution involution, and boundary execution equivalence.Cslib.Distributed.SetAgreement.IsCarrierColoring,Cslib.Distributed.SetAgreement.IsPanchromaticIIS: carrier-validIISview colorings and panchromaticIISexecutions.Cslib.Distributed.SetAgreement.IISProtocol.SolvesSetAgreement: wait-freek-set agreement specification forR-roundIISprotocols.Cslib.Distributed.SetAgreement.IsQuorumSchedule,Cslib.Distributed.SetAgreement.QuorumProtocol,Cslib.Distributed.SetAgreement.QuorumProtocol.SolvesSetAgreement: one-round(n - t)-quorumk-set agreement model and specification.
Main results #
Cslib.Distributed.SetAgreement.ISSchedule.flip_flip,Cslib.Distributed.SetAgreement.ISSchedule.flip_eq_self_iff,Cslib.Distributed.SetAgreement.ISSchedule.snapshot_flip_of_ne: one-shot split/merge involution laws.Cslib.Distributed.SetAgreement.flipIISExec_flipIISExec,Cslib.Distributed.SetAgreement.flipIISExec_eq_self_iff,Cslib.Distributed.SetAgreement.iisRun_flipIISExec_of_ne:R-roundIISinterior-facet involution laws.Cslib.Distributed.SetAgreement.odd_card_panchromatic_iis,Cslib.Distributed.SetAgreement.exists_panchromatic_iis: odd parity and existence of panchromaticR-roundIISexecutions.Cslib.Distributed.SetAgreement.not_solvesSetAgreement_iis,Cslib.Distributed.SetAgreement.exists_iis_setAgreement_iff: wait-freek-set agreement impossibility step and sharp solvability criterion inIIS.Cslib.Distributed.SetAgreement.exists_quorumSetAgreement_of_lt: positive one-round(n - t)-quorumk-set agreement protocol whenevert < k.
References #
- E. Borowsky, E. Gafni, Generalized FLP Impossibility Result for t-Resilient Asynchronous Computations
- E. Borowsky, E. Gafni, A Simple Algorithmically Reasoned Characterization of Wait-Free Computations
- M. Herlihy, N. Shavit, The Topological Structure of Asynchronous Computability
- M. Saks, F. Zaharoglou, Wait-Free k-Set Agreement Is Impossible: The Topology of Public Knowledge
Part 1: One-shot IS split/merge involution and boundary equivalence #
Block-level split/merge involution at process q:
[B]: fixed ifB = {q}, else split into[{q}, B.erase q];B :: C :: restwithq ∈ B: ifB = {q}merge intoinsert q C :: rest, else split into{q} :: B.erase q :: C :: rest;B :: C :: restwithq ∉ B: recurse onC :: rest.
A one-shot IS schedule π : ISSchedule U lies on the q-boundary when {q} is the unique
final block of π.blocks (so no process p ≠ q observes q).
Instances For
One-shot split/merge involution on ISSchedule U at q ∈ U.
Drop the trailing singleton {q} from a q-boundary schedule on U, producing a schedule on
U.erase q.
Append trailing singleton {q} to a schedule on U.erase q (q ∈ U), producing a
q-boundary schedule on U.
Exact equivalence between q-boundary schedules on U (q ∈ U) and all schedules on
U.erase q.
Part 2: R-round IIS backwards-from-R interior-facet involution #
An R-round IIS execution E lies on the q-boundary when {q} runs last alone in every
round r : Fin R.
Instances For
Backwards-from-R interior-facet involution on R-round IIS executions:
scan from the final round Fin.last (R - 1) down to 0, and apply the one-shot split/merge
involution ISSchedule.flip at the largest round r where E r is not q-boundary.
View invariance under flipIISExec: flipping at q preserves the R-round IIS view of
every process p ≠ q.
Equivalence between q-boundary R-round IIS executions on U (q ∈ U) and all R-round
IIS executions on U.erase q.
Part 3: Combinatorial Sperner Parity for R-Round IIS Executions #
Global carrier-validity of an R-round IIS view coloring (Sperner condition on the
iterated chromatic subdivision): every view v is colored by a process in v.carrier.
An R-round IIS execution E on U is panchromatic under coloring c at input inp
when every process color b ∈ U is decided by some active process p ∈ U.
Instances For
Iterated immediate snapshot (IIS) chromatic-subdivision Sperner parity step for #7504 (after
Herlihy and Shavit, Lemma 3.2, p. 880, and §5.2, Definitions 5.3–5.4,
pp. 897–898): for every carrier-valid coloring c : IISView V Input R → V
(∀ v, c v ∈ v.carrier), finite process set U : Finset V, and input inp : V → Input, the
number of R-round IIS executions on U hitting all #U colors is odd.
Iterated immediate snapshot (IIS) panchromatic existence step for #7504 (after
Herlihy and Shavit, Lemma 3.2, p. 880): every carrier-valid coloring admits at
least one panchromatic R-round IIS execution on U.
Part 4: Wait-free k-set agreement impossibility in IIS and t < k quorum contrast #
An R-round IIS protocol P : IISProtocol V Val R solves wait-free k-set agreement
([HS99], §3.3, p. 879; [BG93b]; [SZ00]) when:
- Validity (
P.IsValid): every decided value is the initial input of some process, and k-Agreement: in every execution, at mostkdistinct values are decided across all processes.
Iterated immediate snapshot (IIS) impossibility step for #7504 (after
Herlihy and Shavit, §3.3, Theorem 3.3, p. 881; see also [BG93b]
and [SZ00]): on Fintype.card V ≥ k + 1 processes with Fintype.card Val ≥ k + 1
possible input values, no R-round deterministic IIS protocol solves wait-free k-set agreement
(the general asynchronous read/write shared-memory to IIS reduction remains open in #7504).
Iterated immediate snapshot (IIS) solvability threshold step for #7504: for every k : ℕ
and finite types V and Val, there exists an R-round IIS protocol solving wait-free k-set
agreement if and only if Fintype.card V ≤ k ∨ Fintype.card Val ≤ k.
Contrast: positive one-round (n - t)-quorum k-set agreement when t < k #
A one-round (n - t)-quorum schedule over V: at most t processes are missed, so every
deciding process p hears from a quorum Q p : Finset V containing p of cardinality at least
Fintype.card V - t.
Local quorum view observed by p in a one-round (n - t)-quorum exchange: the set of
(process, input) pairs from Q p.
A QuorumProtocol solves (n - t)-quorum k-set agreement when in every
IsQuorumSchedule t Q schedule, every process decides an observed input from Q p and at most k
distinct values are decided globally.
Original one-round (n - t)-quorum contrast step for #7504: whenever t < k, a fixed leader
set L of size min (t + 1) |V| intersects every quorum Q p of size ≥ |V| - t, so adopting
any heard leader's input solves (n - t)-quorum k-set agreement in one round.