Characterizations of Fragments of Temporal Logic over Mazurkiewicz Traces
Abstract
We study fragments of temporal logics over Mazurkiewicz traces which are well known and established partial-order models of concurrent behaviours. We focus on concurrent versions of “strict past” and “strict future” modalities. Over words, the corresponding fragments have been shown to coincide with natural algebraic conditions on the recognizing monoids. We provide non-trivial generalizations of these classical results to traces. We exploit the local nature of the temporal modalities and obtain modular translations of specifications into asynchronous automata. More specifically, we provide novel characterizations of these fragments via local cascade products of a very simple two-state asynchronous automaton operating on a single process.
Keywords and phrases:
Mazurkiewicz traces, temporal logics, asynchronous automata, cascade product, Green’s relations, algebraic automata theoryCopyright and License:
2012 ACM Subject Classification:
Theory of computation Modal and temporal logics ; Theory of computation Distributed computing models ; Theory of computation Algebraic language theory ; Security and privacy Logic and verificationEditors:
Patricia Bouyer and Jaco van de PolSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Temporal logics are widely used logical formalisms to reason about properties of computations. Words serve as temporal models of sequential computations/behaviours and linear temporal logic LTL formulas use natural future as well as past temporal modalities to talk about interesting patterns of these behaviours. The celebrated theorem of Kamp [16] showed that, over words, properties definable in LTL coincide with those definable in the first order (FO) logic. By the seminal results of McNaughton-Papert [18] and Schutzenberger [20], these also equal regular languages describable by star-free regular expressions and those recognized by finite aperiodic monoids.
The above mentioned results clearly indicate the important role played by the temporal modalities in the very rich expressive power of LTL. Natural and commonly used temporal modalities include future modalities (“neXt/tomorrow”), (“Future”), (“Until”), the past counterparts (“previous/Yesterday”), (“Past”), (“Since”) and their strict variants such as (“strict future”) and (“strict past”). Several works have studied natural fragments of LTL obtained by allowing only some of these modalities and have characterized these fragments in terms of algebraic conditions on the recognizing finite monoids. These algebraic characterizations have been crucially used to show that the computational problems of definability in the associated fragments are decidable.
Let us consider the fragment obtained by allowing only unary strict past modality . When interpreted over words, the formula , at a given position, asserts that holds at some position in the strict past (that is, strictly left) of the current position. It has been shown in that a language is definable in iff it can be recognized by a -trivial monoid iff the syntactic monoid of the language is -trivial. Here stands for one of fundamental Green’s relations on a monoid. The -triviality condition on a monoid simply means that if two elements of are right multiples of each other then they are equal (that is, for all , implies ). This characterization can also be stated in simpler automata-theoretic terms [6]. A finite-state automaton is said to be partially ordered if there is a partial order on the states so that every transition is of the form where . Said differently, an automaton is partially ordered iff the only cycles present in the underlying directed transition graph are self loops. Using this notion, the above mentioned characterization can be stated as follows: a language is -definable iff it can be accepted by a partially ordered automaton.
It turns out that the dual fragment which admits the unary strict future modality is characterized by the dual condition of -triviality. As expected, a monoid is -trivial if no two distinct elements can be left multiples of each other. The fragment which includes both and modalities has been well studied and is known to coincide with important first order logic fragments, namely, and . It also has an algebraic characterization in terms of monoids from the class DA. See the survey [9] for more details.
In this work we study the above mentioned temporal logic fragments from the concurrency viewpoint. We consider Mazurkiewicz traces as the underlying models of concurrent behaviours. A Mazurkiewicz trace or simply trace, over a set of processes, represents a concurrent behaviour as a labelled partial-order between events. This partial-order between events faithfully captures the causal information flow among processes. Traces are extensively studied and there is a rich theory of regular trace languages . Regular trace languages are known to coincide with MSO-definable languages as well as languages recognized by finite monoids. We consider natural event-based interpretations of temporal modalities and over traces. For instance, the formula , at a given event, asserts that holds at an event which is in the strict causal past of the current event. We denote by the local/event-based temporal logic over traces which has access to the temporal modality . One can similarly define and . One of our main results states that a trace language is definable in iff it can be recognized by a -trivial monoid. This can be viewed as a non-trivial generalization of the corresponding result over words. We also obtain an analogous algebraic characterization of in terms of -trivial monoids. An algebraic characterization of in terms of monoids from the class DA already appears in [17].
Another important contribution of this work is a modular translation of formulas in these fragments into asynchronous automata. In an asynchronous automaton, each process runs a finite local-state device and these devices synchronize with each other on shared actions. Asynchronous automata can be naturally used to accept trace languages. Zielonka’s theorem states that regular trace languages are precisely the languages accepted by asynchronous automata. As in [19, 2, 3], one can use asynchronous automata as transducers on traces, similar in spirit to the sequential letter-to-letter transducers on words. Unlike these works which use deterministic asynchronous transducers to locally compute relabelling functions on input traces, we allow non-deterministic asynchronous transducers. As expected, these transducers compute relabelling relations from input traces to output traces. The local cascade product of deterministic asynchronous automata (or transducers) from [2, 3] is a natural generalization of cascade product in the sequential setting [21]. It further extends naturally to the non-deterministic setting and corresponds to compositions of related relabelling relations.
We use this machinery to provide a translation (in fact, a characterization) of formulas into local cascade products of very simple two-state asynchronous automata operating on a single process. For formulas, the resulting atomic two-state transducers are deterministic while for formulas, they are reverse-deterministic. We remark that our results and their proofs for traces specialize to the setting of words.
The rest of the paper is organized as follows. After setting up the preliminary notions in Section 2, we establish in Section 3 that -trivial trace languages are definable in . In Section 4, we provide a translation of formulas into cascade products of localized deterministic asynchronous transducers/automata whose transition monoid is isomorphic to - the unique two element aperiodic monoid. Section 5 is devoted to dual results concerning -trivial and -definable trace languages. We also sketch a cascade product based characterization of in this section.
2 Preliminaries
In this section, we set up the notation and review basics of traces. We also recall the recognizability of trace languages by morphisms into monoids and define the fundamental Green’s relations on monoids.
2.1 Trace basics
Let be a finite, non-empty set of processes. For every process , is the set of letters/actions in which process participates. A distributed alphabet over is the family with being the associated total alphabet. Letters are dependent if there is a process which participates in both of them (, ), otherwise they are independent. For a letter we define to be the set of processes that participate in .
A poset is a tuple with being the underlying set and being the partial order on . A -labelled poset over is a triple where is the underlying poset, and is the labelling function which labels each element in with a letter from . For elements , is said to be an immediate successor of , denoted by , if is below () and there is no event strictly between and (, ).
A (Mazurkiewicz) trace over is a finite -labelled poset with satisfying the following two properties:
-
1.
for , if , then and are dependent;
-
2.
for , if and are dependent, then they are ordered ( or ).
For a trace we sometimes slightly abuse notation to say event which we take to mean that event . The set of process -events in is defined as . Note that is totally ordered by . For an event , we slightly abuse the notation and define to be the set of processes that participate in . For an event we define to be the set of events in below . Similarly is the set of events in strictly below . It is easy to see that by restricting and to events in , we obtain a valid trace. By abuse of notation, we denote this trace by or simply . It will be clear from the context whether we mean to be a trace or merely a set of events. Similarly, also refers to the trace induced by .
The set of all finite traces over is denoted by . We define the trace concatenation operation on as follows. Let with . We define or simply to be the trace where:
-
1.
is the transitive closure of .
-
2.
For all ,
A trace is said to be a prefix of trace if there exists such that . It is easy to see that, for , and are both prefixes of .
2.2 Recognizable trace languages
Recall that a monoid is a set equipped with a binary associative operation and containing an identity element , such that , . The set , under the operation of trace concatenation, is a monoid with the empty trace as the identity element. Let and be two monoids with operations and respectively. A morphism from to is a map such that: and for all , .
A subset is called a trace language over . We call a morphism from the trace monoid to any other monoid as a trace morphism. A trace language is recognizable if there exists a trace morphism from to a finite monoid such that for some . We may refer to as the recognizing morphism or say that is recognized by via recognizing morphism . The class of recognizable trace languages, also referred to as regular trace languages, has several characterizations and we note a few in particular, namely MSO-definable languages over traces [22] and trace languages accepted by asynchronous automata [23].
Classically, the algebraic viewpoint in terms of what are known as Green’s relations over monoids has been fruitful for characterizing interesting subclasses of regular languages which have an intimate connection with logics. We now briefly recall these fundamental Green’s preorders and the associated equivalence relations.
Let be a monoid with as the binary monoid operation and let . The Green’s preorder relations are defined as follows:
-
1.
(read as is -below ) if there exists such that .
-
2.
if there exists such that .
-
3.
if there exist such that
-
4.
if and
These preorders naturally give rise to the associated equivalence relations . We say that (read as is -equivalent to ) if and . A monoid is -trivial if , implies . In other words, is -trivial iff the preorder on is in fact a partial order on iff the equivalence relation coincides with the identity relation on .
The other equivalence relations and their triviality for are defined analogously. A trace language is called -trivial if it can be recognized by a finite -trivial monoid. One can similarly define -trivial, -trivial and -trivial trace languages.
Example 1.
Consider the monoid with as the identity and as the zero element. So, , . It is easily checked that is -trivial, -trivial, -trivial as well as -trivial.
As mentioned in the introduction, for word languages, -triviality (-triviality) corresponds to definability in LTL with only the strict past (respectively strict future) modality. See [5] for a proof based on Green’s relations. It turns out that, for finite monoids,-triviality condition is equivalent to the aperiodicity property. As a consequence, -trivial word languages coincide with languages definable in the first order logic and linear temporal logic. These results find interesting generalizations over traces in [15, 13, 8].
3 Algebra to temporal logic
We now state our main theorem and set up the technical machinery and prove it.
Theorem 2.
Let . Then the following are equivalent.
-
1.
is a -trivial trace language.
-
2.
can be expressed using a sentence in .
-
3.
can be accepted by a cascade product of localized asynchronous automata.
Proof.
is shown in Theorem 14, is shown in Theorem 22, is shown in Theorem 24.
The result we wish to prove in this section is the for Theorem 2, which says that any trace language which is recognized by a -trivial monoid can be expressed as a sentence in . This statement is restated as Theorem 14. We start by defining formally the syntax and semantics of .
3.1 syntax and semantics
We now define . We have sentences , which are evaluated over finite Mazurkiewicz traces and hence define languages over and also event formulas which are evaluated at a given event in a trace. The syntax is as follows:
The semantics for the boolean operations are as usual. For a trace and an event , the following defines the semantics of
| if there exists an event in such that | ||||
| if | ||||
| if there exists an event in with and . |
In the rest of the paper we shall use the following macros liberally:
The modalities can be read as Exists , All , Past , Historically , Yesterday Past , Yesterday Historically . For a set of letters , we may abuse notation and use to denote the event formula testing whether the event is labelled by a letter in . For instance, we may use as the macro for the event formula which tests whether the current event is an -event.
Example 3.
Let be a trace and be an event. We design an event formula such that iff there are at least process -events strictly below event . We define inductively as: and for , . Consider the sentence . Clearly has the property that trace satisfies if and only if the process -event is strictly below the process -event.
3.2 Critical structures for a morphism into a -trivial monoid
Throughout the rest of this section, we fix a morphism to a fixed finite -trivial monoid .
Let be a trace and be an event of . Note that, viewing and as traces, we have . The event is said to be a critical event in if . Since the monoid is -trivial, this is equivalent to . We let be the set of all critical events of trace .
Lemma 4.
In the above notation, .
Proof.
We show that the number of critical events on a single process line is less than . This clearly implies that is less than . For any , the set of critical process events is . Assume with ( is totally ordered by ). Since are critical events we have . Since (the trace induced by) is a prefix of (the trace induced by) , we have . We get
Therefore which concludes the proof.
A configuration of is a subset of events which is downward closed: . Clearly, for any event , and are configurations of . We sometimes abuse the notation and use to also denote the trace induced by a configuration of . It is easy to see that where is the trace induced by the set of events of which do not belong to .
A configuration of is critical if for every maximal event , we have , equivalently, . Note that if is a maximal event of then is a configuration of .
Lemma 5.
Every maximal event of a critical configuration is a critical event.
Proof.
Suppose for contradiction that there exists a critical configuration and a maximal event such that but . We have that . Substituting by , we get giving us a contradiction to the fact that .
Example 6.
A configuration in which every maximal event is critical, may not itself be critical. We show this via an example. Consider three processes and the distributed alphabet defined by , and (each process has a local action). Consider the -trivial (commutative) monoid with truncated sum defined as . In other words, is the neutral element, is absorbent, and . We have . Consider the (truncated) length trace morphism defined by for all . Finally, let be the trace with 3 events labelled , and respectively. Each event in is critical and is maximal in . But the configuration is not critical since for each , we have .
Lemma 7.
Any prefix of containing all the critical events of , evaluates to the same monoid value as under . In other words, we have .
Proof.
We have since is a prefix of . For the converse, we first show that there exists a critical configuration of such that . The configuration satisfies . Let be a configuration with . Either is critical and we are done, or we can drop a maximal event from to get a strictly smaller configuration satisfying . Repeating this, we find a critical configuration of such that . By Lemma 5, the maximal events of are critical. Hence we get . This implies . By -triviality, we deduce .
The type of a trace is the -labelled poset obtained as the restriction of the labelled poset to the critical events of .
Example 8.
It is important to note that the type of a trace need not necessarily be a trace itself. Let be a trace over the distributed alphabet , with 3 events labelled , , respectively, as shown in the figure below. Consider the -trivial (commutative) monoid where is the binary maximum operation. It is clear that . Consider the trace morphism defined by , and . We see that only and are critical events of . Then, with which is induced by the original partial order on . Since the labels and are independent, is not a trace.
Let be a -labelled poset. A linearization of is a word111A word is identified with the structure with and . where is a total order on which is consistent with , that is, satisfying . We denote by the set of linearizations of .
Let be the word morphism defined by for all . For all traces and for all linearizations , we have .
For every monoid element we define as the set of letters stabilizing . The complement also denoted is the set of letters which cause an -descent for . This means that for every .
Lemma 9.
Let be a trace and be its type. For all linearizations , we have .
Proof.
The proof is by induction on the number of critical events of .
For the base case there are no critical events in . This means that and all events in have labels in . Clearly, we have .
Assume now and that the result holds for all traces with . Consider the linearization . We have with , and . Note that the event is maximal in . Consider the trace which is the prefix of induced by . It is easy to see that and . By induction, we have . Therefore, where the last equality follows from Lemma 7.
It follows immediately that the type of a trace determines its value under .
Corollary 10.
Let be two traces. If and are isomorphic, denoted , then .
We conclude this subsection with some more definitions. Recall that we have fixed the distributed alphabet and the morphism from to the finite -trivial monoid . We define the type set of , with respect to , to be the set of all possible types of all traces over . More precisely, . Note that, it clearly depends on . By Lemma 4, every type is a -labelled poset whose underlying set has size less than . Therefore is a finite set.
By Corollary 10, the type of a trace determines its monoid value under the recognizing morphism . Hence we can define a function by for all . Note that, by Lemma 9, if is a type then for all .
Let be a trace and be an event. The type of in is the type of the prefix of induced by the strict past of : . We have .
Lemma 11.
Let be a trace and be events in . If and where then .
Proof.
Assume towards a contradiction that there are two events in with and where . Without loss of generality we may assume since they are both labelled with the same letter and hence are ordered. Then, is a critical event: indeed, hence and implies that . We deduce that : there are more critical events in the strict past of than in the strict past of . This is a contradiction with .
3.3 Proof of Theorem 2 []
Having done the necessary setup we now prove the first direction of Theorem 2 (restated as Theorem 14 at the end of this subsection). We start with Lemma 12 which supplies the key argument by constructing event formulas for identifying the type of an event.
An event formula of is called a strict past formula if it is a boolean combination of formulas of the form . A strict past formula does not test the label of the current event.
Lemma 12.
For every , there exists a strict past event formula such that, for all traces and all events in , iff .
Proof.
We construct by induction and prove that it has the correct
property.
Base case: , i.e., .
Note that where
is the empty trace.
We define .
We now prove that it has the desired property.
If then every letter in the strict past of stabilizes the monoid identity element. We deduce easily that there are no critical events in the strict past of . Therefore .
Conversely, if then there are no
critical events in the strict past of . Since the empty trace is the smallest prefix
of a trace and it maps to under ,
we deduce easily that every letter in the strict past of must stabilize
the monoid identity . Therefore .
Induction hypothesis: Let and assume that for every type with
, we have constructed satisfying the property
of the lemma.
Consider an arbitrary type
of size . We
construct below and prove its correctness.
Let be a trace with . For an element , we let be the restriction of the labelled poset to the critical events strictly below (). It is easy to see that where is (the prefix of induced by) the strict past of in . Let and . Since is a critical event of , we have . Therefore, .
Notice that the size of is at most . By induction hypothesis, we have a formula satisfying the property of the lemma. We use the macro to denote the event formula . Finally, if , we let . Then, is a type and we let . We define
Before proceeding to the formal proof of correctness of , we first provide an intuitive explanation of the various parts of .
-
: asserts that for every “event” in , there is a (unique) corresponding critical event in the strict past whose type is isomorphic to and whose label is same as that of .
-
: asserts that every event in the strict past either corresponds to some “event” in (satisfies ) or is labelled with a stabilizing letter for the type arising out of the “events” in
-
: asserts that the ordering between “events” in and the corresponding critical events is identical.
We now formally show that indeed satisfies the property of the lemma. Towards this, fix a trace and an event in .
() Assume that . We show that .
First consider the fact that . This means that for all , there exists an event , such that . By the inductive hypothesis, we have and . From Lemma 11, is the unique event in satisfying . Using and , we deduce that is critical in . Therefore, .
Now, using the fact that and the unicity of the events , we deduce that for all , we have if and only if . We also know that for all , we have . Therefore, .
In order to obtain as desired, it remains to prove that . Towards a contradiction, assume that this is not the case and consider a minimal event . Since , we have . If then for some and by the unicity constraint , a contradiction. Hence, and there is a downward closed set such that and . By minimality of , we get . We deduce that and . Using we conclude that is not critical, a contradiction.
() Conversely, assume that . We show that .
From the isomorphism between and we get a one-one correspondence such that for all we have if and only if and . We deduce that and for all . Therefore, for all and .
Next, it is easy to check that using the unicity property (Lemma 11) and the fact that if and only if for all .
Let be an event in the strict past of . Either is a critical event and for some . In this case, we get and . Or is a non-critical event. Let . Then, is downward closed and using the unicity property we deduce that . Now, due to the fact that it is clear that . We deduce that . Since is not critical, we have . Therefore, . We have shown that .
Lemma 13.
For every element we can define a strict past event formula in such that for every trace and event of , we have .
Proof.
We define and show that it has the desired property.
Let be a trace and be an event in . If then there exists some such that and . By Lemma 12, . By definition of , we have . As , we conclude that . Now for the other direction assume . By Lemma 12, and by definition of , . As , and hence .
Theorem 14.
Let be recognized by the morphism . Then there is a sentence of which defines : for all traces , .
Proof.
As is recognized by , there is a subset such that . For each monoid element , we define below a sentence of which defines the trace language : for all traces we have . The sentence defining is .
Let be a new letter. We extend the distributed alphabet by making an action shared by all processes: . For each trace , we consider the augmented trace obtained by adding a maximum event labelled to . Note that all processes participate in and . Now by Lemma 13, we have a strict past event formula222Formally the formula may use . We can take care of this by using wherever it occurs in the formula. , such that . We can now set as the sentence obtained by replacing every outermost occurrence of in by . It is easy to see that iff . As a result, iff .
4 Logic to cascade products to algebra
In this section, we first introduce a localized version of namely and show that both have the same expressive power. is more suited for the direction of Theorem 2 where we connect logic to cascade products of asynchronous automata. Subsequently, in Section 4.2 we introduce asynchronous devices and their cascade products and prove Theorem 22 in Section 4.3. Finally we show the direction of Theorem 2 by connecting cascade products to algebra in Theorem 24.
4.1 and its equivalence with
We define local modalities and for each process as follows:
Let be a trace and be an event of . It is clear that, iff is an -event and there exists an -event in the strict past of such that . Further iff there exists an -event of such that .
We define as a fragment of in which only above local modalities are allowed. More precisely, the syntax of logic is as follows:
Lemma 15.
and express the same class of trace languages over .
Proof.
We only need to show how to express the modalities and of with the local modalities of . We have .
For the strict past modality we use a well-known fact on traces. Let be a trace and be events in . Then if and only if there is a sequence of events with and for each , there is a process such that are both -events. It is easy to deduce from here that
This shows that modality can be expressed in and concludes the proof.
Remark 16.
Referring to the syntax and semantics from [1] (Section 2.2), it is clear that is a sublogic of . Indeed, let be a event formula and assume there exists an equivalent event formula in . Then is implemented with and is implemented with
4.2 Asynchronous devices and cascade product
We now recall the model of asynchronous automata due to Zielonka [23].
A deterministic asynchronous automaton over (or simply over ) is a tuple where
-
for each , is a finite non-empty set of local -states.
-
for each , is a deterministic joint transition function where is the set of -states.
-
with as the set of all global states, is a designated initial global state.
Let be a global state. We can write as where is the projection of onto and is the projection onto . For any letter , we can extend the joint transition function to a global transition function on global states as follows: . For a trace , we let be the identity function on , and define as the composition when . Note that is well defined, since for any pair of independent letters, . We denote by the global state reached when runs on .
At this point we define the transition monoid associated with the asynchronous automaton . Let be the finite set of functions . This set under the usual function composition operation is a monoid with as it’s identity element.
For any asynchronous automaton , if we fix some to be the set of accepting global states then we say is the trace language accepted by .
We also use asynchronous automata as letter-to-letter asynchronous transducers as in [19, 2, 3] which compute a relabelling function. Let be a finite non-empty set. We can define a natural extended distributed alphabet, by inheriting the distribution from that is, . and are the set of traces over the original and extended distributed alphabets. A function is called a -labelling function if, for every , . A -labelling function decorates each event of the trace with a label from .
An asynchronous -transducer over (or simply ) is a tuple where is an asynchronous automaton and each () is a map . We overload notation and use to also denote the -labelling function computed by the transducer . For , we define such that, for every with , where .
An asynchronous automaton (resp. transducer) with local state sets is said to be localized at process if all local state sets with are singletons. It is localized if it is localized at some process. For an automaton/transducer localized at , all non-trivial transitions are on letters in which process participates.
Example 17.
We define to be a deterministic asynchronous automaton which is localized at process . In , the local state set of process has two states: while all other processes have a single state. In Figure 1 we show the local automaton for process , which operates only on . Note that, a letter in allows to change the local state from to while the rest of the transitions are self-loops. Clearly, we can identify the global-states of with . With this convention, we always use as the initial global state for . Note that the transition monoid of is isomorphic to a submonoid of from Example 1. For a trace , , the global state reached by when run on , is iff there exists an -event in with label in .
A degenerate automaton is a automaton for which . As state is not reachable from the initial state , we can safely assume that . Observe that the transition monoid of a degenerate is the trivial monoid.
Example 18.
An asynchronous -transducer over whose underlying automaton is from Example 17, is denoted by . More precisely, . Recall that in , and for . Further, for each , . These output functions can be viewed as follows.
-
1.
For each such that , we identify with . Thus, .
-
2.
For each such that , is a singleton. As a result, is a constant function and can be simply thought of as an element of .
Note that, always uses as the initial global state and it has an associated -labelling function .
A degenerate -transducer has a degenerate as its underlying automaton and has effectively only one global state. As a result, its output function can be simply specified as a output function .
Now we introduce the local cascade product of asynchronous transducers [4, 3] which will play an important role in later sections.
Definition 19.
Let be a -transducer over and be -transducer over . We define the local cascade product of and to be the -transducer over where and is defined by .
In the sequential case, that is, when , the local cascade product coincides with the well-known operation of cascade product of sequential letter-to-letter transducers.
The following lemma is easily verified. See [3] for more details.
Lemma 20.
The -labelling function computed by is the composition of the -labelling function computed by and the -labelling function computed by : for every ,
Although we have defined the local cascade product of transducers, it is equally easy to define the local cascade product of asynchronous automata. We refer to [3] for precise details of this construction and its connection with the wreath product operation and the resulting local cascade product principle.
4.3 Proof of Theorem 2 []
In this section, we provide a proof of of Theorem 2. In view of Lemma 15, it suffices to show that languages expressed by sentences are accepted by local cascade product of automata. This is precisely the content of Theorem 22.
Let be a event formula. For each trace and event in , we let be the truth value of at , and we let be the -labelling function given by , for each .
Lemma 21.
Let be a event formula and let be the corresponding -labelling function. Then we can construct a local cascade product of transducers which computes .
Proof.
The construction of proceeds by structural induction on . We first consider the base case with . Fix some process . We let be the degenerate -transducer over whose output function is where if and otherwise. Clearly, the -labelling function computed by coincides with .
Now we consider the inductive case where . By induction, we have -transducer which computes . Note that the output alphabet of is with the distribution .
We construct as a local cascade product , where is a -transducer over defined below, so that computes . In view of Lemma 20, . By induction on , . Thus, the requirement that computes simply translates to the requirement that .
Let be a trace over and . Further, let . As , for an event , iff is an -event and there is an -event in the strict past of such that .
We are now ready to construct as a transducer over so as . The local component for process in is as depicted in the figure below.
More precisely, for over , with , the only non-self-loop transitions (from local state to local state ) are on letters of the form with . The output functions are as follows. For , , and for , .
Clearly, outputs on events in which process does not participate. Further, it outputs on an -event only after reaching state which ensures that there is an -event in the strict past where the input label (the truth value of ) carries the value . It is easy to see from here that, for every , . This in turn implies that correctly computes .
We now consider the case where . By induction, we have a transducer () which computes (respectively ). We consider the natural direct product which is a -transducer which simultaneously computes the truth values of as well as . We can easily see that the direct product is a special case of the cascade product. We can simply define where is a degenerate -transducer (for any process ) over whose output function is as follows: . It is easy to see that computes .
The remaining case where can be similarly handled by a local cascade product of with a degenerate transducer.
Theorem 22.
Let be a sentence. There exists an asynchronous automaton which is a cascade product of automata and it accepts exactly the trace language defined by . In other words, accepts .
Proof.
A basic trace formula is of the form , where is a event formula. For a trace , we have that iff there exists a -event in the trace such that . From Lemma 21 we have a -transducer which is a local cascade product of transducers such that . Let be any trace over . It is clear that iff some -event in the output trace is labelled by . Therefore the desired property of is that it should accept the trace iff has a -labelled -event. To achieve this, we simply take the cascade product of the -transducer with an asynchronous automaton over . Beginning in the initial global state , the non-trivial component of automaton owned by process waits at local state for the label to occur on -events and transits to local state after seeing the label and stays there thereafter. This automaton is depicted in the figure below.
In order to accept , in the automaton , we define a global state of to be accepting if its component for the last (in the cascade product) global state is . As is a local cascade product of transducers and the underlying automaton for each is simply a automaton, it is not difficult to see that is in fact a local cascade product of automata.
This takes care of basic primitive languages defined by sentences of the form . As a general sentence is a boolean combination of sentences of the form , is also a boolean combination of basic primitive languages. The result for general follows as boolean combinations can be handled by direct product construction which can be easily implemented by the local cascade product construction.
4.4 Proof of Theorem 2 []
In this subsection, we provide a proof of of Theorem 2 in the form of Theorem 24.
Lemma 23.
Let be an asynchronous automaton over which is a local cascade product of automata. Then the transition monoid of is -trivial.
Proof.
Let be a local cascade product of automata. We show that there is a partial order on the global state set such that, for every , (recall that, is the natural global transition function induced by the joint transition function ). It is known [6] and easy to see that the existence of such a partial order implies that the transition monoid of is -trivial.
We show the existence of the required partial order by induction on the number of constituent automata in . In the base case, itself is a . As the global state set of is (see Example 17), by setting to be the total order with , we get the desired property.
To complete the inductive step, we assume the existence of a partial order on the global state set of . We now use it to construct the required partial order on the global state set of . Note that the global state set of is simply . We define as follows: for and , iff , and . In other words, is simply the direct product of on and the total order on with . Let , then the (global) deterministic transition on of takes the state to the state . It is clear from this description that . This shows that on has the desired property and we are done.
Theorem 24.
Let be accepted by an asynchronous automaton which is a local cascade product of automata. Then is -trivial.
Proof.
We consider the transition monoid associated with . Recall that it is the finite monoid consisting of where is the global transition function on the global state set induced by the trace . By the previous lemma, this monoid is -trivial. Due to the local nature of the transitions of , if and are independent then and commute. As a result, we have a well defined morphism which sends to . Suppose that is accepted by with as the initial global state and as a subset of global accepting states of . Then is recognized by the trace morphism via the set . Hence is -trivial.
5 Results on related fragments
In this section we briefly present other results which are of the same form as Theorem 2 but for trace languages which are -trivial or recognized by monoids from the class DA. First we shall define the necessary terminology and then subsequently state the results.
is the fragment of temporal logic over traces which contains both the strict future () and the strict past () modality. We give below the syntax for and only explain the semantics of the new modality .
For a trace and an event , we have if there exists an event in with and . Observe that is the past fragment of . We can similarly define is as the future fragment of which has access to only modality.
For a trace , the reverse trace is defined to be the trace where, for , iff . For a trace language , the reverse language is defined as .
For a monoid , denotes the opposite monoid with multiplication defined as for all . It is easy to see that is recognized by iff is recognized by . Further, it it easy to deduce that is -trivial iff is -trivial. It follows that is -trivial iff is -trivial.
It is also easy to verify that is definable iff is definable. Given a sentence in defining , we can obtain a sentence which defines by simply replacing all occurrences of operators in by , and vice versa. In view of the above discussion, it follows from Theorem 2 that a trace language is -trivial iff it is definable in .
In order to obtain a translation of , or more generally, event formulas and sentences into cascade products of asynchronous devices, as in Lemma 21 and Theorem 22 for , we work with localized modalities and and use non-deterministic asynchronous automata/transducers.
We can define the localized logic by using the process indexed modalities , and instead of , and as in Section 4.1. The semantics of modality is as follows: for a trace and , iff is an -event and there exists an -event with such that . It can be shown that has the same expressive power as . Observe that is a fragment of . One can similarly define the fragment of which has the same expressive power as .
Now we turn our attention to local cascade product of non-deterministic asynchronous automata and transducers. For the purpose of this work, it suffices to work with deterministic and reverse deterministic versions and their cascade products.
We begin with the key example of the reverse deterministic asynchronous automata . In , the local state set of process has two states, that is, while all other processes have a singleton state set for . For a letter , the processes participating in have a deterministic transition, namely, a self-loop.
If , we can identify a joint -state with the local state of process . With this identification, process has non-deterministic transitions as shown in Figure 2. For instance, assume . Then there is no transition on at state . Further, at state , on , the next state can be either state or state . Note that these local transitions are obtained by simply reversing the local transitions in the deterministic automata.
We always use the global state as the only final/accepting state. It is important to observe that, for a trace , admits a unique accepting run (which ends in global state ). If has no -event with label in , then must begin in global state and stays there until the end. However, if has an -event with label in , then must begin in the global state and process component changes its local state from to on the last occurrence of an -event with label in . After this crucial event, process stays at local state as all subsequent “future” -events are labelled by letters in . This unambiguity property of is crucial. While using as a language acceptor, we allow a set of initial global states. Thanks to the unambiguity property, the language accepted with single initial global state is the complement of the language accepted with single initial global state .
Now we introduce the reverse deterministic asynchronous -transducers . The underlying automaton of is and the output function provides a label from on each local transition of . In , we allow any initial global state but insist that is the only accepting state. We also associate with a -labelling function as follows: let and be the unique accepting run of the underlying on . We define to be the trace where, for , is the label from on the transition used to “read” on the unique run .
Let . We now construct an instance of a -transducer over . This transducer, called below, implements the localized modality .
Consider a formula . We have the -relabelling functions and which keep track of truth values of and respectively. Let be a trace over and and be traces over . For any event of , iff and iff . Fix an event . By semantics of , iff is an -event and there exists a strict future -event (that is, ) such that . For the -transducer over , depicted in Figure 3, it is easy to verify that, for every trace over , .
In view of the above discussion, it is not surprising that the following theorem holds. We skip the technical details.
Theorem 25.
Let . Then the following are equivalent.
-
1.
can be expressed by a sentence in .
-
2.
can be accepted by a cascade product of and automata.
Even over words, the above result appears to be new. Further, we note that it has been shown in [17] (also see [11], [10]) that, over trace languages, definability coincides with recognizability by monoids from the class DA.
The following theorem is a dual of our main theorem.
Theorem 26.
Let . The following are equivalent.
-
1.
is a -trivial trace language.
-
2.
can be expressed by a sentence in .
-
3.
can be accepted by a cascade product of automata.
Recall that a trace language is -trivial iff it is -trivial as well as -trivial. This observation leads to the following result.
Theorem 27.
Let . The following are equivalent.
-
1.
is a -trivial trace language.
-
2.
can be expressed by a sentence in as well as a sentence in .
-
3.
can be accepted by a cascade product of automata as well as another cascade product of automata.
References
- [1] Bharat Adsul, Paul Gastin, Shantanu Kulkarni, and Pascal Weil. An expressively complete local past propositional dynamic logic over Mazurkiewicz traces and its applications. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS’24, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3661814.3662110.
- [2] Bharat Adsul, Paul Gastin, Saptarshi Sarkar, and Pascal Weil. Wreath/cascade products and related decomposition results for the concurrent setting of Mazurkiewicz traces. In Igor Konnov and Laura Kovács, editors, 31st International Conference on Concurrency Theory, CONCUR 2020, September 1-4, 2020, Vienna, Austria (Virtual Conference), volume 171 of LIPIcs, pages 19:1–19:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPICS.CONCUR.2020.19.
- [3] Bharat Adsul, Paul Gastin, Saptarshi Sarkar, and Pascal Weil. Asynchronous wreath product and cascade decompositions for concurrent behaviours. Log. Methods Comput. Sci., 18, 2022. doi:10.46298/LMCS-18(2:22)2022.
- [4] Bharat Adsul and Milind A. Sohoni. Asynchronous automata-theoretic characterization of aperiodic trace languages. In Kamal Lodaya and Meena Mahajan, editors, FSTTCS 2004: Foundations of Software Technology and Theoretical Computer Science, 24th International Conference, Chennai, India, December 16-18, 2004, Proceedings, volume 3328 of Lecture Notes in Computer Science, pages 84–96. Springer, 2004. doi:10.1007/978-3-540-30538-5_8.
- [5] Mikołaj Bojańczyk. Languages recognised by finite semigroups, and their generalisations to objects such as trees and graphs, with an emphasis on definability in monadic second-order logic, 2020. arXiv:2008.11635.
- [6] J.A. Brzozowski and Faith E. Fich. Languages of R-trivial monoids. Journal of Computer and System Sciences, 20(1):32–49, 1980. doi:10.1016/0022-0000(80)90003-3.
- [7] Joëlle Cohen, Dominique Perrin, and Jean-Eric Pin. On the expressive power of temporal logic. Journal of Computer and System Sciences, 46(3):271–294, 1993. doi:10.1016/0022-0000(93)90005-H.
- [8] Volker Diekert and Paul Gastin. Pure future local temporal logics are expressively complete for Mazurkiewicz traces. Information and Computation, 204(11):1597–1619, November 2006. doi:10.1016/J.IC.2006.07.002.
- [9] Volker Diekert, Paul Gastin, and Manfred Kufleitner. A survey on small fragments of first-order logic over finite words. Int. J. Found. Comput. Sci., 19(3):513–548, 2008. doi:10.1142/S0129054108005802.
- [10] Volker Diekert, Martin Horsch, and Manfred Kufleitner. On first-order fragments for Mazurkiewicz traces. Fundamenta Informaticae, 80(1-3):1–29, 2007. URL: http://content.iospress.com/articles/fundamenta-informaticae/fi80-1-3-02.
- [11] Volker Diekert and Manfred Kufleitner. On first-order fragments for words and Mazurkiewicz traces: a survey. In Proceedings of the 11th international conference on Developments in language theory, pages 1–19, 2007.
- [12] Volker Diekert and Grzegorz Rozenberg, editors. The Book of Traces. World Scientific, 1995. doi:10.1142/2563.
- [13] Werner Ebinger and Anca Muscholl. Logical definability on infinite traces. Theor. Comput. Sci., 154(1):67–84, 1996. doi:10.1016/0304-3975(95)00130-1.
- [14] Kousha Etessami and Thomas Wilke. An until hierarchy and other applications of an Ehrenfeucht-Fraïsse game for temporal logic. Information and Computation, 160(1):88–108, 2000. doi:10.1006/inco.1999.2846.
- [15] Giovanna Guaiana, Antonio Restivo, and Sergio Salemi. On aperiodic trace languages. In Christian Choffrut and Matthias Jantzen, editors, STACS 91, 8th Annual Symposium on Theoretical Aspects of Computer Science, Hamburg, Germany, February 14-16, 1991, Proceedings, volume 480 of Lecture Notes in Computer Science, pages 76–88. Springer, 1991. doi:10.1007/BFB0020789.
- [16] Johan Anthony Willem Kamp. Tense Logic and the Theory of Linear Order. University of California, Los Angeles, CA, USA, 1968.
- [17] Manfred Kufleitner. Polynomials, fragments of temporal logic and the variety over traces. Theoretical Computer Science, 376:89–100, 2007. Special issue DLT 2006. doi:10.1016/J.TCS.2007.01.014.
- [18] Robert McNaughton and Seymour A Papert. Counter-Free Automata (MIT research monograph no. 65). The MIT Press, 1971.
- [19] Madhavan Mukund and Milind A. Sohoni. Keeping track of the latest gossip in a distributed system. Distributed Comput., 10(3):137–148, 1997. doi:10.1007/s004460050031.
- [20] M.P. Schützenberger. On finite monoids having only trivial subgroups. Information and Control, 8(2):190–194, 1965. doi:10.1016/S0019-9958(65)90108-7.
- [21] Howard Straubing. Finite automata, formal logic, and circuit complexity. Birkhaüser Verlag, Basel, Switzerland, 1994.
- [22] Wolfgang Thomas. On logical definability of trace languages. In V. Diekert, editor, Proceedings of a workshop of the ESPRIT Basic Research Action No 3166: Algebraic and Syntactic Methods in Computer Science (ASMICS), Kochel am See, Bavaria, FRG (1989), Report TUM-I9002, Technical University of Munich, pages 172–182, 1990.
- [23] Wieslaw Zielonka. Notes on finite asynchronous automata. RAIRO Theor. Informatics Appl., 21(2):99–135, 1987. doi:10.1051/ita/1987210200991.
