Partial Product Updates for Agents of Detectable Failure and Logical Obstruction to Task Solvability
Abstract
The logical method proposed by Goubault, Ledent, and Rajsbaum provides a novel way to show the unsolvability of distributed tasks by means of a logical obstruction, which is an epistemic logic formula describing the reason of unsolvability. In this paper, we introduce the notion of partial product update, which refines that of product update in the original logical method, to encompass distributed tasks and protocols modeled by impure simplicial complexes. With this extended notion of partial product update, the original logical method is generalized so that it allows the application of logical obstruction to show unsolvability results in a distributed environment where the failure of agents is detectable. We demonstrate the use of the logical method by giving a concrete logical obstruction and showing that the consensus task is unsolvable by the single-round synchronous message-passing protocol.
1 Introduction
The solvability of distributed tasks is a fundamental problem in the theory of distributed computing, and several proof methods for showing unsolvability have been developed. The most classical is based on the valency argument [2, 5]: If we assume the solvability of a task, it implies a contradictory set of outputs to be produced along concurrent execution paths. Another method is the one that uses the topological model [6]: In the topological method, the computation of a distributed task or a protocol is modeled by a function over simplicial complexes representing the nondeterministic sets of states of concurrently running agents, and the unsolvability of a task is demonstrated by a topological inconsistency that is implied by a hypothetical existence of a solution to the task.
In addition to these precursors, a new method, called the logical method, has recently been proposed by Goubault, Ledent, and Rajsbaum [3]. They proposed to discuss the structure of distributed computation in a Kripke model of epistemic knowledge, which is derived from the topological model of simplicial complex. They formulated the distributed task and protocol using the so-called product update models, which originate from the study of dynamic epistemic logic [11]. The logical method provides a novel way to show the unsolvability of distributed tasks: The unsolvability follows from a logical obstruction, i.e., a formula that describes the reason for the unsolvability in the formal language of epistemic logic.
Their logical method, however, only applies to the tasks and protocols where the possible failure of distributed agents is insignificant for the discussion of unsolvability. The semantics of epistemic logic is given by the so-called epsistemic models, where an epistemic model is a Kripke model whose possible worlds are structured by equivalence relations over them. They also showed that the epistemic models used in the logical method and the pure simplicial complexes used in the topological method are isomorphic models. The purity means that each facet is of the same dimension, that is, each possible global state of a distributed system consists of the same number of live agents.
This implies that the epistemic models in [3] are unaware of failures, since we need impure simplicial complexes to model ‘dead’ agents that are missing from a facet. Despite the innocence of failure, the epistemic models can argue certain significant unsolvability results, including those for the consensus task and -set agreement tasks by a wait-free protocol in an asynchronous environment, where a ‘dead’ agent can be regarded as just infinitely slow in execution. (See Section 1.1.3 of [8] for further discussion.)
Later in [4], the same authors devised partial epistemic models, whose possible worlds are structured by partial equivalence relations (PERs), which are subordinate equivalence relations that are not necessarily reflexive, and argued that partial epistemic models are appropriate for modeling the possible failure of agents. Partial epistemic models inherit several virtues from epistemic models. They are isomorphic to the topological model of impure simplicial complexes; They provide the semantics for the epistemic logic with axiom system , as so do epistemic models for axiom system [1, 11]; Furthermore, they enjoy the knowledge gain property, which states that the knowledge expressed by an adequate class of formulas never increases along a morphism over the models.
However, the framework of logical method has not been presented for partial epistemic models in [4]. The notion of product update relevant to partial epistemic models is needed for the definition of task solvability, but they did not present it.
In this paper, we introduce the notion of partial product update, which refines the original product update [3]. Using partial product update models, we give a logical definition of task solvability and thereby provide the logical method for proving task unsolvability. Furthermore we present a concrete logical obstruction and show that the consensus task is not solvable by the synchronous message passing protocol [7].
The partial product update model refines the original model to allow coherent definitions of distributed tasks and protocols in a distributed environment in which the exact set of dead agents is detectable. In a product update model of [3], a task or a protocol is specified by a set of products where an action in represents a possible output for the input in the input model . In contrast, in partial epistemic models, an action should be associated with not necessarily a single input but with a set of inputs that are indistinguishable by the agents that are alive in . For this, we define a partial product update model as a set of products of the form , where is an appropriate equivalence class of determined with respect to the set of agents that are alive in .
Using partial product update models, we define task solvability by the existence of a morphism that mediates the partial product update model of a protocol and that of a task. We will show that this definition is equivalent to the topological definition of task solvability in the following sense: Given a task and a protocol as functions over simplicial complexes, we derive an action model and a partial product update model for each of them. Then a simplicial map that defines the solvability in the topological model exists if and only if a mediating morphism over partial epistemic models exists. This definition of task solvability using partial product updates refines the one using product updates so that it allows a detectable set of failed agents. Furthermore, likewise in [3], it provides the logical method that allows a logical obstruction to show the unsolvability of a task.
We demonstrate the use of logical obstruction in partial product update models by showing that the consensus task is unsolvable by the single-round synchronous message passing protocol. In the synchronous message passing protocol [7], each agent sends copies of its local value to other agents synchronously. Unlike wait-free protocols in an asynchronous environment, a crash of an agent in a synchronous environment is detectable by other live agents, since the failure of message delivery from a dead agent can be detected within a bounded period of time. This gives rise to an impure simplicial complex model, as depicted in Figure 1. In order to argue unsolvability for such an impure simplicial complex in partial epistemic model, we construct a partial product update from an action model whose actions are represented by posets of rank at most . We present a concrete epistemic logic formula that serves as a logical obstruction that refutes the solvability of the consensus task.

We note that the previous work [7] analyzes more precisely the (un)solvability of -set agreement tasks by the -round synchronous message passing protocol, for varying and , using the topological method. In the present paper, we only demonstrate the unsolvability of the consensus task (i.e., the -set agreement task) by the single-round synchronous message passing protocol. To show the other unsolvability results, we would need to further refine the logical method presented in this paper, as it has been done for the logical method in asynchronous environments, e.g., [9, 12].
The rest of the paper is organized into the following sections. Section 2 reviews the two previous models of distributed computing, namely, the topological models and the epistemic models. In Section 3, we introduce the notion of partial product update and give the definition of task solvability in partial epistemic models. We also show that this definition of task solvability is equivalent to the standard one given in terms of the topological method. (The formal proof of the equivalence is given in Appendix A.) Section 4 defines the partial product update model for the synchronous message passing protocol, where the action model consists of actions that are represented by posets of rank at most . Section 5 gives a concrete logical obstruction and proves that the consensus task is not solvable by the single-round synchronous message passing protocol. Finally Section 6 concludes the paper and indicates the direction of future research.
2 Partial Epistemic Model for Epistemic Logic
Throughout this paper, we assume a distributed system consisting of () agents, which are distinguished by the identifiers taken from the set . We say ‘agent ’ to refer to the agent with id .
2.1 Topological model of distributed computing
In the topological method [6], distributed systems are modeled by simplicial complexes. A global state of a distributed system is modeled by a simplex, i.e., a nonempty set of vertexes, where each vertex represents the local state of a particular agent. The nonderteministic set of global states of a distributed system is modeled by a simplicial complex, a set of simplexes that is closed under set inclusion. The topological model uses the so called chromatic simplicial complex, whose vertexes are properly ‘colored’ with agent ids.
Definition 2.1 (chromatic simplicial complex).
A chromatic simplicial complex is a triple consisting of a set of vertexes, a set of simplexes, and a coloring map that satisfy:
-
•
is the set of simplexes, i.e., a set of nonempty subsets of such that and implies ;
-
•
For every and , implies .
For brevity, we often write complexes (resp., simplexes) to mean chromatic simplicial complexes (resp., chromatic simplexes).
A simplex is of dimension , if . The dimension of a complex is the maximum dimension of the simplexes contained in . A simplex is called a facet of , if is a maximal simplex, i.e., contains no facet that is properly larger than . We write for the set of facets of . A complex is called pure (of dimension ) if all facets are of the same dimension ; otherwise, the complex is called impure. An impure complex contains a facet of dimension less than . Such a facet represents a global state of the distributed system where some agents are ‘dead’ due to crash.
Given complexes and , a simplicial map is a color-preserving map from to such that:
-
•
for every ;
-
•
for every .
2.2 Partial epistemic model semantics for epistemic logic
We are concerned with the analysis of distributed computability with epistemic logic [1], a propositional logic augmented with a knowledge modality.
Definition 2.2 (The syntax of epistemic logic).
We assume the set is a disjoint union of atomic propositions indexed by agents, i.e., . For , we write for the set of atomic propositions concerning the subset of agents.
The set of epistemic logic formulas are defined by the following BNF grammar:
As usual, the implication is logically equivalent to and to , for some . For a finite set of formulas , we write for and for .
For and , we write to abbreviate the formula and also to abbreviate . The formula (resp., ) is intended to describe that agent (resp., all agents in ) are alive.
In the subsequent discussion, we are concerned with a particular subclass of formulas, called guarded positive epistemic formulas, given by:
where ranges over pure propositional formulas whose atomic formulas are restricted to those concerning agents in , namely,
Following [4], below we define the semantics of epistemic logic in a partial epistemic model.
Definition 2.3 (partial epistemic model).
A partial epistemic frame is a pair consisting of:
-
•
A nonempty finite set of possible worlds;
-
•
An indistinguishability relation , which is a family of binary relations over where each is a partial equivalence relation (PER), i.e., is a symmetric and transitive, but not necessarily reflexive relation.
A partial epistemic model is a triple that augments a partial epistemic frame with a function . The function assigns a set of true atomic propositions to each world .
When holds in a partial epistemic model, it means that agent is alive in both of the possible worlds and and it cannot distinguish between these worlds. Particularly, implies that an agent is dead in a possible world . We write for the set of agents that is alive in , i.e., . For , we also write to mean for every .
Partial epistemic models generalize the usual epistemic models: Indistinguishability relations are given by equivalence relations instead of PERs, which means that every agent is alive in epistemic models.
Definition 2.4.
Let be a partial epistemic model. Given and , the satisfaction relation , which reads is true in the possible world of , is defined by induction on the structure of as follows.
We write to mean is valid in , i.e., for every .
Partial epistemic models form a category whose objects are partial epistemic models and morphisms are the functions defined as follows. A morphism from to is a function satisfying the following properties:
-
•
(Preservation of ) For all and , implies for every and .
-
•
(Saturation) For all , there exists such that , where is a saturation, the set of all possible worlds that cannot be distinguished from by any agent .
-
•
(Preservation of atomic formulas) For all and , .
In order to show unsolvability results in this paper, we will use the knowledge gain property, which states that the amount of knowledge is never increased along a morphism from one Kripke model to another. For partial epistemic models, the knowledge gain property holds for any guarded positive formula [4].
Proposition 2.5 (knowledge gain).
Let and be partial epistemic models. Let be a morphism such that for all and . Then implies for any guarded positive epistemic formula .
2.3 Simplicial models and the equivalence with partial epistemic models
From the topological structure of a given (not necessarily pure) simplicial complex, we can derive simplicial models [4].
Definition 2.6 (simplicial models).
A simplicial model is a quadruple consisting of:
-
•
The triple of the underlying complex;
-
•
The labeling that assigns a set of atomic propositions to each facet of the complex.
The set of atomic propositions determines the local states of agents in a given global state represented by .
From a simplicial model , we can derive a partial epistemic model such that
-
•
The set of possible worlds is , the set of facets of the complex ;
-
•
The indistinguishability relation is defined by if and only if . That means, the facets and sharing a common vertex of color are indistinguishable by the agent ;
-
•
The labeling on possible worlds is defined by for each .
The partial epistemic model derived from a simplicial model in this way is a proper Kripke model. A Kripke model is called proper if implies for all . It has been shown that the category of proper partial epistemic models is equivalent to the category of simplicial models [4], where a morphism from to in is a simplicial map satisfying for every and such that .
Due to this equivalence, in the sequel we will occasionally confuse simplicial models with proper partial epistemic models. We regard facets of a complex , say , as possible worlds of the corresponding partial epistemic model and argue the indistinguishability by the property of the facets. For example, in a partial equivalence model is interpreted as ; The notation , which denotes the set of live agents in a facet of a simplicial model, is given by .
Example 2.1.
Figure 2 depicts a simplicial model (on the left) and its corresponding partial epistemic model (on the right) for agents with colors . In the figure, agents , , and are represented by colored nodes , , and , respectively. Throughout the paper, we will follow this coloring convention.
For each , the facet in the simplicial model corresponds to the possible world in the partial epistemic model and they have the same set of atomic propositions, i.e., . If a pair of facets and share a node of color , the corresponding possible worlds and are connected by an edge associated with a node of color , meaning that . Particularly, each possible world has a self-loop colored by if and only if the agent is alive in , that is, the corresponding facet contains a vertex colored by .
3 Partial Product Update and Task Solvability
In [3], product update is used to define distributed tasks and protocols. A product update model is an epistemic model where each possible world is a pair of a facet of the complex and an action of the action model such that the action stands for a possible output for the input . Task solvability is then defined by the existence of a morphism from the product update model of the protocol to that of the task.
We introduce a generalized construction called partial product update, which applies to partial epistemic models, and thereby refine the logical method so that it can be applied to a larger class of task solvability problem in which agents may die.
3.1 Partial product update
Definition 3.1 (action model).
An action model is a triple consisting of:
-
•
A partial epistemic frame , where each is called an action;
-
•
A function that assigns an epistemic formula , called the precondition, to each action .
The precondition describes the condition for the action to occur.
Definition 3.2 (partial product update).
Let be a partial epistemic model and be an action model, both having a proper partial epistemic frame. A partial product update of by , written , is a partial epistemic model defined by:
-
•
,
-
•
iff and , and
-
•
,
where is the set of facets defined by .
Proposition 3.3.
The partial product update is a partial epistemic model. In particular, if both and are proper, so is .
Proof.
Let be a triple, which is constructed from a partial epistemic model and an action model , as in Definition 3.2.
Let us first show that the relation is well-defined, that is, the choice of facet in does not affect the relation. Suppose , , and . By the definition, , , , , , and . Since , we have for all . Similarly, for all . Hence and therefore .
We show that is a partial epistemic model. It suffices to show that every is a PER. This follows immediately from the symmetry and transitivity of and .
Suppose and are both proper models. We show that is a proper model. Assume are possible worlds such that , which implies or . It suffices to show that there exists an agent such that . If , since is proper, for some . Thus, . Suppose otherwise, i.e., . We may assume, without loss of generality, that for some . This implies and . Hence, implies for some agent . Therefore we have . ∎
The original product update [3] is an instance of the partial product update . When the indistinguishability relations of both and are equivalence relations, rather than partial equivalence relations, and is proper, every possible world in can be identified with in . This is because , since for all and is proper.
3.2 Task solvability in partial product update models
In the sequel, we assume that the set of atomic propositions is given by with for each , where is the set of possible input values. Without loss of generality, we may assume that the set of input values coincides with the set of agent ids, i.e., .
The input model for a system with agents is given as follows.
Definition 3.4 (input simplicial model).
An input simplicial model consists of:
-
•
The complex consisting of the set of vertexes , the coloring map defined by , and the set of simplexes where ;
-
•
The labeling defined by for each facet of the complex.
In the rest of the paper, we write to refer to this particular input simplicial model. The underlying simplicial complex of is a pure complex of dimension , where each vertex represents a local state of the agent that has as the input value. The set of facets in the complex represents all the possible assignments of input values to the agents, and the labeling interprets such assignments by giving the relevant set of atomic propositions for each facet , so that if and only if .
For example, Figure 3 illustrates the underlying complex of the input simplicial model for agents (i.e, ). In the figure, we write to stand for a facet of . The labeling is determined by .
Now we define task solvability, using partial product update.
Definition 3.5.
Let be the input simplicial model and let and be action models for a protocol and a task, respectively. A task is solvable by the protocol if there exists a morphism such that
(3.1) |
Schematically, this definition of solvability can be presented by the following diagram-like picture:
where is the first projection.
Suppose a morphism associates with . Then, in order for this association to be admissible, it must respect the inclusion of (3.1), meaning that, when decides an output from an intermediate output by the protocol, every input contained in , i.e., the set of inputs from which the protocol may produce the output , must be an input contained in , i.e., the set of inputs that admit as the output of the task.
This generalizes the original definition of task solvability given in [3], which makes use of (non-partial) product updates. The original definition is given by the following commutative diagram, which is obtained by replacing the models by the product update models, written and , and the inclusion in (3.1) by equality .
This definition of the task solvability using product update models is equivalent to the topological definition using simplicial complexes [3]. We can also establish the same equivalence for partial product update models, in the following sense: Suppose we are given a pair of functions over simplicial complexes specifying a task and a protocol. From these specifications we can derive the corresponding partial product update models. Then the task is solvable by the protocol, using partial product update models as defined in Definition 3.5, if and only if the task is solvable in the topological sense, i.e., there exists a simplicial map that mediates between the complexes of the protocol and the task.
The formal argument for this equivalence is deferred to Appendix A. There we also show that the action model and the partial product update model have isomorphic partial epistemic frames, under a suitable condition.
3.3 Logical obstruction theorem
Combining the above task solvability with the knowledge gain property (Proposition 2.5), we obtain a proof method for refuting task solvability by a formula of epistemic logic, called a logical obstruction [3]. A logical obstruction is a guarded positive formula that is valid in the partial product update model of a task, but not in the model of a protocol.
Theorem 3.6.
Let and be partial product update models of a protocol and a task, respectively. If there exists a guarded positive formula such that but , the task is not solvable by the protocol.
Proof.
Suppose that is a guarded positive formula such that but and, by contradiction, that the task is solvable, i.e., there exists a morphism that satisfies the condition (3.1). The invalidity for the protocol means that is false for some world of . Then Proposition 2.5 implies that there exists a world of such that . This contradicts to the validity of in . ∎
4 Action Model for Synchronous Message Passing Protocol
4.1 Actions as posets of rank at most
In the synchronous message passing protocol, each agent sends its local private value to all the agents in the system. When an agent crashes, only the messages that have already been sent before the crash are properly delivered to other agents; the rest are not. In a synchronous distributed environment, a correct agent can detect the exact set of crashed agents in the system: An agent is dead (i.e., it has crashed), if no message is received from the agent within a sufficiently long but finite period of time. The protocol complex for the synchronous message passing protocol thus forms an impure simplicial complex [7], in which the vertexes corresponding to dead agents are missing in a facet.
In the impure protocol complex, each different facet arises from each different ‘pattern of failure’ in message delivery, where each specific pattern of failure can be described by a set of orderings of the form , which means that the agent has crashed and failed to send the message to the agent , a correct agent that did not crash. This motivates us to define actions by relevant orderings over the set of agents that satisfy the following properties.
-
•
An agent is dead after an action (i.e., the agent has crashed during the execution of the protocol) if and only if the corresponding poset of the action admits an ordering for some agent .
-
•
An agent is alive after an action if and only if the corresponding poset of the action does not admit an ordering for any agent .
-
•
If a poset contains an ordering , the poset does not admit an ordering or for any agent . (This is because the ordering indicates that is a dead agent and is a correct agent but or implies otherwise.)
This ordering can be formalized as a poset (partially ordered set) of rank at most . A poset is of rank , if the maximum number of elements contained in a totally ordered subset of the poset is . [10] As usual, the strict ordering holds if and only if and .
Let us define to denote the set of dead agents. Notice that the reflexive ordering is not counted as a failure of message delivery. We are not interested in the success or failure of self-delivery of message: If successful, the agent trivially receives its own local private value; Otherwise, the agent is dead and its received messages are lost. In this respect, we indicate a poset by a set of strict orderings and write to denote the minimum poset containing , i.e., the reflexive closure of . For example, defines a poset ordering over such that holds if and only if either and , and , or . In particular, is a discrete poset (of rank ) over , in which any pair of distinct agents are incomparable.
4.2 Constructing the action model
Let us first consider the action model for the ‘inputless’ case, where the initial inputs to the agents are insignificant. In this case, the actions for the synchronous message passing protocol is simply modeled by the posets over of rank at most .
Definition 4.1.
The inputless action model for synchronous message passing protocol is a partial epistemic frame consisting of:
-
•
The set of actions and
-
•
The family of indistinguishability relation, where is defined for each by:
For each , we denote the set of live agents by .
Example 4.1.
Figure 4 illustrates the complex of the inputless action model for agents. The complex is impure, where the facet corresponding to an action is of dimension . When holds, the condition means that the agent is alive for both actions and ; The condition means that and have the same set of agents that failed to send a message to and hence they know exactly the same set of delivered messages. For example, let , , . Then holds because, in both and , the agent is alive and has successfully received messages from the agents other than . On the other hand, does not hold because the agent in has received the messages from all the agents, but the same agent in did not, from the agent .
From the inputless action model, we construct a full action model of the synchronous message passing protocol, where the protocol accepts a class of sets of input values. Suppose is a simplicial model, whose facets specify the allowed combinations of input values. Then one might expect that an action in the full action model would be expressed by a pair , where is a facet of and is an action of the inputless action, but this does not give an appropriate model. Consider the case, say, , , and . In this case, and are different actions but the live agent should not distinguish them because the action indicates that the agent has not received a message from the agent and therefore it cannot tell which is the original input, either or . In other words, the two facets and should be identified.
For this identification of facets w.r.t. an action of the inputless model, we introduce an equivalence class, written , and define an action in the full action model by a pair .
Definition 4.2 (action model of synchronous message passing).
Let be an input simplicial model. For each facet and action , we define an equivalence relation by:
We write to denote the equivalence class of w.r.t. .
We define the action model of the synchronous message passing protocol as a triple consisting of:
-
•
The set of actions ;
-
•
The family of indistinguishability relations defined by
-
•
The precondition defined by .
In words, indicates that, for every agent that is alive in the action , and should have the same input for the agent , if , i.e., the message from is successfully received by . (Otherwise, the agent should be aware that and are different facets.) The relation is an equivalence relation, as we will show below. The relation defines a PER, where indicates that the agent is alive and every agent that successfully sends a message to (i.e., ) has the same input value that has been assigned in both and . The precondition is intended to mean that, for an action , every atomic proposition in is true for some .
Proposition 4.3.
Let be an input simplicial model. For every , is an equivalence relation. Furthermore, the relation is a PER and is well-defined. That is, is a symmetric transitive relation and is not affected by the choice of facet in .
Proof.
Obviously, is a reflexive symmetric relation. For transitivity, assume and . Suppose . By the transitivity of , we have or . In both cases, we have for all . Hence .
To show that is symmetric, suppose . By the definition, and . Since implies , by the symmetry of and , we have . The transitivity of follows similarly from the transitivity of and .
For the well-definedness of , suppose , , and . We show . Since is a PER, it suffices to show that . Assume otherwise, i.e., and holds for some . Then, from , we have and and also entail from . Since , we have . Similarly, . By the transitivity of , we obtain , a contradiction. ∎
Example 4.2.
Let us consider an input simplicial model for agents, consisting of two facets and . Then we obtain the action model as depicted in Figure 5. We obtain this complex by first making copies of the complex of the inputless action model, for each facet and , and pasting them appropriately. For example, the action represented by the poset generates two copies and , but these are identified (as depicted by the -dimensional simplex marked by the red line in the figure) because . Similarly, the topmost node and the bottom node in the figure identify the corresponding -dimensional simplexes in the copies generated from and .
Consider another action . This generates two copies and , which are depicted in the figure by the two -dimensional simplexes marked by the blue lines. These simplexes are connected via a common vertex . That is, holds, since and is the only agent that satisfies . The two simplexes are not identified nevertheless, since follows from and .
5 Logical Obstruction for Synchronous Message Passing Protocol
In this section, we argue the solvability of the consensus task by the single-round synchronous message passing protocol, using partial product update models.
In [7], a precise topological analysis has been given on the solvability of -set agreement tasks by synchronous message passing protocols of varying protocol rounds. We demonstrate that the techniques developed in the previous sections can be applied to reproduce a part of these results: The consensus task is solvable by a single-round execution of the synchronous message passing protocol if the number of agents in the system is or less; otherwise, when , it is unsolvable.
5.1 Action model for the consensus task
The consensus task is specified by the following constraints on the input and output values of the agents.
-
•
Agreement: Every non-faulty agent must decide on the same output value;
-
•
Validity: The agreed output value must be an input value to some of the agents in the system.
Without loss of generality, we may assume the set of possible inputs for the consensus task is , the set of agent ids.
Definition 5.1 (Partial product update model of the consensus task).
The consensus task is defined by a partial product update model , where is the input simplicial model and is the action model consisting of:
-
•
The set of actions ;
-
•
The family of indistinguishability relations defined by iff ;
-
•
The precondition defined by for each action .
An action in stands for a single output value unanimously decided by all live agents. Each agent can distinguish any pair of distinct actions in , since all agents know the agreed value. The precondition guarantees the validity condition of the consensus task, that is, the agreed value must be the input to some agent .
5.2 Solvability of the consensus task with 2 agents
Let us show that the consensus task is solvable, when . (The case is trivial.)
Remember that the input simplicial model for agents consists of four facets , where for each . The consensus task is then given by the partial product update model consisting of:
-
•
;
-
•
The indistinguishability relation defined by iff and , for each ;
-
•
.
The underlying complex of is illustrated in Figure 6. Note that the complex is pure, meaning that every agent is alive in every world of the model.
Next, let us consider the partial product update model for the synchronous message passing protocol, where is the action model for agents. Remember that the inputless action model for agents is given by , where . For brevity, let us write , , and for the posets , , and , respectively. Topologically, these posets correspond to the facets in the impure simplicial complex illustrated in Figure 7.
Following Definition 4.2, we obtain the action model consisting of:
-
•
The set of actions
-
•
The family of indistinguishability relations defined by iff and ;
-
•
The labeling .
The corresponding topological structure of this action model is illustrated by the simplicial complex in Figure 7.
Combining and , we obtain a partial product update model of the synchronous message passing protocol for agents, where its Kripke frame has a topological structure isomorphic to that of the action model and the labeling on the worlds of the Kripke frame is given by:
Observe that corresponds to a complex comprising of two disconnected subcomponents, one for the output and the other for and that corresponds to a collection of discrete facets, none of which are connected. It is easy to devise a morphism that satisfies the condition (3.1) in Section 3.2 for task solvability. For instance, such a morphism is given by:
Theorem 5.2.
Suppose we have a system of agents with . Then the consensus task is solvable by the single-round synchronous message passing protocol.
5.3 Unsolvability of the consensus task with 3 agents
The consensus task is not solvable by the synchronous message passing protocol, when the number of agents is or greater. This is because, in contrast to the case where is or less, the resulting partial product update model of the protocol is more tightly connected in a topological sense.
To demonstrate this topological intuition in partial epistemic models, we first examine the case , where the partial product update model of the synchronous message passing protocol is an impure -dimensional complex.
Let us define a guarded positive formula by
where for .
We claim that is a logical obstruction. That is, is valid in but not valid in , where is the action model for the consensus task and is the action model for the synchronous message passing protocol, for agents.
The input simplicial complex for agents has an underlying pure -dimensional complex and we write to denote a facet of the complex, where . The labeling on a facet is defined by . The action model of the consensus task is defined similarly as in Section 5.2, except that the set of actions consists of the three possible outputs , , and .
The partial product update model of the consensus task has an underlying complex, pure of dimension . This means that is true for every agent in every world of and therefore is equivalent to for each action . (Remember that .) By the definition, holds. Since implies for every , either of the disjuncts , , or holds. Therefore is a valid formula in .
We then discuss the remaining half, i.e., is invalid in the partial product update model of the synchronous message passing protocol. Remember that the inputless action model for agents has an impure -dimensional complex given in Figure 4 as the underlying complex, and that each facet in is represented by a poset.
As we have seen in Section 4.2, we can derive the action model by making copies of the inputless model for each input facet of the input model and then pasting them appropriately. To show the unsolvability of the consensus task, it suffices to consider pasting the copies for two facets and . This results in a subcomplex of given in Figure 8, which merges the result of actions on the input facet (the left half of the picture) and that on (i.e., the right half). In the figure, some facets are designated by the corresponding actions: , , , , and , where and . As already discussed in Section 4.2, the two copies of the complex of are merged via the facet designated by , since .
We obtain the partial product update model for the synchronous message passing protocol by combining with . We note that has an isomorphic partial epistemic frame with that of the action model . (See Appendix A.4 for the formal discussion of this fact.) Therefore, without loss of generality, we may regard as a partial epistemic model , where is the Kripke frame of and is a labeling on the worlds of :
Now we show that is invalid in the partial product update model . We claim that is false in the world in Figure 8.
From Figure 8, it is easy to see that the facet is connected with via . We show , by traversing the above path in reverse order. In , all agents are alive, that is, for every . Since , is false, i.e., . Since , this implies that . Repeating this by traversing and then , we obtain . This shows that is an invalid formula in .
Due to the symmetry of the partial product update model , we can similarly show the invalidity of the remaining disjuncts in . Therefore is invalid in .
Theorem 5.3.
For a system of agents with , the consensus task is not solvable by the single-round synchronous message passing protocol.
5.4 Unsolvability of the consensus task, general case
We show the unsolvability for the general case, where the number of agents is or greater. The proof is almost the same as that for agents, but we have to argue the connectivity in a complex of higher dimension. Below we present a logical obstruction for the general case and discuss the connectivity symbolically on the formal description of actions.
Theorem 5.4.
For a system with (), the consensus task is not solvable by the single-round synchronous message passing protocol.
Proof.
Let us define a guarded positive formula () by:
where for each ().
We claim that is a logical obstruction. Let be the input model, be the action model of the consensus task, be the action model of the synchronous message passing protocol, each defined for agents. We also let and be the partial product update models for the task and the protocol, respectively.
By Theorem 3.6, it suffices to show that is valid in but is invalid in . The validity of is is similarly shown as we have demonstrated in Section 5.3.
Let us show that is invalid in . Similarly as in Section 5.3, by symmetry, it suffices to show that is false in some world of . We show that , where is a facet of that is uniquely identified by the labeling .
Let us define be the facet of that is uniquely determined by the labeling . We show that and are connected along the following path:
To show , it suffices to show , which immediately follows from . The proof of is similar. For , since if and only if , it suffices to show that , which follows from .
All agents are alive in , that is, holds for every . Furthermore, . These imply . Traversing the above path in reverse order, we sequentially obtain , then , and finally . This proves that is invalid in .
Consequently, by Theorem 3.6, we conclude that the consensus task is not solvable by the synchronous message passing protocol, if the number of agents is or greater. ∎
6 Conclusion and Future Work
We have proposed the notion of partial product update models that is suitable for modeling distributed tasks and protocols in partial epistemic models, in which agents may die. Using partial product update models, we defined task solvability in partial epistemic models, thereby providing the logical method that allows a logical obstruction to prove the unsolvability of a distributed task. This logical method defined for partial product update models extends the original product update proposed for epistemic models: Given a pair of an input model and an action model , a partial product update model refines the original product update model up to indistinguishability by the set of live agents. The unsolvability of a task is then proved by a logical obstruction. We have presented a concrete formula of epistemic logic to show that the consensus task is unsolvable by the single-round synchronous message passing protocol. We have shown that the formula is indeed a logical obstruction, where the partial product update model for the synchronous message passing protocol is constructed from an action model whose actions are posets of rank at most .
We have demonstrated an unsolvability result, but only for the consensus task and the single-round execution of the protocol. In contrast, the topological method can prove more general unsolvability results for -set agreement tasks and multiple-round execution of the protocol [7]. It is an interesting topic to pursue how to obtain these generalized results using the logical method.
The notion of partial product update itself could be of interest from the perspective of dynamic epistemic logic [11]. The original product update was developed in the context of dynamic updates of Kripke models: In terms of logic with epistemic action modalities, iff implies . It would be interesting to figure out an appropriate logical interpretation of partial product update.
Acknowledgment
The third author is supported by JSPS KAKENHI Grant Number 20K11678.
References
- [1] Ronald Fagin, Joseph Y. Halpern, Yoram Moses, and Moshe Vardi. Reasoning About Knowledge. MIT press, 2004.
- [2] Michael J. Fischer, Nancy A. Lynch, and Mike Paterson. Impossibility of distributed consensus with one faulty process. J. ACM, 32(2):374–382, 1985.
- [3] Éric Goubault, Jérémy Ledent, and Sergio Rajsbaum. A simplicial complex model for dynamic epistemic logic to study distributed task computability. Inf. Comput., 278:104597, 2021.
- [4] Éric Goubault, Jérémy Ledent, and Sergio Rajsbaum. A Simplicial Model for KB4: Epistemic Logic with Agents That May Die. In 39th International Symposium on Theoretical Aspects of Computer Science (STACS 2022), volume 219 of LIPIcs, pages 33:1–33:20, 2022.
- [5] Maurice Herlihy. Wait-free synchronization. ACM Transactions on Programming Languages and Systems, 13(1):124–149, 1991.
- [6] Maurice Herlihy, Dmitry N. Kozlov, and Sergio Rajsbaum. Distributed Computing Through Combinatorial Topology. Morgan Kaufmann, 2013.
- [7] Maurice Herlihy, Sergio Rajsbaum, and Mark R. Tuttle. An overview of synchronous message-passing and topology. Electron. Notes Theor. Comput. Sci., 39(2):1–17, 2001.
- [8] Jérémy Ledent. Geometric semantics for asynchronous computability. PhD thesis, University of Paris-Saclay, France, 2019. URL: https://tel.archives-ouvertes.fr/tel-02445180.
- [9] Yutaro Nishida. Impossibility of -set agreement via dynamic epistemic logic (in Japanese). In Algebraic system, Logic, Language and Related Areas in Computer Sciences II, volume 2188 of RIMS Kôkyûroku, pages 96–105, Feb. 2020. URL: http://hdl.handle.net/2433/265621.
- [10] Richard P. Stanley. Enumerative Combinatorics, volume 1 of Cambridge Studies in Advanced Mathematics. Cambridge University Press, 2nd edition, 2011.
- [11] Hans van Ditmarsch, Wiebe van der Hoek, and Barteld Kooi. Dynamic Epistemic Logic, volume 337 of Synthese Library. Springer, 2008.
- [12] Koki Yagi and Susumu Nishimura. Logical obstruction to set agreement tasks for superset-closed adversaries, 2020. URL: https://arxiv.org/abs/2011.13630.
Appendix
Appendix A Equivalence of The Two Task Solvabilities
A.1 The topological definition of task solvability
In the topological method for distributed computing, tasks and protocols are defined by means of carrier maps, where a carrier map is a color-preserving function that associates each simplex of an input complex with a subcomplex of an output complex [6]. However, the partial epistemic models in this paper are built around facets, not simplexes of arbitrary dimension, which implies that partial product update models cannot cover all aspects of carrier maps. (Partial product update models assume that all agents participate in the computation anyway, though some of them may crash during the execution.)
For this reason, in this paper we define the topological specification of a task or a protocol by a suboptimal function, which we call a facet map, that associates each facet of the input complex with a set of facets of the output complex.
In what follows, we assume the set of vertexes of a complex is a finite subset of and the coloring map is defined by for each . With this assumption, we can easily translate a complex into the corresponding input simplicial model given in Definition 3.4, by defining , and similarly for the reverse translation. In this way, we will confuse a complex with an input simplicial model.
Definition A.1.
Given complexes and , a function is called a facet map if it satisfies the following conditions.
-
•
is color-preserving, that is, for every facet ;
-
•
is surjective, i.e., .
In order to define a task and a protocol, let be the common input complex of them. A task is defined by a triple , which we call a simplicial task, where is an output complex and is a facet map. A protocol is defined by a triple , which we call a simplicial protocol, where is an output complex and is a facet map satisfying the following condition:
(A.1) |
The condition (A.1) is a natural requirement for the protocol: If an agent observes the same output of the protocol in two facets and , the agent must also have agreed on the input in two facets and , where (resp., ) represents a possible global state of the system that is reachable from the global state of the initial input represented by (resp., ).
Definition A.2.
We say a protocol solves a task , if there exists a descision map, i.e., a chromatic simplicial map that satisfies
(A.2) |
where , and the inclusion means that for any there exists such that .
A.2 Equivalence of two task solvabilities
We will show that the above topological task solvability using simplicial complexes can be translated to that using partial product update models (Definition 3.2). For this, we introduce a translation function as below.
Definition A.3.
Let be an input simplicial model. We define a translation function that assigns an action model for a simplicial task or protocol by
where is an action model consisting of:
-
•
The set of actions ;
-
•
The family of indistinguishability relations defined by iff ;
-
•
The precondition defined by .
The translation function is an augmentation of the functor , which has been introduced in [4] to show the association of simplicial complexes with their corresponding partial epistemic frames, for the purpose of establishing the categorical equivalence of these two structures. As such, preserves the partial epistemic frame induced from . Furthermore, the precondition gives the condition for to be a possible output of for an input , that is, if and only if . In this sense, associates an action model that is equivalent to a given simplicial task or protocol.
Particularly for an action model that is translated from a simplicial protocol , the partial product update model has a partial epistemic frame that is isomorphic to that of .
Proposition A.4.
Let be an input simplicial model, be a simplicial protocol, and be the translated action model. Then the action model and the partial product update model have isomorphic partial epistemic frames.
Proof.
Let and . We define a pair of maps and by
where .
We show that is well-defined, that is, the set is not affected by the choice of . Suppose . By the definition of , we have and , which implies and . Then, by the condition (A.1) of the simplicial protocol, for all and therefore .
It is easy to see that and are inverses of each other, namely, and . Furthermore they preserve the indistinguishability relation. For , suppose , where and . By a similar discussion above, it follows that and from the definition of . This implies that and therefore . For the converse, suppose . Then, and therefore .
The isomorphisms and can be regarded as morphisms over partial epistemic frames, defining and . Hence and are isomorphic partial epistemic frames. ∎
We show the task solvability defined using simplicial complexes implies that defined using partial product update models. That is, the existence of a morphism in Definition 3.5 implies the existence of a morphism in Definition A.2, and vice versa.
Lemma A.5.
Suppose a simplicial task and a simplicial protocol are given, where is an input simplicial model. Let and be the action models for the protocol and the task, respectively. If there exists a morphism over partial epistemic models that satisfies the condition (3.1) in Definition 3.5, there exists a simplicial map that satisfies the condition (A.2) in Definition A.2.
Proof.
Let and and also let and .
Using , we define a map by
where and is any pair of vertexes such that and furthermore , , and holds for some , , and .
We show is defined for every . Suppose is a facet satisfying . By the surjectivity of , there exists such that . This implies is defined. Furthermore we have , since preserves the indistinguishability, . Let us define , where be the vertex such that . We show this uniquely defines . Suppose are vertexes given by the definition, that is, and furthermore there exists , , and such that , , and for each . By the definition of , we have () and hence . Since , . This implies and hence .
To show that defined above is a simplicial map, suppose . By the surjectivity of , there exists such that . This implies . By the condition (3.1) for , for some and . By the definition of , for each , we have where is the unique vertex satisfying and . Therefore .
The converse direction is proven as follows.
Lemma A.6.
Proof.
Let and . Using , we define by
where , , , and .
There exists that satisfies this condition. By the definition of , we have , which implies . By the condition (A.2), there exists such that . This means and . Furthermore, because is color-preserving.
The definition of is not affected by the choice of . To show this, suppose such that , , and (). From (), we have . Hence . This implies and therefore .
We show that is a morphism over partial epistemic models. Obviously it satisfies the saturation property by definition. To show that preserves the indistinguishability, suppose . This implies and , and in particular . For all and , we have by the definition of . In particular, . Hence . For the preservation of atomic propositions, suppose , , and . By definition, holds for every . This implies that . Similarly, . Therefore .
Finally, let us show that satisfies the condition (3.1). Suppose , where , , . Assume . By definition, and . The latter implies and thus . Since by (A.2), there exists such that and . The former implies and thus ; The latter implies and hence . By these, we obtain . Therefore we have , where trivially holds.
∎
Theorem A.7.
Suppose a simplicial task and a simplicial protocol are given, where is an input simplicial model. Let and . Then a task is solvable by a protocol if and only if is solvable by .