Petri Nets and Linear Logic
Position in the vault
Petri nets are the formalism closest to a Gentzen-style calculus. Under a precise correspondence theorem, reachability in a Petri net is provability in a fragment of linear logic. ← Dashboard · Baseline: Gentzen_Style_Calculus
1. Theoretical Foundations & Syntax
Core primitives. A (place/transition) Petri net is a tuple :
- : a finite set of places, i.e. molecular species.
- : a finite set of transitions, i.e. reactions.
- : arc weights, i.e. stoichiometric coefficients of reactants and products.
- : a marking, i.e. the multiset of molecules present. is the initial marking.
Firing rule. Transition is enabled at iff . Firing produces
Incidence matrix and the state equation. With (the stoichiometric matrix), any firing sequence with Parikh vector satisfies
This is a necessary, but not sufficient, condition for reachability.
Invariants.
- P-invariants with : weighted sums of tokens that never change, i.e. conservation laws (moiety conservation).
- T-invariants with : firing multisets that reproduce the marking, i.e. cycles and steady-state flux modes.
Biochemical representation.
| Biochemistry | Petri net |
|---|---|
| Species (metabolite, protein, complex) | Place |
| Molecule count | Tokens |
| Reaction | Transition |
| Stoichiometric coefficient | Arc weight |
| Complex | A separate place (no internal structure) |
| Enzyme / catalyst | Read arc or self-loop (input and output arc) |
| Inhibition | Inhibitor arc (an extension; it breaks decidability results and the linear-logic correspondence) |
Linear-logic reading (Martí-Oliet & Meseguer, 1991; Engberg & Winskel, 1990):
| Petri net | Linear logic (ILL) |
|---|---|
| Marking | |
| Transition | |
| Firing | plus dereliction |
| Concurrent firing | with context splitting |
| Reachability | Provability of |
Engberg and Winskel give a semantic correspondence: Petri nets as models (quantales) of linear logic. Martí-Oliet and Meseguer give a categorical and syntactic one: nets as linear theories, with net computations as morphisms in a symmetric monoidal category. The fragment involved, , and applied only to Horn implications, is the Horn fragment of linear logic, whose provability is equivalent to Petri-net reachability (Kanovich, 1995).
2. Applications in Biochemical Pathway Analysis
Use cases.
- Metabolic networks: the original application (Reddy et al., 1993). Places are metabolites and transitions are enzymatic reactions. P-invariants recover moiety conservation (e.g. ATP/ADP/AMP pools). T-invariants correspond to elementary flux modes (steady-state pathways).
- Signalling cascades: e.g. MAPK, apoptosis. Analysed with structural invariants and siphon/trap analysis.
- Gene regulation: via translations of logical models into Petri nets (Chaouiya, 2007). See Boolean_Networks.
Analysis techniques.
- Structural analysis (marking-independent): P/T-invariants, siphons and traps, structural boundedness and liveness. All are linear-algebraic and scalable.
- Behavioural analysis: reachability and coverability graphs, deadlock detection, liveness, model checking of CTL/LTL over the reachability graph.
- Reachability: decidable for general Petri nets (Mayr, Kosaraju) but of extremely high complexity; the problem is now known to be Ackermann-complete.
- Quantitative extensions: stochastic Petri nets, whose transitions fire at exponentially distributed rates, giving a CTMC equivalent to the chemical master equation; continuous Petri nets, giving ODEs; hybrid and timed Petri nets.
Tools. Snoopy (modelling of qualitative, stochastic, continuous and hybrid nets), Charlie and INA (structural analysis), MARCIE (model checking), PIPE, and CPN Tools (coloured nets).
3. Comparison with Gentzen-Style Sequent Calculus
Structural & Conceptual Similarities
- Exact correspondence theorem. Reachability holds iff is provable in the Horn fragment of ILL. Petri-net firing is cut-free proof search in a substructural sequent calculus.
- Structural rules. The marking is a multiset, so exchange holds. Weakening and contraction fail: tokens cannot be duplicated or discarded. This matches exactly the linear restriction of Gentzen’s structural rules.
- Exponential = reusable reaction. Transitions can fire arbitrarily often, so they live under . Tokens cannot, so they stay linear.
- Concurrency = context splitting. Independent firings on disjoint sub-markings correspond to the context split in .
- Invariants as semantic constraints. P-invariants play the role of conservation lemmas: provable sequents must satisfy .
Advantages over Gentzen-style Calculus
- Linear algebra instead of search. Invariants and the state equation are computed in polynomial time (for rational relaxations) and give quick non-reachability certificates. Sequent calculus has no comparable algebraic shortcut.
- Graphical, intuitive notation that biologists read as an ordinary pathway diagram.
- Natural quantitative extensions (stochastic, continuous, hybrid) with established semantics. Sequent calculus has no notion of rate.
- Mature tools for simulation, state-space exploration and model checking.
- Cycles and feedback are handled natively by reachability or coverability graphs (Karp–Miller), whereas naive backward proof search loops on reversible reactions.
Disadvantages & Limitations vs. Gentzen-style Calculus
- Proof-theoretic content is implicit. A firing sequence is a linearised proof with no explicit cut or lemma structure. Modular reasoning (“prove sub-pathway once, reuse it”) is not native. Process semantics and unfoldings partly recover the causal structure.
- Expressiveness is limited to the Horn fragment. There are no additives, so internal or external choice (, ) cannot be stated as a goal, and no higher-order implications such as conditional hypotheses (“if this pathway is available, then …”).
- Inhibitor arcs break the correspondence. They give Turing-completeness and have no clean linear-logic reading. Negation-like regulation is natural in Boolean_Networks but awkward here.
- State-space explosion in behavioural analysis. Reachability is decidable but Ackermann-complete.
- No internal structure of species. Complexes are opaque places, so combinatorial complexity (multi-site phosphorylation) explodes. Rule-based models solve this.
4. Concrete Biochemical Example
Petri net for :
Places: E, S, ES, P
Transitions: t1 (bind) : E + S -> ES
t-1 (unbind) : ES -> E + S
t2 (cat) : ES -> E + P
Initial marking M0 = { E:1, S:1, ES:0, P:0 }
graph LR E((E)) --> t1[t1] S((S)) --> t1 t1 --> ES((ES)) ES --> tm1[t-1] tm1 --> E tm1 --> S ES --> t2[t2] t2 --> E t2 --> P((P))
Incidence matrix (rows ; columns ):
- P-invariants: gives (total enzyme). gives (total substrate mass).
- T-invariant: , i.e. binding followed by unbinding is a futile cycle.
- Firing from reaches .
Gentzen-style counterpart. Abbreviate the transition formulas as
The firing sequence then corresponds to the cut-free ILL derivation
How to read it:
- Bottom-up, each is one firing. The lower one consumes (fires : ), and the upper one consumes (fires : ).
- The last bar abbreviates three steps: dereliction on and , and weakening of the unused .
| Aspect | Petri net | Sequent proof |
|---|---|---|
| State | Marking | Antecedent |
| Step | Firing | on |
| Unused reaction | Never fired | Discarded by weakening on |
| Conservation | P-invariant | occurs once on each side; no rule can create or delete it |
| Witness | Firing sequence | Proof tree (also exposes which tokens were used where) |
5. Key Literature & References
Mandatory core references
- Reddy, V. N., Mavrovouniotis, M. L., & Liebman, M. N. (1993). “Petri net representations in metabolic pathways.” Proceedings of the International Conference on Intelligent Systems for Molecular Biology (ISMB), 1, 328–336.
- The first paper to propose Petri nets for metabolic pathways, mapping metabolites to places and reactions to transitions.
- Chaouiya, C. (2007). “Petri net modelling of biological networks.” Briefings in Bioinformatics, 8(4), 210–219.
- A review of Petri-net approaches (qualitative, stochastic, continuous) for metabolic, signalling and regulatory networks, including links to logical models (Boolean_Networks).
- Martí-Oliet, N., & Meseguer, J. (1991). “From Petri nets to linear logic.” Mathematical Structures in Computer Science, 1(1), 69–101.
- Gives the categorical correspondence between Petri nets and linear-logic theories; the formal bridge to sequent calculus and to rewriting logic.
- Engberg, U., & Winskel, G. (1990). “Petri nets as models of linear logic.” CAAP ‘90 (Lecture Notes in Computer Science), 431, 147–161.
- Shows that Petri nets provide sound models of (intuitionistic) linear logic, the semantic side of the reachability-as-provability correspondence.
Additional references
- Murata, T. (1989). “Petri nets: Properties, analysis and applications.” Proceedings of the IEEE, 77(4), 541–580.
- The standard survey of Petri-net theory (invariants, reachability, liveness, boundedness) behind the analysis techniques above.
- Kanovich, M. I. (1995). “Petri nets, Horn programs, linear logic and vector games.” Annals of Pure and Applied Logic, 75(1–2), 107–135.
- Proves the equivalence between Petri-net reachability and provability in the Horn fragment of linear logic, the precise theorem behind the “High” similarity score.
Related: Gentzen_Style_Calculus · Linear_Logic_and_Rewriting_Logic_Zsyntax (rewriting logic generalises Petri nets) · Rule_Based_Models_BioNetGen_and_Kappa (structured species) · Process_Calculi_Pi_Calculus_BioPEPA_BIOCHAM (stochastic semantics) · Boolean_Networks (logical abstraction) · 00_Dashboard_and_Comparison