Self-stabilizing labelled transition systems #
This module formalizes self-stabilization over a general labelled transition system Cslib.LTS,
following Dijkstra (p. 643, right column).
Given lts : LTS State Label and a target set Legitimate : Set State of legitimate
configurations, SelfStabilizing lts Legitimate requires:
- Closure (
closed): every transition from a legitimate state produces a legitimate state (requirement (2) on p. 643 of Dijkstra); - Deadlock-freedom (
no_terminal): no state is terminal (∀ s, ¬ lts.IsTerminal s), so at least one transition is enabled in every configuration (implying requirement (1) on p. 643); - Worst-case finite convergence (
converges):CorruptedStep lts Legitimateis well-founded, ruling out infinite executions that remain outsideLegitimateunder any adversarial enabled schedule without fairness assumptions.
Source conditions (3) and (4) on p. 643 of Dijkstra—that each privilege occurs in
some legitimate state (3) and that every pair of legitimate states is mutually reachable by a path
of transitions (4)—are requirements of Dijkstra's legitimate-state specification that lie outside
the scope of this generic SelfStabilizing predicate and are stated separately by concrete
protocol modules where applicable.
From SelfStabilizing, every infinite execution lts.OmegaExecution ss μs enters Legitimate at
some step k₀ and remains in Legitimate at all steps k ≥ k₀
(SelfStabilizing.eventually_legitimate), and every initial state admits at least one infinite
execution (SelfStabilizing.exists_omegaExecution). Conversely, any infinite execution that never
visits Legitimate refutes SelfStabilizing (not_selfStabilizing_of_omegaExecution). We also
provide a worst-case step-bound constructor (SelfStabilizing.of_mTr_bound) and daemon-refinement
transfer from a larger transition relation to a deadlock-free sub-relation
(SelfStabilizing.of_subLTS).
Main definitions #
Cslib.Distributed.SelfStabilization.CorruptedStep: transition steps → s'from an illegitimate states ∉ Legitimate, oriented(s', s)forWellFounded.Cslib.Distributed.SelfStabilization.SelfStabilizing: closure, deadlock-freedom, and well-founded convergence toLegitimate(Dijkstra, p. 643).
Main results #
Cslib.Distributed.SelfStabilization.SelfStabilizing.mTr_mem: multistep forward invariance ofLegitimate.Cslib.Distributed.SelfStabilization.SelfStabilizing.omegaExecution_mem_of_le: persistence ofLegitimatealong infinite executions.Cslib.Distributed.SelfStabilization.SelfStabilizing.eventually_legitimate: everyLTS.OmegaExecutioneventually enters and forever stays inLegitimate.Cslib.Distributed.SelfStabilization.SelfStabilizing.exists_omegaExecution: deadlock-freedom yields an infinite execution starting from every configuration.Cslib.Distributed.SelfStabilization.SelfStabilizing.of_mTr_bound: uniform finite-horizon bound impliesSelfStabilizing.Cslib.Distributed.SelfStabilization.SelfStabilizing.of_subLTS: daemon refinement from a transitions-superset LTS (such as a distributed daemon) to a deadlock-free sub-LTS (such as a central daemon).Cslib.Distributed.SelfStabilization.not_selfStabilizing_of_omegaExecution: an infinite execution avoidingLegitimaterefutesSelfStabilizing.
References #
One transition step from an illegitimate configuration s ∉ Legitimate to s', oriented as
CorruptedStep lts Legitimate s' s so that WellFounded (CorruptedStep lts Legitimate) expresses
the absence of infinite sequences of corrupted transitions s₀ → s₁ → s₂ → ⋯ remaining outside
Legitimate.
A labelled transition system lts is self-stabilizing with respect to Legitimate
(Dijkstra, p. 643, right column) if Legitimate is closed under transitions, no
configuration is terminal, and corrupted transitions outside Legitimate are well-founded.
Requirement (2) of Dijkstra (p. 643): legitimate states are closed under every transition.
- no_terminal (s : State) : ¬lts.IsTerminal s
Deadlock-freedom (Dijkstra, p. 643): every state enables at least one transition.
- converges : WellFounded (CorruptedStep lts Legitimate)
Finite-step convergence (Dijkstra, p. 643): no infinite chain of steps remains outside
Legitimate, under any adversarial scheduler without fairness assumptions.
Every configuration in a self-stabilizing LTS has at least one outgoing transition.
Legitimate is closed under finite multistep transitions LTS.MTr.
Once an infinite execution visits Legitimate at index k₀, every state at k ≥ k₀ stays in
Legitimate.
Every infinite execution of a self-stabilizing LTS reaches Legitimate in finitely many steps
and remains in Legitimate forever thereafter.
Because no state is terminal, every initial state s₀ admits an infinite execution starting at
s₀.
Uniform finite-horizon criterion: if Legitimate is closed under transitions, no state is
terminal, and every B-step execution ends in Legitimate, then lts is self-stabilizing.
Daemon refinement: if every transition of sub is realized by some transition of sup and
sub has no terminal states, then SelfStabilizing sup Legitimate implies
SelfStabilizing sub Legitimate.
Any infinite execution that never visits Legitimate refutes SelfStabilizing.