Complete Axioms for Stateless Connectors joint work with Roberto Bruni and Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.

Slides:



Advertisements
Similar presentations
CommUnity, Tiles and Connectors joint work with Roberto Bruni José Luiz Fiadeiro Antónia Lopes Ugo Montanari Ivan Lanese Dipartimento di Informatica Università.
Advertisements

Connectors and Concurrency joint work with Ugo Montanari Roberto Bruni Dipartimento di Informatica Università di Pisa Dagstuhl Seminar #04241, September.
Lecture 24 MAS 714 Hartmut Klauck
Process Algebra (2IF45) Abstraction in Process Algebra Suzana Andova.
Relational Algebra, Join and QBE Yong Choi School of Business CSUB, Bakersfield.
Introduction to Graph “theory”
1 Reversibility for Recoverability Ivan Lanese Computer Science Department FOCUS research group University of Bologna/INRIA Bologna, Italy.
Roberto Pisa, Italy 13 June 2008 WADT Tiles for Reo Roberto Bruni Dipartimento di Informatica Università di Pisa WADT th International.
1 Ivan Lanese Computer Science Department University of Bologna Italy Exploiting user-definable synchronizations in graph transformation.
1 Synchronization strategies for global computing models Ivan Lanese Computer Science Department University of Bologna.
2.III. Basis and Dimension 1.Basis 2.Dimension 3.Vector Spaces and Linear Systems 4.Combining Subspaces.
1 Ivan Lanese Computer Science Department University of Bologna Roberto Bruni Computer Science Department University of Pisa A mobile calculus with parametric.
1 Formal Models for Distributed Negotiations Description Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
1 Formal Models for Distributed Negotiations Zero-Safe Nets Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
Synchronization Algebras with Mobility for Graph Transformations joint work with Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese.
1 Ivan Lanese Computer Science Department University of Bologna Italy Behavioural Theory for SSCC Joint work with Luis Cruz-Filipe, Francisco Martins,
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.
New insights on architectural connectors joint work with Roberto Bruni University of Pisa, Italy Ugo Montanari University of Pisa, Italy José Luiz Fiadeiro.
1 GT-VC 2005, San Francisco, August 22, 2005 Ugo Montanari Università di Pisa Ivan Lanese Università di Pisa Hoare vs. Milner: Comparing Synchronizations.
1 Ivan Lanese Dipartimento di Informatica Università di Pisa Ugo Montanari From Graph Rewriting to Logic Programming joint work with.
Bridging the gap between Interaction- and Process-Oriented Choreographies Talk by Ivan Lanese Joint work with Claudio Guidi, Fabrizio.
Synchronized Hyperedge Replacement for Heterogeneous Systems joint work with Emilio Tuosto Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
Bridging the gap between Interaction- and Process-Oriented Choreographies Talk by Ivan Lanese Joint work with Claudio Guidi, Fabrizio Montesi and Gianluigi.
1 Static vs dynamic SAGAs Ivan Lanese Computer Science Department University of Bologna/INRIA Italy.
1 Formal Models for Transactions: Zero Safe Nets Roberto Bruni Dipartimento di Informatica Università di Pisa Models and Languages for Coordination and.
1 Ivan Lanese Computer Science Department University of Pisa Prof. Ugo Montanari Synchronization strategies for global computing Relator: Thesis Progress.
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.
Semantics with Applications Mooly Sagiv Schrirber html:// Textbooks:Winskel The.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Modeling Community with Tiles joint work with Ivan Lanese Ugo Montanari Dipartimento di Informatica Università di Pisa Roberto Bruni Dipartimento di Informatica.
1 Ivan Lanese Computer Science Department University of Bologna Italy Behavioural Theory at Work: Program Transformations in a Service-centred Calculus.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
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 Italy Streaming Services in SSCC Joint work with Francisco Martins, Vasco Vasconcelos and.
1 Ivan Lanese Computer Science Department University of Bologna Synchronization strategies for global computing models.
Synchronizations with Mobility for Graph Transformations joint work with Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
Process Algebra (2IF45) Basic Process Algebra (Soundness proof) Dr. Suzana Andova.
Systems and Matrices (Chapter5)
1 IFIP WG1.3, Udine, September 12, Ugo Montanari, Coalgebras for Named Sets Ugo Montanari Dipartimento di Informatica Università di Pisa Coalgebras.
Coalgebraic Symbolic Semantics Filippo Bonchi Ugo Montanari.
1 2. Independence and Bernoulli Trials Independence: Events A and B are independent if It is easy to show that A, B independent implies are all independent.
SDS Foil no 1 Process Algebra Process Algebra – calculating with behaviours.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Introduction to Graph “theory” Why do we care about graph theory in testing and quality analysis? –The “flow” (both control and data) of a design, within.
Reactive systems – general
Ivan Lanese Computer Science Department University of Bologna/INRIA Italy Amending Choreographies Joint work with Fabrizio Montesi and Gianluigi Zavattaro.
Mathematical Preliminaries
Weak Bisimilarity Coalgebraically Andrei Popescu Department of Computer Science University of Illinois.
Properties as Processes : FORTE slide Properties as Processes: their Specification and Verification Joel Kelso and George Milne School of Computer.
Basic probability Sep. 16, Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies.
Process Algebra (2IF45) Abstraction Parallel composition (short intro) Suzana Andova.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Laurea Triennale in Informatica – Corso di Ingegneria del Software I – A.A. 2006/2007 Andrea Polini VIII. Specifications (II)
Rewriting Nested Graphs, through Term Graphs Roberto Bruni, Andrea Corradini, Fabio Gadducci Alberto Lluch Lafuente and Ugo Montanari Dipartimento di Informatica,
Unit-III Algebraic Structures
ANALYSIS OF SEQUENTIAL CIRCUITS
Process Algebra (2IF45) Expressiveness of BPArec
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
Chapter 3 The Relational Database Model
Basis and Dimension Basis Dimension Vector Spaces and Linear Systems
Chapter 9 Structuring System Requirements: Logic Modeling
4b Lexical analysis Finite Automata
2.III. Basis and Dimension
4b Lexical analysis Finite Automata
Chapter 9 Structuring System Requirements: Logic Modeling
Copyright © Cengage Learning. All rights reserved.
A MODULAR LTS FOR OPEN REACTIVE SYSTEMS
Presentation transcript:

Complete Axioms for Stateless Connectors joint work with Roberto Bruni and Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento di Informatica Università di Pisa CALCO 2005, Swansea, Wales, UK, 3-6 September 2005

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Roadmap Why connectors? The tile model Stateless connectors Axiomatization of synch-connectors Adding mutual exclusion Concluding remarks

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Roadmap Why connectors? The tile model Stateless connectors Axiomatization of synch-connectors Adding mutual exclusion Concluding remarks

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Interaction and connectors Modern systems are huge composed by different entities that collaborate to reach a common goal interactions are performed at some well- specified interfaces… …and are managed by connectors Connectors allow separation between computation and coordination

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Coordination via connectors Connectors useful to ensure compatibility among independently developed components allow to reuse them allow run-time reconfiguration Connectors exist at different levels of abstraction (architecture, applications, …)

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Which connectors? We follow the algebraic approach system as term in an algebra We propose an algebra of simple stateless connectors for synchronization and mutual exclusion expressive enough to model the architectural connectors of CommUnity [IFIP TCS 04] build on symmetric monoidal categories and P- monoidal categories related to Stefanescu’s flow algebras and REO connectors

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Roadmap Why connectors? The tile model Stateless connectors Axiomatization of synch-connectors Adding mutual exclusion Concluding remarks

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari The tile model Operational and observational semantics of open concurrent systems compositional in space and time Category based

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari parallel composition Configurations input interface output interface sequential composition

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Configurations input interface output interface parallel composition sequential composition functoriality

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Configurations input interface output interface parallel composition sequential composition functoriality + symmetries = symmetric monoidal cat

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Observations initial interface final interface concurrent computation

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Tiles Combine horizontal and vertical structures through interfaces initial configuration final configuration trigger effect

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Tiles Compose tiles horizontally

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Tiles Compose tiles horizontally (also vertically and in parallel) symmetric monoidal double cat

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Tiles as LTS Structural equivalence axioms on configurations (e.g. symmetries) LTS states = configurations transitions = tiles labels = (trigger,effect) pairs Observational semantics tile trace equivalence/bisimilarity congruence results for suitable formats

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Roadmap Why connectors? The tile model Stateless connectors Axiomatization of synch-connectors Adding mutual exclusion Concluding remarks

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Connectors Connectors to express synchronization and mutual exclusion constraints on local choices Possible outcomes: tick (1, action performed) or untick (0, action forbidden) Operational semantics via tiles and observational semantics via tile bisimilarity Denotational semantics via tick-tables (boolean matrices) Complete axiomatization of connectors and reduction to normal form

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Basic connectors !!00 Symmetry Duplicator Bang Mex Zero

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Notation Only two kinds of allowed observations Initial and final states always coincide (since connectors are stateless) Thus we can use a “flat” notation for tiles 1 0

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Operational semantics Tiles specify the behaviours of basic connectors When composed, connectors must agree on the observation at the interfaces

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Basic tiles (I) Dual connectors have dual tiles

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Basic tiles (II) ! ! 0

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Connectors can be seen as black boxes input interface output interface admissible observations on interfaces Denotations are just matrixes n inputs  2 n rows m outputs  2 m columns dual is transposition sequential composition is matrix multiplication parallel composition is matrix expansion cells are filled with empty/copies of matrices …  0101  0010 … …111001… Denotational semantics domain is {input 3, outputs 1,2,3}

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Denotational semantics  1   1  0 10  11  10  01   1  0. !  1   0. 0

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Semantic correspondance Tile bisimilarity coincides with tile trace equivalence (stateless property) Two connectors are tile bisimilar iff they have the same associated tick-tables Tile bisimilarity is a congruence

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Roadmap Why connectors? The tile model Stateless connectors Axiomatization of synch-connectors Adding mutual exclusion Concluding remarks

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Axiomatization We want to find a complete axiomatization for the bisimilarity of connectors Synch-connectors (without mex and zero) symmetries, duplicators and bangs form a gs- monoidal category adding dual connectors we get a P-monoidal category No simple known axiomatization works for mex, but we show an axiomatization for the full class of connectors

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Gs-monoidal axioms = = = = !

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Additional P-monoidal axioms == = !!.

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Synch-tables Entry with empty domain is enabled Entries are closed under (domains) union intersection difference complementation Base: set of minimal (non empty) entries w.r.t. domain intersection Each synch-table is determined by its base

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Normal form Sort connectors ! ! …… … … Central points (correspond to cells of the base) Hiding connectors directly connected to central points Central points are connected to at least one external interface

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Properties All the axioms bisimulate (correctness) Each connector can be transformed in normal form using the axioms Bijective correspondance between synch- tables and connectors in normal form

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Roadmap Why connectors? The tile model Stateless connectors Axiomatization of synch-connectors Adding mutual exclusion Concluding remarks

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Adding mex and zero Synch-connectors are not expressive enough (only synchronization) Adding mex and zero to express mutual exclusion constraints and enforce inactivity Just mex has to be inserted: zero and dual connectors can be derived Mex and zero form a gs-monoidal category

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Obtaining zero connector = 1  0 10  1   01   10 = x = ! def 1  0. 00

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Obtaining comex connector = ! ! ! Hiding and synchronization allow to flip wires

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Looking for axiomatization of mex = 

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Looking for axiomatization of mex = 

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Looking for axiomatization of mex =  

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Looking for axiomatization of mex =  

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Looking for axiomatization of mex =  

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Key axioms 

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Key axioms = ! ! = ! ! !

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Some axioms about mex-dup = =

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Some axioms about zero = 0 0 == 0 0 = 0 0 = 0 !0 !0 =.= 0

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari A sample proof 00 = ! 0 = ! 0 0 =. ! = 0

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Additional axioms = !

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari An axiom scheme ! ! ! ……

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari An axiom scheme ! … !

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Entry with empty domain is enabled All the tables with that property can be expressed Generalized sorted and normal form Full tables

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables Zeros directly connected to free variables

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables Hiding connected to roots of mex or to central points

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables Each hidden variable is connected to at most two central points

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables At most one path between a central point and a variable

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables No hidden variables are connected to the same central points

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables No two central points have the same set of variables

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables Each central point is connected to at least a free variable

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables Each pair of central points share at least a variable

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Full tables Hidden variables attached to roots of mex are on the left

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Properties Full extension of the properties of synch- connectors all the axioms bisimulate each connector can be transformed in normal form using the axioms bijective correspondance between tables and connectors in normal form More complex axiomatization and normalization

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Roadmap Why connectors? The tile model Stateless connectors Axiomatization of synch-connectors Adding mutual exclusion Concluding remarks

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Conclusions Full correspondences between observational semantics denotational semantics equivalence classes modulo axioms Normalization allows to find a standard representative

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Axiomatization and colimits In [IFIP TCS 04] connectors used to model CommUnity Translation of a diagram is isomorphic to the translation of the colimit Now: translation of a diagram is equal up to the axioms to the translation of the colimit Furthermore normalization allows to algebraically compute the colimit

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Comparison with REO connectors REO connectors add directionality and data flow For synchronization purposes the two kinds of connectors are almost equivalent REO connectors allow some state (buffers) and some priority among configurations (LossySync) Algebraic theory of REO connectors less developed (as far as we know)

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari Future work Open problem: does a finite axiomatization exist? maybe Wan Fokkink techniques Extend the results to larger classes of connectors actions ruled by a synchronization algebra (instead of just 0 and 1) REO connectors probabilistic connectors

CALCO 2005, 3-6 September, Swansea, Wales, UK Bruni, Lanese, Montanari