Abstract
There are many models of distributed computing, and no unifying mathematical framework for considering them all. One way to sidestep this issue is to start with simple communication and fault models, and use them as building blocks to derive the complex models studied in the field. We thus define operations like union, succession or repetition, which makes it easier to build complex models from simple ones while retaining expressivity.
To formalize this approach, we abstract away the complex models and operations in the Heard-Of model. This model relies on (possibly asynchronous) rounds; sequence of digraphs, one for each round, capture which messages sent at a given round are received before the receiver goes to the next round. A set of sequences, called a heard-of predicate, defines the legal communication behaviors – that is to say, a model of communication. Because the proposed operations behave well with this transformation of operational models into heard-of predicates, we can derive bounds, characterizations, and implementations of the heard-of predicates for the constructions.
Keywords: Message-passing, Asynchronous rounds, Failures, Heard-of model
Introduction
Motivation
Let us start with a round-based distributed algorithm; such an algorithm is quite common in the literature, especially in fault-tolerant settings. We want to formally verify this algorithm using the methods of our choice: proof-assistant, model-checking, inductive invariants, abstract interpretation... But how are we supposed to model the context in which the algorithm will run? Even a passing glance at the distributed computing literature shows a plethora of models defined in the mixture of english and mathematics.
Thankfully, there are formalisms for abstracting round-based models of distributed computing. One of these is the Heard-Of model of Charron-Bost and Schiper [4]; it boils down the communication model to a description of all accepted combinations of received messages. Formally, this is done by considering communications graphs, one for each round, and taking the sets of infinite sequences of graphs that are allowed by the model. Such a set is called a heard-of predicate, and captures a communication model.
An angle of attack for verification is therefore to find the heard-of predicate corresponding to a real-world environment, and use the techniques from the literature to verify an algorithm for this heard-of predicate. But which heard-of predicate should be used? What is the “right” predicate for a given environment? For some cases, the predicates are given in Charron-Bost and Schiper [4]; but this does not solve the general case.
Actually, the answer is quite subtle. This follows from a fundamental part of the Heard-Of model: communication-closedness [7]. This means that for p to use a message from q at round r, p must receive it before or during its own round r. And thus, knowing whether p receives the message from q at the right round or not depends on how p waits for messages. That is, it depends on the specifics of how rounds are implemented on top of it.
Once again, the literature offers a solution: Shimi et al. [12] propose to first find a delivered predicate – a description of which messages will eventually be delivered, without caring about rounds –, and then to derive the heard-of predicate from it. This derivation explicitly studies strategies, the aforementioned rules for how processes waits for messages before changing round.
But this brings us back to square one: now we are looking for the delivered predicate corresponding to a real-world model, instead of the heard-of predicate. Basic delivered predicates for elementary failures are easy to find, but delivered predicates corresponding to combinations of failures are often not intuitive.
In this paper, we propose a solution to this problem: building a complex delivered predicate from simpler ones we already know. For example, consider a system where one process can crash and may recover later, and another process can definitively crash. The delivered predicate for at most one crash is
, and the predicate where all the messages are delivered is
. Intuitively, a process that can crash and necessarily recover is described by the behavior of
followed by the behavior of
. We call this the succession of these predicates, and write it
. In our system, the crashed process may never recover: hence we have either the behavior of
or the behavior of
. This amounts to a union (or a disjunction); we write it
. Finally, we consider a potential irremediable crash, additionally to the previous predicate. Thus we want the behavior of
and the behavior of
. We call it the combination (or conjunction) of these predicates, and write it
The complete system is thus described by
. In the following, we will also introduce an operator
to express repetition. For example, a system where, repeatedly, a process can crash and recover is
.
Lastly, the analysis of the resulting delivered predicate can be bypassed: its heard-of predicate arises from our operations applied to the heard-of predicates of the elementary building blocks.
Related Work
The heard-of model was proposed by Charron-Bost and Schiper [4] as a combination of the ideas of two previous work. First, the concept of a fault model where the only information is which message arrives, from Santoro and Widmayer [11]; and second, the idea of abstracting failures in a round per round fashion, from Gafni [8]. Replacing the operational fault detectors of Gafni with the fault model of Santoro and Widmayer gives the heard-of model.
This model was put to use in many ways. Obviously computability and complexity results were proven: new algorithms for consensus in the original paper by Charron-Bost and Schiper [4]; characterizations for consensus solvability by Coulouma et al. [5] and Nowak et al. [10]; a characterization for approximate consensus solvability by Charron-Bost et al. [3]; a study of k set-agreement by Biely et al. [1]; and more.
The clean mathematical abstraction of the heard-of model also works well with formal verification. The rounds provide structure, and the reasoning can be less operational than in many distributed computing abstractions. We thus have a proof assistant verification of consensus algorithms in Charron-Bost et al. [2]; cutoff bounds for the model checking of consensus algorithms by Marić et al. [9]; a DSL to write code following the structure of the heard-of model and verify it with inductive invariants by Drăgoi et al. [6]; and more.
Contributions
The contributions of the paper are:
A definition of operations on delivered predicates and strategies, as well as examples using them in Sect. 2.
The study of oblivious strategies, the strategies only looking at messages for the current round, in Sect. 3. We provide a technique to extract a strategy dominating the oblivious strategies of the built predicate from the strategies of the initial predicates; exact computations of the generated heard-of predicates; and a sufficient condition on the building blocks for the result of operations to be dominated by an oblivious strategy.
The study of conservative strategies, the strategies looking at everything but messages from future rounds, in Sect. 4. We provide a technique to extract a strategy dominating the conservative strategies of the build predicate from the strategies of the initial predicates; upper bounds on the generated heard-of predicates; and a sufficient condition on the building blocks for the result of operations to be dominated by a conservative strategy.
Due to size constraints, many of the complete proofs are not in the paper itself, and can be found in the full paper [13].
Operations and Examples
Basic Concepts
We start by providing basic definitions and intuitions. The model we consider proceed by rounds, where processes send messages tagged with a round number, wait for some messages with this round number, and then compute the next state and increment the round number.
denotes the non-zero naturals.
Definition 1 (Collections and Predicates)
Let
a set of processes. An element of
is either a Delivered collection
c or a Heard-Of collection
h for
, depending on the context.
is the total collection such that
.
An element of
is either a Delivered predicate
PDel or a Heard-Of predicate
PHO for
.
is the total delivered predicate.
For a heard-of collection h, h(r, p) are the senders of messages for round r that p has received at or before its round r, and thus has known while at round r. For a delivered collection c, c(r, p) are the senders of messages for round r that p has received, at any point in time. Some of these messages may have arrived early, before p was at r, or too late, after p has left round r. c gives an operational point of view (which messages arrive), and h gives a logical point of view (which messages are used).
Remark 1
We also regularly use the “graph-sequence” notation for a collection c. Let
be the set of graphs whose nodes are the elements of
. A collection gr is an element of
. We say that c and gr represent the same collection when
, where In(p) is the incoming vertices of p. We will usually not define two collections but use one collection as both kind of objects; the actual type being used in a particular expression can be deduced from the operations on the collection. For example c[r] makes sense for a sequence of graphs, while c(r, p) makes sense for a function.
In an execution, the local state of a process is the pair of its current round and all the received messages up to this point. We disregard any local variable, since our focus is on which messages to wait for. A message is represented by a pair
. For a state q, and a round
, q(r) is the set of peers from which the process has received a message for round r.
Definition 2 (Local State)
Let
. Then
is a local state.
For
, we write q.round for r, q.mes for mes and
.
We then define strategies, which constrain the behavior of processes. A strategy is a set of states from which a process is allowed to change round. It captures rules like “wait for at least F messages from the current round”, or “wait for these specific messages”. Strategies give a mean to constrain executions.
Definition 3 (Strategy)
is a strategy.
Definition of Operations
We can now define operations on predicates and their corresponding strategies. The intuition behind these operations is the following:
The union of two delivered predicates is equivalent to an OR on the two communication behaviors. For example, the union of the delivered predicate for one crash at round r and of the one for one crash at round
gives a predicate where there is either a crash at round r or a crash at round
.The combination of two behaviors takes every pair of collections, one from each predicate, and computes the intersection of the graphs at each round. Meaning, it adds the loss of messages from both, to get both behaviors at once. For example, combining
with itself gives
, the predicate with at most two crashes. Although combination intersects graphs round by round in a local fashion, it actually combines two collections globally, and thus can combine several global predicates like hearing from a given number of process during the whole execution.For succession, the system starts with one behavior, then switch to another. The definition is such that the first behavior might never happen, but the second one must appear.
Repetition is the next logical step after succession: instead of following one behavior with another, the same behavior is repeated again and again. For example, taking the repetition of at most one crash results in a potential infinite number of crash-and-restart, with the constraint of having at most one crashed process at any time.
Definition 4 (Operations on predicates)
Let
be two delivered or heard-of predicates.
The union of
and
is
.The combination
, where for
and
two collections,
.The succession
, with
.The repetition of
,
.
For all operations on predicates, we provide an analogous one for strategies. We show later that strategies for the delivered predicates, when combined by the analogous operation, retain important properties on the result of the operation on the predicates.
Definition 5 (Operations on strategies)
Let
be two strategies.
Their union
the strategy such that
a local state:
.Their combination
, where for
and
at the same round r, 
Their succession
where 
The repetition of
,
}.
The goal is to derive new strategies for the resulting model by applying operations on strategies for the starting models. This allows, in some cases, to bypass strategies, and deduce the Heard-Of predicate for a given Delivered predicate from the Heard-Of predicates of its building blocks.
Executions and Domination
Before manipulating predicates and strategies, we need to define what is an execution: a specific ordering of events corresponding to a delivered collection. An execution is an infinite sequence of either delivery of messages (deliver(r, p, q)), change to the next round (
), or a deadlock (stop). Message sending is implicit after every change of round. An execution must satisfy three rules: no message is delivered before it is sent, no message is delivered twice, and once there is a stop, the rest of the sequence can only be stop.
Definition 6 (Execution)
Let
be a set of n processes. Let the set of transitions
. next
is the transition for j changing round, deliver(r, k, j) is the transition for the delivery to j of the message sent by k in round r, stop models a deadlock. Then,
is an execution

-
(Delivery after sending)

-
(Unique delivery)

-
(Once stopped, forever stopped)

Let c be a delivered collection. Then, execs(c), the executions of
c

For a delivered predicate PDel,
.
Let t be an execution,
and
. The state of p in t after i transitions is 
Notice that such executions do not allow process to “jump” from say round 5 to round 9 without passing by the rounds in-between. The reason is that the Heard-Of model does not give processes access to the decision to change rounds: processes specify only which messages to send depending on the state, and what is the next state depending on the current state and the received messages.
Also, the only information considered here is the round number and the received messages. This definition of execution disregards the message contents and the internal states of processes, as they are irrelevant to the implementation of Heard-Of predicates.
Recall that strategies constrain when processes can change round. Thus, the executions that conform to a strategy change rounds only when allowed by it, and do it infinitely often if possible.
Definition 7 (Executions of a Strategy)
Let f be a strategy and t an execution. t is an execution of
t satisfies:
(All nexts allowed)

(Fairness)

For a delivered predicate PDel,
.
The fairness property can approximately be expressed in LTL as
. Note however that executions are here defined as sequences of transitions, whereas LTL models are sequences of states.
An important part of this definition considers executions where processes cannot necessarily change round after each delivery. That is, in the case of “waiting for at most F messages”, an execution where more messages are delivered than F at some round is still an execution of the strategy. This hypothesis captures the asynchrony of processes, which are not always scheduled right after deliveries. It is compensated by a weak fairness assumption: if a strategy forever allows the change of round, it must eventually happen.
Going back to strategies, not all of them are equally valuable. In general, strategies that block forever at some round are less useful than strategies that don’t – they forbid termination in some cases. The validity of a strategy captures the absence of such an infinite wait.
Definition 8
(Validity). An execution t is valid
.
Let PDel a delivered predicate and f a strategy. f is a valid strategy for PDel
is a valid execution.
Because in a valid execution no process is ever blocked at a given round, there are infinitely many rounds. Hence, the messages delivered before the changes of round uniquely define a heard-of collection.
Definition 9
(Heard-Of Collection of Executions and Heard-Of Predicate of Strategies). Let t be a valid execution.
is the heard-of collection of

Let PDel be a delivered predicate, and f be a valid strategy for PDel. We write
for the heard-of predicate composed of the collections of the executions of f on PDel:
.
Lastly, the heard-of predicate of most interest is the strongest one that can be generated by a valid strategy on the delivered predicate. Here strongest means the one that implies all the other heard-of predicates that can be generated on the same delivered predicate. The intuition boils down to two ideas:
The strongest predicate implies all the heard-of predicates generated on the same PDel, and thus it characterizes them completely.
When seeing predicates as sets, implication is the reverse inclusion. Hence the strongest predicate is the one included in all the others. Less collections means more constrained communication, which means a more powerful model.
This notion of strongest predicate is formalized through an order on strategies and their heard-of predicates.
Definition 10
(Domination). Let PDel be a delivered predicate and let f and
be two valid strategies for PDel. f dominates
for PDel, written
,
.
A greatest element for
is called a dominating strategy for PDel. Given such a strategy f, the dominating predicate for PDel is
.
Examples
We now show the variety of models that can be constructed from basic building blocks. Our basic blocks are the model
with only the collection
where all the messages are delivered, and the model
with at most one crash that can happen at round r.
Definition 11
(At most 1 crash at round r).
.
From this family of predicates, various predicates can be built. Table 1 show some of them, as well as the Heard-Of predicates computed for these predicates based on the results from Sect. 3.3 and Sect. 3.4. For example the predicate with at most one crash
If a crash happens, it happens at one specific round r. We can thus build
from a disjunction for all values of r of the predicate with at most one crash at round r; that is, by the union of
for all r.
Table 1.
A list of delivered predicate built using our operations, and their corresponding heard-of predicate. The
operator is defined in Definition 16.
| Description | Expression | HO | Proof |
|---|---|---|---|
| At most 1 crash | ![]() |
![]() |
[12] |
| At most F crashes | ![]() |
![]() |
[12] |
| At most 1 crash, which will restart | ![]() |
![]() |
Theorem 4 |
| At most F crashes, which will restart | ![]() |
![]() |
Theorem 4 |
| At most 1 crash, which can restart |
|
![]() |
Theorem 4 |
| At most F crashes, which can restart |
|
![]() |
Theorem 4 |
| No bound on crashes and restart, with only 1 crash at a time | ![]() |
![]() |
Theorem 4 |
| No bound on crashes and restart, with max F crashes at a time | ![]() |
![]() |
Theorem 4 |
| At most 1 crash, after round r | ![]() |
![]() |
Theorem 10 |
| At most F crashes, after round r | ![]() |
![]() |
Theorem 10 |
| At most F crashes with no more than one per round |
|
![]() |
Theorem 10 |
Families of Strategies
Strategies as defined above are predicates on states. This makes them incredibly expressive; on the other hand, this expressivity creates difficulty in reasoning about them. To address this problem, we define families of strategies. Intuitively, strategies in a same family depend on a specific part of the state – for example the messages of the current round. Equality of these parts of the state defines an equivalence relation; the strategies of a family are strategies on the equivalence classes of this relation.
Definition 12 (Families of strategies)
Let
. The family of strategies defined by
,
.
Oblivious Strategies
The simplest non-trivial strategies use only information from the messages of the current round. These strategies that do not remember messages from previous rounds, do not use messages in advance from future rounds, and do not use the round number itself. These strategies are called oblivious. They are simple, the Heard-Of predicates they implement are relatively easy to compute, and they require little computing power and memory to implement. Moreover, many examples above are dominated by such a strategy. Of course, there is a price to pay: oblivious strategies tend to be coarser than general ones.
Minimal Oblivious Strategy
An oblivious strategy is defined by the different subsets of
from which it has to receive a message before allowing a change of round.
Definition 13 (Oblivious Strategy)
Let obliv be the function such that
. Let
the equivalence relation defined by
. The family of oblivious strategies is
. For f an oblivious strategy, let
. It uniquely defines f.
We will focus on a specific strategy, that dominates the oblivious strategies for a predicate. This follows from the fact that it waits less than any other valid oblivious strategy for this predicate.
Definition 14 (Minimal Oblivious Strategy)
Let PDel be a delivered predicate. The minimal oblivious strategy for PDel is
.
Lemma 1 (Domination of Minimal Oblivious Strategy)
Let PDel be a PDel and
be its minimal oblivious strategy. Then
is a dominating oblivious strategy for PDel.
Proof (Proof idea)
is valid, because for every possible set of received messages in a collection of PDel, it accepts the corresponding oblivious state by definition of minimal oblivious strategy. It is dominating among oblivious strategies because any other valid oblivious strategy must allow the change of round when
does it: it contains
. If an oblivious strategy does not contain
, then there is a collection of PDel in which at a given round, a certain process might receive exactly the messages for the oblivious state accepted by
and not by f. This entails that f is not valid.
Operations Maintain Minimal Oblivious Strategy
As teased above, minimal oblivious strategies behave nicely under the proposed operations. That is, they give minimal oblivious strategies of resulting delivered predicates. One specificity of minimal oblivious strategies is that there is no need for the succession operation on strategies, nor for the repetition. An oblivious strategy has no knowledge about anything but the messages of the current round, and not even its round number, so it is impossible to distinguish a union from a succession, or a repetition from the initial predicate itself.
Theorem 1 (Minimal Oblivious Strategy for Union and Succession)
Let
be two delivered predicates,
and
the minimal oblivious strategies for, respectively,
and
. Then
is the minimal oblivious strategy for
and
.
Proof (Proof idea)
Structurally, all proofs in this section consist in showing equality between the strategies resulting from the operations and the minimal oblivious strategy for the delivered predicate.
For a union, the messages that can be received at each round are the messages that can be received at each round in the first predicate or in the second. This is also true for succession. Given that
and
are the minimal oblivious strategies of
and
, they accept exactly the states with one of these sets of current messages. And thus
is the minimal oblivious strategy for
and
.
Theorem 2 (Minimal Oblivious Strategy for Repetition)
Let PDel be a delivered predicate, and f be its minimal oblivious strategy. Then f is the minimal oblivious strategy for
.
Proof (Proof idea)
The intuition is the same as for union and succession. Since repetition involves only one PDel, the sets of received messages do not change and f is the minimal oblivious strategy.
For combination, a special symmetry hypothesis is needed.
Definition 15 (Totally Symmetric PDel)
Let PDel be a delivered predicate. PDel is totally symmetric

Combination is different because combining collections is done round by round. As oblivious strategies do not depend on the round, the combination of oblivious strategies creates the same combination of received messages for each round. We thus need these combinations to be independent of the round – to be possible at each round – to reconcile those two elements.
Theorem 3 (Minimal Oblivious Strategy for Combination)
Let 
be two totally symmetric delivered predicates,
and
the minimal oblivious strategies for, respectively,
and
. Then
is the minimal oblivious strategy for
.
Proof (Proof idea)
The oblivious states of
are the combination of an oblivious state of
and of one of
at the same round, for the same process. Thanks to total symmetry, this translates into the intersection of any oblivious state of
with any oblivious state of
. Since
and
are the minimal oblivious strategy, they both accept exactly the oblivious states of
and
respectively. Thus,
accept all combinations of oblivious states of
and
, and thus is the minimal oblivious strategy of
.
Computing Heard-of Predicates
The computation of the heard-of predicate generated by an oblivious strategy is easy thanks to a characteristic of this HO: it is a product of sets of possible messages.
Definition 16 (Heard-Of Product)
Let
. The heard-of product generated by S,
.
Lemma 2 (Heard-Of Predicate of an Oblivious Strategy)
Let PDel be a delivered predicate containing
and let f be a valid oblivious strategy for PDel. Then
.
Proof
Proved in [12, Theorem 20, Section 4.1].
Thanks to this characterization, the heard-of predicate generated by the minimal strategies for the operations is computed in terms of the heard-of predicate generated by the original minimal strategies.
Theorem 4 (Heard-Of Predicate of Minimal Oblivious Strategies)
Let
be delivered predicates containing
. Let
be their respective minimal oblivious strategies. Then:

.If
or
are totally symmetric,
.
.
Proof (Proof idea)
We apply Lemma 2. The containment of
was shown in the proof of Theorem 5. As for the equality of the oblivious states, it follows from the intuition in the proofs of the minimal oblivious strategy in the previous section.
Domination by an Oblivious Strategy
From the previous sections, we can compute the Heard-Of predicate of the dominating oblivious strategies for our examples. We first need to give the minimal oblivious strategy for our building blocks
and
.
Definition 17
(Waiting for
messages). The strategy to wait for
messages is: 
For all
,
is the minimal oblivious strategy for
(shown by Shimi et al. [12, Thm. 17]). For
, since every process receives all the messages all the time, the strategy waits for all the messages (
).
Using these strategies, we deduce the heard-of predicates of dominating oblivious strategies for our examples.
-
For
, the minimal oblivious strategy
. This entails that
. -
For
, the minimal oblivious strategy
. This entails that
. -
For
the minimal oblivious strategy
. This entails that
.
The computed predicate is the predicate of the dominating oblivious strategy. But the dominating strategy might not be oblivious, and this predicate might be too weak. The following result shows that
and
satisfy conditions that imply their domination by an oblivious strategy. Since these conditions are invariant by our operations, all PDel constructed with these building blocks are dominated by an oblivious strategy.
Theorem 5 (Domination by Oblivious for Operations)
Let PDel,
be delivered predicates that satisfy:
(Total collection) They contains the total collection
,(Symmetry up to a round)
a collection in the predicate,
a collection in the predicate: 
Then
,
,
,
satisfy the same two conditions and are dominated by oblivious strategies.
Both
from Table 1 and
satisfy this condition. So do all the first 8 examples from Table 1, since they are built from these two.
Conservative Strategies
We now broaden our family of considered strategies, by allowing them to consider past and present rounds, as well as the round number itself. This is a generalization of oblivious strategies, that tradeoff simplicity for expressivity, while retaining a nice structure. Even better, we show that both our building blocks and all the predicates built from them are dominated by such a strategy. For the examples then, no expressivity is lost.
Minimal Conservative Strategy
Definition 18 (Conservative Strategy)
Let cons be the function such that
. Let
the equivalence relation defined by
. The family of conservative strategies is
. We write
for the set of conservative states in f. This uniquely defines f.
In analogy with the case of oblivious strategies, we can define a minimal conservative strategy of PDel, and it is a strategy dominating all conservative strategies for this delivered predicate.
Definition 19 (Minimal Conservative Strategy)
Let PDel be a delivered predicate. The minimal conservative strategy for PDel is
the conservative strategy such that
.
Lemma 3 (Domination of Minimal Conservative Strategy)
Let PDel be a delivered predicate and
be its minimal conservative strategy. Then
dominates the conservative strategies for PDel.
Proof (Proof idea)
Analogous to the case of minimal oblivious strategies: it is valid because it allows to change round for each possible conservative state (the round and the messages received for this round and before) of collections in PDel. And since any other valid conservative strategy f must accept these states (or it would block forever in some execution of a collection of PDel), we have that f contains
and thus that
dominates f.
Operations Maintain Minimal Conservative Strategies
Like oblivious strategies, minimal conservative strategies give minimal conservative strategies of resulting delivered predicates.
Theorem 6 (Minimal Conservative Strategy for Union)
Let
be two delivered predicates,
and
the minimal conservative strategies for, respectively,
and
. Then
is the minimal conservative strategy for
.
Proof (Proof idea)
A prefix of a collection in
comes from either
or
, and thus is accepted by
or
. And any state accepted by
corresponds to some prefix of
or
.
For the other three operations, slightly more structure is needed on the predicates. More precisely, they have to be independent of the processes. Any prefix of a process p in a collection of the predicate is also the prefix of any other process q in a possibly different collection of the same PDel. Hence, the behaviors (fault, crashes, loss) are not targeting specific processes. This restriction fits the intuition behind many common fault models.
Definition 20 (Symmetric PDel)
Let PDel be a delivered predicate. PDel is symmetric

Theorem 7 (Minimal Conservative Strategy for Combination)
Let
be two symmetric delivered predicates,
and
the minimal conservative strategies for, respectively,
and
. Then
is the minimal conservative strategy for
.
Proof (Proof idea)
Since
and
are the minimal conservative strategies of
and
,
is the set of the conservative states of prefixes of
and
is the set of the conservative states of prefixes of
. Also, the states accepted by
are the combination of the states accepted by
and the states accepted by
. And the prefixes of
are the prefixes of
combined with the prefixes of
for the same process. Thanks to symmetry, we can take a prefix of
and any process, and find a collection such that the process has that prefix. Therefore the combined prefixes for the same process are the same as the combined prefixes of
and
. Thus,
is the set of conservative states of prefixes of
, and
is its minimal conservative strategy.
Theorem 8 (Minimal Conservative Strategy for Succession)
Let
be two symmetric delivered predicates,
and
the minimal conservative strategies for, respectively,
and
. Then
is the minimal conservative strategy for
.
Proof (Proof idea)
Since
and
are the minimal conservative strategies of
and
,
is the set of the conservative states of prefixes of
and
is the set of the conservative states of prefixes of
. Also, the states accepted by
are the succession of the states accepted by
and the states accepted by
. And the prefixes of
are the successions of prefixes of
and prefixes of
for the same process. But thanks to symmetry, we can take a prefix of
and any process, and find a collection such that the process has that prefix.
Therefore the succession of prefixes for the same process are the same as the succession of prefixes of
and
. Thus,
is the set of conservative states of prefixes of
, and is therefore its minimal conservative strategy.
Theorem 9 (Minimal Conservative Strategy for Repetition)
Let PDel be a symmetric delivered predicate, and f be its minimal conservative strategy. Then
is the minimal conservative strategy for
.
Proof (Proof idea)
The idea is the same as in the succession.
Computing Heard-Of Predicates
Here we split from the analogy with oblivious strategies: the heard-of predicate of conservative strategies is hard to compute, as it depends in intricate ways on the delivered predicate itself.
Yet it is still possible to compute interesting information on this HO: upper bounds. These are overapproximations of the actual HO, but they can serve for formal verification of LTL properties. Indeed, the executions of an algorithm for the actual HO are contained in the executions of the algorithm for any overapproximation of the HO, and LTL properties must be true for all executions of the algorithm. So proving the property on an overapproximation also proves it on the actual HO.
Theorem 10 (Upper Bounds on HO of Minimal Conservative Strategies)
Let
be delivered predicates containing
. Let
be their respective minimal conservative strategies, and
be their respective minimal oblivious strategies. Then:
.
.
.
.
Proof (Proof idea)
These bounds follow from the fact that an oblivious strategy, is a conservative strategy, and thus the minimal conservative strategy dominates the minimal oblivious strategy.
Conclusion
To summarize, we propose operations on delivered predicates that allow the construction of complex predicates from simpler ones. The corresponding operations on strategies behave nicely regarding dominating strategies, for the conservative and oblivious strategies. This entails bounds and characterizations of the dominating heard-of predicate for the constructions.
What needs to be done next comes in two kinds: first, the logical continuation is to look for constraints on delivered predicates for which we can compute the dominating heard-of predicate of conservative strategies. More ambitiously, we will study strategies looking in the future, i.e. strategies that can take into account messages from processes that have already reached a strictly higher round than the recipient. These strategies are useful for inherently asymmetric delivered predicates. For example, message loss is asymmetric, in the sense that we cannot force processes to receive the same set of messages.
Funding
This work was supported by project PARDI ANR-16-CE25-0006.
Contributor Information
Alexey Gotsman, Email: alexey.gotsman@imdea.org.
Ana Sokolova, Email: anas@cs.uni-salzburg.at.
Adam Shimi, Email: adam.shimi@irit.fr.
Aurélie Hurault, Email: aurelie.hurault@irit.fr.
Philippe Queinnec, Email: philippe.queinnec@irit.fr.
References
- 1.Biely M, Robinson P, Schmid M, Schwarz U, Winkler K. Gracefully degrading consensus and k-set agreement in directed dynamic networks. Theor. Comput. Sci. 2018;726:41–77. doi: 10.1016/j.tcs.2018.02.019. [DOI] [Google Scholar]
- 2.Charron-Bost B, Debrat H, Merz S. Formal verification of consensus algorithms tolerating malicious faults. In: Défago X, Petit F, Villain V, editors. Stabilization, Safety, and Security of Distributed Systems; Heidelberg: Springer; 2011. pp. 120–134. [Google Scholar]
- 3.Charron-Bost B, Függer M, Nowak T. Approximate consensus in highly dynamic networks: the role of averaging algorithms. In: Halldórsson MM, Iwama K, Kobayashi N, Speckmann B, editors. Automata, Languages, and Programming; Heidelberg: Springer; 2015. pp. 528–539. [Google Scholar]
- 4.Charron-Bost B, Schiper A. The heard-of model: computing in distributed systems with benign faults. Distrib. Comput. 2009;22(1):49–71. doi: 10.1007/s00446-009-0084-6. [DOI] [Google Scholar]
- 5.Coulouma É, Godard E, Peters J. A characterization of oblivious message adversaries for which consensus is solvable. Theor. Comput. Sci. 2015;584:80–90. doi: 10.1016/j.tcs.2015.01.024. [DOI] [Google Scholar]
- 6.Drăgoi C, Henzinger TA, Zufferey D. PSync: a partially synchronous language for fault-tolerant distributed algorithms. SIGPLAN Not. 2016;51(1):400–415. doi: 10.1145/2914770.2837650. [DOI] [Google Scholar]
- 7.Elrad T, Francez N. Decomposition of distributed programs into communication-closedlayers. Sci. Comput. Program. 1982;2(3):155–173. doi: 10.1016/0167-6423(83)90013-8. [DOI] [Google Scholar]
- 8.Gafni, E.: Round-by-round fault detectors (extended abstract): unifying synchrony and asynchrony. In: 17th ACM Symposium on Principles of Distributed Computing, PODC 1998, pp. 143–152 (1998). 10.1145/277697.277724
- 9.Marić O, Sprenger C, Basin D. Cutoff bounds for consensus algorithms. In: Majumdar R, Kunčak V, editors. Computer Aided Verification; Cham: Springer; 2017. pp. 217–237. [Google Scholar]
- 10.Nowak, T., Schmid, U., Winkler, K.: Topological characterization of consensus under general message adversaries. In: 2019 ACM Symposium on Principles of Distributed Computing, PODC 2019 (2019). 10.1145/3293611.3331624
- 11.Santoro N, Widmayer P. Time is not a healer. In: Monien B, Cori R, editors. STACS 89; Heidelberg: Springer; 1989. pp. 304–313. [Google Scholar]
- 12.Shimi, A., Hurault, A., Quéinnec, P.: Characterizing asynchronous message-passing models through rounds. In: 22nd International Conference on Principles of Distributed Systems (OPODIS 2018), pp. 18:1–18:17 (2018). 10.4230/LIPIcs.OPODIS.2018.18
- 13.Shimi, A., Hurault, A., Queinnec, P.: Derivation of heard-of predicates from elementary behavioral patterns (2020). arXiv:2004.10619

























