ArticlePublisher preview available

Petri nets are dioids: a new algebraic foundation for non-deterministic net theory

Authors:
To read the full-text of this research, you can request a copy directly from the authors.

Abstract and Figures

In a seminal paper Montanari and Meseguer have shown that an algebraic interpretation of Petri nets in terms of commutative monoids can be used to provide an elegant characterisation of the deterministic computations of a net, accounting for their sequential and parallel composition. A smoother and more complete theory for deterministic computations has been later developed by relying on the concept of pre-net, a variation of Petri nets with a non-commutative flavor. This paper shows that, along the same lines, by adding an (idempotent) operation and thus considering dioids (idempotent semirings) rather than just monoids, one can faithfully characterise the non-deterministic computations of a net.
This content is subject to copyright. Terms and conditions apply.
Acta Informatica (2019) 56:61–92
https://doi.org/10.1007/s00236-018-0314-0
ORIGINAL ARTICLE
Petri nets are dioids: a new algebraic foundation
for non-deterministic net theory
Paolo Baldan1·Fabio Gadducci2
Received: 6 September 2016 / Accepted: 14 January 2018 / Published online: 24 January 2018
© Springer-Verlag GmbH Germany, part of Springer Nature 2018
Abstract In a seminal paper Montanari and Meseguer have shown that an algebraic inter-
pretation of Petri nets in terms of commutative monoids can be used to provide an elegant
characterisation of the deterministic computations of a net, accounting for their sequential
and parallel composition. A smoother and more complete theory for deterministic computa-
tions has been later developed by relying on the concept of pre-net, a variation of Petri nets
with a non-commutative flavor. This paper shows that, along the same lines, by adding an
(idempotent) operation and thus considering dioids (idempotent semirings) rather than just
monoids, one can faithfully characterise the non-deterministic computations of a net.
1 Introduction
Petri nets [30] are one of the most studied and best known models for concurrent systems.
Due to the conceptual simplicity of the model and its intuitive graphical presentation, since
their introduction, which dates back to the Sixties [29], they have attracted the interest of
both theoreticians and practitioners.
The basic operational behaviour of Petri nets can be straightforwardly defined in terms of
sequences of transition firings, according to the “token game”. Concurrency in computations
can be made explicit by resorting to a semantics given in terms of (non-sequential) deter-
ministic processes à la Goltz and Reisig [15]. A process describes the transition firings in
a computation and their mutual dependency relations. Concretely, a deterministic processes
is an acyclic, deterministic net whose structure induces a partial order on transitions, which
can be seen as occurrences of transition firings in the original net. A deterministic process
BFabio Gadducci
fabio.gadducci@unipi.it
Paolo Baldan
baldan@math.unipd.it
1Dipartimento di Matematica, Università di Padova, Via Trieste 63, 35121 Padua, Italy
2Dipartimento di Informatica, Università di Pisa, Largo Bruno Pontecorvo 3, 56127 Pisa, Italy
123
Content courtesy of Springer Nature, terms of use apply. Rights reserved.
... Among the most recent ones we mention [8,9,10,11]. There the objective is typically the generation of all nets starting from a small number of components [9,10,11] or the preservation of the semantics [8] via composition. ...
... Among the most recent ones we mention [8,9,10,11]. There the objective is typically the generation of all nets starting from a small number of components [9,10,11] or the preservation of the semantics [8] via composition. The work in [11] 300 focuses on the algebraic structure of non-deterministic computations but is based on pre-nets [12] rather than Petri nets. ...
... There the objective is typically the generation of all nets starting from a small number of components [9,10,11] or the preservation of the semantics [8] via composition. The work in [11] 300 focuses on the algebraic structure of non-deterministic computations but is based on pre-nets [12] rather than Petri nets. The difference is that the preand post-sets of transitions are lists and not sets, so that the interfaces for composition are intrinsically ordered. ...
Article
Recent work by the authors equips Petri occurrence nets (PN) with probability distributions which fully replace nondeterminism. To avoid the so-called confusion problem, the construction imposes additional causal dependencies which restrict choices within certain subnets called structural branching cells (s-cells). Bayesian nets (BN) are usually structured as partial orders where nodes define conditional probability distributions. In the paper, we unify the two structures in terms of Symmetric Monoidal Categories (SMC), so that we can apply to PN ordinary analysis techniques developed for BN. Interestingly, it turns out that PN which cannot be SMC-decomposed are exactly s-cells. This result confirms the importance for Petri nets of both SMC and s-cells.
... The tuple (S, Σ, ar, coar), Σ for short, forms a monoidal signature. Amongst the terms generated by (6) we consider only those that can be typed according to the inference rules in Table 1. String diagrams are such terms modulo the axioms in Table 1 where, for any , ∈ S ★ , and ⊙ , can be easily built using , , ⊙ , , ⊙ and ; (see e.g. ...
... The ubiquity of our axioms gives us the hope that this language could be easily adjusted to deal with concurrent and quantum computations. Preliminary inspirations come, respectively, from [6,35,41] and [32]. ...
Preprint
Full-text available
Rig categories with finite biproducts are categories with two monoidal products, where one is a biproduct and the other distributes over it. In this work we present tape diagrams, a sound and complete diagrammatic language for these categories, that can be intuitively thought as string diagrams of string diagrams. We test the effectiveness of our approach against the positive fragment of Tarski's calculus of relations.
... The fact that Petri nets are connected with additively idempotent semirings has been well known since 1992 [90]. Recently, the previous studies [91,92] have initiated an algebraic study of Petri nets. ...
Article
Full-text available
The article explores research findings akin to Amitsur’s theorem, asserting that any derivation within a matrix ring can be expressed as the sum of an inner derivation and a hereditary derivation. In most results related to rings and semirings, Birkenmeier’s semicentral idempotents play a crucial role. This article is intended for PhD students, postdocs, and researchers.
Article
Rig categories with finite biproducts are categories with two monoidal products, where one is a biproduct and the other distributes over it. In this work we present tape diagrams, a sound and complete diagrammatic language for these categories, that can be intuitively thought as string diagrams of string diagrams. We test the effectiveness of our approach against the positive fragment of Tarski's calculus of relations.
Article
Full-text available
String diagrams are a powerful and intuitive graphical syntax for terms of symmetric monoidal categories (SMCs). They find many applications in computer science and are becoming increasingly relevant in other fields such as physics and control theory. An important role in many such approaches is played by equational theories of diagrams, typically oriented and applied as rewrite rules. This paper lays a comprehensive foundation of this form of rewriting. We interpret diagrams combinatorially as typed hypergraphs and establish the precise correspondence between diagram rewriting modulo the laws of SMCs on the one hand and double pushout (DPO) rewriting of hypergraphs, subject to a soundness condition called convexity, on the other. This result rests on a more general characterisation theorem in which we show that typed hypergraph DPO rewriting amounts to diagram rewriting modulo the laws of SMCs with a chosen special Frobenius structure. We illustrate our approach with a proof of termination for the theory of non-commutative bimonoids.
Book
Model checking is a prominent technique used in the hardware and software industries for automatic verification. While it is very successful in finding subtle bugs in distributed systems, it faces the state explosion problem - the number of reachable states grows exponentially in the number of concurrent components. In this book the authors introduce unfoldings, an approach to model checking which alleviates the state explosion problem by means of concurrency theory. They offer a gentle introduction to the basics of the method, and in particular they detail an unfolding-based algorithm for model checking concurrent systems against properties specified as formulas of linear temporal logic (LTL). Self-contained chapters cover transition systems and their products; unfolding products; search procedures for basic verification problems, such as reachability and livelocks; and model checking LTL. The final chapter summarizes the results of the book, and points the reader to tools and case studies. The book will be of value to researchers and graduate students engaged in automatic verification and concurrency theory.
Article
This book deals with the problem of finding suitable languages that can represent specific classes of Petri nets, the most studied and widely accepted model for distributed systems. Hence, the contribution of this book amounts to the alphabetization of some classes of distributed systems. The book also suggests the need for a generalization of Turing computability theory. It is important for graduate students and researchers engaged with the concurrent semantics of distributed communicating systems. The author assumes some prior knowledge of formal languages and theoretical computer science.
Article
The paper investigates the relationships between two well-known approaches to the modelling of concurrent and distributed systems, process calculi and Petri nets. A framework for the modular encoding of process calculi into Petri nets is proposed, which is based on a reactive variant of Petri nets. In particular, two exemplary calculi are considered: (asynchronous) CCS and CSP, representing alternative interaction paradigms, namely asynchronous and (broadcast) synchronous communication. The encoding is proved to preserve as well as to reflect the operational semantics. As a consequence, it is well-behaved with respect to the standard behavioural equivalences, a fact that is exploited to perform a “technology transfer” between the two formalisms, in terms of un/decidability results for classical properties such as reachability and deadlock-freedom. The encoding highlights the expressiveness of the proposed reactive variant of nets, as well as paving the way for a fruitful integration of tools and techniques between the visual formalism of nets and the algebraic framework of processes.
Article
Network theory uses the string diagrammatic language of monoidal categories to study graphical structures formally, eschewing specialised translations into intermediate formalisms. Recently, there has been a concerted research focus on developing a network theoretic approach to signal flow graphs, which are classical structures in control theory, signal processing and a cornerstone in the study of feedback. In this approach, signal flow graphs are given a relational denotational semantics in terms of formal power series. Thus far, the operational behaviour of such signal flow graphs has only been discussed at an intuitive level. In this paper we equip them with a structural operational semantics. As is typically the case, the purely operational picture is too concrete -- two graphs that are denotationally equal may exhibit different operational behaviour. We classify the ways in which this can occur and show that any graph can be realised -- rewritten, using the graphical theory, into an executable form where the operational behavior and the denotation coincides.
Article
A PROP is a way of encoding structure borne by an object of a symmetric monoidal category. We describe a notion of distributive law for PROPs, based on Beck's distributive laws for monads. A distributive law between PROPs allows them to be composed, and an algebra for the composite PROP consists of a single object with an algebra structure for each of the original PROPs, subject to compatibility conditions encoded by the distributive law. An example is the PROP for bialgebras, which is a composite of the PROP for coalgebras and that for algebras.
Book
I. Categories, Functors and Natural Transformations.- 1. Axioms for Categories.- 2. Categories.- 3. Functors.- 4. Natural Transformations.- 5. Monics, Epis, and Zeros.- 6. Foundations.- 7. Large Categories.- 8. Hom-sets.- II. Constructions on Categories.- 1. Duality.- 2. Contravariance and Opposites.- 3. Products of Categories.- 4. Functor Categories.- 5. The Category of All Categories.- 6. Comma Categories.- 7. Graphs and Free Categories.- 8. Quotient Categories.- III. Universals and Limits.- 1. Universal Arrows.- 2. The Yoneda Lemma.- 3. Coproducts and Colimits.- 4. Products and Limits.- 5. Categories with Finite Products.- 6. Groups in Categories.- IV. Adjoints.- 1. Adjunctions.- 2. Examples of Adjoints.- 3. Reflective Subcategories.- 4. Equivalence of Categories.- 5. Adjoints for Preorders.- 6. Cartesian Closed Categories.- 7. Transformations of Adjoints.- 8. Composition of Adjoints.- V. Limits.- 1. Creation of Limits.- 2. Limits by Products and Equalizers.- 3. Limits with Parameters.- 4. Preservation of Limits.- 5. Adjoints on Limits.- 6. Freyd's Adjoint Functor Theorem.- 7. Subobjects and Generators.- 8. The Special Adjoint Functor Theorem.- 9. Adjoints in Topology.- VI. Monads and Algebras.- 1. Monads in a Category.- 2. Algebras for a Monad.- 3. The Comparison with Algebras.- 4. Words and Free Semigroups.- 5. Free Algebras for a Monad.- 6. Split Coequalizers.- 7. Beck's Theorem.- 8. Algebras are T-algebras.- 9. Compact Hausdorff Spaces.- VII. Monoids.- 1. Monoidal Categories.- 2. Coherence.- 3. Monoids.- 4. Actions.- 5. The Simplicial Category.- 6. Monads and Homology.- 7. Closed Categories.- 8. Compactly Generated Spaces.- 9. Loops and Suspensions.- VIII. Abelian Categories.- 1. Kernels and Cokernels.- 2. Additive Categories.- 3. Abelian Categories.- 4. Diagram Lemmas.- IX. Special Limits.- 1. Filtered Limits.- 2. Interchange of Limits.- 3. Final Functors.- 4. Diagonal Naturality.- 5. Ends.- 6. Coends.- 7. Ends with Parameters.- 8. Iterated Ends and Limits.- X. Kan Extensions.- 1. Adjoints and Limits.- 2. Weak Universality.- 3. The Kan Extension.- 4. Kan Extensions as Coends.- 5. Pointwise Kan Extensions.- 6. Density.- 7. All Concepts are Kan Extensions.- Table of Terminology.