# Petri net

__: One of several mathematical modeling systems for the description of distributed systems__

**Short description**A **Petri net**, also known as a **place/transition (PT) net**, is one of several mathematical modeling languages for the description of distributed systems. It is a class of discrete event dynamic system. A Petri net is a directed bipartite graph that has two types of elements, places and transitions. Place elements are depicted as white circles and transition elements are depicted as rectangles.
A place can contain any number of tokens, depicted as black circles. A transition is enabled if all places connected to it as inputs contain at least one token. Some sources^{[1]} state that Petri nets were invented in August 1939 by Carl Adam Petri—at the age of 13—for the purpose of describing chemical processes.

Like industry standards such as UML activity diagrams, Business Process Model and Notation, and event-driven process chains, Petri nets offer a graphical notation for stepwise processes that include choice, iteration, and concurrent execution. Unlike these standards, Petri nets have an exact mathematical definition of their execution semantics, with a well-developed mathematical theory for process analysis.

## Historical background

The German computer scientist Carl Adam Petri, for whom such structures are named, analyzed Petri nets extensively in his 1962 dissertation Kommunikation mit Automaten.

## Petri net basics

A Petri net consists of *places*, *transitions*, and *arcs*. Arcs run from a place to a transition or vice versa, never between places or between transitions. The places from which an arc runs to a transition are called the *input places* of the transition; the places to which arcs run from a transition are called the *output places* of the transition.

Graphically, places in a Petri net may contain a discrete number of marks called *tokens*. Any distribution of tokens over the places will represent a configuration of the net called a *marking*. In an abstract sense relating to a Petri net diagram, a transition of a Petri net may *fire* if it is *enabled*, i.e. there are sufficient tokens in all of its input places; when the transition fires, it consumes the required input tokens, and creates tokens in its output places. A firing is atomic, i.e. a single non-interruptible step.

Unless an *execution policy* (e.g. a strict ordering of transitions, describing precedence) is defined, the execution of Petri nets is nondeterministic: when multiple transitions are enabled at the same time, they will fire in any order.

Since firing is nondeterministic, and multiple tokens may be present anywhere in the net (even in the same place), Petri nets are well suited for modeling the concurrent behavior of distributed systems.

## Formal definition and basic terminology

Petri nets are state-transition systems that extend a class of nets called elementary nets.^{[2]}

**Definition 1.** A *net* is a tuple [math]\displaystyle{ N = (P, T, F) }[/math] where

- [math]\displaystyle{ P }[/math] and [math]\displaystyle{ T }[/math] are disjoint finite sets of
*places*and*transitions*, respectively. - [math]\displaystyle{ F \subseteq (P \times T) \cup (T \times P) }[/math] is a set of (directed)
*arcs*(or flow relations).

**Definition 2.** Given a net *N* = (*P*, *T*, *F*), a *configuration* is a set *C* so that *C* ⊆ *P*.

**Definition 3.** An *elementary net* is a net of the form *EN* = (*N*, *C*) where

*N*= (*P*,*T*,*F*) is a net.*C*is such that*C*⊆*P*is a*configuration*.

**Definition 4.** A *Petri net* is a net of the form *PN* = (*N*, *M*, *W*), which extends the elementary net so that

*N*= (*P*,*T*,*F*) is a net.*M*:*P*→*Z*is a place multiset, where*Z*is a countable set.*M*extends the concept of*configuration*and is commonly described with reference to Petri net diagrams as a*marking*.*W*:*F*→*Z*is an arc multiset, so that the count (or weight) for each arc is a measure of the arc*multiplicity*.

If a Petri net is equivalent to an elementary net, then *Z* can be the countable set {0,1} and those elements in *P* that map to 1 under *M* form a configuration. Similarly, if a Petri net is not an elementary net, then the multiset *M* can be interpreted as representing a non-singleton set of configurations. In this respect, *M* extends the concept of configuration for elementary nets to Petri nets.

In the diagram of a Petri net (see top figure right), places are conventionally depicted with circles, transitions with long narrow rectangles and arcs as one-way arrows that show connections of places to transitions or transitions to places. If the diagram were of an elementary net, then those places in a configuration would be conventionally depicted as circles, where each circle encompasses a single dot called a *token*. In the given diagram of a Petri net (see right), the place circles may encompass more than one token to show the number of times a place appears in a configuration. The configuration of tokens distributed over an entire Petri net diagram is called a *marking*.

In the top figure (see right), the place *p*_{1} is an input place of transition *t*; whereas, the place *p*_{2} is an output place to the same transition. Let *PN*_{0} (top figure) be a Petri net with a marking configured *M*_{0}, and *PN*_{1} (bottom figure) be a Petri net with a marking configured *M*_{1}. The configuration of *PN*_{0} *enables* transition *t* through the property that all input places have sufficient number of tokens (shown in the figures as dots) "equal to or greater" than the multiplicities on their respective arcs to *t*. Once and only once a transition is enabled will the transition fire. In this example, the *firing* of transition *t* generates a map that has the marking configured *M*_{1} in the image of *M*_{0} and results in Petri net *PN*_{1}, seen in the bottom figure. In the diagram, the firing rule for a transition can be characterised by subtracting a number of tokens from its input places equal to the multiplicity of the respective input arcs and accumulating a new number of tokens at the output places equal to the multiplicity of the respective output arcs.

**Remark 1.** The precise meaning of "equal to or greater" will depend on the precise algebraic properties of addition being applied on *Z* in the firing rule, where subtle variations on the algebraic properties can lead to other classes of Petri nets; for example, algebraic Petri nets.^{[3]}

The following formal definition is loosely based on (Peterson 1981). Many alternative definitions exist.

### Syntax

A **Petri net graph** (called *Petri net* by some, but see below) is a 3-tuple [math]\displaystyle{ (S,T,W) }[/math], where

*S*is a finite set of*places**T*is a finite set of*transitions**S*and*T*are disjoint, i.e. no object can be both a place and a transition- [math]\displaystyle{ W: (S \times T) \cup (T \times S) \to \mathbb{N} }[/math] is a multiset of arcs, i.e. it assigns to each arc a non-negative integer
*arc multiplicity*(or weight); note that no arc may connect two places or two transitions.

The *flow relation* is the set of arcs: [math]\displaystyle{ F = \{ (x,y) \mid W(x,y) \gt 0 \} }[/math]. In many textbooks, arcs can only have multiplicity 1. These texts often define Petri nets using *F* instead of *W*. When using this convention, a Petri net graph is a bipartite multigraph [math]\displaystyle{ (S \cup T, F) }[/math] with node partitions *S* and *T*.

The *preset* of a transition *t* is the set of its *input places*: [math]\displaystyle{ {}^{\bullet}t = \{ s \in S \mid W(s,t) \gt 0 \} }[/math];
its *postset* is the set of its *output places*: [math]\displaystyle{ t^{\bullet} = \{ s \in S \mid W(t,s) \gt 0 \} }[/math]. Definitions of pre- and postsets of places are analogous.

A *marking* of a Petri net (graph) is a multiset of its places, i.e., a mapping [math]\displaystyle{ M: S \to \mathbb{N} }[/math]. We say the marking assigns to each place a number of *tokens*.

A **Petri net** (called *marked Petri net* by some, see above) is a 4-tuple [math]\displaystyle{ (S,T,W,M_0) }[/math], where

- [math]\displaystyle{ (S,T,W) }[/math] is a Petri net graph;
- [math]\displaystyle{ M_0 }[/math] is the
*initial marking*, a marking of the Petri net graph.

### Execution semantics

In words

- firing a transition t in a marking M consumes [math]\displaystyle{ W(s,t) }[/math] tokens from each of its input places s, and produces [math]\displaystyle{ W(t,s) }[/math] tokens in each of its output places s
- a transition is
*enabled*(it may*fire*) in M if there are enough tokens in its input places for the consumptions to be possible, i.e. if and only if [math]\displaystyle{ \forall s: M(s) \geq W(s,t) }[/math].

We are generally interested in what may happen when transitions may continually fire in arbitrary order.

We say that a marking M' *is reachable from* a marking M *in one step* if [math]\displaystyle{ M \underset{G}{\longrightarrow} M' }[/math]; we say that it *is reachable from M* if [math]\displaystyle{ M \overset{*}{\underset{G}{\longrightarrow}} M' }[/math], where [math]\displaystyle{ \overset{*}{\underset{G}{\longrightarrow}} }[/math] is the reflexive transitive closure of [math]\displaystyle{ \underset{G}{\longrightarrow} }[/math]; that is, if it is reachable in 0 or more steps.

For a (marked) Petri net [math]\displaystyle{ N=(S,T,W,M_0) }[/math], we are interested in the firings that can be performed starting with the initial marking [math]\displaystyle{ M_0 }[/math]. Its set of *reachable markings* is the set
[math]\displaystyle{ R(N) \ \stackrel{D}{=}\ \left\{ M' \Bigg| M_0 \xrightarrow[(S,T,W)]{*} M' \right\} }[/math]

The *reachability graph* of N is the transition relation [math]\displaystyle{ \underset{G}{\longrightarrow} }[/math] restricted to its reachable markings [math]\displaystyle{ R(N) }[/math]. It is the state space of the net.

A *firing sequence* for a Petri net with graph G and initial marking [math]\displaystyle{ M_0 }[/math] is a sequence of transitions [math]\displaystyle{ \vec \sigma = \langle t_{1} \cdots t_{n} \rangle }[/math] such that [math]\displaystyle{ M_0 \underset{G,t_{1}}{\longrightarrow} M_1 \wedge \cdots \wedge M_{n-1} \underset{G,t_{n}}{\longrightarrow} M_n }[/math]. The set of firing sequences is denoted as [math]\displaystyle{ L(N) }[/math].

## Variations on the definition

A common variation is to disallow arc multiplicities and replace the bag of arcs *W* with a simple set, called the *flow relation*, [math]\displaystyle{ F \subseteq (S \times T) \cup (T \times S) }[/math].
This does not limit expressive power as both can represent each other.

Another common variation, e.g. in Desel and Juhás (2001),^{[4]} is to allow *capacities* to be defined on places. This is discussed under *extensions* below.

## Formulation in terms of vectors and matrices

The markings of a Petri net [math]\displaystyle{ (S,T,W,M_0) }[/math] can be regarded as vectors of non-negative integers of length [math]\displaystyle{ |S| }[/math].

Its transition relation can be described as a pair of [math]\displaystyle{ |S| }[/math] by [math]\displaystyle{ |T| }[/math] matrices:

- [math]\displaystyle{ W^- }[/math], defined by [math]\displaystyle{ \forall s,t: W^-[s,t] = W(s,t) }[/math]
- [math]\displaystyle{ W^+ }[/math], defined by [math]\displaystyle{ \forall s,t: W^+[s,t] = W(t,s). }[/math]

Then their difference

- [math]\displaystyle{ W^T = - W^- + W^+ }[/math]

can be used to describe the reachable markings in terms of matrix multiplication, as follows. For any sequence of transitions w, write [math]\displaystyle{ o(w) }[/math] for the vector that maps every transition to its number of occurrences in w. Then, we have

- [math]\displaystyle{ R(N) = \{ M \mid \exists w:\ w \text{ is a firing sequence of } N\ \text{ and }\ M = M_0 + W^T \cdot o(w) \} }[/math].

It must be required that w is a firing sequence; allowing arbitrary sequences of transitions will generally produce a larger set.

[math]\displaystyle{ W^{-}=\begin{bmatrix} * & t1 & t2 \\ p1 & 1 & 0 \\ p2 & 0 & 1 \\ p3 & 0 & 1 \\ p4 & 0 & 0 \end{bmatrix}, \ W^{+}=\begin{bmatrix} * & t1 & t2 \\ p1 & 0 & 1 \\ p2 & 1 & 0 \\ p3 & 1& 0 \\ p4 & 0 & 1 \end{bmatrix}, \ W^T=\begin{bmatrix} * & t1 & t2 \\ p1 & -1 & 1 \\ p2 & 1 & -1 \\ p3 & 1 & -1 \\ p4 & 0 & 1 \end{bmatrix} }[/math]

[math]\displaystyle{ M_{0}=\begin{bmatrix} 1 & 0 & 2 & 1 \end{bmatrix} }[/math]

## Category-theoretic formulation

Meseguer and Montanari considered a kind of symmetric monoidal categories known as **Petri categories**.^{[5]}

## Mathematical properties of Petri nets

One thing that makes Petri nets interesting is that they provide a balance between modeling power and analyzability: many things one would like to know about concurrent systems can be automatically determined for Petri nets, although some of those things are very expensive to determine in the general case. Several subclasses of Petri nets have been studied that can still model interesting classes of concurrent systems, while these problems become easier.

An overview of such decision problems, with decidability and complexity results for Petri nets and some subclasses, can be found in Esparza and Nielsen (1995).^{[6]}

### Reachability

The reachability problem for Petri nets is to decide, given a Petri net *N* and a marking *M*, whether [math]\displaystyle{ M \in R(N) }[/math].

It is a matter of walking the reachability-graph defined above, until either the requested-marking is reached or it can no longer be found. This is harder than it may seem at first: the reachability graph is generally infinite, and it isn't easy to determine when it is safe to stop.

In fact, this problem was shown to be EXPSPACE-hard^{[7]} years before it was shown to be decidable at all (Mayr, 1981). Papers continue to be published on how to do it efficiently.^{[8]} In 2018, Czerwiński et al. improved the lower bound and showed that the problem is not ELEMENTARY.^{[9]} In 2021, this problem was shown to be non-primitive recursive, independently by Jerome Leroux^{[10]}
and by Wojciech Czerwiński and Łukasz Orlikowski.^{[11]} These results thus close the long-standing complexity gap.

While reachability seems to be a good tool to find erroneous states, for practical problems the constructed graph usually has far too many states to calculate. To alleviate this problem, linear temporal logic is usually used in conjunction with the tableau method to prove that such states cannot be reached. Linear temporal logic uses the semi-decision technique to find if indeed a state can be reached, by finding a set of necessary conditions for the state to be reached then proving that those conditions cannot be satisfied.

### Liveness

Petri nets can be described as having different degrees of liveness [math]\displaystyle{ L_1 - L_4 }[/math]. A Petri net [math]\displaystyle{ (N, M_0) }[/math] is called [math]\displaystyle{ L_k }[/math]-live if and only if all of its transitions are [math]\displaystyle{ L_k }[/math]-live, where a transition is

*dead*, if it can never fire, i.e. it is not in any firing sequence in [math]\displaystyle{ L(N,M_0) }[/math]- [math]\displaystyle{ L_1 }[/math]-live (
*potentially fireable*), if and only if it may fire, i.e. it is in some firing sequence in [math]\displaystyle{ L(N,M_0) }[/math] - [math]\displaystyle{ L_2 }[/math]-live if it can fire arbitrarily often, i.e. if for every positive integer k, it occurs at least k times in some firing sequence in [math]\displaystyle{ L(N,M_0) }[/math]
- [math]\displaystyle{ L_3 }[/math]-live if it can fire infinitely often, i.e. if there is some fixed (necessarily infinite) firing sequence in which for every positive integer k, the transition [math]\displaystyle{ L_3 }[/math] occurs at least k times,
- [math]\displaystyle{ L_4 }[/math]-live (
*live*) if it may always fire, i.e. it is [math]\displaystyle{ L_1 }[/math]-live in every reachable marking in [math]\displaystyle{ R(N,M_0) }[/math]

Note that these are increasingly stringent requirements: [math]\displaystyle{ L_{j+1} }[/math]-liveness implies [math]\displaystyle{ L_j }[/math]-liveness, for [math]\displaystyle{ \textstyle{j \in {1,2,3}} }[/math].

These definitions are in accordance with Murata's overview,^{[12]} which additionally uses [math]\displaystyle{ L_0 }[/math]*-live* as a term for *dead*.

### Boundedness

A place in a Petri net is called *k-bound* if it does not contain more than *k* tokens in all reachable markings, including the initial marking; it is said to be *safe* if it is 1-bounded; it is *bounded* if it is *k-bounded* for some *k*.

A (marked) Petri net is called *k*-bounded, *safe*, or *bounded* when all of its places are.
A Petri net (graph) is called *(structurally) bounded* if it is bounded for every possible initial marking.

A Petri net is bounded if and only if its reachability graph is finite.

Boundedness is decidable by looking at covering, by constructing the Karp–Miller Tree.

It can be useful to explicitly impose a bound on places in a given net. This can be used to model limited system resources.

Some definitions of Petri nets explicitly allow this as a syntactic feature.^{[13]}
Formally, *Petri nets with place capacities* can be defined as tuples [math]\displaystyle{ (S,T,W,C,M_0) }[/math], where [math]\displaystyle{ (S,T,W,M_0) }[/math] is a Petri net, [math]\displaystyle{ C: P \rightarrow\!\!\!\shortmid \mathbb N }[/math] an assignment of capacities to (some or all) places, and the transition relation is the usual one restricted to the markings in which each place with a capacity has at most that many tokens.

For example, if in the net *N*, both places are assigned capacity 2, we obtain a Petri net with place capacities, say *N2*; its reachability graph is displayed on the right.

Alternatively, places can be made bounded by extending the net. To be exact,
a place can be made *k*-bounded by adding a "counter-place" with flow opposite to that of the place, and adding tokens to make the total in both places *k*.

## Discrete, continuous, and hybrid Petri nets

As well as for discrete events, there are Petri nets for continuous and hybrid discrete-continuous processes^{[14]} that are useful in discrete, continuous and hybrid control theory,^{[15]} and related to discrete, continuous and hybrid automata.

## Extensions

There are many extensions to Petri nets. Some of them are completely backwards-compatible (e.g. coloured Petri nets) with the original Petri net, some add properties that cannot be modelled in the original Petri net formalism (e.g. timed Petri nets). Although backwards-compatible models do not extend the computational power of Petri nets, they may have more succinct representations and may be more convenient for modeling.^{[16]} Extensions that cannot be transformed into Petri nets are sometimes very powerful, but usually lack the full range of mathematical tools available to analyse ordinary Petri nets.

The term high-level Petri net is used for many Petri net formalisms that extend the basic P/T net formalism; this includes coloured Petri nets, hierarchical Petri nets such as Nets within Nets, and all other extensions sketched in this section. The term is also used specifically for the type of coloured nets supported by CPN Tools.

A short list of possible extensions follows:

- Additional types of arcs; two common types are
- a
*reset arc*does not impose a precondition on firing, and empties the place when the transition fires; this makes reachability undecidable,^{[17]}while some other properties, such as termination, remain decidable;^{[18]} - an
*inhibitor arc*imposes the precondition that the transition may only fire when the place is empty; this allows arbitrary computations on numbers of tokens to be expressed, which makes the formalism Turing complete and implies existence of a universal net.^{[19]}

- a
- In a standard Petri net, tokens are indistinguishable. In a coloured Petri net, every token has a value.
^{[20]}In popular tools for coloured Petri nets such as CPN Tools, the values of tokens are typed, and can be tested (using*guard*expressions) and manipulated with a functional programming language. A subsidiary of coloured Petri nets are the well-formed Petri nets, where the arc and guard expressions are restricted to make it easier to analyse the net. - Another popular extension of Petri nets is hierarchy; this in the form of different views supporting levels of refinement and abstraction was studied by Fehling. Another form of hierarchy is found in so-called object Petri nets or object systems where a Petri net can contain Petri nets as its tokens inducing a hierarchy of nested Petri nets that communicate by synchronisation of transitions on different levels. See
^{[21]}for an informal introduction to object Petri nets. - A vector addition system with states (VASS) is an equivalent formalism to Petri nets. However, it can be superficially viewed as a generalisation of Petri nets. Consider a finite state automaton where each transition is labelled by a transition from the Petri net. The Petri net is then synchronised with the finite state automaton, i.e., a transition in the automaton is taken at the same time as the corresponding transition in the Petri net. It is only possible to take a transition in the automaton if the corresponding transition in the Petri net is enabled, and it is only possible to fire a transition in the Petri net if there is a transition from the current state in the automaton labelled by it. (The definition of VASS is usually formulated slightly differently.)
- Prioritised Petri nets add priorities to transitions, whereby a transition cannot fire, if a higher-priority transition is enabled (i.e. can fire). Thus, transitions are in priority groups, and e.g. priority group 3 can only fire if all transitions are disabled in groups 1 and 2. Within a priority group, firing is
*still*non-deterministic. - The non-deterministic property has been a very valuable one, as it lets the user abstract a large number of properties (depending on what the net is used for). In certain cases, however, the need arises to also model the timing, not only the structure of a model. For these cases, timed Petri nets have evolved, where there are transitions that are timed, and possibly transitions which are not timed (if there are, transitions that are not timed have a higher priority than timed ones). A subsidiary of timed Petri nets are the stochastic Petri nets that add nondeterministic time through adjustable randomness of the transitions. The exponential random distribution is usually used to 'time' these nets. In this case, the nets' reachability graph can be used as a continuous time Markov chain (CTMC).
- Dualistic Petri Nets (dP-Nets) is a Petri Net extension developed by E. Dawis, et al.
^{[22]}to better represent real-world process. dP-Nets balance the duality of change/no-change, action/passivity, (transformation) time/space, etc., between the bipartite Petri Net constructs of transformation and place resulting in the unique characteristic of*transformation marking*, i.e., when the transformation is "working" it is marked. This allows for the transformation to fire (or be marked) multiple times representing the real-world behavior of process throughput. Marking of the transformation assumes that transformation time must be greater than zero. A zero transformation time used in many typical Petri Nets may be mathematically appealing but impractical in representing real-world processes. dP-Nets also exploit the power of Petri Nets' hierarchical abstraction to depict process architecture. Complex process systems are modeled as a series of simpler nets interconnected through various levels of hierarchical abstraction. The process architecture of a packet switch is demonstrated in,^{[23]}where development requirements are organized around the structure of the designed system.

There are many more extensions to Petri nets, however, it is important to keep in mind, that as the complexity of the net increases in terms of extended properties, the harder it is to use standard tools to evaluate certain properties of the net. For this reason, it is a good idea to use the most simple net type possible for a given modelling task.

## Restrictions

Instead of extending the Petri net formalism, we can also look at restricting it, and look at particular types of Petri nets, obtained by restricting the syntax in a particular way. Ordinary Petri nets are the nets where all arc weights are 1. Restricting further, the following types of ordinary Petri nets are commonly used and studied:

- In a state machine (SM), every transition has one incoming arc, and one outgoing arc, and all markings have exactly one token. As a consequence, there can
*not*be*concurrency*, but there can be*conflict*(i.e. nondeterminism): mathematically, [math]\displaystyle{ \forall t\in T: |t^\bullet|=|{}^\bullet t|=1 }[/math] - In a marked graph (MG), every place has one incoming arc, and one outgoing arc. This means, that there can
*not*be*conflict*, but there can be*concurrency:*mathematically, [math]\displaystyle{ \forall s\in S: |s^\bullet|=|{}^\bullet s|=1 }[/math] - In a
*free choice*net (FC), every arc from a place to a transition is either the only arc from that place or the only arc to that transition, i.e. there can be*both concurrency and conflict, but not at the same time*: mathematically, [math]\displaystyle{ \forall s\in S: (|s^\bullet|\leq 1) \vee ({}^\bullet (s^\bullet)=\{s\}) }[/math] - Extended free choice (EFC) – a Petri net that can be
*transformed into an FC*. - In an
*asymmetric choice*net (AC), concurrency and conflict (in sum,*confusion*) may occur, but*not symmetrically: m*athematically, [math]\displaystyle{ \forall s_1,s_2\in S: (s_1{}^\bullet \cap s_2{}^\bullet\neq \emptyset) \to [(s_1{}^\bullet\subseteq s_2{}^\bullet) \vee (s_2{}^\bullet\subseteq s_1{}^\bullet)] }[/math]

## Workflow nets

Workflow nets (WF-nets) are a subclass of Petri nets intending to model the workflow of process activities.^{[24]}
The WF-net transitions are assigned to tasks or activities, and places are assigned to the pre/post conditions.
The WF-nets have additional structural and operational requirements, mainly the addition of a single input (source) place with no previous transitions, and output place (sink) with no following transitions. Accordingly, start and termination markings can be defined that represent the process status.

WF-nets have the **soundness** property,^{[24]} indicating that a process with a start marking of *k* tokens in its source place, can reach the termination state marking with *k* tokens in its sink place (defined as *k*-sound WF-net). Additionally, all the transitions in the process could fire (i.e., for each transition there is a reachable state in which the transition is enabled).
A general sound (G-sound) WF-net is defined as being *k*-sound for every *k* > 0.^{[25]}

A directed **path** in the Petri net is defined as the sequence of nodes (places and transitions) linked by the directed arcs. An **elementary path** includes every node in the sequence only once.

A **well-handled** Petri net is a net in which there are no fully distinct elementary paths between a place and a transition (or transition and a place), i.e., if there are two paths between the pair of nodes then these paths share a node.
An acyclic well-handled WF-net is sound (G-sound).^{[26]}

Extended WF-net is a Petri net that is composed of a WF-net with additional transition t (feedback transition). The sink place is connected as the input place of transition t and the source place as its output place. Firing of the transition causes iteration of the process (Note, the extended WF-net is not a WF-net).^{[24]}

WRI (Well-handled with Regular Iteration) WF-net, is an extended acyclic well-handled WF-net.
WRI-WF-net can be built as composition of nets, i.e., replacing a transition within a WRI-WF-net with a subnet which is a WRI-WF-net. The result is also WRI-WF-net. WRI-WF-nets are G-sound,^{[26]} therefore by using only WRI-WF-net building blocks, one can get WF-nets that are G-sound by construction.

The design structure matrix (DSM) can model process relations, and be utilized for process planning. The **DSM-nets** are realization of DSM-based plans into workflow processes by Petri nets, and are equivalent to WRI-WF-nets. The DSM-net construction process ensures the soundness property of the resulting net.

## Other models of concurrency

Other ways of modelling concurrent computation have been proposed, including vector addition systems, communicating finite-state machines, Kahn process networks, process algebra, the actor model, and trace theory.^{[27]} Different models provide tradeoffs of concepts such as compositionality, modularity, and locality.

An approach to relating some of these models of concurrency is proposed in the chapter by Winskel and Nielsen.^{[28]}

## Application areas

- Boolean differential calculus
^{[29]} - Business process modeling
^{[30]}^{[31]} - Computational biology
^{[32]}^{[33]} - Concurrent programming
^{[34]} - Control engineering
^{[15]}^{[35]}^{[36]} - Data analysis
^{[37]} - Diagnosis (artificial intelligence)
^{[38]} - Discrete process control
^{[39]}^{[40]}^{[41]} - Game theory
^{[42]} - Hardware design
^{[43]}^{[44]}^{[45]} - Kahn process networks
^{[46]} - Process modeling
^{[47]}^{[48]}^{[49]} - Reliability engineering
^{[50]} - Simulation
^{[30]} - Software design
^{[14]} - Workflow management systems
^{[51]}^{[48]}^{[49]}

## See also

- Finite-state machine
- Petri Net Markup Language
- Petriscript
- Process architecture
- Vector addition systems
- Machine learning

## References

- ↑ Petri, Carl Adam; Reisig, Wolfgang (2008). "Petri net".
*Scholarpedia***3**(4): 6477. doi:10.4249/scholarpedia.6477. Bibcode: 2008SchpJ...3.6477P. - ↑ Rozenburg, G.; Engelfriet, J. (1998). "Elementary Net Systems". in Reisig, W.; Rozenberg, G..
*Lectures on Petri Nets I: Basic Models – Advances in Petri Nets*. Lecture Notes in Computer Science.**1491**. Springer. pp. 12–121. - ↑ Reisig, Wolfgang (1991). "Petri Nets and Algebraic Specifications".
*Theoretical Computer Science***80**(1): 1–34. doi:10.1016/0304-3975(91)90203-e. - ↑ Desel, Jörg; Juhás, Gabriel (2001). "What Is a Petri Net? Informal Answers for the Informed Reader". in Ehrig, Hartmut.
*Unifying Petri Nets*. LNCS.**2128**. Springer. pp. 1–25. doi:10.1007/3-540-45541-8_1. ISBN 9783540430674. - ↑ Meseguer, Jose; Montanari, Ugo (October 1990). "Petri nets are monoids".
*Information and Computation***88**(2): 105–155. doi:10.1016/0890-5401(90)90013-8. https://dx.doi.org/10.1016/0890-5401%2890%2990013-8. Retrieved 30 December 2022. - ↑ Esparza, Javier; Nielsen, Mogens (1995). "Decidability issues for Petri nets – a survey".
*Bulletin of the EATCS*. http://citeseer.ist.psu.edu/226920.html. Retrieved 2014-05-14. - ↑ Lipton, R. (1976). "The Reachability Problem Requires Exponential Space".
*Technical Report 62*. http://citeseer.ist.psu.edu/contextsummary/115623/0. - ↑ Küngas, P. (July 26–29, 2005). "Petri Net Reachability Checking Is Polynomial with Optimal Abstraction Hierarchies". Proceedings of the 6th International Symposium on Abstraction, Reformulation and Approximation—SARA 2005. Airth Castle, Scotland, UK. http://www.idi.ntnu.no/%7Epeep/papers/SARA2005Kung.ps. Retrieved 10 July 2008.
- ↑ Czerwiński, Wojciech; Lasota, Sławomir; Lazic, Ranko; Leroux, Jerome; Mazowiecki, Filip (2018). "The Reachability Problem for Petri Nets is Not Elementary (Extended Abstract)". arXiv:1809.07115 [cs.FL].
- ↑ Leroux, Jérôme (2021). "The Reachability Problem for Petri Nets is Not Primitive Recursive". arXiv:2104.12695 [cs.LO].
- ↑ Czerwiński, Wojciech; Orlikowski, Łukasz (2021). "Reachability in vector addition systems is Ackermann-complete". arXiv:2104.13866 [cs.FL].
- ↑ Murata, Tadao (April 1989). "Petri Nets: Properties, Analysis and Applications".
*Proceedings of the IEEE***77**(4): 541–558. doi:10.1109/5.24143. http://www.cs.uic.edu/bin/view/Murata/Publications. Retrieved 2014-10-13. - ↑ "Petri Nets". http://www.techfak.uni-bielefeld.de/~mchen/BioPNML/Intro/pnfaq.html.
- ↑
^{14.0}^{14.1}Kučera, Erik; Haffner, Oto; Drahoš, Peter; Cigánek, Ján; Leskovský, Roman; Štefanovič, Juraj (January 2020). "New Software Tool for Modeling and Control of Discrete-Event and Hybrid Systems Using Timed Interpreted Petri Nets" (in en).*Applied Sciences***10**(15): 5027. doi:10.3390/app10155027. - ↑
^{15.0}^{15.1}David, René; Alla, Hassane (2005).*Discrete, continuous, and hybrid Petri Nets*. Springer. ISBN 978-3-540-22480-8. https://books.google.com/books?id=VsS0JkMcXGwC. - ↑ Jensen, Kurt (1997). "A brief introduction to coloured Petri Nets".
*A brief introduction to colored Petri nets*. Lecture Notes in Computer Science.**1217**. pp. 203–208. doi:10.1007/BFb0035389. ISBN 978-3-540-62790-6. https://link.springer.com/content/pdf/10.1007/BFb0035389.pdf. - ↑ Araki, T.; Kasami, T. (1977). "Some Decision Problems Related to the Reachability Problem for Petri Nets".
*Theoretical Computer Science***3**(1): 85–104. doi:10.1016/0304-3975(76)90067-0. - ↑ Dufourd, C.; Finkel, A.; Schnoebelen, Ph. (1998). "Reset Nets Between Decidability and Undecidability".
*Proceedings of the 25th International Colloquium on Automata, Languages and Programming*. LNCS.**1443**. pp. 103–115. - ↑ Zaitsev, D. A. (2013). "Toward the Minimal Universal Petri Net".
*IEEE Transactions on Systems, Man, and Cybernetics: Systems***44**: 47–58. doi:10.1109/TSMC.2012.2237549. - ↑ "Very Brief Introduction to CP-nets". Department of Computer Science, University of Aarhus, Denmark. http://www.daimi.au.dk/CPnets/intro/verybrief.html.
- ↑ "LLPN - Linear Logic Petri Nets". http://llpn.com/OPNs.html.
- ↑ Dawis, E. P.; Dawis, J. F.; Koo, Wei-Pin (2001). "Architecture of Computer-based Systems using Dualistic Petri Nets". 2001 IEEE International Conference on Systems, Man, and Cybernetics.
**3**. pp. 1554–1558. - ↑ Dawis, E. P. (2001). "Architecture of an SS7 Protocol Stack on a Broadband Switch Platform using Dualistic Petri Nets". 2001 IEEE Pacific Rim Conference on Communications, Computers and signal Processing.
**1**. pp. 323–326. - ↑
^{24.0}^{24.1}^{24.2}van der Aalst, W. M. P. (1998). "The application of Petri nets to workflow management".*Journal of Circuits, Systems and Computers***8**(1): 21–66. doi:10.1142/s0218126698000043. http://wwwis.win.tue.nl/~wvdaalst/publications/p53.pdf. - ↑ van Hee, K.; Sidorova, N.; Voorhoeve, M. (2003). "Soundness and separability of workflow nets in the stepwise refinement approach". in van der Aalst, W. M. P.; Best, E..
*Application and Theory of Petri Nets 2003*. Lect Notes in Comput Sci.**2678**. Springer. pp. 337–356. http://www.win.tue.nl/~sidorova/03/van_Hee_Sidorova_Voorhoeve.pdf. - ↑
^{26.0}^{26.1}Ping, L.; Hao, H.; Jian, L. (2004). "On 1-soundness and soundness of workflow nets". in Moldt, Daniel. Proc of the 3rd Workshop on Modelling of Objects, Components, and Agents.**571**. Aarhus, Denmark: DAIMI PB. pp. 21–36. - ↑ Mazurkiewicz, Antoni (1995). "Introduction to Trace Theory". in Diekert, V.; Rozenberg, G..
*The Book of Traces*. Singapore: World Scientific. pp. 3–67. - ↑ Winskel, G.; Nielsen, M.. "Models for Concurrency".
*Handbook of Logic and the Foundations of Computer Science*.**4**. OUP. pp. 1–148. https://www.cl.cam.ac.uk/~gw104/winskel-nielsen-models-for-concurrency.pdf. - ↑ Scheuring, Rainer; Wehlan, Herbert "Hans" (1991-12-01). Bretthauer, Georg. ed. "Der Boolesche Differentialkalkül – eine Methode zur Analyse und Synthese von Petri-Netzen" (in de).
*At – Automatisierungstechnik – Methoden und Anwendungen der Steuerungs-, Regelungs- und Informationstechnik*(Stuttgart, Germany: R. Oldenbourg Verlag (de))**39**(7): 226–233. doi:10.1524/auto.1991.39.112.226. ISSN 0178-2312. https://www.degruyter.com/view/j/auto.1991.39.issue-1-12/auto.1991.39.112.226/auto.1991.39.112.226.xml. Retrieved 2017-10-16. (8 pages) - ↑
^{30.0}^{30.1}van der Aalst, W.M.P.; Stahl, C. (27 May 2011).*Modeling Business Processes - A Petri Net-Oriented Approach*. MIT Press. pp. 1–400. ISBN 9780262015387. https://mitpress.mit.edu/books/modeling-business-processes. - ↑ van der Aalst, W.M.P. (2018). "Business Process Management".
*Encyclopedia of Database Systems, Second Edition*. Springer. pp. 370–374. doi:10.1007/978-1-4614-8265-9_1179. ISBN 978-1-4614-8266-6. https://doi.org/10.1007/978-1-4614-8265-9_1179. - ↑ Favrin, Bean (2 September 2014). "esyN: Network Building, Sharing and Publishing.".
*PLOS ONE***9**(9): e106035. doi:10.1371/journal.pone.0106035. PMID 25181461. Bibcode: 2014PLoSO...9j6035B. - ↑ Koch, Ina; Reisig, Wolfgang; Schreiber, Falk (2011).
*Modeling in Systems Biology - The Petri Net Approach*. Computational Biology.**16**. Springer. doi:10.1007/978-1-84996-474-6. ISBN 978-1-84996-473-9. https://dx.doi.org/10.1007/978-1-84996-474-6. - ↑ Kristensen, L. M.; Westergaard, M. (2010). "Formal Methods for Industrial Critical Systems". Formal Methods for Industrial Critical Systems - 15th International Workshop, FMICS 2010.
**6371**. pp. 215–230. doi:10.1007/978-3-642-15898-8_14. ISBN 978-3-642-15897-1. - ↑ Gao, X.; Hu, Xinyan (2020). "A Petri Net Neural Network Robust Control for New Paste Backfill Process Model".
*IEEE Access***8**: 18420–18425. doi:10.1109/ACCESS.2020.2968510. - ↑ Kučera, Erik; Haffner, Oto; Drahoš, Peter; Leskovský, Roman; Cigánek, Ján (January 2020). "PetriNet Editor + PetriNet Engine: New Software Tool For Modelling and Control of Discrete Event Systems Using Petri Nets and Code Generation" (in en).
*Applied Sciences***10**(21): 7662. doi:10.3390/app10217662. - ↑ van der Aalst, W.M.P. (2016).
*Process Mining - Data Science in Action, Second Edition*. Springer. doi:10.1007/978-3-662-49851-4. ISBN 978-3-662-49850-7. https://doi.org/10.1007/978-3-662-49851-4. - ↑ Carmona, J.; van Dongen, B.F.; Solti, A.; Weidlich, M. (2018).
*Conformance Checking - Relating Processes and Models*. Springer. doi:10.1007/978-3-319-99414-7. ISBN 978-3-319-99413-0. https://doi.org/10.1007/978-3-319-99414-7. - ↑ Fernandez, J. L.; Sanz, R.; Paz, E.; Alonso, C. (19–23 May 2008). "Using hierarchical binary Petri nets to build robust mobile robot applications: RoboGraph". Pasadena, CA, USA. pp. 1372–1377. doi:10.1109/ROBOT.2008.4543394. ISBN 978-1-4244-1646-2.
- ↑ Mendes, J. Marco; Leitão, Paulo; Colombo, Armando W.; Restivo, Francisco (2012). "High-level Petri nets for the process description and control in service-oriented manufacturing systems".
*International Journal of Production Research*(Taylor & Francis)**50**(6): 1650–1665. doi:10.1080/00207543.2011.575892. https://doi.org/10.1080/00207543.2011.575892. - ↑ Fahland, D.; Gierds, C. (2013). "Active Flow and Combustion Control 2018". Advanced Information Systems Engineering - 25th International Conference, CAiSE 2013.
**7908**. pp. 400–416. doi:10.1007/978-3-642-38709-8_26. ISBN 978-3-319-98176-5. - ↑ Clempner, Julio (2006). "Modeling shortest path games with Petri nets: a Lyapunov based theory" (in EN).
*International Journal of Applied Mathematics and Computer Science***16**(3): 387–397. ISSN 1641-876X. http://pldml.icm.edu.pl/pldml/element/bwmeta1.element.bwnjournal-article-amcv16i3p387bwm. - ↑ Yakovlev, Alex; Gomes, Luis; Lavagno, Luciano, eds (2000) (in en-gb).
*Hardware Design and Petri Nets*. doi:10.1007/978-1-4757-3143-9. ISBN 978-1-4419-4969-1. https://doi.org/10.1007/978-1-4757-3143-9. - ↑ Cortadella, J.; Kishinevsky, M.; Kondratyev, A.; Lavagno, L.; Yakovlev, A. (2002). "Logic Synthesis for Asynchronous Controllers and Interfaces" (in en-gb).
*Springer Series in Advanced Microelectronics***8**. doi:10.1007/978-3-642-55989-1. ISBN 978-3-642-62776-7. ISSN 1437-0387. https://doi.org/10.1007/978-3-642-55989-1. - ↑ Cortadella, Jordi; Yakovlev, Alex; Rozenberg, Grzegorz, eds (2002). "Concurrency and Hardware Design" (in en-gb).
*Lecture Notes in Computer Science***2549**. doi:10.1007/3-540-36190-1. ISBN 978-3-540-00199-7. ISSN 0302-9743. https://doi.org/10.1007/3-540-36190-1. - ↑ Bernardeschi, C.; De Francesco, N.; Vaglini, G. (1995). "A Petri nets semantics for data flow networks".
*Acta Informatica***32**(4): 347–374. doi:10.1007/BF01178383. https://doi.org/10.1007/BF01178383. - ↑ van der Aalst, Wil M. P.; Stahl, Christian; Westergaard, Michael (2013). "Strategies for Modeling Complex Processes Using Colored Petri Nets".
*Trans. Petri Nets Other Model. Concurr.*. Lecture Notes in Computer Science**7**: 6–55. doi:10.1007/978-3-642-38143-0_2. ISBN 978-3-642-38142-3. https://doi.org/10.1007/978-3-642-38143-0_2. - ↑
^{48.0}^{48.1}van der Aalst, W.M.P. (2018). "Workflow Patterns".*Encyclopedia of Database Systems, Second Edition*. Springer. pp. 4717–4718. doi:10.1007/978-1-4614-8265-9_826. ISBN 978-1-4614-8266-6. https://doi.org/10.1007/978-1-4614-8265-9_826. - ↑
^{49.0}^{49.1}van der Aalst, W.M.P. (2018). "Workflow Model Analysis".*Encyclopedia of Database Systems, Second Edition*. Springer. pp. 4716–4717. doi:10.1007/978-1-4614-8265-9_1476. ISBN 978-1-4614-8266-6. https://doi.org/10.1007/978-1-4614-8265-9_1476. - ↑ O'Connor, Patrick D. T. (2012).
*Practical reliability engineering*. Andre Kleyner (5th ed.). Chichester, West Sussex, U.K.: Wiley. ISBN 978-1-119-96126-0. OCLC 862121371. https://www.worldcat.org/oclc/862121371. - ↑ ter Hofstede, Arthur H. M.; van der Aalst, Wil M. P.; Adams, Michael; Russell, Nick (2010). Hofstede, Arthur H. M; Aalst, Wil M. P; Adams, Michael et al.. eds.
*Modern Business Process Automation - YAWL and its Support Environment*. doi:10.1007/978-3-642-03121-2. ISBN 978-3-642-03122-9. https://doi.org/10.1007/978-3-642-03121-2.

## Further reading

- Cardoso, Janette; Camargo, Heloisa (1999).
*Fuzziness in Petri Nets*. Physica-Verlag. ISBN 978-3-7908-1158-2. - Chiachio, Manuel; Chiachio, Juan; Presscott, Darren; Andrews, John (2018). "A new paradigm for uncertain knowledge representation by 'Plausible Petri nets'".
*Information Sciences***453**(July 2018): 323–345. doi:10.1016/j.ins.2018.04.029. - Grobelna, Iwona (2011). "Formal verification of embedded logic controller specification with computer deduction in temporal logic".
*Przegląd Elektrotechniczny***87**(12a): 47–50. - Jensen, Kurt (1997).
*Coloured Petri Nets*. Springer Verlag. ISBN 978-3-540-62867-5. https://archive.org/details/springer_10.1007-978-3-642-60794-3. - Pataricza, András (2004).
*Formális módszerek az informatikában (Formal methods in informatics)*. TYPOTEX Kiadó. ISBN 978-963-9548-08-4. - Peterson, James Lyle (1977). "Petri Nets".
*ACM Computing Surveys***9**(3): 223–252. doi:10.1145/356698.356702. - Peterson, James Lyle (1981).
*Petri Net Theory and the Modeling of Systems*. Prentice Hall. ISBN 978-0-13-661983-3. - Petri, Carl Adam (1962).
*Kommunikation mit Automaten*(Ph. D. thesis). University of Bonn. - Petri, Carl Adam; Reisig, Wolfgang (2008). "Petri net".
*Scholarpedia***3**(4): 6477. doi:10.4249/scholarpedia.6477. Bibcode: 2008SchpJ...3.6477P. - Reisig, Wolfgang (1992).
*A Primer in Petri Net Design*. Springer-Verlag. ISBN 978-3-540-52044-3. - Riemann, Robert-Christoph (1999).
*Modelling of Concurrent Systems: Structural and Semantical Methods in the High Level Petri Net Calculus*. Herbert Utz Verlag. ISBN 978-3-89675-629-9. - Störrle, Harald (2000).
*Models of Software Architecture – Design and Analysis with UML and Petri-Nets*. Books on Demand. ISBN 978-3-8311-1330-9. - Zaitsev, Dmitry (2013).
*Clans of Petri Nets: Verification of protocols and performance evaluation of networks*. LAP LAMBERT Academic Publishing. ISBN 978-3-659-42228-7. https://www.morebooks.de/store/gb/book/clans-of-petri-nets/isbn/978-3-659-42228-7. - Zhou, Mengchu; Dicesare, Frank (1993).
*Petri Net Synthesis for Discrete Event Control of Manufacturing Systems*. Kluwer Academic Publishers. ISBN 978-0-7923-9289-7. - Zhou, Mengchu; Venkatesh, Kurapati (1998).
*Modeling, Simulation, & Control of Flexible Manufacturing Systems: A Petri Net Approach*. World Scientific Publishing. ISBN 978-981-02-3029-6.

Original source: https://en.wikipedia.org/wiki/Petri net.
Read more |