Manuscript Offprint
arXiv:2608.29764The Complexity of Coverability-Like Problems in Elementary Object Systems: Data-Nets to the Rescue
Francesco Di Cosmo C
Free University of Bozen-Bolzano, Italy
Tephilla Prince
IIT Dharwad, India
tephilla.prince.18@iitdh.ac.in
Soumodev Mal
Chennai Mathematical Institute, India
Abstract. Elementary Object Systems (EOSs) are a model in the nets-within-nets (NWNs) paradigm, where tokens in turn can host standard Petri nets. We study the complexity of coverability-like problems, including termination and boundedness, over EOSs. Since coverability and boundedness are undecidable in general on EOSs, we focus on the relevant fragment of conservative EOSs (cEOSs). Our technique interprets cEOSs into the framework of data nets, whose tokens carry data from an infinite domain, thus bridging the nesting and the data-aware paradigms. Specifically, we show that cEOS coverability-like problems are equivalent to the coverability-like problems over an interesting fragment, called channel-PNs (c-PNs), of data nets that extends PN (featuring globally fresh name creation) with restricted forms of transfers with renaming. c-PNs remain less expressive than Unordered Data Nets, which feature lossy name creation as well as powerful forms of whole-place operations and broadcasts. These reductions allow us to analyze cEOS coverability taking advantage of known results on data nets. We conclude that the complexity of cEOS coverability is double-Ackermanian, -complete, while termination and boundedness are non-primitive recursive.
Keywords: Data nets, Nets-within-Nets, Coverability, Hyper-Ackermannian problems, Fast-growing complexity classes
Corresponding author
1. Introduction
Recent works have studied the Nets Within Nets (NWN) paradigm [1, 2, 3], i.e., Petri Nets (PNs) whose tokens in turn carry PNs, as a model for the robustness of multiagent systems against agent breakdowns and, more generally, agent imperfections modeled as token losses. These works focus on the reachability/coverability problems of Elementary Object Systems (EOS), i.e., NWNs where there is only one level of nesting. Other forms of NWNs can be found in [3, 4, 5, 6, 7]. Out of the several combinations of problem type (reachability and coverability), lossiness degree (none, finite, unbounded number of token losses), and level (at the outer, nested, or both levels), only reachability/coverability of EOSs under an unbounded amount of lossiness at both levels is decidable [2]. The picture is moderately more optimistic when the constraint of conservativity is applied. In EOSs, each place can host tokens of a fixed type; in a conservative EOS (cEOS), if a transition consumes an object of a given type, at least one object of the same type must be produced, i.e., the set of types available in the net is conserved. When subjected to lossiness at both levels, the cEOS reachability/coverability problem is equivalent to perfect cEOS coverability (see [8]), which is decidable. Instead, perfect cEOS reachability is known to be undecidable [4]. Hence, the decidability boundary of reachability/coverability of lossy/perfect EOS/cEOS is fully charted [2]. However, the precise complexity class of lossy EOS reachability and perfect cEOS coverability is unknown.
In this paper, we study the complexity of cEOS coverability-like problems, specifically coverability, termination (whether there is an infinite run from an initial configuration), and boundedness (whether the set of reachable configurations from a fixed initial one is finite). It is well known that these problems on PNs share the same complexity, while on some extension, like reset PN, they do not [9]. It is, thus, unclear what the picture is on cEOSs.
Instead of directly attacking this problem, for example by exploiting techniques for complexity over Well-Structured Transition Systems [10, 11, 12, 13], we bridge the nesting paradigm with the apparently orthogonal extension of Petri nets with data. In fact, while the complexity of verification problems for NWNs have not been well-studied, many results about the complexity of verification for several data extensions of PNs [14], whose tokens carry data from an infinite domain, are available in the literature (see Fig.1 in [15]). For PN [16] the coverability problem is double-Ackermannian, -complete [15]. For Unordered Data Nets (UDNs), the coverability is hyper-Ackermannian, -complete [11]. Ordered data nets and ordered data Petri nets have both -complete coverability [17].
Our main result is that the complexity of cEOS coverability-like problems matches the complexity of the corresponding PN problems. To do so, we show that nesting can be naturally captured by whole place operations on top of PNs and that, as long as only coverability-like problems are of interest, such whole place operations can be abstracted away, resulting in a polynomial reduction from cEOS to PN. In turn, tokens labeled by data from an infinite domain, typical of PNs, can be regarded as some form of nested nets moving in a cEOS; this provides the opposite reduction from PN to cEOS. This paper is based on [8, 18], preliminary works where we introduced the ideas behind our reductions for coverability only. Compared to those, this work additionally provides:
- A novel example about how the nesting-related semantic features of the cEOS model can be used to capture real scenarios,

Figure 1: Overview of the reductions between PNs, cEOSs, and c-PNs.
-
A revised, streamlined, and systematic technical development, which also highlights the impact of whole place operations on top of PNs,
-
The complete proof of the -completeness of cEOS coverability, which did not previously appear, and
-
Addressed the problems of termination and boundedness.
The paper is structured as follows. Sec. 2 provides preliminaries on problems on Configuration Graphs, PNs, PNs, and cEOSs. Sec. 3 introduces c-PNs, a form of PN with some whole place operations in the style of UDNs. Sec. 4 formalizes the type of encoding we exploit. Sec. 5, Sec. 6, and Sec. 7 provide the encoding, and related problem reductions, respectively from PNs to cEOSs, from cEOSs to c-PNs, and from c-PNs to PNs (see Fig. 1).
Finally, Sec. 8 discusses conclusions.
Configuration Graphs
Definition 2.1. A configuration graph (CG) is a directed graph where is a possibly infinite set of configurations and is a step relation. The usual notion of step sequence (run) applies. A quasi-ordered normed CG (qonCG) is a tuple where is a CG, is a quasi-order on , and is a function, called norm, which gives the size of the configurations.
We denote configuration graphs by , sets of configurations by , and configurations by or , possibly with indexes, superscripts, etc. In general, given a CG, we can define the problems of coverability, termination, and boundedness, in an abstract way:
Definition 2.2. Given a family of qonCGs, we define the following problems:
-coverability The inputs are tuples where is a CG, is an initial configuration, and is a target configuration; the output is whether there is some configuration such that .
-termination The inputs are tuples where is a CG, is an initial configuration; the output is whether there is an infinite run from in .
F-boundedness The inputs are tuples where is a CG, is an initial configuration; the output is whether the set of configurations reachable from in is finite.
Given two instances of an -problem and of the corresponding -problem, we say that and are equivalent if is a yes-instance of the -problem iff is a yes-instance of the -problem.
Multisets. Given , . A multiset on a set is a mapping . The support of is the set . The multiset is finite if is finite. The family of all multisets over is denoted by . We denote a finite multiset by enumerating the elements exactly times in between . The empty multiset is also denoted by . The empty multiset on the empty domain is denoted by . Given two multisets and on , we define the multisets and on as follows: and , for each . We write if, for each , we have . The cardinality of a multiset is .
Petri Nets. A PN [19] is a tuple , where is a finite place set, is a finite transition set, and is a flow function. We set the functions of pre- and post-conditions where and . A marking is a finite multiset on . A is enabled on if, for each , we have . Its firing results in the marking such that , for each . We always assume that is ordered. Thus, we can denote a marking as a multiset or as a vector . We also work with the special empty , whose only marking is . Places are depicted by circles, transitions by rectangles, markings by multisets of black tokens in the respective places, and the flow by labeled arrows (see Fig. 2a and Fig. 2b).
The qonCG of a has markings as configurations, transition firings as steps, component-wise as quasi-order, and the token count function as norm.
Definition 2.3. (PN qonCG)
Given a PN , the qonCG of is the tuple where, for , iff there is some transition firing such that , and , the cardinality of as a multiset.
PN. A PN is a PN where each token is associated with a data value that comes from a countable domain. The flow function is extended to check equality/inequality of data values using a finite set of variables as labels. We recall PN as in [15]. Let and be disjoint sets of fresh and standard variables, denoted by and for , respectively. Let .
Definition 2.4. A PN is a PN with the provision that and, for each , and , where and .

(a)

(b)

(c)

(d)
Figure 2: (a) a simple Petri net and (b) the resulting marking on firing t. (c) A -net and (d) the resulting configuration on firing t with mode e instantiated x to (the tuple identified by) a, x to b, x to c, to d, and to f.
For each , we set . We require that, for each transition , . In this section, we work with a fixed arbitrary where . The flow of a variable is where and . We denote by and by . The set of configurations of is the set . For each , let . Given a configuration , a transition is fireable from if there is a function , called mode, such that, for each , . We write if, for some configuration , and where, for , . The firing of with mode over applies , for each , to a distinct tuple such that and replaces it with . It also adds the new markings for . Each tuple in a configuration is depicted similarly to PN, but using a dedicated symbol in place of (see Fig. 2c and Fig. 2d).
The quasi order among PN configurations is a generalization of the order among PN markings. Specifically, given two configurations and , we write if there is an injective function such that for each . Then, the qonCG of a PN is defined analogously to PNs, where the norm is, again, the token count function.
Definition 2.5. ( PN qonCG)
Given a PN , the qonCG of is the tuple where, for ,
-
iff there is some transition firing such that , and
-
,
PN-coverability is is known to be -complete[15], while PN-termination and PN-boundedness are known to be non-primitive recursive [16].
Elementary Object Systems. An EOS [3, 4] is a PN where each token is, in turn, a PN. The underlying PN is known as system net, and its tokens, which are PNs, are known as object net. A firing can happen asynchronously in either the system net or the object net or synchronously in both.

(a)

(b)
Figure 3: An EOS depicting the firing of synchronized event for a given mode , where , , , , .
Definition 2.6. An EOS is a tuple where:
-
is a PN called system net; contains a special set of idle transitions such that, for each distinct , we have and .
-
is a finite set of PNs, called object PNs, such that and if , then and .
-
is called the typing function.
-
is a finite set of events where each event is a pair , where and , such that for each and, if , then .
A nested token is a system net token carrying an internal marking.
Definition 2.7. Let be an EOS. The set of nested tokens of is the set . The set of nested markings of is . Given , we say that is a sub-marking of if .
Nested tokens are depicted via a dashed line from the token in the system net place to an instance of the object type where the internal marking is represented in the standard PN way. However, if the nested token is where is of type , we represent it with a black-token on . Events are depicted by labeling the system net transition by the multiset of object net transitions (see Fig. 3). If there are several events involving , then has several labels.
Example 2.8. Fig. 3a depicts the EOS where we have
• the system net where and . Otherwise, is the constant function .
• the set of object nets , where , where and .
• the typing function , where , , and .
• the set of events .
Fig. 3a also depicts the nested marking .
Intuitively, the firing of an event can be characterized as follows: first, merge, type by type, all objects handled by the preconditions of (identified by a mode, as in PNs), obtaining merged tuples; second, fire, at the same time, all transitions in on the merged tuples; third, non-deterministically distribute the tokens in the updated tuples among new objects in the places indicated by the post-conditions of . Possibly, some of the new objects have empty marking. This process is formalized by the next definitions.
Definition 2.9. Let be an EOS . The projection operator maps each nested marking for to the PN marking for . Given an object net , the projection operator maps each nested marking for to the PN marking for where .
Example 2.10. Let be the nested marking in Fig. 3a. We have: .
We now define the enabledness condition. Set and where is an enumeration of .
Definition 2.11. Let be an EOS . Given an event and markings , the enabledness condition holds iff
The event is enabled with mode on a marking iff holds and . Its firing results in the step .
Example 2.12. Let and . In Fig. 3, the event is enabled under mode . Fig. 3b depicts the nested marking reached after firing under mode . When compared to the intuitive presentation (provided above) of the semantics, we have, for each type :
-
amounts to the consumed system net tokens.
-
is the resultant marking obtained by merging the consumed system net tokens of type .
-
amounts to the firing, on the merged marking above, of the transitions in from net .
-
amounts to the produced system net tokens.
-
amounts to the distributed marking.
Note that the non-determinism of the final distribution is captured by the choice of one of the many possible enabling modes.
An EOS is conservative if, for each system net transition , if consumes a nested token on a place of type , then it produces at least one token on a place of that same type.
Definition 2.13. A cEOS is an EOS with where, for all , .
Let be the order among configurations such that if is obtained from by adding 1. tokens in the inner markings of objects in and/or 2. nested tokens at the system net places. The EOS coverability problem asks, given an EOS and configurations and , whether there is a run (sequence of event firings) from to a configuration . We may denote also by .
The qonCG of a cEOS is defined analogously to PNs, where the norm is still, the token count function.
Definition 2.14. (cEOS qonCG)
Given a cEOS , the qonCG of is the tuple where, for ,
-
iff there is some transition firing such that , and
-
.
EOS-coverability (respectively, cEOS-coverability) is known to be undecidable (decidable; Th. 4.3 and Th. 5.2 in [4]).
While the purpose of this paper is not to motivate cEOS, which were introduced in previous works, we illustrate cEOS semantics via the following example.

Figure 4: The cEOS of Ex. 2.15. On top of the depicted events, the set of events contains also the object autonomous events for .
Example 2.15. The cEOS in Fig. 4 models a population of unicellular organisms growing, migrating, predating and reproducing. Each organism is represented by an object of type , which comprises a state machine to represent the organism stage (among prey, predator, and mitosis) as well as an extra place energy, whose tokens represent available energy. During aging, the organism changes stage by spending some energy. New energy is drained from preys during predation. At mitosis, the energy is non-deterministically split among the two new organisms (possibly, one of the organisms gets zero energy). The system net represents the environment and features two places and . Organisms can interact only if they are placed in the same region. Movement among the two regions can happen anytime by spending energy. Initially, there is only a single organism, with plenty of energy, in the first region. This is captured by the initial configuration , for some . Aging is captured by the object autonomous events for .
Predation is captured by the event , for , that consumes two organisms, checks whether one is in the prey stage (removing the corresponding token at the same time) and one is in the predator stage; the energy drain is captured by the fact that a single object is created, thus by collecting all tokens in both energy places into a single one. As long as the organisms are in a legal state, that is there is exactly one token among prey, predator, and mitosis, the firing of this event results in a single organism with a single token on predator.
A careless designer may attempt to capture mitosis in a similar way using a distribution instead of a merging, as done in Fig. 4. Specifically, it might use an event , for , which consumes one organism, checks if it is in mitosis phase, and produces two objects, with a total of two tokens on the place prey. Unfortunately, the fully non-deterministic behavior of the distribution may result in abominations, i.e., one organism with no token or two tokens on prey. This bug is detected by running a coverability problem with target , for , which returns True.
The bug can be fixed by adding an additional system net place that provisionally hosts the product of the distribution transition and by immediately firing twice an auxiliary transition that checks the presence of one token in prey and puts the object into . To fire the transitions in the right sequence, auxiliary places and black tokens are necessary in the system net. If no abomination was created, both firings can take place and the simulation continues. Otherwise, the second firing cannot happen, because one of the abomination has no token in prey, and the net reaches a deadlock. However, as long as there is no organism under check by the auxiliary transition, there is no abomination. This is is verified by running a coverability problem with target , which returns False.
By slightly changing the model, the model designer can check, for a given initial energy , whether the population can prosper up to specimen, for some , e.g., by adding an additional system net gadget that collects the tokens from each region. More sophisticated interactions with the environment can be flexibly modeled by, for example, employing additional object types, that is, by taking further advantage of the nested paradigm.
3. Channel PN
We introduce PN, an extension of PN by restricted forms of whole-place operations in the style of UDNs. These whole-place operations are useful to naturally encode the nested-paradigm into the data-aware paradigm. Specifically, PN extend PN by special transitions that perform transfers with renaming. The firing of special transitions is similar to UDNs (and affine nets [20]): 1. the pre-conditions are fired, 2. the transfers (defined by matrices for ) are performed 3. the post-conditions are fired.
Technically, . means that, after firing the pre-conditions, the transition puts on , in the tuple instantiating , times the number of tokens on from the tuple instantiating . We use the following notation: if, for some set of places, is a matrix and is a place, denotes the row of indexed by . Moreover, given a place , we denote by the vector such that, for each , if and only if . For example, given a tuple and a place , the tuple is the projection of to .
Definition 3.1. A channel ( ) is a tuple where is a and G maps each to a function such that, for each variable and place :
-
for each variable either or , i.e., contains at most a single 1.
-
if , then , else .
The graphical representation of a PN adds the representation of , for each , on top of the representation of the PN . This is achieved by special arrows called channels. A channel is a pair of decorated arrows (e.g., double or triple arrows in Fig. 5), one to , called pre-channel of , and one from , called post-channel of . Different channels use different decorations. The pre- and post-channels of are labeled by two non-empty sequences and of variables, respectively, such that . Moreover, for each place , each variable can occur at most once in the label of at most one pre-channel from . Intuitively, represents transfers from to while renaming the tokens taken from the tuple instantiating as tokens of the tuple instantiating . A transition is special if it has at least one channel.
Each PN corresponds (cf. c-PN semantics in Def. 3.3 below) to the c-PN where, for each and , , , and . Both and have the same graphical representation. has no special transition.
Example 3.2. Fig. 5 depicts a c-PN with several configurations (cf. Def. 3.3 below) where , , , , and for each place and , is if and 0 otherwise and:
The firing of a special transition serializes its standard pre-conditions, the transfers, and, finally, the post-conditions. In Def. 3.3 below, captures the tokens uninvolved with the firing, accounts for the creation of fresh tuples via variables, accounts for the firing of the standard preconditions, the summation in formalizes the transfers to the tuple instantiating , while takes into account also the final firing of the standard post-conditions.
Definition 3.3. A configuration of a PN is a configuration of , and a transition is enabled in if it is enabled in . A configuration is reached from by firing a transition with mode , denoted by , if
where and . We define as the reflexive and transitive closure of .
Example 3.4. Fig. 5d depicts the firing of transition from Fig. 5a with mode , , , , and . Fig 5b and Fig. 5c depict the intermediate steps.
The qonCG of a c-PN is defined similarly to PNs.
Definition 3.5. (c-PN qonCG)
Given a PN , the qonCG of is the tuple where, is the set of configurations of and, for each ,
- iff there is some transition firing such that , and
This condition is necessary to forbid the representation of transfers with duplication.

(a)

(b)

(c)

(d)
Figure 5: The c- PN discussed in Ex. 3.2 and Ex. 3.4, with configurations.
4. Phase Encodings
The results of this paper rely on a number of encodings among cEOS, c- PN, and PN. In this section we define the type of encoding that we exploit. Specifically, we encode a single step of a source CG into a sequence of steps in a target CG. The first and last configurations in the sequence amount to the actual encoding of the configurations in the source step, while the intermediate configurations amount to extra steps required in the target CG in order to encode the single source step.
Definition 4.1. (Configuration encoding)
Given two CGs and , an configuration encoding of into is an injective function . The configurations in the range of are called encoding configurations. A phase is either:
-
an infinite run of such that is an encoding configuration iff , or
-
it is a finite run such that, and, for each , is an encoding configuration iff .
We write and, if is a finite phase , then . A phase is consistent with a phase if is finite and .
Since is an injective function, given a configuration in the range of , is the counter-image of under , i.e., , contains a single configuration . Thus, with a slight abuse of notation, we denote by .
In a phase encoding, while configurations are encoded into encoding configurations, steps are encoded into corresponding phases.
Definition 4.2. (Phase Encoding)
Given a configuration encoding of into , is a phase encoding if:
-
if in , then, there is a phase such that and , and
-
if there is a finite phase , then there is a step in .
Provided that and are qonCGs, we say that is:
-
an embedding if if and only if .
-
uniform if it is an embedding and, if in and is reachable from some encoding configuration, then is an encoding configuration.
-
phase-finite if all the phases are finite.
-
-bounded if for each run in where the only encoding configuration in is , we have , for some .
-
-perfect if it is all of the above, for some .
Note that the definition of a phase encoding is reminiscent of transitive, stuttering, or branching bisimulations and compatibility properties [21, 10]. However, while bisimulations are symmetric (they are a simulation from to and vice-versa), phase encodings are asymmetric, since they do not simulate single steps of , but only phases.
We now provide a couple of technical lemmas that show that coverability, boundedness, and termination are preserved under appropriate phase encodings. Their proofs are in Appendix. A. Given a problem instance , and a phase-encoding of into some , we denote by the instance .
Lemma 4.3. Given two families and of qonCG, if, for each , there is a uniform phase-encoding of into some then, each instance of -coverability is equivalent to the instance of -coverability.
Lemma 4.4. Given two families and of qonCGs, if, for each , there is a phase-finite phase-encoding of into some then, each instance of -termination is equivalent to the instance of -termination.
Definition 4.5. A qonCG is finitary if, for each is finite.
Note that the qonCGs of PNs, cEOSs, and c- PNs are all finitary since, given a finite number of tokens, one can build at most a finite number of configurations.
Lemma 4.6. Given two families and of qonCGs, if, for each , there is a -bounded phase-encoding of into some finitary , then each instance of -boundedness is equivalent to the instance of -boundedness.
5. From PN to cEOS
We now provide a phase encoding from an arbitrary PN to a cEOSs. We then obtain a reduction from problems on PNs to the problems on cEOS.
Let be a PN and . We build a cEOS that involves only two types: the type , used to fire sequences of events, and one more type , that captures the transitions of split by variable.
Definition 5.1. is the PN such that , and, for each and , and .
Since we deal with only two types, we graphically represent system net places of type by circles, as usual, while we represent places of type by triangles.
The system net of contains the places sim, selectTran, and, for each , the places, transitions, and flow function depicted in Fig. 6. The figure depicts also the synchronization structure of . Note that
-
the places sim and selectTran are in common for each instantiation of Fig. 6 for , and
-
the only transitions that can fire concurrently are the , for .
Intuitively, given a configuration of , we encode by using, for each tuple a dedicated object in the place sim with internal marking , plus a single token in selectTran.
Definition 5.2. Let be the CG of and the CG of . The configuration is encoded by the configuration .
Note that the function is injective, i.e., a configuration encoding of into . Moreover, for each configuration of and marking over , . By tracing the firing sequences in Fig.6, one can show that is a phase encoding that satisfies the properties in Sec.4.
Lemma 5.3. The configuration encoding defined in Def.5.2 is a phase encoding.
The proof is available in App.B. We now show that is perfect.
Lemma 5.4. The configuration encoding in Def.5.2 of into a is -perfect, for some polynomial function .

Figure 6: The part of dedicated to the simulation of a transition of such that . If , then, , , , and have to be dropped, and , , and has to be set.
Proof:
If is reachable from some encoding configuration , then is reachable via some phase starting from an encoding configuration. Thus, if it has a token on selectTran, then .
Embedding Clearly, is monotone. Vice-versa, if , since both and are encoding configurations with a on selectTran, they differ only on the tuples on sim. Specifically, for some finite set of tuples over . By injectivity of . Thus, is an embedding.
Uniform If is reachable from an encoding configuration and , then for some finite set of tuples over . Thus, is uniform.
phase-finite Each phase starts with the firing of a event. Now, each transition in Fig.6 can fire at most once, firing first the events, then the events, and finally the event, which returns a new encoding configuration. For each , these are at most events. Thus, each phase has at most steps. Thus, each phase is finite.
f-bounded Since each event in a phase can fire at most once, each phase is long at most , and each event creates at most , if is reachable from during a phase, .
□
Thus, by the lemmas in Sec.4, preserves the instances of coverability, termination, and boundedness. Since, for each PN and PN configuration the corresponding encoding cEOS and encoding configuration can be built in polynomial time, we have reduced the problems over PNs to the corresponding problems over cEOSs.
Theorem 5.5. There is a polynomial reduction from PN-coverability, (respectively, -termination, -boundedness) to cEOS-coverability (-termination, -boundedness).
Since PN-coverability is hyper-Ackermanian, -complete [15], and PN-boundedness and -termination are non-primitive recursive [16], we obtain analogous lower-bounds for cEOSs.
Corollary 5.6. cEOS-coverability is -hard. cEOS-termination and -boundedness are non-primitive recursive.
6. From cEOS to c- PN
In this section, we show that for any given cEOS , there is a polynomial-time constructible PN that simulates . We assume without loss of generality that, for each system net transition , is involved in exactly one event. In what follows, we show only how to encode an arbitrary synchronous event according to the EOS semantics, i.e., by serializing merging, internal firing, and distribution phases. In fact, object and system autonomous events are restricted forms of synchronous events. We assume that involves only two system place types . The PN combines several blocks of places: 1. -Block (see Fig. 7), for each system net place , used to encode the configurations of ; 2. -merged and -updated blocks (see Fig. 8 and Fig. 9), for each type , consists of some auxiliary places to store the result of the merging phase and conduct the internal firing phase of the event . These blocks are utilized in several modules to simulate the firing of an event in . 1. -merging modules (see Fig. 8), to capture the dynamics of the merging stage; 2. -updating module (see Fig. 9), to capture the dynamics of the internal firing stage; 3. -distributing module (see Fig. 10), to capture the dynamics of the internal firing stage and the distribution stage. These modules fire in sequence, in the order above, thanks to the passing of a token handled by a variable. Overall, these modules can be built in polynomial time, and their consecutive firing allows to simulate the firings of in .
In the rest of this section, we first define block and formally state the configuration encoding of the EOS in section 6.1. Then, in section 6.2, we define -merged and -updated blocks followed by the definition of all the modules that constitute the phase encoding of a single step of in , through the example in Fig. 7a. We conclude the section by proving that the phase encoding defined in section 6.2 is -perfect in section 6.3
If is involved in multiple events , we substitute in with a copy of , for each .
The construction for events involving several types is analogous, requiring only the serialization of a copy of the given construction for each type.

(a)
(b)
Figure 7: A cEOS Example (a) and its encoding configuration in two blocks (b).
6.1. cEOS to PN encoding
To formally define the configuration encoding , we need only -Block next to the place in Fig.8. The other places are used only in the phases and remain empty in each encoding configuration. For each , the module -Block, is used to encode in the objects hosted by . Specifically, -Block contains (a disjoint copy of) the places of as well as a place . The latter is used to store identifiers dedicated to each encoded object. A configuration of is captured by the tuple of -Block that extends with a token on . Note that, thanks to the place , this encoding can even witness the case , by placing a single token on .
Say that is a place of , we denote by the corresponding place in -block for each system net place of type , by the corresponding place in -merged, and by the corresponding place in -updated. The following function is used to transform objects in as tuples in the modules of .
Definition 6.1. Given a configuration of where , we define the tuple
We extend , , and to sums of pairs in the trivial way: given a configu-

Figure 8: Module e-merging.
ration of , letting , we define
We can now define the encoding of an arbitrary configuration.
Definition 6.2. The encoding configuration of a configuration of is the configuration of .
Note that the function is injective, i.e., a configuration encoding of into .
6.2. Phase Encoding
We now come back to the construction, where we show the modules in PN that constitute a phase encoding of a single step in through the running example in fig. 7a.
N-merged and N-updated blocks. These blocks are used to store the objects after the merging and internal firing stages and are analogous to the blocks above. The N-merged module and the N-updated modules contain a disjoint copy of the places of as well as the place and , respectively. The encoding of a merged/updated tuple is similar to that in -Block.
Module e-merging. This module captures the dynamics of the merging phase. It contains the places and as well as the transition . The two places behave as enable and acknowledgment for the transition. Thus, initially, is populated by a dedicated control sequence token

Figure 9: Module e-updating.
(moved around by the variable ). In , for each place from which consumes, there is a channel from each non-Id place of -Block to the corresponding place in -merged. The pre-channels from are labeled by , where is the number of objects consumed by from in . The corresponding post-channel is labeled by the constant sequence of length . Moreover, to take care of the identifiers of the encoded objects consumed by , consumes from one token for each and produces only one token in , where is the minimum of the places from which consumes according to some fixed order among the system net places.
Module e-updating. This module captures the dynamics of the internal firing phase applied to the -merged modules after the merging phase, storing its result in the module -updated. It contains the places as well as a set of new places. The modules contains the transitions and as well as a copy of the transitions . Places , , and are used to fire and in sequence. The places and behave as enable to fire and acknowledgment of firing of , respectively. For each , puts tokens in . Thus, the transition in the module gets enabled times. When firing, behaves as , with the provision that its preconditions stem from places in -merged, while its post-conditions are directed towards places in -updated. The movement of tokens from -merged to -updated ensures that either the transitions in are all enabled at the start of this phase, or a deadlock is reached, i.e., the firing of a is not responsible for the enabling of another transition . Finally, all tokens remaining in -merged are moved to the respective places in -updated using the channels of , as well as the movement of the token from to , for each involved in the preconditions of .
Module e-distributing. This module captures the dynamics of the final distribution of updated tokens. Let be the number of objects created by and let be an enumeration (possibly) with repetition of the places in the post-conditions of . The module concatenates the sub-module e-id-creation, a sequence of sub-modules e-move() for , and the sub-module e-

(a) Module e-id-creation.

(b) Module e-move(1).

(c) Module e-transfer.
Figure 10: Module e-distributing.
transfer. The sub-module -id-creation generates new identifiers for the encoding of the objects to be created. Then, each -move selects one such identifier, say , and moves while renaming to , one by one, some token not in from -updated to the corresponding place in -block. By taking advantage of concurrency and of a couple of enable/acknowledge places as in the previous modules, each -move passes the turn to the next sub-module after a non-deterministic number of movements. While passing the turn, -move finally moves the identifier to , completing the encoding of the next object created by at place . Finally, the -transfer sub-module creates the last encoding by moving, via channels, all remaining tokens in -updated to -block while renaming to the last new identifier.
Remark 6.3. The construction above (or slight modifications) cannot simulate non-conservative EOSs. In general EOS, if the transition in the event destroys a type , then can fire only when destroying an empty object, performing a sort of zero-check. Otherwise, the transition cannot fire. Instead, the corresponding module -merging, can fire even when consuming non-empty objects. Thus, this construction works only for cEOSs.
Lemma 6.4. The configuration encoding in Def.6.2 is a phase-encoding, i.e, given an EOS , two markings , and mode , iff in the c-PN using the above construction.
We provide the proof in the Appendix section B. Thanks to Lemma 6.4, is a phase encoding. Now, we will show that is f-perfect.
6.3. Perfect cEOS to PN encoding
Lemma 6.5. The configuration encoding in Def.6.2 is f-perfect, for some polynomial function f.
Proof:
If is reachable from some encoding configuration, then it is reachable via some phase. Thus, if it has a token on , then .
This is the only place where we need name creation via variables.
Embedding Clearly, if then , since is an monotone. For the other direction, if , since both and are encoding configurations with a token , they differ only on the tuples on . Specifically, for some finite set of tuples. By injectivity of , . Thus, is an embedding.
Uniform If is reachable from an encoding configuration and , then for some finite set of tuples. Thus, is uniform.
phase-finite Say, in . We show that in polynomial many steps. Each phase fires a sequence of five modules. In module -merging, one transition is fired (see Fig 8). In module -updating, three transitions are fired (see Fig 9). Then, in module -distributing, the following three observations can be made: 1. Module -id-creation, fires only one transition . 2. Module -move has components, where and in each module and are fired exactly once. The transitions and are collectively fired among all the components at most times, where is the total number of tokens present in of , i.e., . Hence, there can be at most firings in this module. 3. Module -transfer fires only once. Clearly, is phase-finite; in fact, it requires a run of length polynomial to the size of the configuration to reach .
f-bounded Since there are polynomial many firings in each phase. And each firing can only add tokens at most linear to the size of the , there can only be polynomial many tokens added during a phase. Clearly, is f-bounded.
Thus, by the lemmas in Sec.4, preserves the instances of coverability, termination, and boundedness. Since, for each cEOS and cEOS configuration the corresponding encoding PN and encoding configuration can be built in polynomial time. Overall, we have reduced the problems over cEOS to the corresponding problems over PN.
Theorem 6.6. There is a polynomial reduction from cEOS-coverability (respectively, -termination, -boundedness) to c- PN-coverability (-termination, -boundedness).
Since c- PNs are a fragment of Unordered Data Nets, we may obtain upper-bounds on the complexity of problems on cEOSs. However, in the next section we directly obtain completeness for coverability and more informative upper bounds.
7. From c- PN to PN
We now provide a configuration encoding of arbitrary PN into a standard PN . Unlike the previous constructions, the encoding we provide is not uniform nor phase-finite, in general. This is because captures the channels of by cheating, i.e., it moves the tokens one per time, possibly wrongly leaving some of them unmoved, resulting in a form of

Figure 11: Firing of a simplified c- PN transition.
broken configuration. Our technique unfolds in two steps. First, we abruptly remove from all runs that reach such broken configurations. This returns a qonCG where the encoding is actually a phase-encoding. Second, we show that putting the broken configurations back in the qonCG does not affect the decision problem under study. In this section we call the qonCGs of and respectively and .
7.1. c- PN to PN encoding
Without loss of generality, we assume that the special transitions of have the simplified form depicted in Fig.11a. In fact, any arbitrary PN transition can be captured by a sequence of such simplified transitions (cfr. Section 3.2 in [18]).
The PN contains the same places as , with the addition of some extra place necessary to encode stages, PN modes, and a mechanism to designate broken configurations. Specifically, let , where (respectively, ) is the set of standard PN transitions (special PN transitions, i.e., with at least one channel). Assuming that, for each transition , for some , let , we have
We call auxiliary token any token on the auxiliary places , , and . An auxiliary tuple is a tuple with some auxiliary token. The configuration encoding of a configuration of into a configuration of extends by adding, for each tuple , a token in , and adds a new token on .
Definition 7.1. Given a configuration of , its encoding configuration in is , where and, for each ,
Note that is an injective function, i.e., it is a configuration encoding of into .

Figure 12: is fired to fix the firing mode and to capture the standard part of t.

Figure 13: can fire several times, non-deterministically stopped by the firing of . This simulates the transfer on the channel one token per time.
The set of transitions of contains the standard transitions of along with their pre- and post-conditions, extended with the read (consumption and creation at the same time) of the auxiliary token from and of the variables from . Moreover, for each simplified special transition , captures via the sequential firing of several transitions. Specifically, for each , contains the transitions , , , , and depicted in Fig.12, Fig.13, Fig.14, and Fig.15. The transitions and capture the transfer with renaming performed by the channel by manipulating the tokens one by one through several firings, instead of all at once. However, since these transitions cannot detect the termination of this process, they may leave behind some leftovers, which are signaled by some tuple that do not place any token on . We call such tuples broken.
Definition 7.2. A tuple over is broken if is also a tuple over . A configuration of is broken if there is some broken tuple .
Because of the pre- and post-conditions of the transitions in N, starting from an encoding con-

Figure 14: The transitions , for each , can fire several times concurrently, non-deterministically stopped by the firing of . At each firing, renames the tokens, inside , of the transferred tuple into the new name dictated by the channel, analogously to what is done by , but without the transfer.
figuration, once a broken token is produced, it does not interact with the net anymore and cannot be repaired. Also, in each configuration there can only be a single auxiliary token, belonging to only one auxiliary tuple, denoted by . If marks , then is empty. Finally, a tuple can mark with at most one token.
Despite broken configurations, it turns out that is still a phase-encoding. This is because finite phases do not reach broken configurations.
Lemma 7.3. The function in Def.7.1 is a phase encoding of into .
The proof is in App.B.
7.2. Removing broken configurations
Unfortunately, although is a phase-encoding, and is finitary, is not uniform nor phase-finite and, thus, we cannot directly apply the lemmas in Sec.4. However, these properties are regained if we project out broken configurations, obtaining an intermediate qonCG.
Definition 7.4. The qonCG is the qonCG of where all broken configurations and, for each configuration , steps and have been dropped.
Note that corresponds to a constrained version of , in which no cheating can happen, i.e., no broken configuration can be reached. Since encoding configurations are not broken, remains an encoding of the qonCG of into . Moreover, since broken configurations play no role in making a phase encoding of into , is also a phase encoding of into .
Corollary 7.5. The function in Def.7.1 is a phase-encoding of into .
Moreover, in this setting, becomes perfect.

Figure 15: disables the transitions , deletes the tokens in the , and moves the auxiliary token, preparing the net for a new phase. It also incorporates in the token in . If some token to be transferred was left over, it is now not tracked by and returns a broken tuple.
Lemma 7.6. The function in Def.7.1 is an -perfect phase encoding of into .
Proof:
Embedding Clearly, is an embedding.
Uniform If is reachable from an encoding configuration and , then the auxiliary token of is on . The other tokens of can only be on places in or on and each tuple can place at most one token on the latter.
Since is not broken (there are no broken configurations in ), for each and , if then . Thus, is an encoding configuration.
Phase-finite For each phase , either consists in the firing of a single standard PN transition of , or, because of the flow of auxiliary tokens moved by the transitions , and , consists at least in the firing from the encoding configuration of a prefix of a run of the form , where contains only finitely many firings of and contains only finitely many firings of the transitions , for some special PN . In fact, note that the transitions and cannot fire infinitely often: each of their firing removes one token from the tuple marking , while no other transition in the run add tokens back in this tuple. Thus, is finite. Moreover, no configuration before is an encoding configuration, so that contains at least . However, is obtained after a full simulation cycle of the special transition . Thus, it is either an encoding configuration or a broken configuration. Since does not have any broken configuration, has to be the first encoding configuration in after . Hence, coincides with , which is finite.
f-bounded Each firing sequence in outgoing from an encoding configuration and not reaching an encoding configuration has a form as in the previous paragraph. Only creates new tokens, while the other transitions simply rearrange them. Since the norm of is the same as that in , i.e., it is the token counting function, -boundedness holds if .
Consequently, maps instances of the problems over into equivalent instances over .
7.3. Reintroducing Broken configurations
We can now reintroduce the broken configurations obtaining equivalent instances of the various problems over . This can be shown by exploiting compatibility of PNs and the following lemmas.
Lemma 7.7. If and is the first broken configuration in , then there is some and a run .
Proof:
By the distribution of black tokens in , can reach a broken configuration only if where contains only finitely many firings of and contains only finitely many firings of the transitions , but or some left some left-overs. Thus, we can extend by adding as many firings as possible of such transitions, resulting in a run of that reaches an encoding configuration . In fact, note that adding these firings do not disable following firings in . Moreover, because of the shape of and , retains all non-broken tuples of , i.e., covers all encoding configurations already covered by , i.e., .
The next lemma is an immediate consequence of compatibility and the fact that no transition of W can instantiate variables to broken tuples.
Lemma 7.8. Let , for , be broken configurations and be the encoding configuration obtained from by removing the broken tuples. If there is an infinite run , then there is also a run where each is an encoding configuration.
It is now easy to see that any yes-instance of a problem over , obtained from an instance over , is equivalent to the instance over . By putting together this fact with Lemma7.6 and the lemmas in Sec.4 we obtain the following result.
Theorem 7.9. is a yes instance of PN-coverability (respectively PN-termination, PN-boundedness) if and only if it is a yes instance of the PN-coverability (PN-termination, PN-boundedness).
If , then there is some such that .
Since and the instances can be built from and in polynomial time, we have a reduction of coverability, termination, and boundedness from PNs to PNs.
Overall, for each of these problems , we have a cycle of reductions from PNs, to cEOSs, to PNs and back to PNs. Thus, the complexity of is constant over all these variants of PNs. This allows us to obtain the following theorem.
Theorem 7.10. The complexity of cEOS-coverability, cEOS-termination, and cEOS-boundedness is the same as PN-coverability (-complete), PN-termination (non-primitive recursive), and PN-boundedness (non-primitive recursive).
8. Conclusions
We have inter-reduced cEOS-coverability, cEOS-termination, and cEOS-boundedness to their corresponding problems on PNs. This yields an -completeness for cEOS-coverability and non-primitive recursive lower-bounds for cEOS-termination and cEOS-boundedness. Interestingly, only one of our reduction performs cheating steps, namely the one reducing PNs into PNs. This allows us to interpret the nested nets paradigm as cEOS verification in the hierarchy of data nets, specifically in between PNs and Unordered Data Nets, thus bridging two apparently orthogonal approaches of PN extensions, at least from the perspective of verification. In fact, one could use the same reductions to reduce other problems, e.g., which it is already known to be undecidable on both PNs and cEOSs. Instead, the reduction from PNs to PNs performs cheating steps, in order to capture whole place transfers with standard transitions. Thus, reductions can be obtained only for a restricted class of coverability-like problems. However, further results of this kind, would enable a deeper understanding of the computational power of PN nesting.
In this work we have studied object net systems restricted to two levels. In existing literature [3], there is only a formal definition of EOSs but there is no formal definition of object systems with nesting depth beyond 2. Intuitively, the restriction on the nesting depth should in turn restrict the complexity of the verification problems, when compared to object systems with several layers of nesting. We hypothesize that given that the nesting levels are finite, we can generalize the reduction from CEOSs to PNs by adding a fixed hierarchy of places in the system nets to again capture nested object via identifiers. This remains an interesting direction to be explored in future works.
References
[1] Köhler-Bussmeier M, Capra L. Robustness: A natural Definition based on Nets-within-Nets. In: Proceedings of the 2023 International Workshop on Petri Nets and Software Engineering, volume 3430 of CEUR Workshop Proceedings. 2023 pp. 70–87. URL https://ceur-ws.org/Vol-3430/paper5.pdf.
[2] Di Cosmo F, Mal S, Prince T. Deciding Reachability and Coverability in Lossy EOS. In: International Workshop on Petri Nets and Software Engineering, volume 3730 of CEUR Workshop Proceedings. 2024 pp. 74–95. URL https://ceur-ws.org/Vol-3730/paper04.pdf.
[3] Valk R. Object Petri Nets: Using the Nets-within-Nets Paradigm. In: Lectures on Concurrency and Petri Nets, Advances in Petri Nets, volume 3098 of Lecture Notes in Computer Science. Springer, 2003 pp. 819–848. URL https://doi.org/10.1007/978-3-540-27755-2_23.
[4] Köhler-Bußmeier M. A Survey of Decidability Results for Elementary Object Systems. Fundamenta Informaticae, 2014. 130(1):99–123. URL https://doi.org/10.3233/FI-2014-983.
[5] Köhler-Bußmeier M, Rölke H. Analysing Adaption Processes of Hornets. Trans. Petri Nets Other Model. Concurr., 2023. 17:84–107. URL https://doi.org/10.1007/978-3-662-68191-6_4.
[6] Lomazova IA. Nested Petri Nets - a Formalism for Specification and Verification of Multi-Agent Distributed Systems. Fundam. Informaticae, 2000. 43(1-4):195–214. URL https://doi.org/10.3233/FI-2000-43123410.
[7] Lomazova IA, Schnoebelen P. Some Decidability Results for Nested Petri Nets. In: Perspectives of System Informatics, Third International Andrei Ershov Memorial Conference, volume 1755 of Lecture Notes in Computer Science. Springer, 1999 pp. 208–220. URL https://doi.org/10.1007/3-540-46562-6_18.
[8] Di Cosmo F, Mal S, Prince T. Nets-within-Nets through the Lens of Data Nets, 2025. 2506. 22344, URL https://arxiv.org/abs/2506.22344.
[9] Schnoebelen P. Revisiting Ackermann-Hardness for Lossy Counter Machines and Reset Petri Nets. In: Hliněný P, Kučera A (eds.). Mathematical Foundations of Computer Science 2010. Springer Berlin Heidelberg, Berlin, Heidelberg. ISBN 978-3-642-15155-2, 2010 pp. 616–628.
[10] Finkel A, Schnoebelen P. Well-structured transition systems everywhere! Theoretical Computer Science, 2001. 256(1-2):63–92. URL https://linkinghub.elsevier.com/retrieve/pii/S030439750000102X.
[11] Rosa-Velardo F. Ordinal recursive complexity of Unordered Data Nets. Inf. Comput., 2017. 254:41–58.
[12] Schmitz S, Schnoebelen P. Multiply-Recursive Upper Bounds with Higman's Lemma. In: Automata, Languages and Programming - 38th International Colloquium, ICALP 2011, Zurich, Switzerland, July 4-8, 2011, Proceedings, Part II, volume 6756 of Lecture Notes in Computer Science. Springer, 2011 pp. 441–452. URL https://doi.org/10.1007/978-3-642-22012-8_35.
[13] Schmitz S, Schnoebelen P. Algorithmic aspects of WQO theory, 2012.
[14] Lazic R, Newcomb TC, Ouaknine J, Roscoe AW, Worrell J. Nets with Tokens which Carry Data. Fundam. Informaticae, 2008. 88(3):251–274. URL http://content.iospress.com/articles/fundamenta-informaticae/fi88-3-03.
[15] Lazic R, Schmitz S. The Complexity of Coverability in -Petri Nets. In: Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS '16, New York, NY, USA, July 5-8, 2016. ACM, 2016 pp. 467–476.
[16] Rosa-Velardo F, de Frutos-Escrig D. Decidability and complexity of Petri nets with unordered data. Theor. Comput. Sci., 2011. 412(34):4439–4451. URL https://doi.org/10.1016/j.tcs.2011.05.007.
[17] Haddad S, Schmitz S, Schnoebelen P. The Ordinal-Recursive Complexity of Timed-arc Petri Nets, Data Nets, and Other Enriched Nets. In: 2012 27th Annual IEEE Symposium on Logic in Computer Science. 2012 pp. 355–364. doi:10.1109/LICS.2012.46.
[18] Cosmo FD, Mal S, Prince T. Nets-Within-Nets Through the Lens of Data Nets. In: Ganty P, Mansutti A (eds.), Reachability Problems - 19th International Conference, RP 2025, Madrid, Spain, October 1-3, 2025, Proceedings, Lecture Notes in Computer Science. Springer, 2025 pp. 156–170. URL https://doi.org/10.1007/978-3-032-09524-4_11.
[19] Murata T. Petri nets: Properties, analysis and applications. IEEE, 1989. 77(4):541–580. doi:10.1109/5.24143.
[20] Finkel A, McKenzie P, Picaronny C. A well-structured framework for analysing petri net extensions. Inf. Comput., 2004. 195(1-2):1–29. doi:10.1016/J.IC.2004.01.005. URL https://doi.org/10.1016/j.ic.2004.01.005.
[21] Browne MC, Clarke EM, Grumberg O. Characterizing Finite Kripke Structures in Propositional Temporal Logic. Theor. Comput. Sci., 1988. 59:115–131. doi:10.1016/0304-3975(88)90098-9. URL https://doi.org/10.1016/0304-3975(88)90098-9.
A. Phase Encodings Invariance
We recall the lemmas from Sec. 4 and provide their proofs below:
Lemma 4.3. Given two families and of qonCG, if, for each , there is a uniform phase-encoding of into some then, each instance of -coverability is equivalent to the instance of -coverability.
Proof:
If is a yes-instance of -coverability, then , for some and . Since is an embedding, . Moreover, since is a phase-encoding, for each step in there is a corresponding phase in . These phases are consistent. Thus, we have a run , made of several phases. Hence is a yes instance of -coverability.
Vice-versa, if is a yes-instance of -coverability, then there is a path . Since is uniform, then there is some such that . Since is an embedding, we have . Moreover, the finite sequence is either a single phase or a finite composition of consistent phases . Since is injective, we have . Summarizing, , i.e., is a yes-instance of -coverability.
Lemma 4.4. Given two families and of qonCGs, if, for each , there is a phase-finite phase-encoding of into some then, each instance of -termination is equivalent to the instance of -termination.
Proof:
If is a yes-instance of -termination, then there is an infinite run in . Thus, there is an infinite run , where, for each , is a phase. Thus is a yes-instance of -termination.
If is a yes-instance of -termination, then there is an infinite run in . Since is phase-finite, each phase is finite. However, the run is infinite. Thus, it contains infinitely many encoding configurations (otherwise it would be an infinite phase), corresponding to infinitely many finite phases. So we can partition the run into an infinite sequence of consistent phases and obtain the run in . This run is infinite and starts from . Thus, is a yes-instance of -termination.
Lemma 4.6. Given two families and of qonCGs, if, for each , there is a -bounded phase-encoding of into some finitary , then each instance of -boundedness is equivalent to the instance of -boundedness.
Proof:
If is a yes-instance of -boundedness, then the set of encoding configurations reachable from in is finite. Thus, the norms of encoding reachable configurations in from is bounded by some fixed number . Let be a non-encoding configuration of reachable from , via some run . Let be the last encoding configuration in . Thus, and is reachable from without stepping on encoding configurations. Since is -bounded, . Thus, , which is a finite union of finite sets, since is finitary, i.e., it is finite. Thus, both the sets of encoding and of non-encoding configurations reachable from are finite. Summarizing, the set of configurations reachable from is finite, i.e., is a yes-instance of -boundedness.
Vice-versa, let be a yes-instance of -boundedness. Then, the set of reachable encoding configurations in from is finite. Since is injective, also is finite. Moreover, for each configuration reachable from in , we have . Thus, the set of configurations reachable from in is a subset of the finite set . Thus, is a yes-instance of -boundedness.
B. Phase-encoding Proofs
This appendix contains the proofs of the theorems stating that the various encodings we exploited are actually phase-encodings.
Lemma 5.3. The configuration encoding defined in Def.5.2 is a phase encoding.
Proof:
First, we show that for each step in there is a corresponding phase in . Let be a step of , for some configurations , transition and PN mode . We assume ; in case , the argument is analogous. Note that, by PN semantics, for some tuples and configuration , and that, for each , the tuple enables . Thus, we have
Consequently, the system autonomous event is enabled under a cEOS mode that moves an object with internal marking from to and to . Now, only the event is enabled. We can iterate this argument so as to fire, in sequence, all events for and , obtaining the configuration
Now, because of the distribution of the tokens and because each enables , each event is enabled with a mode where . These events fire concurrently; no other event can get enabled before the last has fired because of the distribution of the tokens. Overall this concurrent firing reaches the configuration
where only is enabled. In turn, the firing of the event reaches
Thus, we have a finite phase .
We now show that for each phase in there is a corresponding step in . If there is a phase such that , then we can organize into three blocks: (I) A prefix run that amounts to the firing of the transitions, reaching a configuration
where . (2) An intermediate run that amounts to the firing of the transitions . Since in this run each fires, we have that each enables . Assuming , it reaches a configuration
If , the last addend has to be dropped. (3) the firing of , for . Overall, taking into account the definition of , we have
Thus, by injectivity of where is the PN mode such that .
Lemma 6.4. The configuration encoding in Def.6.2 is a phase-encoding, i.e, given an EOS , two markings an event , and mode , iff in the PN using the above construction.
Proof:
Given an , let the event is enabled on the configuration with mode , and where and where each and . Recall that this proof is about the construction presented in Sec. 6, which in turn assumes that and deal with a single system net type, i.e., , for some .
We define an injection that maps each pair of lambda to its system place and position in when restricted only to that place, i.e., where .
The transition is enabled with mode such that :
• . From now on, we will always associate the variable to the control sequence tuple.
• such that .
Note that we can write and , for some . After firing using the mode on the configuration , we get the resultant marking
where . This is the configuration obtained after executing the module e-merging.
Now, enables the execution of the e-updating module. After firing transitions , all the transitions, and sequentially in the module e-updating, with a unique enabling mode (this mode exists since is an enabling mode for ), we get the resultant marking
where by EOS semantics.
The token in ensures that the control flows to the e-distribution module, consisting of sub-modules: e-id-creation, e-move(i) for each and e-transfer, in that order).
In the e-id-creation sub-module, on firing , a token is placed in for each new tuple generated, against each object net created by the event e. Hence, we end up with the following resultant marking:
where for each .
Now, we can execute and modules sequentially according to each . Specifically, for each , we fire times the transition of that consumes from . After firing all the transitions in an module for , with the mode that instantiated with and with , we get,
where and, with a slight abuse of notation, we define . Note that
Now, after executing module (or module if ), is enabled. After firing , we get the resultant marking:
where the first equation follows from . Thus, .
The other direction of the proof is analogous.
Lemma 7.3. The function in Def.7.1 is a phase encoding of into .
Proof:
Given a configuration from , if where and then,
where for each , . Recall that for , we have such that for all , , , , and .
Now, by definition 7.1, we have where for , the mode and . Now, it is easy to see that where
Symmetrically, observe that if , then, .
Now, we will tackle the case when as depicted in fig. 11a. Let be a configuration in . Let where
such that , and . By definition 7.1, we have
. Then we show that where
We, in fact, show that there is a finite sequence of firings below:
where the transition is specified in fig. 12. The mode is defined as for all and selects . We get
where for all ,
where is a sequence of firings of the transition followed by the transition (see Fig. 13). Note that can be fired at most times. The mode is fixed thanks to the places for , where and selects .
If fired exactly times, followed by the transition enforced with the same mode defined for , we get the resultant configuration
where , and .
- where is a sequence of firings of transitions for each (see Fig 14). Note that the number of firings in is at most times. The mode is again fixed by the places that forces to select and that forces to select the tuple . If fired exactly times, we get the configuration
- where is defined in Fig 15 and the mode is again fixed thanks to the places that forces to select the tuple and selects . Firing results in the configuration
since .
The other direction is symmetric.