Manuscript Offprint
arXiv:2609.17324Universal Properties of Petri Net Unfoldings
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
It is an established idea in concurrency theory that every Petri net admits an unfolding semantics. This is a denotational object that represents its domain of possible executions. Unfoldings play an important role in practical analysis and verification.
This paper is concerned with the following well-known problem: while the unfolding resembles a universal construction in the category of Petri nets, it generally fails to satisfy the expected universal property. This is because the unfolding construction overlooks the net’s internal symmetries.
There are two solutions: make these symmetries explicit to obtain a weak universal property (one that holds only “up to symmetry”); or break the symmetries by assigning individual identities to components of the net. We review these two solutions and establish, in each case, a universal unfolding of Petri nets to event structures.
This paper demonstrates a 2-categorical approach to Petri net unfoldings. We show that each unfolding semantics determines a 2-categorical relative adjunction involving Petri nets and event structures. Viewed in this way, the above two constructions can be related formally via an appropriate morphism of adjunctions. We exhibit a 2-density property of event structures which implies that unfolding functors are essentially unique.
1 Introduction
The theory of Petri nets has long helped to analyse the operational behaviour of concurrent systems in various application domains [Mur89, Win87, Rei85]. But this line of research has primarily targeted a restricted class of well-behaved Petri nets satisfying a “safety” condition. Safety is a helpful restriction in practice but it feels mathematically ad-hoc. This paper contributes to the categorical theory of unrestricted (or unsafe) Petri nets, pioneered by [MM90, BMMS01] and continuing to attract interest [HW08b, BM20, Koc22, BGMS21].
Specifically, we consider the unfolding problem for Petri nets, which has attracted attention due to the symmetry issues that arise in the absence of safety (e.g. [MMS97]). We re-examine two approaches, respectively by Hayman–Winskel [HW08b] and by Kock [Koc22], which exemplify the two main solutions to the unfolding problem: embrace the symmetries, or break them.
We explore this from a 2-categorical perspective, and show that event structures [NPW81] continue to be an appropriate semantic domain for Petri nets, even in the unsafe setting, provided the symmetries are handled adequately.
*serge.lechenne@inria.fr, https://orcid.org/0009-0001-9626-4742
†hugo.paquet@inria.fr, https://orcid.org/0000-0002-8192-0321

The assignment of tokens to the places of a Petri net is called a marking. This is the only aspect of the net that changes during execution, via the activation (or firing) of transitions, consuming tokens and producing new ones. For our example, here are some possible firings:

The dynamic behaviour of a Petri net can be intricate. For instance, the firing of a transition may produce enough tokens to enable other firings; this defines a causality relation between firings. Meanwhile several transitions can compete for the same tokens, which creates conflict and nondeterminism.
To reason about this complex behaviour, a denotational semantics is useful, and this is what event structures (introduced by Plotkin, Nielsen and Winskel in a seminal 1981 paper about Petri net unfoldings [NPW81]) aspire to provide. The rough idea is to represent all possible sequences of transitions in a single structure that accounts for causal dependency, conflict, and concurrency. The semantics of our example net would be the infinite event structure below, in which each event represents the firing of a single transition (indicated here by the event label); an arrow represents a causal dependency; and a wavy blue line indicates a conflict.

Note that conflict is hereditary, e.g. the first event labelled a is implicitly in conflict with all events labelled b, since no execution can see both events. We will define event structures formally in §3.3. Informally, b can fire repeatedly and forever but as soon as a fires the execution must stop.
This kind of semantics is known as an unfolding (the cycle in the original Petri net is ‘unfolded’ to an infinite chain in the event structure). Event structures are closely connected to a special class of acyclic Petri nets known as occurrence nets ( ), thus the terminology ‘unfolding’ also refers to the process of turning an arbitrary Petri net into an occurrence net.
1.2 Universality issues in the unfolding of Petri nets
Unfolding semantics can sometimes be ambiguous or non-canonical. The simplest problematic situation is when, at some stage of execution, a transition can choose between several tokens.
A problematic example. Consider the net

whose marking allows for two successive firings. A natural candidate for its unfolding is the event structure
a a
comprising two events without any conflict or dependency. But there is a mismatch: in the event structure, we can distinguish between two single-firing processes, whereas the Petri net has just one possible single-step execution:

Thus the event structure above fails to satisfy the universal property that one might naturally expect of an unfolding: that the executions of a Petri net correspond bijectively with the processes of its unfolding. (We will explain in §3.1 why this is a universal property in the categorical sense. See also [HW08b].)
This failure of universality is well-known, and it is common in Petri net theory to impose a further restriction: that every reachable marking has at most one token per place. Petri nets satisfying this condition are traditionally called safe nets. Safe nets do admit a universal unfolding [NPW81].
In this paper we do not make any safety assumptions and instead consider existing proposals for recovering a universal unfolding in the general case.
Unfolding general Petri nets to event structures. To resolve this issue, two methods have emerged. The first method consists in enriching the unfolding with additional information expressing that certain processes are ‘the same’. This idea culminates in the work of Hayman and Winskel, based on a theory of explicit symmetries [HW08b, HW08a].
The second method is to modify the very definition of Petri net so that elements (tokens and edges) carry an individual identity. Viewed in this style, the problematic net above admits two processes

distinguished by the specific token that is consumed. This is consistent with the event structure above. This method is formalized using the theory of whole-grain Petri nets developed by Kock [Koc22].
1.3 Objectives and contributions
This paper has two objectives. First, we revisit each method separately and establish in both cases a universal unfolding of Petri nets to event structures. The constructions given by Hayman–Winskel [HW08b] and Kock [Koc22] are currently limited to occurrence nets, which are not adequate as a semantic domain (roughly speaking, because places can be redundant). We will see however that connecting to event structures requires care. The second objective is to connect the two methods, following the intuitive idea that forgetting names induces new symmetries.
Making all of this precise requires some technical constructions. Universal properties are stated in the language of category theory, and in this paper we additionally need some basic
2-category theory. This is essential because the unfolding of Petri nets is universal only in a 2-categorical sense. (We note that 2-categorical methods turn up already in [HW08b, Koc22, Win07]. They are a natural tool for dealing with named elements and symmetries.)
We briefly outline our results and the organization of this paper. In §2, we recall that Petri nets form a category Petri and introduce a 2-category Petri of whole-grain Petri nets (following Kock [Koc22]). We relate them using a functor Q : Petri → Petri which forgets the names of tokens (and edges) to recover mere multiplicities.
In §3, we introduce the sub-category Occ of occurrence nets, which can be defined equivalently either in whole-grain style or in ordinary style. We recall the definition of the category Ev of event structures and show that the unfolding of whole-grain Petri nets induces a 2-adjunction between Petri and Ev. This is closely related to the unfolding of whole-grain Petri nets to occurrence nets found in [Koc22] but the link to event structures requires the introduction of new, more general class of morphisms and therefore a new unfolding functor.
In §4, we revisit the unfolding of ordinary Petri nets. Our main contribution is to establish a relative adjunction [AM24] involving the categories Petri and Ev, and a 2-category EvSym of event structures with symmetry [Win07]. Furthermore, we show that the embedding Ev → EvSym is a 2-dense 2-functor, which characterizes the unfolding uniquely up to symmetry.
Finally, in §5, we formally connect the two universal constructions (ordinary and whole-grain) using a morphism of relative pseudo-adjunctions.
Note on terminology and related work. Petri net theory is a vast area and the word ‘unfolding’ is sometimes used for other purposes. Here we are concerned only with the process of unfolding a Petri net to an occurrence net or an event structure. We also note that the symmetry issues we discuss are similar to issues in the representation of unmarked nets as certain monoidal categories. We refer the reader to [Koc22] for a thorough comparison.
1.4 Elements and multiplicities
An important point for this paper is the distinction between multisets of elements of a set X, and sets of named occurrences of elements of X. This section is just to fix notation for this basic principle.
Multisets. If X is any set, let denote the set of multisets of elements of X. Formally these are defined as functions with finite support.
Now, for a set equipped with a function , we call the function giving for each the cardinality of . Under simple conditions on the fibres of , we have that . We regard as a forgetful operation: while may contain several named occurrences of an element , in their identity is erased and the copies are indistinguishable.
Multirelations. A span of sets can equivalently be presented by a function . Under similar cardinality conditions on the fibres, via the multiplicity counting-operation Q this induces a multirelation , seen as element of .
Spans can be composed (via pullback) and form a bicategory (e.g. [CKS84]). When infinite coefficients are allowed multirelations are also closed under an infinite form of matrix multiplication, and the multiplicity-count operation is functional. (The multirelations in this paper are all finitary, and indeed satisfy further conditions to ensure that finiteness is preserved by composition.)
We will overload the variable Q and use it to denote the functor mapping whole-grain Petri nets to ordinary Petri nets. This is appropriate because the functor consists in applying Q to every component.
2 Categories of Petri nets, and multiplicity count
We start by presenting two categories of Petri nets. First we look at the traditional kind of Petri net with the standard notion of morphisms based on multirelations [HW08b]. Then we consider the recent theory of whole-grain Petri nets [Koc22], based on spans instead of multirelations. We will see that the whole-grain framework is inherently 2-categorical.
The section is organized as follows. In §2.1 we define each kind of net and we see that a whole-grain Petri net induces an ordinary net if individual identities are forgotten. Then in §2.2 we consider morphisms between nets. This gives a category of Petri nets and a 2-category of whole-grain Petri nets, respectively Petri and Petri , and a 2-functor Q : Petri → Petri.
2.1 Ordinary Petri nets and whole-grain Petri nets
We recall the classical definition of Petri nets, based on multisets and multirelations.
Definition 2.1 (Petri net). A Petri net P consists of:
• a set S of places and a set T of transitions;
- multirelations Pre : and Post : such that for every there are finitely many such that and finitely many such that ;
• a multiset of places, the marking;
satisfying the following two conditions:
• The net is grounded: for every , there is such that .
• The net has no isolated places: for every , there exists such that or .
The marking specifies the number of tokens in each place at initialisation. The fact that Pre and Post are multirelations indicates that several tokens may pass through a single edge during one step of execution. This multiplicity-based formalism follows the collective-token philosophy [vGP09]: the tokens in each place are indistinguishable from each other, have no individual identity, and cannot be individually tracked as they move through the net.
It is common to impose an additional safety condition that forbids having multiple tokens in one place [Win86] for any reachable marking. We do not need to define this, precisely because this paper is about the universality issues with general “unsafe” Petri nets.
We now look at whole-grain Petri nets [Koc22].
Definition 2.2 (Whole-grain Petri net). A whole-grain Petri net P consists of:
• a set S of places and a set T of transitions;
• two sets I and O together with spans and ;
• a finite set M together with a map , the marking;
such that the functions and have finite fibres. Additionally, we require that the maps and are surjective.
The surjectivity conditions correspond to the two conditions imposed on ordinary Petri nets [Win86], as is also the finite fibres hypothesis (that states each place/transition has a finite number of transitions/places connecting to it via I and O). This formalism allows for a much more precise description of the token game where tokens are individually tracked as they are consumed and produced by transitions: this is the individual-token philosophy. A basic observation is that we can always forget (or quotient out) the token and edge identities, to recover an ordinary Petri net.
Proposition 2.3. For a whole-grain Petri net P, with components labelled as in Definition 2.2, there is an ordinary Petri net with transition set T, place set S, marking , and multirelations and . This Petri net is denoted .
In other words, is a version of P in which parallel edges are combined into a single edge with multiplicity and the initial marking is reduced to a multiplicity count for each place. The operational behaviour of the nets P and correspond; e.g., a transition e is enabled in P if and only if it is enabled as a transition of .
Remark 2.4. Both kinds of Petri nets in this paper are assumed to be grounded and to have no isolated places. These two conditions are common but not systematically imposed, so this deserves a brief comment. In the context of net unfoldings, the grounded-ness condition seems essential, to avoid tokens being uncontrollably produced. However, one could likely do away with the condition on isolated places, at the cost of a slightly more complex 2-category of whole-grain Petri nets (because Theorem 2.14 below would not hold).
2.2 Morphisms of Petri nets
Maps of Petri nets have a well-established theory; they have a canonical justification as relations preserving the token game [Win84].
Definition 2.5. For and , a map of Petri nets consists of a function and a multirelation such that the diagrams
commute. (The multisets and are seen as multirelations from a singleton set, and the function is seen as a multirelation with if and 0 otherwise.)
Remark 2.6. Equivalent to the above diagrammatic conditions are the following equations, for every and :
•
• and
•
In a map of Petri nets, the multirelation can be read as a reverse action on places: every place that admits an edge to a transition must be assigned a multiset of places incoming for . When arises from a total function , the map is called a folding map. Morphisms of Petri nets compose (as multirelations) to form a category that we denote Petri.
We now turn to the morphisms of whole-grain Petri nets, closely following Kock [Koc22]. This involves a bit more data (in particular, because in the whole-grain setting, the multirelation must be replaced by another span) but axioms are stated as simple pullback conditions.
Definition 2.7. Suppose that and are whole-grain Petri nets. A map of (whole-grain) Petri nets is a family of five functions relating and componentwise such that
commutes. (We keep the individual functions anonymous for clarity; the functions are all the same in the diagram.)
The only relevant maps for this paper are those satisfying further conditions, as follows.
• A map is an étale map if and are pullback squares and the map is an identity function (in particular ).
• A map is a cabling map if , , and are pullback squares and the map is an identity function (in particular ).
More informally, étale maps are those preserving the input and output arities of transitions up to names: the pullback condition enforces this via an appropriate isomorphism of fibres A cabling is in some sense place-étale, as it preserves arities of places. (One could relax the identity map axiom to an invertibility condition, but the definition above makes the overall formalism simpler [Koc22].)
Remark 2.8. Our cabling maps generalise those of Kock [Koc22], who only considered maps between Petri nets having the same initial marking. It is important for our purposes to allow for varying markings (subject to the pullback condition (e)—compare with the first condition in Definition 2.7) for a proper connection with event structures.
More concretely, the pullback conditions for an étale map assert that a transition and its image must have the same number of incoming and outgoing edges, with the map providing a specific bijection. A cabling map has the analogous property for places, and additionally the two Petri nets must have the same transitions. By combining étale maps and cabling maps we recover a whole-grain version of the maps of ordinary Petri nets in Definition 2.5.
Definition 2.9. For whole-grain Petri nets P and , a rational map is a span
where R is another whole-grain net, is a cabling map and is an étale map.
We recover étale maps as the class of rational maps for which . The components of a rational map can be explicitly laid out as
Proposition 2.10. For , every rational map induces a morphism of ordinary Petri nets where is the function and is the finitary multirelation .
Proof. We verify the first condition in Definition 2.5 and omit the other two, which use similar arguments. Explicitly, we must show that for every , , where and are the respective markings of and .
Recall that, by definition of Q, for and , is the cardinality of the set ; is the cardinality of the fibre for the marking function ; and similarly is the cardinality of .
By the axioms of rational maps we have the following situation:
Thus, by the characterization of pullbacks in Set we may identify with the coproduct , and under this identification the map is given by . For we obtain the desired equation by considering the bijection
whose domain has cardinality and whose codomain has cardinality .
Étale maps correspond to folding maps:
Lemma 2.11. For , if is an étale map (seen as a degenerate rational map), then is a folding map.
Proof. For a span of sets of the form the multirelation given by Q is a total function.
Rational maps and compose, following the composition of spans as pullbacks:

Here we must take care when discussing pullbacks since the two legs of a rational map belong to different classes of maps. So, formally, the pullbacks are taken in the category of whole-grain Petri nets and arbitrary maps (that is, the maps of Definition 2.7, without any pullback conditions), which corresponds to taking pullbacks componentwise in Set. That the composite span gives a rational map is ensured by the following lemma:
Lemma 2.12. For whole-grain Petri nets , if is a cabling map, and is an étale map, then there is a -pullback square as below for which is a cabling map and is an étale map.

Proof. The diagram

commutes in Set, by definition of maps in Petri , with the front and back squares pullbacks. The right-hand square is a pullback because is an étale map, and therefore by the pasting law for pullbacks the left-hand square is also a pullback. This is one of the conditions for to be étale; other conditions are derived in the same way.
The proof that is a cabling map is also analogous, but for a minor technical point: to preserve the cabling property we use that pullbacks of identities can be taken to be identities. (Indeed one can make a global choice of pullbacks in Set that satisfies this.) We omit the proof.
This composition operation for rational maps gives rise to a bicategory. There is an identity rational map for every Petri net P given by the identity span . Pullbacks are only defined up to isomorphism and so the composition of spans is only associative and unital up to coherent invertible 2-cells. The 2-cells are defined as standard morphisms of spans.
Definition 2.13. For whole-grain Petri nets P and and rational maps as on the left below,
a 2-cell is a morphism that makes the above triangles commute.
Whole-grain Petri nets, rational maps and 2-cells assemble into a bicategory that we denote . That we have a bicategory and not a category is typical for span-like morphisms and this is closely connected to the fact that the whole-grain setting tracks occurrences of elements with individual names, not just multiplicities. Any renaming of elements will give a 2-cell, and in fact every 2-cell in this bicategory is a renaming:
Theorem 2.14 (Discreteness). For whole-grain Petri nets P and and rational maps , there is at most one 2-cell and when it exists it is invertible.
Proof. Appendix A.
In other words, the bicategory Petri is locally essentially discrete. This property prevents any coherence issues and greatly eases the proofs of several theorems below.
We have described two categorical models for Petri nets, a bicategory Petri and a category Petri. We now connect them using the multiplicity-counting operation Q (of §1.4), whose action on whole-grain Petri nets extends to a 2-functor Petri → Petri (this is a straightforward verification of the axioms). For this statement to make sense, Petri is understood as a locally discrete 2-category.
Theorem 2.15. There is a 2-functor Q : Petri → Petri extending the action on objects and morphisms described in Proposition 2.3 and Proposition 2.10.
Proof. It remains only to deal with the 2-cells. A 2-cell between rational maps and implies that and the functions and are the same. We have seen that has a component which is an isomorphism of spans between and . Necessarily these spans also have the same image under Q. The axioms for a 2-functor follow immediately.
We note that this functor is surjective on objects and morphisms.
Proposition 2.16. For every there exists with , and for every morphism of ordinary Petri nets there is a rational map with .
Proof sketch. For the places and transitions of , take the corresponding sets in . Then let and , with span legs given by suitable projections out of these sets. Finally let with the obvious projection to places. We have defined with .
Now let and define whole-grain nets with as in the previous paragraph. Given a morphism , build a whole-grain Petri net with the components , , , and , equipped with appropriate projection maps. Then build a span in terms of projections, chosen bijections and the function . We omit the rest of the proof including the verification that .
We emphasize that Q : Petri → Petri is not an equivalence: the whole-grain Petri net

has four distinct (rational) automorphisms, since the two tokens and the two edges can be permuted, however its image under Q only has an identity automorphism.
3 The token game: paths, occurrence nets, and event structures
The “token game” specifies the operational behaviour of a Petri net. There is only one rule: when a transition is fired, the marking is modified according to the incoming and outgoing edges for that transition. Slightly more formally, in an ordinary Petri net, a transition is enabled if, for every place , , and the firing of an enabled transition has the action of updating to a new marking given by for every .
But this simple rule creates complex dynamics: several transitions may be enabled at a given point and firing one might disable the other or enable new transitions. So a Petri net generally admits many possible execution behaviours (cf. the example in §1.2), including some in which firings occur in parallel.
For whole-grain Petri nets, the complexities are the same, and in addition one must track token and edge identities.
In this section we recall the formal notion of execution path (or process) for a Petri net, and we then define occurrence nets which, as we recall, represent colimits of paths. We compare the whole-grain view and the traditional view on paths: the latter is based on causal nets [NPW81] and the former uses directed acyclic graphs [Koc22].
3.1 The execution paths of a Petri net
One key idea of [Koc22] is to organize the transitions of a given execution path into a directed acyclic graph, where a node represents a transition firing and an edge between two firings indicates that a token is produced by one and consumed by the other (via a place). Technically this gives an “open-ended” graph with dangling edges, because the tokens in the initial marking are not produced by any firings, and the tokens in the final marking are not consumed by any firings.
Recall that a directed graph can be defined as a pair of sets , (nodes and arcs) together with source and target functions . Graphs in this paper are defined in this style but they are open-ended, grounded, and acyclic:
Definition 3.1. An open-ended graph G consists of a pair of finite sets of nodes and arcs, together with partial functions and , specifying the source and target nodes of each arc where they are defined. Say G is grounded if t is surjective, and acyclic if the only directed path from a node to itself has length 0.
The in-boundary of G is the subset of A where s is undefined, and the out-boundary is the subset of A where t is undefined. These subsets are denoted in(G) and out(G), respectively.
We observe, following [Koc22], that graphs can be seen as special whole-grain Petri nets, if one temporarily drops the assumption that Petri nets should have no isolated places . Indeed the data of an (open-ended, acyclic, grounded) graph can be written out as where is the complement of in( ) in and is the complement of out( ) in . The initial marking is given by the inclusion map in( ) .
A graph G is a whole-grain Petri net and therefore also gives rise to an ordinary Petri net . In this instance the operation Q does not actually discard any information because a graph has at most a single token per place and no parallel edges. A Petri net of the form is called a causal net (introduced using different language in [NPW81]).
Definition 3.2. For , a path of is a graph together with an étale map . A morphism of paths is defined as an étale map such that . We write for the category of paths of .
Definition 3.3. For , a path of is a graph together with a folding map . A morphism of paths is defined as an étale map such that . We write for the category of paths of .
Maps of Petri nets induce functors between categories of paths:
Lemma 3.4 ([Koc22]). Let P and be whole-grain Petri nets.
Kock [Koc22] does not impose this condition on whole-grain nets. This axiom is not required for the basic theory, but saves us a lot of coherence trouble via Theorem 2.14. Temporarily dropping it when considering graphs causes no issues.
-
An étale map induces a functor given by post-composition: is mapped to .
-
A cabling map induces a functor defined by pullback along . A path is mapped to given by
Combining the two, a rational map induces a functor .
Note that Point (2) in Lemma 3.4 uses a special case of Lemma 2.12.
3.2 Occurrence nets and unfoldings
3.2.1 Occurrence nets
Occurrence nets are a special class of Petri nets. The motivation is that an occurrence net should represent, as a single ‘unfolded’ net, the full domain of paths of a Petri net. But for ordinary nets it is difficult to state this formally. We will first define occurrence nets directly, and later discuss how they represent domains of paths.
There are various equivalent definitions of occurrence nets, but in this paper it makes sense to use one based on causality and conflict relations, which makes plain the connection to event structures.
Definition 3.5 ([NPW81]). Let be a Petri net with ‘no parallel edges’: the multirelations Pre and Post are ordinary relations. Say two transitions are in immediate conflict, written , if there exists a place with and . Define binary relations < and # on the set as follows:
- < is the transitive closure of Pre ∪ Post, so u < v iff there is a non-empty path from u to v in the graph underlying P;
• # is the hereditary closure of #₀ under <, that is, the smallest relation containing #₀ and such that if u # u' and u < v then v # u'.
The Petri net P is an occurrence net if:
• the relations < and # are irreflexive;
• each place s has at most one t with Post(s, t);
• the set is finite for every ; and
- the multiset is a set (at most one token per place) containing precisely the -minimal places: those with no incoming transitions. This set is also called the in-boundary of P.
Let Occ be the full subcategory of Petri spanned by occurrence nets.
A whole-grain occurrence net is a whole-grain Petri net such that is an occurrence net. Occurrence nets and rational maps form a bicategory, called , which turns out to be equivalent to .
Kock calls this an occurrence hypergraph; his definition is equivalent but emphasises other aspects [Koc22].
Theorem 3.6. The restricted 2-functor Q : Occ → Occ forms an equivalence.
Proof sketch. It follows easily from Proposition 2.16 that is is surjective on objects and morphisms. This implies in particular that for every , the functor (of essentially discrete categories) is surjective on objects. We prove it is an equivalence by showing it is full (it is automatically faithful). When and are rational maps with the same image under , by definition of cabling maps and have the same transitions, and multiplicity conditions on occurrence nets ensure that the multirelation is actually an ordinary relation, moreover satisfying . From this we construct an appropriate 2-cell.
One key property is that an occurrence net (whole-grain or ordinary) is a canonical colimit of its paths: the map is an isomorphism of Petri nets, see [Koc22, Proposition 8.15].
We note also that occurrence nets are ‘closed under cabling’ in the following sense:
Lemma 3.7. Let be a cabling map. If is an occurrence net, then so is .
Proof note. See [Koc22] for a similar proof in case P is a graph. The general proof is an easy argument by contradiction.
3.2.2 Unfolding of whole-grain Petri nets and étale maps
One benefit of moving to the whole-grain approach (the key insight of [Koc22]) is that it becomes easy to construct an unfolding with the expected universal property:
Theorem 3.8 ([Koc22]). Let Petri and Occ denote the respective wide subcategories on étale morphisms. The inclusion functor Occ Petri has a right adjoint U.
Remark 3.9. The unfolding UP of a whole-grain net P is an occurrence net whose in-boundary corresponds to the token set of P. To see why this is the case, observe that the count of this adjunction gives an étale map , so in particular UP and P have the same marking set (although they have different place sets). Since UP is an occurrence net, its marking and in-boundary coincide.
The theorem states the following universal property: for every whole-grain Petri net P and whole-grain occurrence net O with an étale map , there is a unique map that makes the diagram
commute. In particular, from an étale map one obtains an étale map .
The generalization of this universal property to rational maps, i.e. establishing an adjunction between Petri and Occ, is not immediate. This is what we do in the next section, leveraging Theorem 3.8.
Corollary 3.10. For a whole-grain Petri net P, post-composition with determines a functor which is an isomorphism of categories.
Proof. The inverse is induced by the universal property: any path must factor through via a unique path . Functoriality is a straightforward consequence of uniqueness.
Remark 3.11. Since occurrence nets are colimits of their paths, it also follows that there is a canonical isomorphism . This fits the initial motivation for occurrence nets and unfoldings.
3.2.3 Unfolding of whole-grain Petri nets and rational maps
First we state the main theorem of this section. (Note that we have overloaded the notation U to refer to the unfolding, but both functors U agree on their common domain .)
Theorem 3.12. The embedding functor admits a right adjoint, denoted .
Proof. We will show that the count of the restricted adjunction of Theorem 3.8, a family of étale maps , extends to the rational setting.
First recall that we can regard as a degenerate rational map , and it follows easily from properties of pullbacks that pre-composing this with another rational map gives the span . (This is a well-defined rational map: is a cabling map and both and are étale.)
We show that (id, ) is a universal arrow in the following sense: for every and , the post-composition functor
is an equivalence of (essentially discrete) categories. It suffices to show it is essentially surjective and full, because faithfulness is immediate for functors between essentially discrete categories.
Essentially surjective. Consider a rational map (with étale, cabling). By Lemma 3.7, is an occurrence net. Thus we can instantiate Theorem 3.8: must factor through via an étale map , so . We have constructed a rational map in the pre-image of .
Full. Let and be rational maps such that (id, ) and (id, ) are related by a 2-cell in . We must show and are themselves related by a 2-cell.
By Theorem 2.14, the 2-cell is an isomorphism such that
commutes. But in particular is étale, and so we must have by the universal property of (Theorem 3.8). Thus also provides the required 2-cell .
We have established the existence of the unfolding functor U by identifying the universal arrow . But it is interesting to look directly at the induced functional action of U on rational maps.
Proposition 3.13. Let be a rational map of whole-grain Petri nets. Up to isomorphism, the functor maps to a rational map
consisting of the following components:
• is an occurrence net computed as
or more explicitly as the colimit of the functor .
• is the canonical map out of a colimit
induced by the family of pullback projections .
• is the canonical map out of a colimit
induced by the family of colimit injections where consists of the (étale) pullback projection composed with .
Proof. By construction of U, the rational map induced by is obtained by applying the universal property of to the étale part of the rational map . The latter is obtained by composition of spans using a pullback and therefore we are in the following situation:
In a presheaf category (such as ) pullbacks commute with colimits, and UP is a colimit of the paths G of P, so is a colimit of the and the characterization of follows easily. The characterization of is clear by the universal property of .
Unfortunately, while things work smoothly in the whole-grain setting, unfoldings to occurrence nets are more difficult for ordinary Petri nets. The reason is that, for a net , the projection functor does not generally admit a colimit in . (The colimit does exist if is a safe Petri net [HW08b, Win86].)
Example 3.14. Figure 1 contrasts the situation in and for the problematic example of §1.2, here denoted . (To read the figure, recall that graphs are special nets (§3.1), although we draw them with nodes and edges.) The symmetries in affect the universality of the potential unfolding of . The symmetries are not present at all in because morphisms must respect token labels.
One solution, found by Hayman and Winskel, is to enrich occurrence nets with additional structure encoding symmetry [HW08b], to render this problematic automorphism “equivalent” to the identity. With symmetry one can therefore state universal properties “up to symmetry”, as will be developed in §4.

(a) The category Path(P).

(b) The category Path(QP).
Figure 1: Skeletons of path categories for the example in §1.2.
3.3 Event structures
Event structures [NPW81] are an abstraction of occurrence nets in which the places have been discarded: an event structure has a single set equipped with a partial order and conflict relation. These are designed to correspond to the relations on transitions in an occurrence net (cf. Definition 3.5).
Our view is that, as a semantic domain for Petri nets, event structures are more appropriate than occurrence nets. They are easier to describe and reason about, and the only thing lost—the places—is arguably an irrelevant ‘implementation detail’, since the execution of a Petri net is already fully described by the transitions firing.
Definition 3.15. An event structure is a tuple where is a partial order on , and is an irreflexive and symmetric binary relation on , satisfying the axioms below:
• For every the set is finite.
• For , if and then .
The execution paths of an event structure are called configurations:
Definition 3.16. A finite subset is called consistent if no two events in are in conflict. It is called a configuration if it is additionally down-closed. The set of consistent subsets of is denoted , and the set of configurations is called .
Maps of event structures must faithfully preserve configurations:
Definition 3.17. If and are event structures, a function is a map of event structures if for every , the direct image is in , and moreover the restriction of to is injective.
Event structures and maps of event structures form a category Ev. Frequently, we will regard Ev as a locally discrete 2-category, just like we did for Petri and Occ.
We now recall (from [NPW81, Win86]) the relationship between occurrence nets and event structures. The set of transitions of an occurrence net, equipped with the relations and of
Definition 3.5, defines an event structure. This extends to a functor . Conversely, for every event structure the pre-image is nonempty and indeed an object of can be constructed universally so as to give a functor and an adjunction
By combining this adjunction with that of Theorem 3.12, recalling the equivalence of and , we obtain a universal unfolding of whole-grain Petri nets to event structures.
Corollary 3.18. There is a natural equivalence of setoids for every and ; in other words, a pseudo-adjunction
where
(One could also define N explicitly, just by adapting the definition of N to the whole-grain setting.) In summary, the unfolding semantics of a Petri net is computed in two steps: first as an occurrence net, which combines all paths into a single (generally infinite) net, and then as an event structure. So far we have only done this for whole-grain Petri nets, giving the adjunction in Corollary 3.18. We now turn to the more complex situation for ordinary nets.
4 Petri net unfoldings via explicit symmetries
In this section we consider the unfolding of ordinary Petri nets. Our main contribution is a universal unfolding semantics in terms of event structures with symmetry.
4.1 Background: Petri net unfoldings to occurrence nets
Unfoldings of Petri nets are often used in practice (e.g. [McM92]) but it can be difficult to find an explicit construction. We now import a characterization from [HW08b]. To give some intuition for the mutually recursive construction below, the occurrence net consists of the tokens of viewed as places, extended in a small-step fashion by considering reachable markings and transition occurrences.
Proposition 4.1. For a Petri net , there is a unique occurrence net equipped with a folding map , satisfying the equations below, in which ‘co A’ means that A has no two places related by < or #,
and with , , iff , and iff is of the form . (Recall that for an occurrence net the multirelations Pre and Post are relations, and the marking is uniquely determined.)
This unfolding fails to satisfy the universal property required for an adjunction, essentially because in unsafe settings the small-step construction produces redundant data. For example, when the above construction is applied to the Petri net in §1.2, two indistinguishable tokens become two separate (distinguishable) places, leading to the symmetry issues already discussed there.
The unfolding does, in fact, satisfy the existence part of a universal property:
Lemma 4.2 ([HW08b, Win86]). Let and . For every map of Petri nets, there exists a map such that the diagram
commutes.
The insight of Hayman and Winskel [HW08b] is that by tracking the internal symmetries of one can prove uniqueness up to a form of symmetry. This can be phrased as a universal property in a weak 2-categorical sense: a pseudo-adjunction.
But adding symmetry to Petri nets, as in [HW08b], is a highly technical endeavour. There are several non-equivalent constructions, requiring nets with multiple markings, and the connection to event structures remains unclear because of a fundamental obstacle described in [HW08a, §7.1].
Our perspective is that these complications are unnecessary. We show how to bypass Petri nets with symmetries by directly unfolding to event structures with symmetry, which have a much simpler and established theory [Win07]. As we will see, this method relies on a 2-categorical relative adjunction and a 2-density property.
4.2 The unfolding of a Petri net as an event structure with symmetry
We first recall event structures with symmetry and the 2-category EvSym, originally introduced in [Win07].
4.2.1 Event structures with symmetry
Informally, symmetry on an event structure indicates which pairs of executions can be considered equivalent, via a bisimulation relation.
Definition 4.3. For an event structure , an isomorphism family is a set of bijections between finite configurations of , such that:
• § contains all identity bijections, and is stable under composition and inverse.
• For , if , then the restriction of to is in .
• For , if then there exists an extension and a bijection such that restricts to .
The pair is called an event structure with symmetry.
We then consider symmetry-preserving maps:
Definition 4.4. For event structures with symmetry and , a map preserves symmetry if for all , , where .
A novelty in the presence of symmetry is the following equivalence relation on maps:
Definition 4.5. For event structures with symmetry and and symmetry-preserving maps say that and are symmetric, denoted , if for every the bijection defined by is in .
Together, event structures with symmetry, symmetry-preserving maps and symmetries of maps form a 2-category EvSym [Win07]. This is a degenerate 2-category in the sense that hom-categories are all setoids (sets with an equivalence relation). There is an embedding . As we will see, the 2-categorical structure makes it possible to consider universal properties “up to symmetry”.
4.2.2 The unfolding semantics with symmetry
We proceed towards the construction of a 2-functor Sym : Petri → EvSym. To build Sym for a Petri net , we equip the event structure with an appropriate isomorphism family, which we define now. The informal idea is that configurations corresponding to the same path in should be made symmetric.
To make this precise we first need to formally construct the path corresponding to a configuration of . Note that can itself be regarded as an event structure, inheriting the partial order from , and with no conflict. There is an embedding which, because of the adjunction in (1), corresponds to a morphism (and the image is the inclusion map ). Let denote the composite map . The pair is a path of , because the functor turns conflict-free event structures into graphs (see [NPW81]). An isomorphism of event structures between configurations of induces a morphism of -paths . The underlying bijection should be a symmetry if the paths and correspond to the same path in . All of this is summarized in the commutative diagram

and in the following proposition:
Proposition 4.6. For a Petri net P, the collection
is an isomorphism family on the event structure with respect to which the following holds: for every and for all pairs of maps such that , .
For , let denote the pair .
Proof. We only detail the extension axiom for isomorphism families. It suffices to look at a one-event extension with and . The general axiom then follows by induction. Let be the immediate predecessors of w.r.t. the order . First note that for every , a consequence of naturality.
Recall the construction of the unfolding: for every , is a transition of and so of the form . Observe that we must have for some , since by assumption both and map to the same transition of (namely, ).
Now let denote the transition , so (by construction) is its pre-set of places in . We partition as follows: let be the subset of places sitting in between and for some (formally, for some ) and let . We note that every place is initial: indeed, any transition of having in its post-set would correspond to an event of immediately below , thus one of the , and we would have .
We claim that is a well-defined transition of , where the set is defined as . To see why this holds, note that every element of is a well-defined place: is valid just because is, since . Then observe that co (because the transitions are concurrent and initial places are never involved in a conflict) and the arity condition transfers easily from . So the claim holds and we can let and easily verify that the resulting extension of is in .
Example 4.7. We return to the ‘problematic’ example in §1.2. Applying the above construction, we obtain the same event structure (with two concurrent events), but this time it comes equipped with an isomorphism family that makes the two events symmetric. This is one way to resolve the universality issue by restoring the equivalence, up to symmetry.
In general, in addition to the existence property of Lemma 4.2, the unfolding satisfies the uniqueness part of a universal property, up to symmetry:
Lemma 4.8. For and , if is a map of Petri nets and there are two maps , satisfying the commutative diagram of Lemma 4.2, then as maps of event structures with symmetry .
Proof. By assumption the two maps of occurrence nets are equal when postcomposed by . The result then follows from our definition of the symmetry in .
Theorem 4.9. For and , the function
extends to an equivalence of categories , natural in .
Proof. First recall that the domain category is a setoid and the codomain is a set, i.e. a discrete category. The function extends to a functor, i.e. symmetric pairs have the same image, by Proposition 4.6. To establish the equivalence it suffices to prove that the function is surjective, which follows from Lemma 4.2.
This theorem characterizes the natural transformation up to equivalence. Modulo the , this resembles a characterization of itself by a Yoneda-style argument. We can make this argument precise using a density theorem for .
4.3 A 2-density result for event structures
We prove a density result for the embedding of event structures into event structures with symmetry. This is a 2-categorical (i.e. Cat-enriched) form of density: each event structure with symmetry is a canonical 2-colimit of ordinary event structures. Another way of stating this is as follows:
Definition 4.10 (e.g. [Kel82]). For locally small 2-categories D and E, a 2-functor is 2-dense if the 2-functor is locally an isomorphism of categories, where is the 2-category of 2-functors, strict natural transformations, and modifications.
Theorem 4.11. The embedding 2-functor is 2-dense.
(We emphasize that 2-density is strictly weaker than density in the 1-categorical sense. In particular the underlying 1-functor is not dense.)
Proof. For event structures with symmetry and , we show that the functor is an isomorphism of categories by constructing an inverse. Write and .
Observe that, for a natural transformation , applying component to the ‘identity’ function gives a map of event structures with symmetry . We claim that preserves the symmetry in . For any bijection in , we have , writing and for the inclusion maps (and recalling that ). Since is a natural transformation and each component preserves the symmetry relation on maps, . In other words, , and we have proven the claim. Therefore, we take . For functionality of , note that any modification must be unique and gives . We omit the verification that and are inverses.
From this we extend the unfolding semantics to maps of Petri nets, up to symmetry.
Corollary 4.12. The unfolding semantics determines a pseudo-functor (i.e. composition and identities are only preserved up to symmetry).
Proof. Every map induces a natural transformation , which corresponds to a map under the density isomorphism. The non-strictness is because pseudo-inverses are only determined up to isomorphism.
It also follows from this construction that the equivalence of categories is natural in . In other words, we have constructed a -relative pseudo-adjunction:
The 2-functor is determined up to symmetry by the relative 2-adjunction. The general result is as follows.
Lemma 4.13. Let and be 2-functors and suppose that is 2-dense. If has two -relative pseudo-adjoint pseudo-functors , then and are equivalent.
The following diagram summarizes the situation:

Proof. By the relative pseudo-adjunction property we have for every a natural equivalence of pseudo-functors , and this is natural in . By 2-density of this lifts to an internal equivalence in . Several naturality conditions must be verified but this is straightforward diagram chasing.
Summary of section. We have obtained a new presentation of the unfolding semantics for ordinary Petri nets as a pseudo-functor Sym : Petri → EvSym. The universal property of this unfolding is necessarily weaker than in the whole-grain setting, but we have characterized it as a pseudo-adjunction relative to the embedding Ev → EvSym. The 2-density of this embedding suffices to characterize the unfolding up to symmetry.
5 Multiplicity count as a morphism of relative adjunctions
In this section, we connect the unfolding in whole-grain style (Corollary 3.18) and the unfolding in ordinary style (§4). Observe that there are functors connecting the two settings on all sides of the adjunctions: the multiplicity count functor Q : Petri → Petri and the embedding Ev ↪ EvSym. The idea is to assemble them into an appropriate morphism of adjunctions.
Definition 5.1 (Adapted from [AM24]). A right-morphism of relative adjunctions between relative adjunctions as on the left below consists of functors , and , and a pseudonatural transformation :
such that the two unlabelled squares in the middle diagram commute, and that the right-most diagram commutes for every ( and denote the two relative units).
Here we need a slightly more general notion to deal with the pseudo aspects. Since the 2-categories involved here are quite degenerate, there are no coherence axioms at the 2-cell levels, and we only relax the naturality of :
Theorem 5.2. There is a (pseudo) right-morphism of relative pseudo-adjunctions
consisting of the 2-functors .
Proof. We define a pseudo-natural transformation for and omit the rest of the details. For , is built from the count of the adjunction between and . Its image factors through a morphism by Lemma 4.2, and we define as seen as a morphism . Pseudonaturality follows from Lemma 4.8.
6 Conclusion: related work and perspectives
The symmetry problems that arise in the unfolding of unsafe Petri nets are well-known but difficult to explain precisely. We have attempted to give an account of the situation using 2-categorical language.
One key takeaway is that event structures with symmetry are an appropriate semantic domain for Petri nets, whether safe or unsafe. The corresponding unfolding construction is characterized as a right relative 2-adjoint. This method completely bypasses the difficulties of adding symmetry on Petri nets themselves [HW08b].
Over the past few years the theory of Petri nets has experienced a new wave of interest, with many new contributions on the categorical side ([BGMS21, BM20, BLG 25, MM25, LEH24]) and new applications to semantics [DLLdP25, CC23] and practical systems modelling [Dal24, BCLP]. We hope that the present work will resonate with this line of work.
Meanwhile, event structures and symmetry have applications to program semantics (e.g. [CCRW17, CCW15]) and the present work may provide new perspectives in that area. We could also explore connections with other kinds of unfoldings where the symmetry problems also occur. For instance [SW10, FJTZ21, GM10] have all (implicitly or explicitly) considered symmetry to describe the complexities of unfolding semantics.
References
[AM24] Nathanael Arkor and Dylan McDermott. The formal theory of relative monads. Journal of Pure and Applied Algebra, 228(9):107676, sep 2024.
[BCLP] Kris Brown, Kevin Carlson, Owen Lynch, and Evan Patterson. Catcolab software. https://catcolab.org/help/credits. URL: https://catcolab.org/help/credits.
[BGMS21] John C Baez, Fabrizio Genovese, Jade Master, and Michael Shulman. Categories of nets. In 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–13. IEEE, 2021.
[BLG 25] Benjamin Merlin Bumpus, Sophie Libkind, Jordy Lopez Garcia, Layla Sorkatti, and Samuel Tenka. Additive invariants of open petri nets. Compositionality, 7, 2025.
[BM20] John C Baez and Jade Master. Open petri nets. Mathematical Structures in Computer Science, 30(3):314–341, 2020.
[BMMS01] Roberto Bruni, José Meseguer, Ugo Giovanni Erasmo Montanari, and Vladimiro Sassone. Functional models for petri nets. Information and Computation, 170(2):207–236, 2001.
[CC23] Simon Castellan and Pierre Clairambault. The geometry of causality: Multi-token geometry of interaction and its causal unfolding. Proc. ACM Program. Lang., 7(POPL):689–717, 2023.
[CCRW17] Simon Castellan, Pierre Clairambault, Silvain Rideau, and Glynn Winskel. Games and strategies as event structures. Logical Methods in Computer Science, Volume 13, Issue 3, sep 2017.
[CCW15] Simon Castellan, Pierre Clairambault, and Glynn Winskel. The parallel intensionally fully abstract games model of pcf. In 2015 30th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 232–243. IEEE, 2015.
[CKS84] Aurelio Carboni, Stefano Kasangian, and Ross Street. Bicategories of spans and relations. Journal of pure and applied algebra, 33(3):259–267, 1984.
[Dal24] David Dalrymple. Safeguarded ai: Constructing safety by design. Advanced Research and Invention Agency. https://www.aria.org.uk/wp-content/uploads/2024/01/ARIA-Safeguarded-AI-Programme-Thesis-V1.pdf, 2024.
[DLLdP25] Elena Di Lavore, Wilmer Leal, and Valeria de Paiva. Dialectica petri nets. Fundamenta Informaticae, 194, 2025.
[FJTZ21] Uli Fahrenberg, Christian Johansen, Christopher Trotter, and Krzysztof Ziemianski. Sculptures in concurrency. Log. Methods Comput. Sci., 17(2), apr 2021.
[GM10] 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, jun 2010.
[HW08a] Jonathan Hayman and Glynn Winskel. Symmetry in petri nets. Unpublished manuscript, 01 2008.
[HW08b] Jonathan Hayman and Glynn Winskel. The unfolding of general Petri nets. In Ramesh Hariharan, Madhavan Mukund, and V Vinay, editors, IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, volume 2 of Leibniz International Proceedings in Informatics (LIPics), pages 223–234, Dagstuhl, Germany, 2008. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.
[Kel82] G. M. Kelly. Basic Concepts of Enriched Category Theory, volume 64 of London Mathematical Society Lecture Note Series. Cambridge University Press, 1982. Reprinted in: Reprints in Theory and Applications of Categories, No. 10 (2005), pp. 1–136.
[Koc22] Joachim Kock. Whole-grain petri nets and processes. J. ACM, 70(1), dec 2022.
[LEH24] Serge Lechenne, Clovis Eberhart, and Ichiro Hasuo. A compositional framework for petri nets. In Barbara König and Henning Urbat, editors, Coalgebraic Methods in Computer Science - 17th IFIP WG 1.3 International Workshop, CMCS 2024, Colocated with ETAPS 2024, Luxembourg City, Luxembourg, April 6-7, 2024, Proceedings, volume 14617 of Lecture Notes in Computer Science, pages 174–193, Berlin, Heidelberg, 2024. Springer.
[McM92] Kenneth L. McMillan. Using unfoldings to avoid the state explosion problem in the verification of asynchronous circuits. In Gregor von Bochmann and David K. Probst, editors, Computer Aided Verification, Fourth International Workshop, CAV '92, Montreal, Canada, June 29 - July 1, 1992, Proceedings, volume 663 of Lecture Notes in Computer Science, pages 164–177, Berlin, Heidelberg, 1992. Springer.
[MM90] José Meseguer and Ugo Montanari. Petri nets are monoids. Information and computation, 88(2):105–155, 1990.
[MM25] Jade Master and Joe Moeller. Colored petri nets are monoidal double functors. arXiv preprint arXiv:2510.01946, 2025.
[MMS97] José Meseguer, Ugo Montanari, and Vladimiro Sassone. On the semantics of place/transition petri nets. Mathematical Structures in Computer Science, 7(4):359–397, 1997.
[Mur89] T. Murata. Petri nets: Properties, analysis and applications. Proceedings of the IEEE, 77(4):541–580, 1989.
[NPW81] Mogens Nielsen, Gordon D. Plotkin, and Glynn Winskel. Petri nets, event structures and domains, part I. Theor. Comput. Sci., 13:85–108, 1981.
[Rei85] Wolfgang Reisig. Petri Nets: An Introduction, volume 4 of EATCS Monographs on Theoretical Computer Science. Springer, 1985.
[SW10] Sam Staton and Glynn Winskel. On the expressivity of symmetry in event structures. In 2010 25th Annual IEEE Symposium on Logic in Computer Science, pages 392–401, 2010.
[vGP09] Rob J van Glabbeek and Gordon D Plotkin. Configuration structures, event structures and petri nets. Theoretical Computer Science, 410(41):4111–4159, 2009.
[Win84] Glynn Winskel. A new definition of morphism on petri nets. In Annual Symposium on Theoretical Aspects of Computer Science, pages 140–150. Springer, 1984.
[Win86] Glynn Winskel. Event structures. 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 325–392, Berlin, Heidelberg, 1986. Springer.
[Win87] Glynn Winskel. Petri nets, algebras, morphisms, and compositionality. Information and Computation, 72(3):197–238, 1987.
[Win07] Glynn Winskel. Event structures with symmetry. In Luca Cardelli, Marcelo Fiore, and Glynn Winskel, editors, Computation, Meaning, and Logic: Articles dedicated to Gordon Plotkin, volume 172 of Electronic Notes in Theoretical Computer Science, pages 611–652. Elsevier, 2007. Computation, Meaning, and Logic: Articles dedicated to Gordon Plotkin.
A The bicategory Petri is locally a setoid
This appendix gives a detailed proof that there can be at most one 2-cell between two rational maps of whole-grain Petri nets. First we recall the theorem. Note that this property holds only because we have made the convenient assumption that Petri nets have no isolated places, an essential assumption for the proof to go through.
Theorem 2.14 (Discreteness). For whole-grain Petri nets P and and rational maps , there is at most one 2-cell and when it exists it is invertible.
For the proof, let the four maps involved be typed as
where Q and are whole-grain Petri nets, and are cabling maps, and and are étale maps. Following our convention, let the data of the four Petri nets be denoted by
so that, in particular, there are commutative diagrams and pullbacks as follows:
A 2-cell is a map of whole-grain Petri nets such that the triangles

commute. Suppose that we have two 2-cells respectively given by the families of maps below:
We show that the vertical maps are pairwise equal, so that .
. This is because and the diagram

must commute, so is an identity map. The same argument also applies to .
. The diagram below commutes whether the map is or .
Since the bottom square is a pullback, the map is unique, so . Since the outer square is a pullback too ( is étale), so is the top square. Isomorphisms are stable under pullback, therefore is invertible.
. Symmetric argument.
. The squares
are pullbacks and since Set is an extensive category, the square
whose horizontal maps are copairings is also a pullback. The same argument shows that
is also a pullback. We have assumed that is always surjective for a whole-grain Petri net (no isolated places), and pullbacks of surjective maps are surjective in Set, so is surjective. Since the following diagram commutes for either or ,
the defining property of epimorphisms implies that . It is in fact a pullback square (apply the pullback pasting law as above) and we have shown that the right-hand vertical arrow is invertible, therefore is invertible too.
Altogether we have shown that there is at most one 2-cell and that when it exists it is invertible.