A coalgebraic semantics for causality in Petri nets

In this paper we revisit some pioneering eorts to equip Petri nets with compact operational models for expressing causality. The models we propose have a bisimilarity relation and a minimal representative for each equivalence class, and they can be fully explained as coalgebras on a presheaf category on an index category of partial orders. First, we provide a set-theoretic model in the form of a a causal case graph, that is a labeled transition system where states and transitions represent markings and rings of the net, respectively, and are equipped with causal information. Most importantly, each state has a poset representing causal dependencies among past events. Our rst result shows the correspondence with behavior structure semantics as proposed by Trakhtenbrot and Rabinovich. Causal case graphs may be innitely-branchi ng and have innitely many states, but we show how they can be rened to get an equivalent nitely-branching model. In it, states only keep the most recent causes for each token, are up to isomorphism, and are equipped with a symmetry, i.e., a group of poset isomorphisms. Symmetries are essential for the existence of a minimal, often nite-state, model. This rst part requires no knowledge of category theory. The next step is constructing a coalgebraic model. We exploit the fact that events can be represented as names, and event generation as name generation. Thus we can apply the Fiore-Turi framework, where the semantics of nominal calculi are modeled as coalgebras over presheaves. We model causal relations as a suitable category of posets with action labels, and generation of new events with causal dependencies as an endofunctor on this category. Presheaves indexed by labeled posets represent the functorial association between states and their causal information. Then we dene a well-behaved category of coalgebras. Our coalgebraic model is still innite-state, but we exploit the equivalence between coalgebras over a class of presheaves and History Dependent automata to derive a compact representation, which is equivalent to our set-theoretical compact model. Remarkably, state reduction is automatically performed along the equivalence.

[1]  Jan J. M. M. Rutten,et al.  Universal coalgebra: a theory of systems , 2000, Theor. Comput. Sci..

[2]  Glynn Winskel,et al.  Bisimulation from Open Maps , 1994, Inf. Comput..

[3]  Davide Sangiorgi,et al.  A fully abstract semantics for causality in the $\pi$-calculus , 1998, Acta Informatica.

[4]  Glynn Winskel,et al.  Event Structures as Presheaves -Two Representation Theorems , 1999, CONCUR.

[5]  Glynn Winskel,et al.  Petri Nets, Event Structures and Domains, Part I , 1981, Theor. Comput. Sci..

[6]  Sam Staton,et al.  Relating Coalgebraic Notions of Bisimulation , 2009, CALCO.

[7]  Silvia Crafa,et al.  A Logic for True Concurrency , 2010, JACM.

[8]  Davide Sangiorgi,et al.  The Pi-Calculus - a theory of mobile processes , 2001 .

[9]  Alberto Carraro,et al.  Non-interference by Unfolding , 2014, Petri Nets.

[10]  Emilio Tuosto,et al.  Coalgebraic minimization of HD-automata for the Pi-calculus using polymorphic types , 2005, Theor. Comput. Sci..

[11]  Fabio Gadducci,et al.  About permutation algebras, (pre)sheaves and named sets , 2006, High. Order Symb. Comput..

[12]  Scott A. Smolka,et al.  CCS expressions, finite state processes, and three problems of equivalence , 1983, PODC '83.

[13]  Glynn Winskel,et al.  On the Expressivity of Symmetry in Event Structures , 2010, 2010 25th Annual IEEE Symposium on Logic in Computer Science.

[14]  Roberto Bruni,et al.  Revisiting causality, coalgebraically , 2014, Acta Informatica.

[15]  Daniele Turi,et al.  Semantics of name and value passing , 2001, Proceedings 16th Annual IEEE Symposium on Logic in Computer Science.

[16]  Felix Hueber,et al.  Locally Presentable And Accessible Categories , 2016 .

[17]  Peter Sewell,et al.  Models for name-passing processes: interleaving and causal , 2004, Inf. Comput..

[18]  Scott A. Smolka,et al.  CCS expressions, finite state processes, and three problems of equivalence , 1983, PODC '83.

[19]  Sibylle B. Fröschle,et al.  On Plain and Hereditary History-Preserving Bisimulation , 1999, MFCS.

[20]  Ugo Montanari,et al.  History-Dependent Automata , 1998 .

[21]  Vincenzo Ciancia,et al.  Symmetries, local names and dynamic (de)-allocation of names , 2010, Inf. Comput..

[22]  Samuel Staton Name-passing process calculi : operational models and structural operational semantics , 2007 .

[23]  Raheel Ahmad,et al.  The π-Calculus: A theory of mobile processes , 2008, Scalable Comput. Pract. Exp..

[24]  Marco Pistore,et al.  Minimal Transition Systems for History-Preserving Bisimulation , 1997, STACS.

[25]  Vincenzo Ciancia,et al.  Families of Symmetries as Efficient Models of Resource Binding , 2010, CMCS.

[26]  Alexandra Silva,et al.  A Coalgebraic Perspective on Minimization and Determinization , 2012, FoSSaCS.

[27]  James Worrell,et al.  Terminal sequences for accessible endofunctors , 1999, CMCS.

[28]  Marco Pistore,et al.  Structured coalgebras and minimal HD-automata for the pi-calculus , 2005, Theor. Comput. Sci..