Skip to main content
QUICK REVIEW

[Paper Review] Computational Petri Nets: Adjunctions Considered Harmful

Fabrizio Genovese, Alex Gryzlov|arXiv (Cornell University)|Apr 29, 2019
Petri Nets in System ModelingComputer Science12 references11 citations
TL;DR

This paper argues that functorial adjunctions between Petri nets and free strict symmetric monoidal categories (FSSMCs) are computationally infeasible and conceptually flawed for practical implementation. Instead, it proposes a direct, non-functorial mapping from FSSMCs to Petri nets, enabling efficient, meaningful computation representation and seamless integration with dependently typed languages like Idris, as demonstrated in the idris-ct library.

ABSTRACT

We review some of the endeavors in trying to connect Petri nets with free symmetric monoidal categories. We give a list of requirement such connections should respect if they are meant to be useful for practical/implementation purposes. We show how previous approaches do not satisfy them, and give compelling evidence that this depends on trying to make the correspondence functorial in the direction from nets to free symmetric monoidal categories, in order to produce an adjunction. We show that dropping this immediately honors our desiderata, and conclude by introducing an Idris library which implements them.

Motivation & Objective

  • To identify fundamental flaws in existing categorical approaches that link Petri nets to free strict symmetric monoidal categories (FSSMCs) via adjunctions.
  • To define a set of practical requirements for a usable, computationally feasible implementation of net-to-computation semantics.
  • To demonstrate that enforcing functoriality in the net-to-FSSMC direction undermines practical usability and must be abandoned.
  • To present an alternative mapping from FSSMCs to Petri nets that satisfies all practical requirements while preserving computational meaning.
  • To implement and validate the new approach using the idris-ct library in Idris, enabling formal verification and code generation from Petri nets.

Proposed method

  • Define a list of practical requirements for mapping Petri nets to FSSMCs, emphasizing computational feasibility, meaningful computation representation, and intuitive usability.
  • Show that traditional approaches relying on adjunctions fail to satisfy these requirements due to the need to linearize multisets in a way that conflates conceptually distinct computations.
  • Propose a non-functorial, but computationally efficient, mapping from FSSMCs to Petri nets by directly encoding generators and morphisms using ordered lists.
  • Leverage the natural ordering of lists in functional programming to represent FSSMC generators and morphisms, enabling direct code generation and manipulation.
  • Implement the core mapping in idris-ct, a formally verified Idris library for categorical constructs, including symmetric monoidal categories.
  • Enable end-to-end compilation from Petri nets to computations via a functorial mapping from FSSMCs to target categories (e.g., Hask), satisfying the need for semantics mapping.

Experimental results

Research questions

  • RQ1Why do traditional adjunction-based approaches between Petri nets and FSSMCs fail to satisfy practical implementation requirements?
  • RQ2Can a meaningful, computationally feasible mapping from FSSMCs to Petri nets be constructed without requiring functoriality in the net-to-FSSMC direction?
  • RQ3How can the correspondence between Petri net executions and FSSMC morphisms be preserved while avoiding the computational cost of multiset linearization?
  • RQ4To what extent can functional programming data structures like lists be used to represent and manipulate FSSMCs and net executions efficiently?
  • RQ5Can a formally verified, Idris-based implementation of this mapping support full code generation and integration with external semantics?

Key findings

  • Traditional approaches relying on adjunctions between Petri nets and FSSMCs are computationally infeasible and conceptually unsatisfying because they require global multiset linearization that conflates distinct computations.
  • Dropping the requirement for a functorial mapping from nets to FSSMCs resolves all practical shortcomings while preserving the ability to represent all valid net executions as morphisms in the FSSMC.
  • The proposed mapping from FSSMCs to Petri nets is computationally efficient, as it reduces to simple list operations, and allows direct manipulation of net executions via string-like representations.
  • The idris-ct library successfully implements the core categorical constructs and enables formal verification of FSSMCs, demonstrating the feasibility of the approach in practice.
  • The new approach supports end-to-end compilation from Petri nets to real computations via functors to target categories like Hask, fulfilling the requirement for semantics mapping.
  • The use of ordered lists to represent FSSMC generators and morphisms enables intuitive, tool-friendly manipulation and parsing, as shown in the string-to-net conversion in Figure 5.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.