Determining Existence of Logical Obstructions to the Distributed Task Solvability ††thanks: This article is a revised version of aurthor’s Master’s thesis [Hoshino:Msc22].
Abstract
To study the distributed task solvability, Goubault, Ledent, and Rajsbaum devised a model of dynamic epistemic logic that is equivalent to the topological model for distributed computing. In the logical model, the unsolvability of a particular distributed task can be proven by finding a formula, called logical obstruction. This logical method is very appealing because the concrete formulas that prevent to solve task would have implications of intuitive factors for the unsolvability. However, it has not been well studied when a logical obstruction exists and how to systematically construct a concrete logical obstruction formula, if any. In addition, it is proved that there are some tasks that are solvable but do not admit logical obstructions.
In this paper, we propose a method to prove the non-existence of logical obstructions to the solvability of distributed tasks, based on the technique of simulation. Moreover, we give a method to determine whether a logical obstruction exists or not for a finite protocol and a finite task, and if it exists, construct a concrete obstruction. Using this method, we demonstrate that the language of the standard epistemic logic, without distributed knowledge, does not admit logical obstruction to the solvability of -set agreement tasks. We also show that there is no logical obstruction for multi-round immediate snapshot even in the language of epistemic logic with distributed knowledge. In addition, for the know-all model, we provide a concrete obstruction formula that shows the unsolvability of the -set agreement task.
1 Introduction
For decades, topological models have been used to study the solvability of tasks in distributed computing [DBLP:books/mk/Herlihy2013]. In topological models, the possible configurations in distributed computation are represented by a -colored chromatic simplicial complex, where each vertex is colored by an element taken from , the set of processes. This allows the unsolvability of the -set agreement to be proven by examining the connectivity of the simplicial complex that models the protocol [DBLP:books/mk/Herlihy2013, DBLP:conf/podc/HerlihyR94].
Recently, Goubault, Ledent, and Rajsbaum proposed a model of dynamic epistemic logic (DEL), called simplicial model, as a substitute for the conventional topological model [DBLP:journals/iandc/GoubaultLR21]. In the logical model, the unsolvability of a task by a protocol is shown as follows: 1. Find a formula that expresses some property that does not hold in , a simplicial model for the protocol, but holds in , a simplicial model for the task. 2. Show that is true in but is false in . 3. Apply the knowledge gain theorem to conclude that the task cannot be solved by the protocol. Thus, to prove the unsolvability, we only need to find an appropriate formula . We call such a formula logical obstruction. This logical method is very attractive because it provides a concrete formula that prevents to solve a task, which would contribute to better understanding of unsolvability. In addition, the above procedures 1-3 could be completed without resorting to sophisticated topological tools, such as homotopy group, Nerve lemma, and so on. However, there is no concrete way to obtain logical obstructions, and furthermore, there may be no logical obstruction. Goubault et al. [DBLP:conf/tap/GoubaultLLR19] showed that a certain unsolvable distributed task has no logical obstruction, applying the technique of bisimulation.
So far, concrete instances of logical obstruction have been devised for a limited variations of distributed tasks. Goubault et al. provided instances of logical obstructions for simple tasks such as consensus (or 1-set agreement) and approximate agreement tasks but they left logical obstruction to general -set agreement task as open problem [DBLP:journals/iandc/GoubaultLR21]. Nishida devised a logical obstruction to general -set agreement by extending the logic with modality of distributed knowledge [Nishida:Msc20]. Yagi and Nishimura [DBLP:journals/corr/abs-2011-13630] applied Nishida’s obstruction to show the unsolvability of -set agreement tasks in the superset closed adversary model. However, their logical obstructions to the solvability of -set agreement tasks work for only single-round protocols but not for multiple-round protocols. This is in contrast to the topological method, which can handle multi-round protocols [DBLP:conf/podc/HerlihyR10, DBLP:journals/jacm/HerlihyS99]. The concrete instances mentioned above seem to indicate that the epistemic logic is so weak that the unsolvability is in general hard to be expressed as an obstruction. Indeed there exists an unsolvable task that has no logical obstruction [DBLP:conf/tap/GoubaultLLR19].
In this study, we are concerned with the ability of epistemic logic in expressing the unsolvability. Particularly, we study two languages of epistemic logic, and , and how the additional expressibility of the latter differentiates the ability. The language is the epistemic logic with the standard epistemic modality , a.k.a. knowledge operator; The language extends with additional modality , called distributed knowledge. The logical obstructions given in [Nishida:Msc20, DBLP:journals/corr/abs-2011-13630] suggest that the distributed knowledge provides more logical obstructions to unsolvable tasks, but it does not preclude that and are equally able to define logical obstructions for unsolvable tasks.
In order to answer this question and find a systematic way for constructing logical obstructions, we apply the technique of simulation over simplicial models to argue the existence of logical obstructions. Simulation is a weaker notion of bisimulation between simplicial models. As we will show in a proceeding section, the knowledge gain theorem can be extended for simulations. Moreover, simulation gives a method to determine whether a logical obstruction exists or not for a finite protocol and a finite task, and if it exists, we provide a procedure for constructing a logical obstruction.
The contributions of this paper are the followings.
-
•
Simulation between simplicial models is introduced as a means to show that the usual epistemic language admits no logical obstruction.
-
•
Simulation is extended to incorporate distributed knowledge and provides us a method for proving the non-existence of logical obstruction in the epistemic language with distributed knowledge operator.
-
•
There exists a procedure that determines the existence of logical obstruction for a given pair of a finite protocol and a finite task. Moreover, in case such a logical obstruction exists, the procedure further constructs a concrete obstruction formula systematically.
We will show the following facts to demonstrate the merit of our approach.
-
•
The language , without distributed knowledge, admits no logical obstruction for -set agreement tasks and immediate snapshot protocol, where . Therefore, admits properly larger class of logical obstructions than .
-
•
The language , with distributed knowledge, admits no logical obstruction for -set agreement task and multi-round immediate snapshot protocol, where . Therefore, although admits more logical obstructions than , it still fails to establish the unsolvability, which can be topologically proven.
-
•
We generate a concrete logical obstruction for -set agreement tasks and a protocol in the know-all model [DBLP:journals/tcs/CastanedaFPRRT21].
Task | Protocol | Existence of logical obstruction |
---|---|---|
Consensus | Immediate snapshot | exist in [DBLP:journals/iandc/GoubaultLR21] |
Approximate agreement | Immediate snapshot | exist in unless solvable [DBLP:journals/iandc/GoubaultLR21] |
-set agreement where | Single-round immediate snapshot | exist in [Nishida:Msc20], but not exist in [This paper] |
Multi-round immediate snapshot | not exist in and not exist when in [This paper] | |
Instance of know-all model | exist in unless solvable [This paper] | |
Equality negation with two agents and three input values | Layered message passing | not exist in [DBLP:conf/tap/GoubaultLLR19] |
: the language of epistemic logic with modality of knowledge but without distributed knowledge | ||
: the language of epistemic logic with distributed knowledge | ||
: the language of epistemic logic with modality of knowledge and common knowledge |
The Table 1 summarizes the results of prior works and the present paper.
We notice that the present paper concerns epistemic logic whose atomic propositions can mention solely input values. Epistemic logic with an augmentedset of atomic proposition such as the one proposed in [DBLP:journals/jlap/DitmarschGLLR21] which is more expressive in defining logical obstruction, is out of the scope of the paper.
The rest of the paper is organized as follows. Section 2 defines distributed tasks, protocols, and its solvability with simplicial models of DEL. In Section 3, we introduce the notion of simulation and show that there is no logical obstruction for -set agreement tasks and immediate snapshot protocol in . In Section 4, we reinforce the simulation with distributed knowledge and show that there is no logical obstruction for -set agreement task and multi- round immediate snapshot protocol in when . In Section LABEL:sec_lo_construction, we give a procedure that determines whether a simulation exists or not and further, in case there is no simulation, produce a logical obstruction. Section LABEL:sec_conclusion concludes the paper.
2 Preliminaries
Throughout the paper, we fix a non empty finite set for colors, or agents. We write to denote the set of non-negative integers.
2.1 Simplicial models
In the topological theory of distributed computing, distributed systems are modeled by simplicial complexes. In [DBLP:journals/iandc/GoubaultLR21], it is shown that simplicial complexes provide Kripke models that is suitable for analysis by epistemic logic.
Definition 2.1 (Chromatic simplicial complex).
A chromatic simplicial complex is a triple consisting of a set of vertices, a set of non-empty finite subsets of and a coloring map such that and satisfy the following conditions:
-
•
is closed under inclusion, i.e. and .
-
•
For any vertex , .
-
•
For any simplex , is injective.
Each element of is called a simplex. We write to mean is a simplex of , i.e. . The dimension of a simplex is defined by . A simplex that is maximal with respect to inclusion is called a facet. The set of facets is denoted by . A complex is called pure if all its facets have the same dimension.
In the following, Let be a set of atomic propositions, where is an arbitrary set of input values. For each , .
Definition 2.2 (Simplicial model).
A simplicial model is a pure ()-dimensional chromatic simplicial complex equipped with a labeling map such that .
For each , we define an equivalence relation over , called an indistinguishability relation, by if and only if . Then gives a multi-agent Kripke model of facets being the set of possible worlds.
In abuse of notation, we may write to mean a set of facets in its underlying simplicial complex.
Definition 2.3 (Morphism between simplicial models).
Let , be simplicial models. A morphism is a map from to that satisfies the following conditions:
-
•
For all , ,
-
•
preserves the coloring, i.e. for any and
-
•
preserves the labeling, i.e. for any .
Definition 2.4 (Input simplicial model).
An input simplicial model is a simplicial model where
-
•
,
-
•
if have at most one -colored vertex for each color ,
-
•
and
-
•
.
In the sequel, we assume . Figure 2 shows an example of an input simplicial model, where each color of vertex is illustrated as a color of node.
2.2 Epistemic logic for simplicial models
Definition 2.5 (Epistemic formula).
We define the language of epistemic formulas as follows:
where is an atomic proposition and is an agent.
Definition 2.6.
Given a formula and a facet of a simlicial model , we define the truth of at , written , as below by induction on .
2.3 Protocols, tasks and solvability with DEL
Protocols and tasks in distributed computing are regarded as transformation of the input configuration to the output. In simplicial models, this can be defined as product update.
Definition 2.7 (Simplicial action model and product update).
A simplicial action model, (or an action model for short) is a pure ()-dimensional chromatic simplicial complex equipped with a map . Each facet in is called an action and assigns a precondition formula to each action. In abuse of notation, we may write to mean a set of facets in its underlying simplicial complex.
Let be a simplicial model and be a simplicial action model. A product update model is a simplicial model defined as follows:
-
•
,
-
•
and
-
•
,
where is a subset of the product whose each element is a tuple of a vertex in and a vertex in with the same color.
Definition 2.8 (Task).
A simplicial action model is called a task if there exists an injection such that holds if and only if for any and , where is an arbitrary set of output values, is the set of functions from to .
Example 2.9 (-set agreement task).
We define a task , where , called -set agreement as follows:
-
•
,
-
•
,
-
•
},
-
•
and
-
•
.
This is a well-defined task because there is an injection . In what follows, we write to mean a vertex of . we assume the set of input values for the -set agreement is given by unless otherwise stated. The product update model is as shown in Figure 2, where each color of vertex is illustrated as a color of node and the input and the decision is indicated as .
Using product updates, solvability of distributed tasks is defined as follows.
Definition 2.10 (Solvability).
Let be an input simplicial model. A task is solvable by an action model , if there exists a morphism .
3 Non-existence of logical obstructions
In this section, we consider the following language of positive epistemic formulas:
where is an atomic proposition and is an agent.
3.1 Knowledge gain and logical obstruction
Theorem 3.1 (Knowledge gain [DBLP:journals/iandc/GoubaultLR21]).
Suppose be a morphism between simplicial models. Then, for any facet and positive formula , implies .
Corollary 3.2.
If there exists a morphism , for any positive formula , implies .
Corollary 3.3.
Let be an input simplicial model, be a task and be an action model. If there exists a positive formula such that and , the task is not solvable by .
A positive formula such as the one in the above corollary is called a logical obstruction to the solvability of by . We simply call a logical obstruction when and are clear from the context.
3.2 Knowledge gain via simulation
Definition 3.4 (Simulation).
Suppose and are simplicial models. A simulation of by is a binary relation over the facets of simplicial models that satisfies the following properties.
- (Atom)
-
For all and , implies .
- (Forth)
-
For all , and , if and , there exists such that and .
A simulation is called total if for all , there exists such that . For a facet , we say that is not total at if there is no such that .
Proposition 3.5.
Suppose is a morphism between simplicial models, and define a binary relation by . Then, the is a total simulation.
Proof.
(Atom): By the definition of morphism, preserves labeling, i.e. .
(Forth): Let be facets such that . Then there exists -colored vertex . Since is a color-preserving map, we have and . This implies .
It is clear that is total. ∎
Theorem 3.6.
Suppose be a simulation. Then, for any facets and positive formula , implies .
Proof.
We proceed by induction on .
For the base case, suppose or , where is an atomic proposition. Since satisfies the condition (Atom), we have . This implies .
The cases of conjunction and disjunction are easily shown by induction hypothesis.
For the case of modal operator, suppose . Assuming , we show that holds for any such that . By the condition (Forth), there exists such that and . This implies and also by induction hypothesis. Therefore, . ∎
Corollary 3.7.
If there exists a total simulation of by , for any positive formula , implies .
3.3 Non-existence of logical obstructions to the solvability of by
The (iterated) immediate snapshot is a protocol that characterizes the wait-free asynchronous distributed computation in the read-write shared memory systems [DBLP:conf/podc/BorowskyG92, DBLP:books/mk/Herlihy2013]. The specification of this protocol is as follows. Let be a set of processes and suppose that processes in communicate with each other by iterating the immediate snapshot protocol times. When a process finishes immediate snapshot of -th iteration, it obtains a view where is the view of ’s -th iteration, assuming the view of ’s iteration is the initial input value to . The views of each round satisfy the following properties.
- (Self-inclusion)
-
For all , .
- (Containment)
-
For all , or .
- (Immediacy)
-
For all , implies .
The set of views are equally specified by means of ordered partition. The -iterated immediate snapshot is thus modeled by an action model whose underlying simplicial complex is determined by initial input values and a sequence of ordered partitions.
Definition 3.8.
An ordered partition of is a finite sequence of subsets of such that . We write for the set of all ordered partitions of .
Definition 3.9.
Let be an input simplicial model. We define a set of possible views obtained by communicating -times, by induction on as
-
•
and
-
•
.
Let be an agent. We also define a map , by induction on as
-
•
and
-
•
.
Definition 3.10.
Let be a natural number. We define an action model , for -iterated immediate snapshot protocol as follows:
-
•
,
-
•
if there exists a facet and ordered partitions such that ,
-
•
and
-
•
.
The action model is illustrated in Figure 3, for the case and all process have as input. For instance, let be a facet labeled with . Then, the views of each processes are as follows: and , . This means .
Let be an input simplicial model. The underlying simplicial complex of the product update model is equivalent to the one of the action model up to a simplicial map .
In what follows, we write , in abuse of notation, to mean a vertex of . We also write for a facet .
Definition 3.11.
We define a map as
where is a set of agents and is a family of views such that .
Lemma 3.12.
Let be a facet of an input simplicial model and be ordered partitions of , where . For any and , the following holds:
Proof.
We proceed by induction on . Given an agent , let us write to denote .
For the base case , we have and since for any .
For the case , we have
By induction hypothesis, we obtain
Thus, holds. ∎
The topological model of (iterated) immediate snapshot is studied [DBLP:journals/jacm/HerlihyS99] and it has been shown that the -set agreement task is unsolvable by -round immediate snapshot for any and . It is desirable to have a logical obstruction, but there is no such a formula.
The following theorem shows that admits no logical obstruction to -set agreement for any .
Theorem 3.13.
There is no logical obstruction to the solvability of by in , whenever .
Proof.
Let be a binary relation defined as
(1) | for all , and | |||
(2) | for all , there exists | |||
such that . |
By Corollary 3.7, it suffices to show that is a total simulation.
Let us first show is a simulation.
(Atom): The labeling of facets is given by and . Thus, (Atom) follows from the definition of .
(Forth): Suppose is an agent, are facets of and is a facet of such that and . Let be a facet of the input simplicial complex and be ordered partitions such that , where . Fix an agent .
For all , let us write for an input value and for a view in such that is an -colored vertex in . Similarly, let us write for an -colored vertex in , and for an -colored vertex in .
We define a facet by
Let us write for an -colored vertex in for all as above. Then, we have for all , and for all .
We prove that , and .
It is clear that by definition. Suppose and satisfies both (1) and (2). Then for all , and there exists such that . Because by Lemma 3.12, , where . Hence, we have . These imply if and satisfies both (1) and (2). Therefore, holds because and satisfies the conditions (1) and (2), as shown below.
Since , and for all , . Recall that by definition. Thus, we have . Hence, holds.
Since for all by definition, and satisfies (1). We prove and satisfies (2). For the case , we have by Lemma 3.12. For the other case , since , and , there exists such that . Consequently, we have for all , there exists such that , i.e. and satisfies (2), and . Therefore, (Forth) is satisfied.
To show the totality, suppose is a facet of . Let be a facet of the input model and be ordered partitions such that , where . Fix an agent . We define a facet as . By Lemma 3.12, for all . Thus, we have . This implies that is a total simulation. ∎
We have shown the non-existence of logical obstruction in for cases where . For the case , [DBLP:journals/iandc/GoubaultLR21] have shown that there exists a logical obstruction to the solvability in , an epistemic logic language of positive formulas that extends with common knowledge operator. It is not difficult to see that -set agreement task () admits no logical obstruction in because the simulation technique presented in this section is compatible with common knowledge operators.
4 Non-existence of logical obstructions with distributed knowledge operator
In this section, we consider a language of epistemic logic , which is an extension of with distributed operator , and its sublanguage of positive formulas:
where is an atomic proposition and is a set of agents.
Given a formula and a facet of a simplicial model , we define the truth of at , written , as below by induction on .
Notice that is a special case of where is a singleton set .
4.1 Knowledge gain and a logical obstruction to the solvability of by with distributed knowledge
The knowledge gain theorem holds, even the additional modality of distributed knowledge.
Theorem 4.1 (Knowledge gain with distributed knowledge operator).
Suppose be a morphism between simplicial models. Then, for any facet and positive formula , implies .
Corollary 4.2.
If there exists a morphism , for any positive formula , implies .
Corollary 4.3.
Let be an input simplicial model, be a task and be an action model. If there exists a positive formula such that and , the task is not solvable by .
Thus, we also call a positive formula such as the one in the above corollary, a logical obstruction to the solvability of by , or a logical obstruction, when and are clear from the context.
The following theorem on the unsolvability of the set agreement task by a single round immediate snapshot is due to Nishida [Nishida:Msc20], where he provided a concrete logical obstruction in the language . It has also been shown that the same formula applies to show the unsolvability of the set agreement task by a single round atomic snapshot protocol [DBLP:journals/corr/abs-2011-13630].
Theorem 4.4.
For any , there exists a logical obstruction to the solvability of by in .
4.2 Knowledge gain via D-simulation
In the following, we refine the definition of simulation so that Theorem 3.6 is valid if positive formulas have distributed knowledge operator.
Definition 4.5 (D-simulation).
A binary relation over facets of simplicial models is called a D-simulation of by , if the following conditions hold.
- (Atom)
-
For all and , implies .
- (D-Forth)
-
For all and , if holds, there exists such that and .
A D-simulation is called total if for all , there exists such that . For a facet , we say that is not total at if there is no such that . We occasionally write K-simulation to refer to the simulation defined in Definition 3.4, and as well (K-Forth) to refer to (Forth).
Proposition 4.6.
Suppose is a morphism between simplicial models. Then, a binary relation is a total D-simulation.
Proof.
(Atom): By the definition of morphism, preserves labeling, i.e. .
(D-Forth): Let be facets. It suffices to show that . Suppose . Then there exists an -colored vertex . Since is a color-preserving map, we have and . This implies .
It is clear that is total. ∎
Theorem 4.7.
Suppose is a D-simulation. Then, for any facets and positive formula , implies .
Proof.
This theorem is similarly proved as in Theorem 3.6 by induction on . Let us only show the case of distributed knowledge operator.
Supoose . Assuming , we show that holds for any such that . By the condition (D-Forth), there exists such that and . This implies and also by induction hypothesis. Therefore, . ∎
Corollary 4.8.
If there exists a total D-simulation of by , for any positive formula , implies .
4.3 Non-existence of logical obstructions to the solvability of by
Using a D-simulation, let us argue the unsolvability of the set agreement task for a particular case . We leave the general case as an open problem because D-simulation for higher dimensional model would be much complicated and hard to construct.
The following binary relation defines a set of pairs of two vertices that we will constrain their decision values. Although it was sufficient to constrain each vertex individually when we constructed a K-simulation in Theorem 3.13, we need to consider constraints for each tuple of vertices in order to construct D-simulation.
Definition 4.9.
Let be the set of vertices and be the set of simplices for . For a vertex and an agent , in abuse of notation, we write if there exists such that and otherwise. Given , We define a binary relation for , by induction on as follows.
-
•
if is a 1-simplex of and it holds either or .
-
•
if either or there exists such that , and is a 2-simplex.
We further define a binary relation as .