Coalgebraic Symbolic Semantics Filippo Bonchi Ugo Montanari.

Slides:



Advertisements
Similar presentations
Process Algebra Book: Chapter 8. The Main Issue Q: When are two models equivalent? A: When they satisfy different properties. Q: Does this mean that the.
Advertisements

GRAPHS, REACTIVE SYSTEMS AND MOBILE AMBIENTS Giacoma Valentina Monreale Supervisor: F. Gadducci.
C. Compositional Design and Verification of Component-Based Information Systems Jan Martijn van der Werf.
Modular Processings based on Unfoldings Eric Fabre & Agnes Madalinski DistribCom Team Irisa/Inria UFO workshop - June 26, 2007.
Translation-Based Compositional Reasoning for Software Systems Fei Xie and James C. Browne Robert P. Kurshan Cadence Design Systems.
Introduction to Petri Nets Hugo Andrés López
Applying Petri Net Unfoldings for Verification of Mobile Systems Apostolos Niaouris Joint work with V. Khomenko, M. Koutny MOCA ‘06.
Deterministic Negotiations: Concurrency for Free Javier Esparza Technische Universität München Joint work with Jörg Desel and Philipp Hoffmann.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
Behavioral Equivalence Hossein Hojjat Formal Lab University of Tehran.
Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen Marcello Bonsangue, Stefan Milius, Alexandra Silva Coalgebras and Generalized Regular.
CLF: A Concurrent Logical Framework David Walker Princeton (with I. Cervesato, F. Pfenning, K. Watkins)
Course on Probabilistic Methods in Concurrency (Concurrent Languages for Probabilistic Asynchronous Communication) Lecture 1 The pi-calculus and the asynchronous.
Equivalence of open Petri nets Modeling and analysis with Petri net components. Marc Voorhoeve (AIS)
Roberto Pisa, Italy 13 June 2008 WADT Tiles for Reo Roberto Bruni Dipartimento di Informatica Università di Pisa WADT th International.
Introduction to Computability Theory
1 Introduction to Computability Theory Lecture7: PushDown Automata (Part 1) Prof. Amos Israeli.
EECS 20 Lecture 13 (February 14, 2001) Tom Henzinger Minimization.
Transparency No Formal Language and Automata Theory Chapter 10 The Myhill-Nerode Theorem (lecture 15,16 and B)
1 Synchronization strategies for global computing models Ivan Lanese Computer Science Department University of Bologna.
1 Ivan Lanese Computer Science Department University of Bologna Roberto Bruni Computer Science Department University of Pisa A mobile calculus with parametric.
EECS 20 Lecture 16 (February 26, 2001) Tom Henzinger Determinization.
Synchronization Algebras with Mobility for Graph Transformations joint work with Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese.
1 Formal Models for Distributed Negotiations Concurrent Languages Translation Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela.
Bridging the gap between Interaction- and Process-Oriented Choreographies Talk by Ivan Lanese Joint work with Claudio Guidi, Fabrizio Montesi and Gianluigi.
07/06/98 知的インタフェース特論 1 Operational Semantics Again, the question? Operational Model = Labeled Transition System If P and Q yields a same LTS. How to define.
1 GT-VC 2005, San Francisco, August 22, 2005 Ugo Montanari Università di Pisa Ivan Lanese Università di Pisa Hoare vs. Milner: Comparing Synchronizations.
Bridging the gap between Interaction- and Process-Oriented Choreographies Talk by Ivan Lanese Joint work with Claudio Guidi, Fabrizio.
Bridging the gap between Interaction- and Process-Oriented Choreographies Talk by Ivan Lanese Joint work with Claudio Guidi, Fabrizio Montesi and Gianluigi.
Bisimulation by Unification Roberto Bruni (Univ. Pisa – Univ. Illinois) Paolo Baldan (Univ. Pisa – Univ. Venezia) Andrea Bracciali (Univ. Pisa) AMAST’02,
¹ -Calculus Based on: “Model Checking”, E. Clarke and O. Grumberg (ch. 6, 7) “Symbolic Model Checking: 10^20 States and Beyond”, Burch, Clark, et al “Introduction.
Transparency No Formal Language and Automata Theory Chapter 10 The Myhill-Nerode Theorem (lecture 15,16 and B)
1 Static vs dynamic SAGAs Ivan Lanese Computer Science Department University of Bologna/INRIA Italy.
1 Ivan Lanese Computer Science Department University of Bologna Italy Concurrent and located synchronizations in π-calculus.
1 CoMeta, final workshop, /12/2003 Ivan Lanese Dipartimento di Informatica Università di Pisa Ugo Montanari A graphical Fusion Calculus Joint work.
Petri Net Modeling for dynamic MM composite Object.
1 Ivan Lanese Computer Science Department University of Bologna Italy Behavioural Theory at Work: Program Transformations in a Service-centred Calculus.
An algebra of Connectors for modeling CommUnity with Tiles joint work with Roberto Bruni Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan.
1 Ivan Lanese Computer Science Department University of Bologna Synchronization strategies for global computing models.
Complete Axioms for Stateless Connectors joint work with Roberto Bruni and Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
Synchronizations with Mobility for Graph Transformations joint work with Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
Mathematical Operational Semantics and Finitary System Behaviour Stefan Milius, Marcello Bonsangue, Robert Myers, Jurriaan Rot.
Partial Order Semantics of Types of Nets Robert Lorenz, Gabriel Juhás, Sebastian Mauser SOFSEM 2009, Špindlerův Mlýn, CZ, 27th February 2009.
Process Algebra (2IF45) Probabilistic Branching Bisimulation: Exercises Dr. Suzana Andova.
Lexical Analysis — Part II: Constructing a Scanner from Regular Expressions.
SDS Foil no 1 Process Algebra Process Algebra – calculating with behaviours.
Mathematical Operational Semantics and Finitary System Behaviour Stefan Milius, Marcello Bonsangue, Robert Myers, Jurriaan Rot.
Advanced Topics in SE Spring Process Algebra Hossein Hojjat Formal Methods Lab University of Tehran.
Reactive systems – general
2G1516 Formal Methods2005 Mads Dam IMIT, KTH 1 CCS: Operational Semantics And Process Algebra Mads Dam Reading: Peled 8.3, 8.4, 8.6 – rest of ch. 8.
Lexical Analysis Constructing a Scanner from Regular Expressions.
Coalgebraic components in a many-sorted microcosm Ichiro Hasuo Kyoto, JP Chris Heunen Nijmegen, NL (  Oxford, UK) Bart Jacobs Nijmegen, NL Ana Sokolova.
UW CSE 503 ▪ Software Engineering ▪ Spring 2004 ▪ Rob DeLine1 CSE 503 – Software Engineering Lecture 7: Process calculi and refinement Rob DeLine 19 Apr.
Categorical Categorical theory of state-based systems in Sets : bisimilarity in Kleisli: trace semantics [Hasuo,Jacobs,Sokolova LMCS´07] in Sets : bisimilarity.
Weak Bisimilarity Coalgebraically Andrei Popescu Department of Computer Science University of Illinois.
Lecture 5 1 CSP tools for verification of Sec Prot Overview of the lecture The Casper interface Refinement checking and FDR Model checking Theorem proving.
2G1516 Formal Methods2005 Mads Dam IMIT, KTH 1 CCS: Processes and Equivalences Mads Dam Reading: Peled 8.5.
2G1516/2G1521 Formal Methods2004 Mads Dam IMIT, KTH 1 CCS: Processes and Equivalences Mads Dam Reading: Peled 8.1, 8.2, 8.5.
On the origins of Bisimulation & Coinduction
When Simulation Meets Antichains Yu-Fang Chen Academia Sinica, Taiwan Joint work with Parosh Aziz Abdulla, Lukas Holik, Richard Mayr, and Tomas Vojunar.
Process Algebra (2IF45) Abstraction Parallel composition (short intro) Suzana Andova.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
About Grammars Hopcroft, Motawi, Ullman, Chap 7.1, 6.3, 5.4.
Chapter 7 PUSHDOWN AUTOMATA.
Georgiana Caltais - Damien Pous - Alexandra Silva
CS 154, Lecture 4: Limitations on DFAs (I),
Internet of Things A Process Calculus Approach
A MODULAR LTS FOR OPEN REACTIVE SYSTEMS
Presentation transcript:

Coalgebraic Symbolic Semantics Filippo Bonchi Ugo Montanari

Many formalisms modelling Interactive Systems Algebras - Syntax Coalgebras - Semantics Bialgebras – Semantics of the composite system in terms of the semantics of the components (compositionality of final semantics) CCS [Turi, Plotkin – LICS 97] Pi-calculus [Fiore, Turi – LICS 01] [Ferrari, Montanari, Tuosto – TCS 05] Fusion Calculus [Ferrari et al. – CALCO 05][Miculan – MFPS 08]

… in many interesting cases, this does not work… Mobile Ambient [Hausmann, Mossakowski, Schr ö der – TCS 2006] Formalisms with asynchronous message passing Petri Nets …

Plan of the Talk Compositionality Saturated Semantics Symbolic Semantics Saturated Coalgebras Normalized Coalgebras As running example, we will use Petri nets Bonchi, Montanari – FOSSACS 08

Petri Nets p p   q q B B   c c   d d   P is a set of places T is a set of transitions Pre:T  P  Post:T  P  l:T   is a labelling Given a set A, A  is the set of all multisets over A, e.g., for A={a,b},then A  ={ ,{a},{b},{aa},{bb},{ab},{aab}…} 2 a marking is a multiset over P The semantics is quite intuitive pc qc B   

Open Petri Nets Petri net + interface a a b b $ $     interface Input Places Output Place Closed Place Interface=(Input Places, Output Places)

Petri Nets Contexts Petri nets + Inner interfaces + Outer Interface a a $ $     c c     c c c c c c c c c c   Inner Interface Outer Interface a a b b $ $     a a b b $ $     a a b b $ $    

  x x 3 3 $ $ Bisimilarity is not a congruence c c d d $ $   5 5 ce   x x 3 3 $ $ cxex C$ $$  e$ $$  f They are bisimilar They are not   x x 3 3 $ $ e e f f $ $   3 3      

Plan of the Talk Compositionality Saturated Semantics Symbolic Semantics Saturated Coalgebras Normalized Coalgebras As running example, we will use Petri nets

Saturated Bisimilarity A relation R is a saturated bisimulation iff whenever pRq, then  C[-] If C[p]→p’ then  q’ s.t. C[q]→q’ and p’Rq’ If C[q]→q’ then  p’ s.t. C[p]→p’ and p’Rq’ THM: it is always the largest bisimulation congruence

Saturated Transition System pq C[-] C[ p ] q C[-] is a context is a label

Saturated Semantics for Open Nets At any moment of their execution a token can be inserted into an input place and one can be removed from an output place b b     $ $ a a  $$$ $$ $ +$ a aa +a -$ b  b$ +$ b$ $ +$  a$ a$ $ a$ $$ +$ +a $ $ a a    

Running Examples a a b b $ $     e e f f $ $     3 3 g g   i i   h h   c c d d $ $     5 5 The activation  is free. The service  costs 1$. The activation  costs 5$. The service  is free. The activation  costs 3$. The service  is free for 3 times and then it costs 1$. THEY ARE ALL DIFFERENT I have 1$ and I need 1  I have 5$ and I need 6 

Running Examples l l q q     m m $ $     3 3 n n   p p   o o   This behaves as a or e: either the activation  is free and the service  costs 1$. Or the activation costs 3$ and then for 3 times the service is free and then it costs 1$. IS IT DIFFERENT FROM ALL THE PREVIOUS??? a a b b $ $     The activation  is free. The service  costs 1$. $ $     $ $     a a b b $ $     e e f f $ $     3 3 g g   i i   h h  

Plan of the Talk Compositionality Saturated Semantics Symbolic Semantics Saturated Coalgebras Normalized Coalgebras As running example, we will use Petri nets

Symbolic Transition System pq C[-] C[ p ] q C[-] is a context is a label intuitively C[-] is “the smallest context” that allows such transition

Symbolic Transition System a a b b $ $     c c d d $ $     5 5 e e f f $ $     3 3 g g   i i   h h   ab  $   cd  5$   e f g h i 3$        $         

Symbolic Semantics a symbolic LTS + a set of deduction rules In our running example m n m$m$n$n$ p q D[p] ’ E[q]  p,q p,q

Inference relation Given a symbolic transition system and a set of deduction rules, we can infer other transitions p q C[-] p ’ q’ C’[-]

Inference relation ab   b$ $$ $$$  b$ n $ n  m n m$m$n$n$ a a b b $ $    

Bisimilarity over the Symbolic TS is too strict l l q q     m m $ $     3 3 n n   p p   o o   lmno p 3$     $    q  $    a a b b $ $     ab  $  

Plan of the Talk Compositionality Saturated Semantics Symbolic Semantics Saturated Coalgebras Normalized Coalgebras As running example, we will use Petri nets

Category of interfaces and contexts Objects are interfaces Arrows are contexts Functors from C to Set are algebras for Г(C) Set C  Alg Г(C) One object: {$} Arrows: -  $ n : {$}  {$} for our nets

Saturated Transition System as a coalgebra Ordinary LTS having as labels ||C|| and Λ F:Set  Set F(X)=  (||C||  Λ  X) We lift F to F: Alg Г(C)  Alg Г(C) (saturated transition system as a bialgebra) pq C[-]

Adding the Inference Relation An F-Coalgebra is a pair ( X,  : X  F( X )) The set of deduction rules induces an ordering on||C||  Λ  X X ab   b$ $$ $$$  b$ n $ n 

Saturated Coalgebras A set in  (||C||  Λ  X) is saturated in X if it is closed wrt S: Alg Г(C)  Alg Г(C) the carrier set of S( X ) is the set of all saturated sets of transitions E.g: the saturated transition system is always an S-coalgebra X

Saturated Coalgebras Coalg F Coalg S THM: Coalg S is a covariety of Coalg F THM: Saturated Coalgebras are not bialgebras 1F1F 1S1S

Redundant Transitions ……… … …… partial order ||C||  Λ  X, X Saturated Set Given a set A in  (||C||  Λ  X), a transition is redundant if it is not minimal

Normalized Set ……… … …… partial order ||C||  Λ  X, X Saturated Set A set in  (||C||  Λ  X) is normalized if it contains only NOT redundant transitions Normalized Set Saturation Normalization

Normalized Coalgebras N: Alg Г(C)  Alg Г(C) the carrier set of N( X ) is the set of all normalized sets of transitions For h: X  Y, the definition of N(h) is peculiar ……… … …… ………… ||C||  Λ  X, X ||C||  Λ  Y, y This is redundant

Running Example lmno p 3$     $    q  $    ab  $   b$ $$ b$ $ b$       3$  l l q q     m m $ $     3 3 n n   p p   o o   a a b b $ $    

Isomorphism Theorem Proof: Saturation and Normalization are two natural isomorphisms between S and N Coalg F Coalg S Coalg N Saturation Normalization

Conclusions Bisimilarity of Normalized Colagebras coincides with Saturated Bisimilarity Minimal Symbolic Automata Symbolic Minimization Algorithm [Bonchi, Montanari - ESOP 09] Coalgebraic Semantics for several formalisms (asynchronous PC, Ambients, Open nets …) Normalized Coalgebras are not Bialgebras

Questions ?