Rotational Symmetry Steps on Anonymous Rings #
Synchronous-round and sequential-FIFO-wave rotational symmetry steps on anonymous oriented rings
Fin n (steps towards Angluin, not the general processor-network covering
impossibility endpoints of [Angluin1980b]).
Every processor in an anonymous ring starts in the same initial state init without a distinct
identifier and executes the same deterministic transition function. Because a protocol value may
be chosen separately for each ring size n, these symmetry steps hold even when n is common
knowledge among the processors. Both bidirectional and unidirectional message passing are covered
in two concrete ring models:
- Synchronous rounds (
AnonProtocol): in roundr, each nodei : Fin nsendstoPred r scounter-clockwise toi - 1andtoSucc r sclockwise toi + 1, then updates viarecv r s fromPred fromSucc. Shifting the initial state assignment by+ kcommutes with every round (AnonProtocol.stateFrom_shift_eq), so from a uniform initial state all nodes share the exact same state after every round (AnonProtocol.state_shift_eq). Consequently, for2 ≤ nthe set of self-declared leaders has cardinality0orn, never1(AnonProtocol.not_electsUniqueLeader_sync_of_two_le). - Asynchronous FIFO schedules (
AnonAsyncProtocol): directed edgesi → i + 1andi → i - 1carry unbounded FIFO queues modelled as aCslib.LTS. Finite delivery schedules commute with cyclic index shifts (AnonAsyncProtocol.exec_shift_eq). Moreover, sequential round-robin FIFO waves delivering one message along every clockwise or counter-clockwise edge (clockwiseWave,counterWave) are validLTS.MTrexecutions whenever the corresponding queues are nonempty and preserve exact rotational symmetry across all nodes (AnonAsyncProtocol.exists_rotWave_trace_leaders_card_ne_one).
Main definitions #
Cslib.Distributed.RingElection.AnonProtocol,AnonProtocol.unidir: synchronous bidirectional (and unidirectional) anonymous ring protocols, withstateFrom,run,leaders, andElectsUniqueLeader.Cslib.Distributed.RingElection.RingDir,AnonAsyncOut,AnonAsyncProtocol,AnonAsyncProtocol.unidir: asynchronous FIFO bidirectional (and unidirectional) anonymous ring protocols.Cslib.Distributed.RingElection.AnonAsyncConfig,AnonEvent,AnonAsyncProtocol.lts: global FIFO configurations, delivery events, and the labelled transition system of enabled deliveries.Cslib.Distributed.RingElection.clockwiseWave,counterWave,rotSchedule: sequential single-delivery FIFO waves preserving rotational invariance.
Main results #
Cslib.Distributed.RingElection.AnonProtocol.stateFrom_shift_eq,Cslib.Distributed.RingElection.AnonProtocol.state_shift_eq: rotational equivariance and invariance of synchronous rounds onFin n.Cslib.Distributed.RingElection.AnonProtocol.leaders_card_eq_zero_or_self: in any round, either0or allnnodes declare leadership.Cslib.Distributed.RingElection.AnonProtocol.not_electsUniqueLeader_sync_of_two_le: synchronous-round symmetry step onFin n(2 ≤ n, after[Angluin1980b]).Cslib.Distributed.RingElection.AnonAsyncProtocol.exec_shift_eq: cyclic shift equivariance of asynchronous FIFO schedules.Cslib.Distributed.RingElection.AnonAsyncProtocol.mtr_rotWave_uniform,Cslib.Distributed.RingElection.AnonAsyncProtocol.exists_rotWave_trace_leaders_card_ne_one: sequential FIFO wave uniformity and rotational-wave symmetry step onFin n(2 ≤ n, after[Angluin1980b]).
References #
Synchronous anonymous ring protocols #
A deterministic synchronous message-passing protocol for an anonymous oriented ring.
Every node starts in the common initial state init. In round r, each node i sends
toPred r s counter-clockwise to i - 1 and toSucc r s clockwise to i + 1, then updates its
state via recv r s fromPred fromSucc where fromPred arrived from i - 1 and fromSucc
arrived from i + 1. Because an AnonProtocol may depend on the ring size n, impossibility
applies even when n is known to all nodes.
- init : S
Common initial local state shared by all nodes before round
0. - toPred : ℕ → S → M
Message sent counter-clockwise to predecessor
i - 1in roundr. - toSucc : ℕ → S → M
Message sent clockwise to successor
i + 1in roundr. - recv : ℕ → S → M → M → S
Next state after round
rfrom own state, message fromi - 1, and message fromi + 1. - isLeader : S → Bool
Boolean output predicate indicating whether a node declares itself leader.
Embed a unidirectional clockwise anonymous protocol (where each node sends send r s only to
i + 1 and updates solely from its own state and the message received from i - 1) as an
AnonProtocol. The counter-clockwise field toPred is ignored by recv.
From a uniform initial state on Fin n, shifting any node index by + k mod n leaves its
state unchanged after every synchronous round r.
ElectsUniqueLeader is equivalent to unique existence
∃! i, P.isLeader (P.run n r i) = true.
After any round r, the number of leaders in an anonymous n-ring is either 0 or n.
A synchronous-round symmetry step on anonymous oriented rings Fin n (a step towards
Angluin, not the general processor-network covering endpoint): for 2 ≤ n, no
deterministic AnonProtocol—bidirectional or unidirectional, even parameterized by n—elects a
unique leader in any synchronous round r.
Asynchronous FIFO anonymous ring protocols #
A deterministic asynchronous FIFO protocol for an anonymous bidirectional ring.
- init : S
Common initial local state of every node.
- initToPred : List M
Initial messages queued on every outgoing counter-clockwise channel
i → i - 1. - initToSucc : List M
Initial messages queued on every outgoing clockwise channel
i → i + 1. - recvFromPred : S → M → AnonAsyncOut S M
Handler invoked when receiving the head of incoming clockwise channel
i - 1 → i. - recvFromSucc : S → M → AnonAsyncOut S M
Handler invoked when receiving the head of incoming counter-clockwise channel
i + 1 → i. - isLeader : S → Bool
Boolean predicate indicating whether a node declares itself leader.
Cyclically shift an AnonAsyncConfig by + k mod n.
Whether delivery event e is enabled in configuration cfg (its source FIFO queue is
nonempty).
A configuration is uniform (rotationally symmetric) with state s, clockwise queue cs, and
counter-clockwise queue cp at every node.
Sequential clockwise FIFO wave delivering one message to each node 0, 1, …, n - 1 in order.
Sequential counter-clockwise FIFO wave delivering one message to each node
0, -1, -2, … in order (the i ↦ -i reflection of clockwiseWave).
Construct a unidirectional clockwise asynchronous FIFO protocol where messages travel only
along i → i + 1 (each reception from i - 1 produces nextState and outgoing messages
sendSucc).
Initial uniform configuration of P on Fin n.
Deterministic single-event FIFO transition (no-op if the addressed incoming queue is empty).
Execute a finite asynchronous schedule sched starting from cfg.
Labelled transition system of enabled single-message FIFO deliveries on Fin n.
Set of nodes declaring isLeader = true in configuration cfg.
Shifting node indices by + k commutes with any finite asynchronous FIFO schedule on
Fin n.
Helper step for sequential FIFO waves on Fin n: from any uniform configuration, executing a
clockwise wave (when clockwise queues are nonempty) or a counter-clockwise wave (when
counter-clockwise queues are nonempty) is a valid multi-step LTS.MTr trace that leaves the ring
in a uniform configuration.
A sequential-FIFO-wave symmetry step on anonymous oriented rings Fin n (a step towards
Angluin, not the general asynchronous processor-network endpoint): from
P.initConfig n (2 ≤ n), for every target wave count W there exists an enabled multi-step FIFO
trace sched in P.lts n that either completes W nonempty waves or reaches a quiescent terminal
configuration ((P.lts n).IsTerminal), with leader cardinality ≠ 1.