Math 2.0

Computer science Definition

Petri net

Builds on Bipartite graph

Definition

A Petri net is a triple N=(P,T,W)N = (P, T, W) where:

  1. PP and TT are finite disjoint sets, the places and the transitions;
  2. W ⁣:(P×T)∪(T×P)→ℕW \colon (P \times T) \cup (T \times P) \to \N is the weight function, with ℕ={0,1,2,… }\N = \set{0, 1, 2, \dots}.

A marking is a map M ⁣:P→ℕM \colon P \to \N. A transition tt is enabled at MM if M(p)≥W(p,t)M(p) \ge W(p, t) for every p∈Pp \in P. An enabled transition tt can fire, and this gives the marking M′M' with M′(p)=M(p)−W(p,t)+W(t,p)for all p∈P.M'(p) = M(p) - W(p, t) + W(t, p) \quad \text{for all } p \in P. A marking is reachable from an initial marking M0M_0 if it arises from M0M_0 by a finite sequence of firings.

Remarks

The arcs are the pairs with W(x,y)>0W(x, y) > 0; they form a bipartite graph between PP and TT.

Example: let P={p,q}P = \set{p, q}, T={t}T = \set{t}, W(p,t)=1W(p, t) = 1, W(t,q)=2W(t, q) = 2 and the other weights 00. From M0=(1,0)M_0 = (1, 0), the transition tt is enabled because M0(p)=1≥1M_0(p) = 1 \ge 1, and firing gives (0,2)(0, 2).

Non-example of enabling: at (0,2)(0, 2), the transition tt is not enabled, because 0<W(p,t)=10 < W(p, t) = 1. So (0,2)(0, 2) is a dead marking of this net.

The reachability problem for Petri nets, whether a given marking is reachable from M0M_0, is decidable.

Reading path

To understand this page from the ground up, read these 2 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Bipartite graph concept
  2. Petri net definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Petri_net
About this page
TagHC7T9KAAY9
URIm2://HC7T9KAAY9
Kinddefinition
WritingW0 stub
MSC68Q85, 68Q10
DefinesPetri net
UsesBipartite graph
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.