Abstract 1 Introduction 2 Preliminaries 3 First Order logic over pomsets and ST-sequences 4 A Linear Temporal Logic for Pomsets 5 Expressivity 6 Conclusion and future work References Appendix A Discussion: Why we need sub-events Appendix B Omitted proofs

Kamp Theorem for Pomset Languages of Higher Dimensional Automata

Emily Clement ORCID CNRS, LIPN UMR 7030, Université Sorbonne Paris Nord, F-93430 Villetaneuse, France Enzo Erlich ORCID Université Paris Cité, CNRS, IRIF, F-75013, Paris, France
EPITA Research Laboratory (LRE), Paris, France
Jérémy Ledent ORCID Université Paris Cité, CNRS, IRIF, F-75013, Paris, France
Abstract

Temporal logics are a powerful tool to specify properties of computational systems. For concurrent programs, Higher Dimensional Automata (HDA) are a very expressive model of non-interleaving concurrency. HDA recognize languages of partially ordered multisets, or pomsets. Recent work has shown that Monadic Second Order (MSO) logic is as expressive as HDA for pomset languages. In the case of words, Kamp’s theorem states that First Order (FO) logic is as expressive as Linear Temporal Logic (LTL). In this paper, we extend this result to pomsets. To do so, we first investigate the class of pomset languages that are definable in FO. As expected, this is a strict subclass of MSO-definable languages. Then, we define a Linear Temporal Logic for pomsets (LTLPoms), and show that it is equivalent to FO.

Keywords and phrases:
Higher dimensional automata, temporal logic, Kamp’s theorem
Copyright and License:
[Uncaptioned image] © Emily Clement, Enzo Erlich, and Jérémy Ledent; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Modal and temporal logics
; Theory of computation Concurrency
Related Version:
Full Version: https://arxiv.org/abs/2410.12493 [4]
Funding:
This work was partly supported by ANR projects BisoUS (ANR-22-CE48-0012) and PaVeDyS (ANR-23-CE48-0005).
Editors:
Stefano Guerrini and Barbara König

1 Introduction

Context.

Higher-Dimensional Automata (HDA) [20] are a powerful model of concurrency that enriches standard finite-state automata with higher-dimensional cells, allowing to specify that some events may occur simultaneously. HDA represent asynchronous concurrent computations where events are non-atomic, and can overlap in various complex patterns. Thus, they are a model of non-interleaving concurrency, which is concerned with simultaneity between events rather than commutation of events. HDA have been shown to be a very expressive model of concurrency: comparisons with other models (such as Petri nets, event structures) can be found in [26], based on history-preserving bisimulations, or in [14], based on adjunctions.

Figure 1: An HDA execution, depicted with intervals, and as a pomset.

A notion of language of HDA was developed only recently [10]. The key idea is that an execution of an HDA may not be represented as a word (where the events/letters are totally ordered); instead, it is a partially ordered multiset, or pomset for short. This is illustrated in Figure 1. On the left, an HDA is depicted, with two processes running in parallel. One process is executing two events a, then c, while the second process is running b, then d. One possible execution path is depicted in red. This execution can equivalently be depicted using intervals (center of Figure 1): time flows from left to right, and the duration of events is depicted by stretching horizontally the boxes representing the events. When two events overlap vertically, this means that they are occurring simultaneously. Finally, a third representation of this execution is depicted on the right of Figure 1, as a pomset. The events are ordered according to Lamport’s happens before relation [17]: ac means that event a terminates before c starts. In particular, overlapping events are not ordered.

Thus, HDA recognize languages of pomsets. Note that, just as sequential executions are a special case of concurrent executions; words are also a special case of pomsets, where the order between events happens to be total. A recent line of work has been extending classic results of automata theory to the setting of pomset languages of HDA. They have been shown to enjoy a variant of Kleene theorem [11], a Myhill-Nerode theorem [12], a pumping Lemma [3], and a Büchi-Elgot-Trakhtenbrot theorem [2]. The latter result will be of particular importance for us: it says that Monadic Second-Order (MSO) logic describes the same class of languages as HDA. To establish this result, the authors used an equivalent representation of pomsets called ST-sequences (see Section 2.2), which are words over a finite alphabet. This proof technique, further developed in [1], provides a way to lift some results from words to pomsets.

In this paper, we investigate the class of languages obtained by restricting to First Order (FO) logic instead of MSO. Over finite words, FO-definable languages form a strict subclass of regular languages, called aperiodic languages [23]. There are many equivalent characterizations of this class, such as star-free regular expressions and counter-free automata [19]. Of particular interest to us is Kamp’s theorem [16, 22], which states that Linear Temporal Logic (LTL) is as expressive as FO logic over finite words.

Contributions: FO and LTL for pomset languages.

This paper studies the class of FO-definable languages of pomsets. As expected, they form a strict subclass of HDA languages (Corollary 11). Our main goal is to define an LTL-style logic over pomsets, that defines the same class of languages as FO logic; thus extending Kamp’s theorem to pomset languages. To that end, we first show that FO formulas over pomsets can be translated into equivalent FO formulas over ST-sequences (Theorem 10). A similar result for MSO formulas was proved in [2]. However, it cannot be easily adapted: it relies heavily on a relation , that relates different occurrences of the same event in an ST-sequence. To show that this relation is definable in MSO, the authors use second-order quantification. In our first technical contribution (Lemma 9), we show that the relation is FO-definable. Instead of giving directly an FO formula (which would be very tedious), we define a counter-free automaton.

We then define a variant of LTL for pomsets that we call LTLPoms and prove that LTLPoms is equivalent to FO (Theorem 22). We sum up the proof of Theorem 22 by the chain of translations depicted in Figure 2.

Figure 2: Summary of the proof of Theorem 22.

Relationship with Mazurkiewicz traces.

Pomsets also appear in the literature in the context of Mazurkiewicz traces [18], a notion also at the intersection between automata theory and concurrency theory. Many variants of LTL on traces have been defined, and their expressivity has been extensively studied [24, 5, 25, 7, 6, 13]. Thus, it is important to distinguish this line of work with what we are studying in this paper.

The set of Mazurkiewicz traces can be described as the free partially commutative monoid over a dependence alphabet. Thus, a trace is an equivalence class of finite words where some letters are allowed to commute. Equivalently, they can also be regarded as pomsets, using their dependence graph. In the dependence graph of a Mazurkiewicz trace, ab denotes causal dependency. Two incomparable events are independent, i.e., it does not matter in which order they occur. In contrast, for HDA pomsets, the precedence order ab indicates that a terminates before b starts, and two events are incomparable when they are simultaneous (i.e., the time intervals during which they are executed overlap). This semantic distinction results in several technical differences:

  1. (i)

    HDA pomsets are always required to be interval orders (see Definition 1). This is not the case for Mazurkiewicz traces.

  2. (ii)

    For HDA, it may very well be the case that ab (i.e., a happens before b) in one execution, while a and b are incomparable (i.e., simultaneous) in another execution. This is not allowed for Mazurkiewicz traces. Indeed, they are defined with respect to a dependence alphabet, which determines in advance which events may or may not be comparable in the dependence graph.

  3. (iii)

    Lastly, HDA pomsets actually have an extra relation called the event order. Indeed, we require simultaneous events (events that are incomparable for the relation ) to be ordered by the event order. This is a way of managing process identity: if two processes are running a in parallel, the event order allows to distinguish the two events a.

Other related work.

Modal logics over HDA have been previously investigated. In [21], the author introduces a logic called Higher-Dimensional Modal Logic (HDML), which is interpreted directly on an HDA. It has two variants of the “next” operator: one that can start an event, and one that can terminate an event. A sound and complete axiomatization of this logic is given, as well as tentative definitions of LTL-like and CTL-like extensions. The language theory over pomsets is not investigated since pomset languages of HDA had not been defined at the time. However, an encoding of LTL for Mazurkiewicz traces into HDML is given. A more recent paper [27] introduces IPomset Modal Logic (IPML). This logic features a forward modality and a backwards modality, in the spirit of path logic [15]. No temporal variant of IPML is defined, the focus of this paper being on bisimulation equivalence.

Plan of the paper.

In Section 2, we recall the key definitions that we will be using. Then, in Section 3, we investigate FO over pomsets, and show our first technical contribution: FO over pomsets can be translated to FO over ST-sequences (Theorem 10). In Section 4, we define our temporal logic LTLPoms, and study its expressivity in Section 5 (Theorem 22).

2 Preliminaries

In this section, we define several notions that we will need in this paper: interval pomsets with interfaces [10], their ST-decomposition [1], and MSO logic on pomsets [2].

2.1 Interval pomsets with interfaces

Pomsets, interfaces, dimension.

Let Σ be a finite alphabet. A partially ordered multiset (or pomset) over Σ is a generalization of words, where the letters need not be totally ordered. This can represent situations where two or more events occur at the same time. An intuitive representation of some pomsets is given in Figure 3, where the events a,b,c,dΣ are depicted as intervals, and the horizontal axis represents the elapsing time. For instance, in Figure 3(a), both events a and b occur before c, which we denote by a<c and b<c. However, since the intervals for a and b overlap, the two events are concurrent: they are incomparable for the precedence relation <.

(a)
(b)
(c)
(d)
Figure 3: Four interval pomsets of dimension 2. Pomset (d) has an interface.

As seen in Figure 3, the partial orders that we are interested in arise from an interval representation, where x<y means that x’s interval terminates before y’s interval starts. This is called an interval order.

Definition 1 (Interval order).

Let (P,<) be a partially ordered set. The relation < is an interval order if there exist I,I+:P, with I(x)I+(x), satisfying the following condition: x,yP.x<yI+(x)<I(y)

Not all partial orders are interval orders: for example, the (2+2) pomset depicted in Figure 4 does not have an interval representation. Indeed, if we try to assign intervals to the four events, with a before c and b before d, we always end up with an extra relation: either a before d, or b before c, or both. In fact, interval orders can be characterized as exactly those partial orders that do not have an induced subposet isomorphic to (2+2).

Figure 4: Example of a non-interval pomset: the 2+2 partial order.

We can now define the notion of pomsets, interval pomsets, and their variants with interfaces. Pomsets are also equipped with a binary relation called the event order, which orders concurrent events. The intuition of pomsets with interfaces is that we allow some events to be already active at the beginning of a pomset, or still running at the end (see Figure 3(d)).

Definition 2 (iiPomset).

A partially ordered multiset (also called pomset) over an alphabet Σ is a tuple (P,<P,P,λP) where P is a finite set, <P is a strict partial order over P called precedence, and P is an acyclic relation on P called the event order, and λP:PΣ is a labeling function, s.t. for all x,yP, exactly one of the following holds:

x=y,x<Py,y<Px,xPy,yPx.

We write xPy when xPy and yPx. When there is no ambiguity, we denote <P,P,P and λP as <,, and λ.

  • A pomset (P,<P,P,λP) is an interval pomset if (P,<P) is an interval order.

  • An interval pomset with interfaces is an interval pomset (P,<P,P,λP) together with two sets SPP and TPP, called the starting (resp. terminating) interfaces. We require elements of SP (resp. TP) to be minimal (resp. maximal) elements w.r.t. <P.

The set of interval pomsets with interfaces is denoted iiPoms. Note that pomsets are a special case of pomsets with interfaces, where the interfaces are SP=TP=. In the rest of the paper, pomsets are always assumed to be interval pomsets with interfaces, so we drop the extra adjectives. Moreover, pomsets are (often implicitly) considered up to isomorphism: the underlying set P itself does not matter as long as the rest of the structure is the same.

The dimension of a pomset P is the size of a maximal <-antichain in P, that is, a maximal set of elements of P that are pairwise incomparable w.r.t. the precedence relation <. Such events are called concurrent. Note that any set of concurrent events is totally ordered by the event order . Intuitively, the dimension of a pomset is the maximal number of processes running concurrently at any time during this execution. We denote by iiPomsk the set of pomsets of dimension k.

When we draw pomsets in pictures, we use a plain arrow instead of < for the precedence order, and a gray dashed arrow for the event order. We represent the interfaces using a bullet symbol . We denote an event a as a when it belongs to the starting interface SP; a when it belongs to the terminating interface TP; and a when it belongs to both. Four pomsets (with and without interface) are depicted in Figure 3, next to their interval representation.

Gluing of pomsets.

Gluing is an operation on pomsets that extends word concatenation. The gluing of two pomsets P and Q is a pomset PQ, where all the events of P happen before those of Q. However, we must also take care of the interfaces of P and Q. Indeed, if an event is still active when finishing P, it must be active when beginning Q. Hence, the terminating interface of P and the starting interface of Q must match. Formally, we can view TP and SQ as pomsets (inheriting the labeling and event order from P and Q, respectively), and we require that TP and SQ must be isomorphic as pomsets (i.e., the labels and event order must be preserved). For the purpose of this paper, we only define gluing when the interfaces match exactly (TP=SQ as pomsets); see [11] for a more robust definition. For instance, the pomset of Figure 3(d) can be obtained as:

 = 

Definition 3 (Gluing).

Let P,QiiPoms be two pomsets such that PQ=TP=SQ. The gluing of P and Q, denoted by PQ, is defined as PQ:=(R,<R,R,SR,TR,λR) where:

R =PQ λR =λPλQ
<R =<P<Q(PTP)×(QSQ) SR =SP
R =PQ TR =TQ

2.2 ST decomposition

Starter-Terminator decomposition of pomsets is a tool introduced in [3, 12] to decompose a pomset as a gluing of elementary elements, i.e. pomsets with empty precedence order. This technique allows to describe pomsets over Σ of dimension k as finite words over a finite alphabet Ωk. This makes it possible to lift results from words to pomsets.

A pomset P is called discrete when it has an empty precedence order. In that case, the event order is a total order. Thus, we will write discrete pomsets as lists of events, between square brackets, where the event order is omitted and goes implicitly from top to bottom. For instance, P=[ab] is a discrete pomset with two concurrent events ab, where SP={b} and TP={a}. A discrete pomset P can be:

  • a conclist if SP=TP=,

  • a starter if TP=P,

  • a terminator if SP=P,

  • an identity if it is both a starter and a terminator.

For example, [ab] is a conclist, [ab] is a starter, [ab] is a terminator, and [ab] is an identity. Intuitively, a starter can only start new events: so, all events must belong to the terminating interface, because they must keep running, hence the TP=P. Conversely, a terminator is allowed to terminate some events, but it cannot start new ones: all events were already running at the start, thus SP=P. Note that the discrete pomset [ab] is neither a starter nor a terminator, since it both starts a and terminates b. A conclist has no interface, it simply denotes an (ordered) list of events that are running concurrently, hence the name, short for concurrency list.

We denote the set of conclists by 𝖢𝖫𝗂𝗌𝗍. We write Ω for the set of all starters and terminators, and Ωk for the ones of dimension at most k. Notice that since the alphabet Σ is finite, the set Ωk is also finite. A finite word P1P2PnΩk is called coherent if TPi=SPi+1 for all 1in1. When that is the case, we can glue the successive elements in the sequence to obtain a pomset P1P2PniiPomsk. A coherent word on Ωk is also called an ST-sequence. If wΩk is an ST-sequence, we write 𝗀𝗅𝗎𝖾(w)iiPomsk for its associated pomset.

Proposition 4 (ST decomposition [12]).

Every pomset PiiPomsk can be decomposed as an ST-sequence: there exists wΩk such that P=𝗀𝗅𝗎𝖾(w).

Let us take our running example of Figure 3(d) and express an ST-decomposition of this pomset:

=[ab][ab][ad][ad][cd][cd]

An ST decomposition is called sparse if it alternates between starters and terminators, and contains no identities. For example, the ST decomposition given above is sparse: from left to right, we first start a, terminate b, start d, terminate a, start c, and terminate c.

In general, ST decompositions are not unique. Indeed, one can always add any number of identities (see example on the left); and when several events start at the same time, we can equivalently start one before the other, or both at once (see example on the right).

[ab]=[ab][ab][ab][ab]=[a][ab]=[b][ab]

However, every pomset admits a unique sparse ST decomposition (see [12] for a proof).

2.3 Monadic Second Order logic over pomsets

We now recall the Monadic Second Order (MSO) logic over pomsets introduced in [2]. The main result of [2] is a variant of Büchi’s theorem for pomsets, which states that MSO logic captures the same class of pomset languages as higher dimensional automata.

The syntax of MSO formulas for pomsets is generated by the grammar:

φ,ψ::=¬φφψx.φX.φxXa(x)𝐬(x)𝐭(x)x<yxy

where aΣ is a letter of the alphabet, x,y are first order variables and X is a second-order variable. The symbols 𝐬 and 𝐭 are unary predicates, meaning that x belongs to the starting (resp. terminating) interface. The binary relation symbols < and stand for the precedence and event order.

Definition 5 (Semantics of MSO over pomsets).

An MSO formula φ is evaluated over a pomset P=(P,<P,P,SP,TP,λP), together with an interpretation function ν. The function ν gives the interpretation of free variables of φ: first-order variables are mapped to events of P, and second-order variables are mapped to sets of events of P. The satisfaction relation P,νφ is defined inductively as follows:
P,νa(x) if λP(ν(x))=a P,νxX if ν(x)ν(X) P,ν𝐬(x) if ν(x)SP P,ν𝐭(x) if ν(x)TP P,ν¬φ if P,ν⊧̸φ P,νφψ if P,νφ and P,νψ P,νx<y if ν(x)<Pν(y) P,νxy if ν(x)Pν(y) P,νx.φ if pPs.t. P,ν[xp]φ P,νX.φ if QPs.t. P,ν[XQ]φ

We write Pφ when φ does not have any free variables, and (φ)={PiiPomsPφ}.

In order to prove that MSO over pomsets is as expressive as higher dimensional automata, the authors of [2] used a detour via ST-sequences. An MSO formula φ over pomsets can be translated into a formula φ over ST-sequences that accepts the representations of the pomsets accepted by φ. The precise statement of this translation is reproduced below, in Lemma 6. Recall that ST-sequences are simply words over a different alphabet Ωk, so MSO logic over ST-sequences is the standard MSO logic over finite words.

Lemma 6 (cf. [2, Lemma 12]).

Let φ be an MSO formula for pomsets without free variables. Then, for any k, there exists an MSO formula φ over Ωk, such that:

(φ)={w(Ωk{Id})+w is coherent and 𝗀𝗅𝗎𝖾(w)φ}

where Id denotes the empty pomset.

3 First Order logic over pomsets and ST-sequences

In this section, our goal is to prove a variant of Lemma 6 for FO formulas. Unfortunately, the proof given in [2] cannot be easily adapted: even if we start with an FO formula φ, the translation that they give yields a formula φ that contains second-order quantification. This is because their translation makes extensive use of an MSO-definable relation (x,i)(y,j) that keeps track of the position of an event in an ST-sequence. This relation relies on second-order quantification, and is used in several cases of the inductive translation. In Section 3.2, we show that the relation can actually be expressed in first order. The translation from FO formulas on pomsets to FO formulas on ST-sequences then follows in Theorem 10.

3.1 First Order logics for pomsets

First Order (FO) logic is obtained by removing the second-order quantification from the MSO logic described in Section 2.3. Given a finite alphabet Σ, the syntax of FO formulas over pomsets is generated by the following grammar:

φ,ψ::=¬φφψx.φa(x)𝐬(x)𝐭(x)x<yxy

where x is a first order variable and aΣ. The semantics is the same as the one of Definition 5, ignoring the two cases related to second-order variables. When dealing with pomsets of dimension k, we also consider FO formulas over ST-sequences. Recall that an ST-sequence is simply a word over the finite alphabet Ωk, whose elements are starters/terminators. So this is the usual FO logic over words, whose syntax is generated by:

φ,ψ::=¬φφψx.φP(x)x<y

where x is a first order variable and PΩk. It is interpreted over words wΩk, with the usual semantics. We write FOΩk for the set of FO formulas over Ωk.

3.2 The same-event relation

When translating FO formulas from pomsets to ST-sequences, a key difficulty is that first-order variables contain very different information in those two representations. In an FO formula evaluated over a pomset P, a variable x is interpreted as an element pP of the pomset, i.e., an event. However, for an FOΩk formula evaluated over ST-sequences, a variable x is interpreted as a position in the sequence, labeled by a letter UΩk. Each such letter contains several events (up to k, the dimension of the language), but it also contains only a small portion of those events. As seen in the example below, the event a of the pomset depicted on the left spans over 4 letters of the ST-sequence on the right.

 

Thus, to keep track of events in an ST-sequence, we will use pairs (x,i) where x is a first-order variable, selecting one starter/terminator in the ST-sequence; and i is the position of the event that we are currently tracking in this starter/terminator. Note that, since we are interested in pomsets of dimension k, there are only finitely many possible values for 1ik. Since the same event may span several starters/terminators, it may be the case that two different pairs (x,i) and (y,j) designate the same event, as in the example below:

[ab][ab](x,1)[ad][ad](y,1)[cd][cd]

Hence, we will need to use the same-event relation (x,i)(y,j), which is true if and only if the i-th event of the evaluation of x is the j-th event of the evaluation of y. This is the same idea as in the proof of Lemma 6 found in [2]; however, we will need to show that this relation can actually be defined using only first order formulas. We do so in Lemma 9, by providing a counter-free automaton recognizing it. Counter-free automata are restrictions of finite state automata whose languages are first-order definable.

Definition 7 ([19], Counter-Free Automata).

Let =(Σ,Q,q0,F,δ) be a deterministic finite-state automaton. is counter-free if there exists a positive integer n such that for any non-empty word wΣ and for any state qQ, the state-transition function satisfies the following equality: δ(q,wn)=δ(q,wn+1).

Proposition 8 ([19]).

Counter-free automata are as expressive as FO logic over words.

Lemma 9.

Fix i,j{1,,k}. Then, the binary relation (x,i)(y,j) is definable by an FOΩk formula with two free variables x and y.

Proof (Sketch).

Given an event a and two indexes i,j{1,,k}, we build a counter-free automaton 𝒜i,j,a that scans an ST-sequence P1P2Pn and accepts if and only if the i-th element of P1 is the same a-event as the j-th element of Pn. Figure 5 depicts an example of such an automaton, with event alphabet Σ={a,b} and pomsets of dimension at most k=2. The a-event that the automaton is currently following is depicted in red on each starter/terminator that it reads. Inside the states, we keep track of the list of currently active events (i.e. a conclist U𝖢𝖫𝗂𝗌𝗍k), and the position (i{1,,k}) of the followed event. Hence, the set of states is 𝖢𝖫𝗂𝗌𝗍k×{1,,k}, plus an initial, a final and a sink state. See Section B.1 for the precise formal definition of the automaton.

Figure 5: 𝒜1,2,a, sink state and identities not drawn.

To prove that all 𝒜i,j,a are counter-free, consider a state (U,), and an ST-sequence w=P1Pn. We need to show that 𝒜i,j,a will never fall in a non-trivial cycle when reading w repeatedly from (U,). There are several cases:

  • If SP1U or TPnU, then the execution fails and falls in a sink state after one or two iterations.

  • If SP1=TPn=U and the -th element of P1 is the -th element of Pn, then we are in a trivial cycle (an execution reading w from (U,) arrives in (U,))

  • If SP1=TPn=U and the -th element of P1 is the -th element of Pn, with > (the opposite case is similar), then will keep decreasing strictly as we iterate w. The example below illustrates what might happen, with a pomset of dimension k=3. We start in state (aaa,3), so three a’s are running concurrently, and we are tracking the third one (in red). When the automaton reads the word w below, the first a is terminated, and another a is started, but this new a is placed after the other two according to event order. The tracked a ends up in position 2, so the state of the automaton is now (aaa,2). After decreasing a finite number of times, the execution arrives in the sink state – and fails.

    w=[aaa][aaa]δ((aaa,3),w)=(aaa,2)δ((aaa,3),w2)=(aaa,1)

Hence, from any state (U,), the execution enters a trivial cycle in at most k+1 steps. Since any execution leaves the initial state in one step, 𝒜i,j,a is counter-free (by taking n=k+2 in Definition 7). So 𝒜i,j,a can be expressed as an FO formula, and with a disjunction over all aΣ we get an FO formula for (x,i)(y,j). See Section B.1 for details.

3.3 Translation of FO formulas from pomsets to ST-sequences

Now that we have proven that the same-event relation is FO-definable, we can inductively translate FO formulas on pomsets to FOΩk formulas on ST-sequences. The inductive definition of φ is the same as the one of [2]. We reproduce it in the full version for completeness [4].

Theorem 10.

Let φ be an FO formula over pomsets without free variables. Then, for any k, there exists an FOΩk formula φ over Ωk such that:

(φ)={w(Ωk{Id})+w is coherent and 𝗀𝗅𝗎𝖾(w)φ}

In the full version [4], we show that in the worst case, the size of φ is O(k|φ|), where |φ| is the size of φ. As a corollary of Theorem 10, we can can show that FO is strictly weaker than MSO for pomset languages.

Corollary 11.

FO is strictly weaker than MSO.

Proof.

Consider the language of pomsets L={[ab]2nn}, where the exponent denotes gluing iteration. Viewed as a language of ST-sequences (i.e., words on Ω2), this corresponds to W={([ab][ab])2nn}. As a language of words, W is not definable in FOΩk (see e.g. [8] for a proof). By the contrapositive of Theorem 10, L cannot be defined in FO.

4 A Linear Temporal Logic for Pomsets

In this section, we introduce our Linear Temporal Logic for pomsets, LTLPoms. Using the terminology of [6], it is a local temporal logic, meaning that it is interpreted over a single event of the pomset, rather than on a global state. However, since events can span a long period of time, they are split into so-called sub-events (see Figure 6). While defining a temporal logic directly over events might seem more straightforward, we show in Appendix A that such a logic is strictly less expressive than FO over pomsets. Nonetheless, we will show in Section 5, Theorem 22 that with sub-events, LTLPoms is as expressive as FO over pomsets of dimension k.

4.1 Syntax and Semantics

Let us first give an intuitive explanation of the notion of sub-event, relying on the interval representation of a pomset. Consider the pomset P depicted in Figure 6. The interval representation of P is decomposed in three “slices” (delimited by dotted lines). Each slice corresponds to two consecutive elements of the sparse ST-decomposition of P, i.e., a starter and a terminator. Thus, in every slice, some events start, then some events terminate. Intuitively, a sub-event is given by an event xP together with one of the slices it crosses. For instance, event a spans two slices: therefore, it is divided into two sub-events a1 and a2.

Figure 6: A slicing of a pomset with 4 events (a, b, c, d) into 6 sub-events (a1, a2, b1, c1, d1, d2).

Our formal definition of sub-events does not rely on the ST-decomposition of the pomset. Instead, we define it directly on the pomset itself. A sub-event is a pair of two events, (x,m), where xP is the event being considered, and mP acts as a timestamp indicating the current slice. One can think of m as the latest event to have started. For example, in Figure 6, the sub-event a1 is given by the pair (a,a); while a2 is given by the pair (a,d). However, notice that not all pairs of events define sub-events: (c,d) makes no sense since event c is not running when d starts. Definition 12 introduces an order that captures these situations.

Definition 12.

Let P be a pomset. We say that xP starts before yP, denoted x<sy if there exists zP such that xz and z<y. We write xsy when xsy and ysx, and xsy when x<sy or xsy.

Intuitively, x<sy means that in every interval representation of P, the interval representing x starts before the one representing y. For example in the pomset of Figure 6, we have a<sd and d<sc. Observe that s is an equivalence relation whose equivalence classes correspond intuitively to the slices of P (for example, asb in Figure 6). Hence, s is a total preorder on the events of P, and we think of it as a total order on the slices.

Definition 13 (Sub-event).

A sub-event of a pomset P is a pair (x,m)P2 where xm and xsm. When x=y and msq, we write (x,m)(y,q).

Note that, when several events start in the same slice, two sub-events may actually represent the same point in the interval representation. This is why we introduce the relation over sub-events. When (x,m)(y,q), we think of (x,m) and (y,q) as representing “the same” sub-event. For example, the sub-event denoted by a1 in Figure 6 can be formalized either by (a,a) or (a,b), since asb. To simplify the presentation, we do not explicitly quotient by the relation . However, we will make sure that whenever (x,m)(y,q), the two sub-events satisfy the same formulas, i.e., P,(x,m)φ iff P,(y,q)φ (see Proposition 18).

Next, we define an order between sub-events. This order will be crucial to ensure that our temporal logic operators can only go forward in time. There are two ways to advance in time: either stay within the same event x, but move to a later slice; or terminate the current event x and jump to a new event y that occurs after x.

Definition 14 (Order over sub-events).

Given two sub-events (x,m) and (y,q), we say that (x,m) precedes (y,q) in P, denoted (x,m)(y,q), if either x<y, or x=y and m<sq.

We denote by the non-strict version: (x,m)(y,q) if (x,m)(y,q) or (x,m)(y,q). Observe that is a (partial) preorder on sub-events. In Figure 6, we have for example a1a2c1 and b1c1. However, a1d1 and b1a2: it is not allowed to jump to a different event that is concurrent with the current one. Indeed, we want our temporal operators to be able to follow the local view of individual processes. (There will, however, be a different modality allowing to jump to a concurrent event within the same slice.)

Finally, we introduce a one-step version of , which plays the role of our “next” modality.

Definition 15.

(x,m)1(y,q) if (x,m)(y,q) and there is no r such that m<sr<sq.

Intuitively, the relation 1 only orders events in adjacent slices. For instance, in Figure 6, we have b11d1, but b11c1. Note that Definition 15 is more restrictive than the requirement that “there is no (z,r) such that (x,m)(z,r)(y,q)”. The latter would allow jumping directly from b1 to c1 in Figure 6, skipping a slice. We prefer to ensure that our “next” modality always advances by exactly one slice.

We are now ready to introduce our logic LTLPoms. The “next” modality, denoted 1, jumps to a successor sub-event in the next slice. Note that it is existential, since there may be more than one successor. The modalities and 1 jump to a concurrent sub-event within the same slice. Recall that in our pomsets, concurrent events are totally ordered by the event order . Finally, the atomic formula 𝐬 (resp. 𝐭) checks whether the current sub-event is being started (resp. terminated) in the current slice.

Definition 16 (LTLPoms).

The syntax of LTLPoms is generated by the following grammar:

φ,ψ::=a𝐬𝐭¬φφψ1φφ1φφ𝐔ψ

where aΣ. Given a LTLPoms formula φ and a sub-event (x,m), we define the satisfaction relation P,(x,m)φ by induction on the formula φ:

  1. 1.

    P,(x,m)a if λP(x)=a

  2. 2.

    P,(x,m)𝐬 if xSP and xsm

  3. 3.

    P,(x,m)𝐭 if xTP and there is no qP s.t. xq and m<sq

  4. 4.

    P,(x,m)¬φ if P,(x,m)⊧̸φ

  5. 5.

    P,(x,m)φψ if P,(x,m)φ and P,(x,m)ψ

  6. 6.

    P,(x,m)1φ if there is a sub-event (y,q) such that (x,m)1(y,q) and P,(y,q)φ.

  7. 7.

    P,(x,m)φ if there is yP such that (y,m) is a sub-event, y is a direct successor of x by , and P,(y,m)φ

  8. 8.

    P,(x,m)1φ if there is yP such that (y,m) is a sub-event, y is a direct predecessor of x by , and P,(y,m)φ

  9. 9.

    P,(x,m)φ𝐔ψ if there exists (y,n) such that (x,m)(y,n), P,(y,n)ψ and, for all (z,q) such that (x,m)(z,q)(y,n), P,(z,q)φ.

To define what “P satisfies φ” means for a given pomset P and LTLPoms formula φ, we need to choose a canonical “source” sub-event of the pomset. Let MPP be the set of events that are minimal according to <P. Notice that MP is totally ordered by the event-order relation P. Then we let source(P)=(x,x), where x=minPMP. Intuitively, this is the top-left sub-event in an interval representation. Finally, define Pφ iff P,source(P)φ.

Example 17.
Figure 7: A pomset containing 5 events a, b, c, d, e, where c is split into two sub-events c1 and c2. Note that formally, c1 has two representatives (c,a)(c,c), while c2 is represented by (c,b).

In the pomset represented in Figure 7, c1𝐬¬𝐭 while c2¬𝐬𝐭. Notice that a1⊧̸𝐬: since event a belongs to the starting interface of the pomset, it was already started in the first slice. Similarly, e1⊧̸𝐭. The 1 modality allows to jump from c2 to either d1 or e1, with an existential quantification. It can be read as an “exists next” modality. For instance, we have c21d and c21e, but c2⊧̸1de. However, note that c1⊧̸b: the “next” modality does not allow to jump to a different event since event c is still running (cf. Definition 15). The dual “for all next” modality can be defined as [1]φ:=¬1¬φ.

The operators and 1 allow to move to a concurrent event following the event order relation, while staying within the current slice. So, crucially, b1⊧̸1a. This was our motivation to introduce the notion of sub-events. Without them, one could inadvertently move forwards or backwards in time by only following event order relations. Note that, within a slice, the event order relation is total. Thus, there can be at most one direct successor. The operator is still existential in a degenerate sense: if there is no successor, the formula is not satisfied. For instance, e1⊧̸.

The operator 𝐔 is the usual Until modality with regard to . However, it might be slightly counter-intuitive. Despite the universal quantification over all intermediary sub-events, it may seemingly “miss” events that are concurrent with one of the two endpoints. For instance, in the pomset of Figure 7, a1(ab)𝐔d: since event c is parallel with a, the sub-event c2 is not reachable from a1. In the next section, we will define a variant of the Until operator that also takes into account these parallel events.

As stated earlier, our logic is consistent with the relation. This is proven by induction over the formula; the full proof can be found in Section B.2.

Proposition 18.

Let P be a pomset, and let (x,m)(y,q) two equivalent sub-events of P, then for every formula φ of LTLPoms, P,(x,m)φ if and only if P,(y,q)φ.

4.2 Derived operators

The precise choice of operators for the logic LTLPoms may seem somewhat arbitrary. It will be justified in Section 5, where we show that it is equivalent to FO. So, any first-order definable temporal operators can also be defined in LTLPoms. We give a few useful examples below. Recall that in the whole paper, we are working with pomsets of bounded dimension k. So there can be at most k parallel events at any time.

  • Exists parallel: φ:=i=0k(iφ1iφ). This operator jumps to some sub-event in the current slice. P,(x,m)φ iff there exists yP such that (y,m) is a subevent and P,(y,m)φ. The dual universally quantified operator is []φ:=¬¬φ.

  • Exists strict parallel: φ:=i=1k(iφ1iφ). Similar to the previous one, but this operator must jump to a different sub-event. In particular, if there is no other event currently running, this formula is always false.

  • Finally and Globally: 𝐅φ:=𝐔φ. This is the usual Finally operator of temporal logics: P,(x,m)𝐅φ iff there exists a sub-event (y,q) of P such that (x,m)(y,q) and P,(y,q)φ. Its dual operator is Globally, defined as 𝐆φ:=¬𝐅¬φ.

  • Finally parallel and Globally parallel: 𝐅φ:=𝐅φ. This variant of 𝐅 covers all sub-events that happen later or at the same time as the current sub-event, even those that are on parallel events. P,(x,m)𝐅φ iff there exists a sub-event (y,q) of P such that msq and P,(y,q)φ. The dual universally quantified operator is 𝐆φ:=¬𝐅¬φ. Equivalently, one can also define it as 𝐆φ:=𝐆[]φ.

  • Until parallel: φ𝐔ψ:=([]φ)𝐔(ψ). This variant of the Until modality takes into account events that are concurrent with the two endpoints. More formally, P,(x,m)φ𝐔ψ iff there exists a sub-event of the form (y,q) with msq such that P,(y,q)ψ and for every sub-event (z,r) such that msr<sq, P,(z,r)φ.

4.3 Toy example

To illustrate how our logic LTLPoms allows to concisely express properties of concurrent systems, let us consider a very simple example: specifying the correctness of a mutual exclusion algorithm using locks. Thus, suppose that we have a lock mechanism available, with two operations: action P to acquire the lock, and action V to release it [9]. Now assume that we want our processes to use some critical resource a (perhaps a shared data structure) that cannot be accessed concurrently. So, we want to ensure that there can never be two processes executing action a concurrently. The obvious solution to this problem is the following: every process runs the program (P;a;V). That is, first acquire the lock, then perform action a, and then release the lock (and repeat).

We would like to specify that this implementation of a critical section is correct. For that, we need to specify (i) the behavior of the lock, and (ii) the expected behavior of the mutual exclusion algorithm. We express both of those properties in the language of LTLPoms.

  1. (i)

    Lock specification. φlock=𝐆((P𝐭)(¬(P𝐭)1(¬(P𝐭)𝐔(V𝐬)))).

    This formula expresses that at any point during the execution of the program, whenever an action P terminates (i.e., a process acquires the lock), then no other process can acquire the lock (P𝐭) until the lock is released (V𝐬).

  2. (ii)

    Mutual exclusion specification. φexclusion=𝐆(a¬a).

    This formula expresses that there are never two overlapping events a.

What we want to verify is that, assuming the P/V actions behave according to the lock specification, our algorithm ensures the mutual exclusion property is satisfied. The algorithm itself (say, for k processes) can be modeled as an HDA, obtained as the parallel composition of k copies of one process performing a loop (P;a;V). Executions of this HDA are pomsets, but not all of them satisfy the lock specification. We want to check that every execution that satisfies φlock also satisfies φexclusion. This amounts to model-checking that every pomset in the language of the HDA satisfies the formula φlockφexclusion.

5 Expressivity

In this section, we show that LTLPoms has the same expressive power as first order logic for pomsets of bounded dimension. We prove this by providing well-chosen translations between pomset and word logics, thus allowing us to use directly the results of Kamp’s theorem. The translation from LTLPoms to FO can be done by writing the semantics of LTLPoms in FO formulas (see Proposition 21). Since we already gave the translation from FO on pomsets to FO on ST-sequences in Theorem 10, we now have to prove that any LTL formula over ST-sequences can be translated to an equivalent LTLPoms formula.

Figure 8: Summary of the proof of Theorem 22.

First, we formalize the intuition given at the start of Section 4.1: the “slices” of a pomset can be obtained by gluing two consecutive elements (a starter and a terminator) of its sparse ST-decomposition. The following definition allows padding the sparse ST-decomposition with identity elements, in order to make sure that it always starts with a starter, and ends with a terminator. We write IdU for the identity pomset with starting and terminating interface U.

Definition 19.

Given a pomset P with sparse ST-decomposition P1P2Pn, the even-sparse ST-decomposition of P is SP1P2PnT where S=IdSP1 if P1 is a terminator, or S=ε otherwise, and T=IdTPn if Pn is a starter, or T=ε otherwise.

Proposition 20.

For any k, for any LTL formula φ over k-dimensional ST-sequences, there exists an LTLPoms formula φ such that for any pomset P with even-sparse decomposition P1P2P2n, we have Pφ if and only if P1P2P2nφ.

Proof sketch.

Notice that, since one “slice” of a pomset corresponds to two symbols in the ST-decomposition, one application of the Next modality 1 of LTLPoms corresponds to two applications of the Next modality 𝐗 of LTL. Thus, we actually define two translations φ𝐬 and φ𝐭 by mutual induction. The first translation is the one required to prove the Proposition, φ=φ𝐬. The second translation φ𝐭 is used after one application of 𝐗, when the ST-decomposition starts with a terminator.

For the base case where φ=P for some starter or terminator P, φ𝐬 checks that P is indeed a starter, and that the elements in the current slice are exactly those of P. Similarly for φ𝐭, we check that P is a terminator. To translate the 𝐗 modality, if the current element is a starter, then the next one is the terminator of the same slice: 𝐗ψ𝐬=ψ𝐭. If, on the contrary, the current element is a terminator, we need to jump to the next slice: 𝐗ψ𝐭=1ψ𝐬. For the Until modality, we need to ensure that any intermediate slice satisfies ψ1 for both the starter and terminator parts, until the final slice which satisfies ψ2 either in its starter or terminator part: ψ1𝐔ψ2𝐬=(ψ1𝐬ψ1𝐭)𝐔(ψ2𝐬(ψ1𝐬ψ2𝐭)) and ψ1𝐔ψ2𝐭=ψ2𝐭(ψ1𝐭1((ψ1𝐬ψ1𝐭)𝐔(ψ2𝐬(ψ1𝐬ψ2𝐭)))).

The complete proof is in the full version [4].

Proposition 21 is proved by expressing the semantics of Definition 16 in FO. All details are in the full version [4]. Then we conclude the proof of expressivity of LTLPoms in Theorem 22.

Proposition 21.

For any LTLPoms formula φ, there exists an FO formula over pomsets φ such that, for any pomset P, Pφ if and only if Pφ.

Theorem 22.

For any pomset language L of bounded dimension k, the two following statements are equivalent:

  1. 1.

    There exists φ, an FO formula, such that for any pomset P, PL if and only if Pφ.

  2. 2.

    There exists ψ, an LTLPoms formula, such that for any pomset P, PL if and only if Pψ.

Proof.

Let us proceed as depicted in Figure 8. By Theorem 10, any FO formula φ over pomsets can be translated into an equivalent FO formula φ over ST-sequences, accepting exactly the ST-decompositions of pomsets accepted by φ. This formula can in turn be translated into an equivalent LTL formula φ′′ by Kamp’s theorem [22]. Finally, by Proposition 20, there is an LTLPoms formula φ′′′, such that for any pomset P, Pφ′′′ if and only if P’s even-sparse ST-decomposition validates φ′′, which in turn is equivalent to the fact that Pφ. This proves that FO is at most as expressive as LTLPoms. Proposition 21 ensure that they are in fact equivalent by providing the converse translation.

 Remark 23.

All our proofs are constructive, in the sense that algorithms can easily be extracted from our translations and from Kamp’s theorem [22]. Given an FO formula φ, the size of the associated LTLPoms formula is non-elementary in the size of φ. This is because there is a non-elementary succinctness gap between FO and LTL over words [22]. For the converse translation, given an LTLPoms formula ψ, the size of the translated formula FO is linear in the size of ψ. The complexity for each translation depicted in Figure 8 can be found alongside the associated proofs in the full version [4].

6 Conclusion and future work

This paper is a first step towards understanding temporal logics on HDA pomset languages. We have established two key results. The first one, Theorem 10, shows that FO formulas on pomsets can be translated to FO on ST-sequences. Our second result is Theorem 22, asserting that the temporal logic LTLPoms is equivalent to FO over pomsets, thus extending Kamp’s theorem to pomset languages.

As future work, it would be insightful to find other characterizations of the class of FO-definable pomset languages, such as defining a notion of counter-free higher dimensional automata. More importantly, a central purpose of temporal logics is the specification and verification of program properties. Thus, the obvious next steps of this work is to design efficient algorithms for deciding satisfiability and model-checking of LTLPoms formulas. It is already known (see [2], Corollary 10) that these problems are decidable for MSO formulas, and thus also for FO formulas. We hope however that verifying LTLPoms formulas directly should yield a better complexity than relying on their FO translation.

References

  • [1] Amazigh Amrane, Hugo Bazille, Emily Clement, Uli Fahrenberg, and Krzysztof Ziemianski. Presenting interval pomsets with interfaces. In Uli Fahrenberg, Wesley Fussner, and Roland Glück, editors, Relational and Algebraic Methods in Computer Science - 21st International Conference, RAMiCS 2024, Prague, Czech Republic, August 19-22, 2024, Proceedings, volume 14787 of Lecture Notes in Computer Science, pages 28–45. Springer, 2024. doi:10.1007/978-3-031-68279-7_3.
  • [2] Amazigh Amrane, Hugo Bazille, Uli Fahrenberg, and Marie Fortin. Logic and languages of higher-dimensional automata. In Joel D. Day and Florin Manea, editors, Developments in Language Theory - 28th International Conference, DLT 2024, Göttingen, Germany, August 12-16, 2024, Proceedings, volume 14791 of Lecture Notes in Computer Science, pages 51–67. Springer, 2024. doi:10.1007/978-3-031-66159-4_5.
  • [3] Amazigh Amrane, Hugo Bazille, Uli Fahrenberg, and Krzysztof Ziemianski. Closure and decision properties for higher-dimensional automata. In Erika Ábrahám, Clemens Dubslaff, and Silvia Lizeth Tapia Tarifa, editors, Theoretical Aspects of Computing - ICTAC 2023 - 20th International Colloquium, Lima, Peru, December 4-8, 2023, Proceedings, volume 14446 of Lecture Notes in Computer Science, pages 295–312. Springer, 2023. doi:10.1007/978-3-031-47963-2_18.
  • [4] Emily Clement, Enzo Erlich, and Jérémy Ledent. Expressivity of linear temporal logic for pomset languages of higher dimensional automata. CoRR, abs/2410.12493, 2024. doi:10.48550/arXiv.2410.12493.
  • [5] Volker Diekert and Paul Gastin. LTL is expressively complete for mazurkiewicz traces. J. Comput. Syst. Sci., 64(2):396–418, 2002. doi:10.1006/jcss.2001.1817.
  • [6] Volker Diekert and Paul Gastin. From local to global temporal logics over mazurkiewicz traces. Theoretical Computer Science, 356(1):126–135, 2006. In honour of Professor Christian Choffrut on the occasion of his 60th birthday. doi:10.1016/j.tcs.2006.01.035.
  • [7] Volker Diekert and Paul Gastin. Pure future local temporal logics are expressively complete for mazurkiewicz traces. Inf. Comput., 204(11):1597–1619, 2006. doi:10.1016/j.ic.2006.07.002.
  • [8] Volker Diekert and Paul Gastin. First-order definable languages. In Jörg Flum, Erich Grädel, and Thomas Wilke, editors, Logic and Automata: History and Perspectives [in Honor of Wolfgang Thomas], volume 2 of Texts in Logic and Games, pages 261–306. Amsterdam University Press, 2008.
  • [9] Edsger W. Dijkstra. The structure of "the"-multiprogramming system. Commun. ACM, 11(5):341–346, 1968. doi:10.1145/363095.363143.
  • [10] Uli Fahrenberg, Christian Johansen, Georg Struth, and Krzysztof Ziemianski. Languages of higher-dimensional automata. Math. Struct. Comput. Sci., 31(5):575–613, 2021. doi:10.1017/S0960129521000293.
  • [11] Uli Fahrenberg, Christian Johansen, Georg Struth, and Krzysztof Ziemianski. A kleene theorem for higher-dimensional automata. In Bartek Klin, Slawomir Lasota, and Anca Muscholl, editors, 33rd International Conference on Concurrency Theory, CONCUR 2022, September 12-16, 2022, Warsaw, Poland, volume 243 of LIPIcs, pages 29:1–29:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.CONCUR.2022.29.
  • [12] Uli Fahrenberg and Krzysztof Ziemianski. A myhill-nerode theorem for higher-dimensional automata. In Luís Gomes and Robert Lorenz, editors, Application and Theory of Petri Nets and Concurrency - 44th International Conference, PETRI NETS 2023, Lisbon, Portugal, June 25-30, 2023, Proceedings, volume 13929 of Lecture Notes in Computer Science, pages 167–188. Springer, 2023. doi:10.1007/978-3-031-33620-1_9.
  • [13] Paul Gastin and Dietrich Kuske. Uniform satisfiability in PSPACE for local temporal logics over mazurkiewicz traces. Fundam. Informaticae, 80(1-3):169–197, 2007. doi:10.3233/FUN-2007-801-310.
  • [14] Eric Goubault and Samuel Mimram. Formal relationships between geometrical and classical models for concurrency. In Lisbeth Fajstrup, Eric Goubault, and Martin Raussen, editors, Proceedings of the workshop on Geometric and Topological Methods in Computer Science, GETCO 2010, Aalborg, Denmark, January 11-15, 2010, volume 283 of Electronic Notes in Theoretical Computer Science, pages 77–109. Elsevier, 2010. doi:10.1016/j.entcs.2012.05.007.
  • [15] André Joyal, Mogens Nielsen, and Glynn Winskel. Bisimulation from open maps. Inf. Comput., 127(2):164–185, 1996. doi:10.1006/inco.1996.0057.
  • [16] Johan Anthony Willem Kamp. Tense Logic and the Theory of Linear Order. PhD thesis, Computer Science Department, University of California at Los Angeles, USA, 1968.
  • [17] Leslie Lamport. On interprocess communication. part I: basic formalism. Distributed Comput., 1(2):77–85, 1986. doi:10.1007/BF01786227.
  • [18] Antoni W. Mazurkiewicz. Trace theory. In Wilfried Brauer, Wolfgang Reisig, and Grzegorz Rozenberg, editors, Petri Nets: Central Models and Their Properties, Advances in Petri Nets 1986, Part II, Proceedings of an Advanced Course, Bad Honnef, Germany, 8-19 September 1986, volume 255 of Lecture Notes in Computer Science, pages 279–324. Springer, 1986. doi:10.1007/3-540-17906-2_30.
  • [19] Robert McNaughton and Seymour Papert. Counter-Free Automata, volume Research Monograph, 65. The M.I.T. Press, Cambridge, Mass., 1971.
  • [20] Vaughan R. Pratt. Modeling concurrency with geometry. In David S. Wise, editor, Conference Record of the Eighteenth Annual ACM Symposium on Principles of Programming Languages, Orlando, Florida, USA, January 21-23, 1991, pages 311–322. ACM Press, 1991. doi:10.1145/99583.99625.
  • [21] Cristian Prisacariu. Modal logic over higher dimensional automata. In Paul Gastin and François Laroussinie, editors, CONCUR 2010 - Concurrency Theory, 21th International Conference, CONCUR 2010, Paris, France, August 31-September 3, 2010. Proceedings, volume 6269 of Lecture Notes in Computer Science, pages 494–508. Springer, 2010. doi:10.1007/978-3-642-15375-4_34.
  • [22] Alexander Rabinovich. A proof of kamp’s theorem. Logical Methods in Computer Science, Volume 10, Issue 1:730, 2014. doi:10.2168/LMCS-10(1:14)2014.
  • [23] Marcel Paul 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.
  • [24] P. S. Thiagarajan. A trace based extension of linear time temporal logic. In Proceedings of the Ninth Annual Symposium on Logic in Computer Science (LICS ’94), Paris, France, July 4-7, 1994, pages 438–447. IEEE Computer Society, 1994. doi:10.1109/LICS.1994.316047.
  • [25] P.S. Thiagarajan and I. Walukiewicz. An expressively complete linear time temporal logic for mazurkiewicz traces. Information and Computation, 179(2):230–249, 2002. doi:10.1006/inco.2001.2956.
  • [26] Rob J. van Glabbeek. On the expressiveness of higher dimensional automata. Theor. Comput. Sci., 356(3):265–290, 2006. doi:10.1016/j.tcs.2006.02.012.
  • [27] Safa Zouari, Krzysztof Ziemianski, and Uli Fahrenberg. Bisimulations and logics for higher-dimensional automata. CoRR, abs/2402.01589, 2024. doi:10.48550/arXiv.2402.01589.

Appendix A Discussion: Why we need sub-events

In this section, we present a temporal logic that is weaker than FO, which we call Event-based Pomset Temporal Logic (EPTL). This is a straightforward attempt at defining a local temporal logic for pomsets, with two “Exists Next” operators for the precedence order <P and for the event order P. It is similar to the local temporal logic over Mazurkiewicz traces defined in [7]. This example showcases why it is not easy to design an LTL-like logic over pomsets that is equivalent to FO, and why we had to introduce the notion of sub-events.

Definition 24 (Events-based Pomset Temporal Logic (EPTL)).

The syntax of EPTL formulas is defined by the following grammar, where aΣ:

φ,ψ::=a𝐬𝐭¬φφψ<φφφ𝐔ψ

An EPTL formula is evaluated over a single event x of a pomset P:

  • P,xa if λP(x)=a,     P,x𝐬 if xSP,     P,x𝐭 if xTP,

  • P,x¬φ if P,x⊧̸φ,     ​P,xφψ if P,xφ and P,xψ,

  • P,x<φ if yP, y is a direct successor of x for <P and P,yφ,

  • P,xφ if yP, y is a direct successor of x for P and P,yφ,

  • P,xφ𝐔ψ if y>Px P,yψ and zP such that xPz<Py, P,zφ.

In order to define Pφ, where φ is an EPTL formula, we need to fix a canonical eP from which φ will be interpreted. This motivates Definition 25.

Definition 25.

Given a non-empty pomset P, the source of P, denoted source(P), is the minimal event according to of {ePfP,fe}.

We write Pφ if P,source(P)φ. Note that the unary predicate verifying whether x is a source is FO-definable, define source(x):=y.(z.yz)xy.

Proposition 26.

EPTL is stricly less expressive than FO.

Proof (Sketch).

First, EPTL is at most as expressive as FO since its semantics expressed in Definition 24 can be translated into first order formulas. To show that the inclusion is strict, consider the following two families of pomsets, depicted in Figure 9:

Pn=[aa]([aa][aa])n[aa]andPn=[aa][aa][aa]([aa][aa])n[aa]
Figure 9: Pomsets P2 and P2.

Consider the FO formula φ=x.y.z.source(x)xyxdzdy, where xy and xdy denote the direct successor w.r.t. < and , respectively. The formula φ separates the two languages, i.e., Pnφ but Pn⊧̸φ for all n. Now we must show that any EPTL formula of size t cannot distinguish the pomsets Pt and Pt. First, atomic formulas (aΣ, 𝐬 and 𝐭) cannot distinguish between elements of Pt and Pt, since all events are labeled by a, and the interfaces are empty. Moreover, notice that starting from source(Pt) (in orange in Figure 9) or source(Pt) (in purple), there is a chain of length t for both relations and . Thus, using modalities < and to distinguish source(Pt) from source(Pt) would require to reach the last elements of the pomset, which cannot be done in less than t steps. Finally, the until modality cannot distinguish them either: this is a bit more technical but fairly standard. So we conclude that the language (φ) is not definable in EPTL.

 Remark 27.

To separate the two languages in LTLPoms, one can remark that in the second slice of the pomsets Pn, there is an event a (in orange) which is both started and terminated. Thus, the formula φ=1(𝐬𝐭) is satisfied in all pomsets of the form Pn, but in none of the pomsets Pn.

Appendix B Omitted proofs

B.1 Proof of Lemma 9

Lemma 28.

Fix i,j{1,,k}. Then, the binary relation (x,i)(y,j) is definable by an FOΩk formula with two free variables x and y.

Proof.

We define a finite state automaton that scans the ST-sequence between the two positions x and y. During all the execution, the automaton keeps track the position of the event represented by the i-th position of x. Showing that this automaton is counter-free yields an FOΩk formula for the relation, thus proving the lemma. Formally, given aΣ and i,j{1,,k}, we define a finite state automaton 𝒜i,j,a=(Ωk,Q,q0,F,δ) over the alphabet Ωk, parameterized by i,j,a, as follows:

  • The set of states Q is given by:

    Q={,,}(𝖢𝖫𝗂𝗌𝗍k×{1,,k})

    The states ,, represent the initial state, final state, and sink state, respectively. All other states are of the form (C,), where C is the list of currently active events, and the event a that we are following is the -th element in this conclist.

  • The initial state is q0=.

  • The set of accepting states is F={}{(q,j)qQ} (recall that j is a parameter fixed in advance).

  • The transition function δ is defined as follows, for any PΩk:

    δ(,P) =(TP,i) if TP[i] is a non-terminating a
    δ(,P) = if TP[i] is a terminating a and i=j
    δ((SP,),P) =(TP,) for any , when SP[]=TP[] and is an a
    δ((SP,j),P) = if SP[j] is a terminating a
    δ(q,P) = (the sink state) otherwise

    where C[i] denotes is the i-th element of the conclist C.

Figure 10: 𝒜1,2,a, sink state and identities not drawn.

Figure 10 shows the automaton 𝒜1,2,a, for Σ={a,b} and k=2. For the sake of readability, when an interface is represented enclosed in parenthesis (e.g. [()a]), we mean that both transitions exist, with and without the interface (e.g. [a] and [a]). The event a that we are tracking is colored in red.

Note that 𝒜i,j,a is deterministic and complete. We now show that it is counter-free. So we need to find an n such that, for any non-empty word w(Ωk) and any state q, we have δ(q,wn)=δ(q,wn+1). Choose n=k+2. Consider an arbitrary state q and a non-empty word w. We have three cases:

  1. 1.

    If q= or q=, the only accessible state on a non-empty word is the sink state , verifying the property.

  2. 2.

    If q=(c,)𝖢𝖫𝗂𝗌𝗍k×{1,,k}, let us consider δ((c,),w).

    1. (a)

      If δ((c,),w)=(c,), we indeed have δ((c,),wn+1)=δ((c,),wn)=(c,).

    2. (b)

      If δ((c,),w)=(c,), with cc, then δ((c,),w)= since either the starting interface or the terminating interface of w will be incompatible with c. Thus, the property is verified.

    3. (c)

      If δ((c,),w)=(c,), with , assume that > (the opposite case is similar). We claim that, as we keep iterating the word w, the index will keep decreasing strictly, until we reach either the state or after at most k iterations. So at iteration k+1, we end up in , where we stay, making the property true. To prove our claim, let us write (c,i)=δ((c,),wi) the sequence of visited states. We need to show that the sequence (i) is strictly decreasing.

      The example below illustrates what might happen, with a pomset of dimension k=3. We start in state (aaa,3), so three a’s are running concurrently, and we are tracking the third one (in red). When the automaton reads the word w below, the first a is terminated, and another a is started, but this new a happens to be placed after the other two according to event order. The tracked a ends up in position 2, so the state of the automaton is now (aaa,2).

      w=[aaa][aaa]δ((aaa,3),w)=(aaa,2)δ((aaa,3),w2)=(aaa,1)

      Let us assume that for some i, i>i+1, we will show that at the next step, i+1>i+2. Let PwiiPoms be the pomset generated by gluing w (the automaton ensures that w is coherent, otherwise we end up in the sink state ). Let pi,pi+1Pw denote the events of Pw at position i and i+1 respectively, in the starting interface SPw. (In the example above, they are the red and blue events, respectively.) Since i>i+1, we must have pi+1pi according to event order. In the terminating interface TPw, both events are still active. Event pi ends up at position i+1 and pi+1 ends up at position i+2. Since these are still the same events, the event order did not change, so we still have pi+1pi, i.e., i+1>i+2 as required.

  3. 3.

    If q=, we have δ(,w) since w is non-empty and there is no incoming transition in . So we land in one in the previous cases, with one extra step. Hence, δ(,wk+3)=δ(,wk+2).

This proves that 𝒜i,j,a is counter-free. By Proposition 8, let θi,j,a be a closed first-order formula equivalent that recognizes the same language as 𝒜i,j,a. By θi,j,axy, we denote the restriction of θi,j,a to the portion of the ST-sequence located between x and y, i.e. where subformulas of the form z.φ are inductively replaced by z.xzzyφ. Then the following FOΩk formula defines (x,i)(y,j):

(x,i)(y,j):=aΣ(x<yθi,j,axy)(y<xθj,i,ayx)

B.2 Proof of Proposition 18

Proposition 29.

Let P be a pomset, and let (x,m)(y,q) two equivalent sub-events of P, then for every formula φ of LTLPoms, P,(x,m)φ if and only if P,(y,q)φ.

Proof.

First observe that s is an equivalence relation over events. Indeed, it is reflexive since m<sq implies mq and symmetric by construction. As for transitivity, assume that msqsr. To show that msr, it is enough to show msr. Assume by contradiction that there is tP s.t. tm, and t<r. Then, we prove tq as follows:

  • If t<q, then m<sq because tm. But this is false since msq.

  • If q<t, then q<r since t<r. This implies that q<sr, which is false by hypothesis.

Since qsr, qsr. Therefore, as tq, it cannot be that t<r. Since this was a hypothesis, we have a contradiction, and msr.

We can now proceed to the main proof. It is sufficient to prove that P,(x,m)φ implies P,(y,q)φ. First, observe that x=y by definition of , hence we write (x,q) from now on. We proceed by induction over φ.

  • P,(x,m)a implies λ(x)=a, thus P,(x,q)a

  • P,(x,m)𝐬 implies xsm. Since msq, this yields xsq, which in turn becomes P,(x,q)𝐬

  • P,(x,m)𝐭 implies that there is no rP such that xr and m<sr. Since msq, m<sr is equivalent to q<sr. This in turn implies P,(x,q)𝐭.

  • P,(x,m)¬ψ implies P,(x,m)⊧̸ψ, which implies, by induction hypothesis, P,(x,q)⊧̸ψ. Thus, P,(x,q)¬ψ.

  • P,(x,m)ψ1ψ2 implies P,(x,m)ψ1 and P,(x,m)ψ2. Hence, by induction hypothesis, P,(x,q)ψ1 and P,(x,q)ψ2. It comes that P,(x,q)ψ1ψ2.

  • P,(x,m)1ψ implies that there exists a sub-event (y,r) such that (x,m)1(y,r) and P,(y,r)ψ. Because (x,m)1(y,r), we have that m<sr and there is no sP such that m<ss<sr. Since msq, it comes that q<sr and there is no s such that q<ss<sr. Thus, (x,q)1(y,r) and P,(x,q)1ψ.

  • P,(x,m)ψ implies that there is y such that xsy, y is a direct successor of x by and P,(y,m)ψ. Since msq, (y,q) is a sub-event and P,(y,q)ψ by induction. Hence, P,(x,q)ψ.

  • For 1ψ, the argument is identical.

  • Finally, for P,(x,m)ψ1𝐔ψ2, fix (y,r) to be such that P,(y,r)ψ2 and (x,m)(y,r) and any (z,s) such that (x,m)(z,s)(y,r) verifies P,(x,s)ψ1. Since msq, we have that (x,m)(y,r) implies (x,q)(y,r), and the same goes for the intermediary (z,s). Hence, P,(x,q)ψ1𝐔ψ2.