Petri nets and soundness
Places, transitions, and markings
Section titled “Places, transitions, and markings”A place/transition net has finite, disjoint sets of places P and
transitions T. A directed arc connects a place to a transition or a
transition to a place. Write W(x,y) for its positive integer weight and
use zero when the arc is absent. An ordinary, unweighted drawing uses
weight one for each arc.
A marking M assigns a nonnegative integer number of tokens to each
place. Circles represent places, bars represent transitions, and dots
show tokens. In the following net, [i] denotes one token in i and
zero elsewhere.
Enablement and firing
Section titled “Enablement and firing”Transition t is enabled when M(p) ≥ W(p,t) for every place p.
Firing it consumes the input weights and produces the output weights
as one step.
M′(p) = M(p) − W(p,t) + W(t,p)A transition with two input places requires the specified tokens in both. A weight of two on one input arc requires two tokens in that place. A place can be both an input and an output of the same firing. Both terms are included in the update.
Reachability
Section titled “Reachability”A marking is reachable from the initial marking if a finite sequence of enabled firings leads to it. The empty sequence also counts. In the example the complete reachability graph is:
[i] ──Review──▶ [p] ──Register──▶ [o]In a parallel net there can be more than one order for independent firings. A split can produce two tokens. A synchronizing transition can wait for both to reach its input places. The parallel BPMN example shows that requirement at the process level.
Workflow nets and soundness
Section titled “Workflow nets and soundness”A workflow net has a unique source place i with no incoming arcs and a
unique sink place o with no outgoing arcs. Each place and transition
lies on a directed route from the source to the sink. For a single case
we start from [i] and want to finish at [o].
Classical soundness asks for the following properties.
- Option to complete. From every reachable marking, some firing
sequence reaches
[o]. - Proper completion. Any reachable marking with a token at
ohas exactly the marking[o]. - No dead transitions. Each transition is enabled at some marking
reachable from
[i].
The small net above meets these conditions by inspection of its three markings. The option to complete is existential. A more complex net may admit an infinite loop even though every reachable marking still offers a way out. For the formal definitions and related notions, see van der Aalst et al., sections 4–5.
Getriebe’s Petri net contract uses explicit token identities and bindings. Its BPMN model checks analyse properties of a specified control-flow abstraction. See Verification for the scope of those results.