General Description of Network Systems  Ugo Montanari  Dipartimento di Informatica, University of Pisa CINA: Compositionality, Interaction, Negotiation,

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

CommUnity, Tiles and Connectors joint work with Roberto Bruni José Luiz Fiadeiro Antónia Lopes Ugo Montanari Ivan Lanese Dipartimento di Informatica Università.
Connectors and Concurrency joint work with Ugo Montanari Roberto Bruni Dipartimento di Informatica Università di Pisa Dagstuhl Seminar #04241, September.
Signals and Systems March 25, Summary thus far: software engineering Focused on abstraction and modularity in software engineering. Topics: procedures,
1.6 Behavioral Equivalence. 2 Two very important concepts in the study and analysis of programs –Equivalence between programs –Congruence between statements.
1 Relational Algebra & Calculus. 2 Relational Query Languages  Query languages: Allow manipulation and retrieval of data from a database.  Relational.
An Introduction to Variational Methods for Graphical Models.
Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen Marcello Bonsangue, Stefan Milius, Alexandra Silva Coalgebras and Generalized Regular.
Roberto Pisa, Italy 13 June 2008 WADT Tiles for Reo Roberto Bruni Dipartimento di Informatica Università di Pisa WADT th International.
A Semantic Characterization of Unbounded-Nondeterministic Abstract State Machines Andreas Glausch and Wolfgang Reisig 1.
1 Ivan Lanese Computer Science Department University of Bologna Italy Exploiting user-definable synchronizations in graph transformation.
Tiling Transactions in Rewriting Logic Roberto Bruni (Pisa/Illinois) José Meseguer (Illinois) Ugo Montanari (Pisa) WRLA 2002 Pisa, Italia, Sept.
A denotational framework for comparing models of computation Daniele Gasperini.
1 Synchronization strategies for global computing models Ivan Lanese Computer Science Department University of Bologna.
1 Formal Models for Transactions: Petri Nets Roberto Bruni Dipartimento di Informatica Università di Pisa Models and Languages for Coordination and Orchestration.
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 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 Formal Models for Distributed Negotiations Concurrent Languages Translation Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela.
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 Formal Models for Distributed Negotiations Petri Nets Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
1 Ivan Lanese Dipartimento di Informatica Università di Pisa Ugo Montanari From Graph Rewriting to Logic Programming joint work with.
1 Mapping Fusion and Synchronized Hyperedge Replacement into Logic Programming joint work with Ugo Montanari Ivan Lanese Dipartimento di Informatica Università.
Synchronized Hyperedge Replacement for Heterogeneous Systems joint work with Emilio Tuosto Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
1 Formal Models for Transactions: Zero Safe Nets Roberto Bruni Dipartimento di Informatica Università di Pisa Models and Languages for Coordination and.
Taylor Expansion Diagrams (TED): Verification EC667: Synthesis and Verification of Digital Systems Spring 2011 Presented by: Sudhan.
1 Ivan Lanese Computer Science Department University of Pisa Prof. Ugo Montanari Synchronization strategies for global computing Relator: Thesis Progress.
Pre-nets, (read arcs) and unfolding: A functorial presentation Paolo Baldan (Venezia) Roberto Bruni (Pisa/Illinois) Ugo Montanari (Pisa) WADT Frauenchiemsee,
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.
1 Formal Models for Distributed Negotiations From Petri Nets to Join Calculus Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela.
Modeling a Service and Session Calculus with Hierarchical Graph Transformation Roberto Bruni, Andrea Corradini, Ugo Montanari (based on joint work with.
Modeling Community with Tiles joint work with Ivan Lanese Ugo Montanari Dipartimento di Informatica Università di Pisa Roberto Bruni Dipartimento di Informatica.
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 Relational Algebra and Calculus Yanlei Diao UMass Amherst Feb 1, 2007 Slides Courtesy of R. Ramakrishnan and J. Gehrke.
1 Algebraic Theories for Contextual Pre-Nets Roberto Bruni - Dipartimento di Informatica, Università di Pisa joint work with: José Meseguer (UIUC) Ugo.
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.
Signals and Systems March 25, Summary thus far: software engineering Focused on abstraction and modularity in software engineering. Topics: procedures,
1 Relational Algebra and Calculus Chapter 4. 2 Relational Query Languages  Query languages: Allow manipulation and retrieval of data from a database.
Coalgebraic Symbolic Semantics Filippo Bonchi Ugo Montanari.
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Introduction to Formal Methods Based on Jeannette M. Wing. A Specifier's Introduction to Formal Methods. IEEE Computer, 23(9):8-24, September,
Categories and Computer Science
Advanced Topics in SE Spring Process Algebra Hossein Hojjat Formal Methods Lab University of Tehran.
Advanced Topics in Software Engineering Marjan Sirjani Tehran University Faculty of Engineering ECE Department Tehran,
1 Relational Algebra & Calculus Chapter 4, Part A (Relational Algebra)
1 Relational Algebra and Calculas Chapter 4, Part A.
Coalgebraic components in a many-sorted microcosm Ichiro Hasuo Kyoto, JP Chris Heunen Nijmegen, NL (  Oxford, UK) Bart Jacobs Nijmegen, NL Ana Sokolova.
Categorical Categorical theory of state-based systems in Sets : bisimilarity in Kleisli: trace semantics [Hasuo,Jacobs,Sokolova LMCS´07] in Sets : bisimilarity.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Modelling by Petri nets
Mathematical Preliminaries
Weak Bisimilarity Coalgebraically Andrei Popescu Department of Computer Science University of Illinois.
CAP 4800/CAP 5805: Computer Simulation Concepts
What’s Ahead for Embedded Software? (Wed) Gilsoo Kim
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
High Performance Embedded Computing © 2007 Elsevier Lecture 4: Models of Computation Embedded Computing Systems Mikko Lipasti, adapted from M. Schulte.
Operational Semantics Mooly Sagiv Tel Aviv University Sunday Scrieber 8 Monday Schrieber.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
Architectural Design Rewriting as Architectural Description Language R. Bruni A. LLuch-Lafuente U. Montanari E. Tuosto.
Technology of information systems Lecture 5 Process management.
Rewriting Nested Graphs, through Term Graphs Roberto Bruni, Andrea Corradini, Fabio Gadducci Alberto Lluch Lafuente and Ugo Montanari Dipartimento di Informatica,
COMPONENT & DEPLOYMENT DIAGRAMS
Validating Reconfigurations of Reo Circuits
Event-Based Architecture Definition Language
Copyright © Cengage Learning. All rights reserved.
Presentation transcript:

General Description of Network Systems  Ugo Montanari  Dipartimento di Informatica, University of Pisa CINA: Compositionality, Interaction, Negotiation, Autonomicity, MIUR PRIN Project Final General Meeting, January 19-21, 2016, Civitanova joint work with Roberto Bruni (and others)

Networks  hypergraphs with labels, structure and observation interface  labels/buffer content may change with executions  structure usually changes only via explicit reconfiguration operations CINA, Civitanova Marche, January Ugo Montanari 2

Roadmap Networks Milner flowgraph algebras Denotational process algebras (Soft) constraint networks Networks as components & connectors Petri nets Signal flow graphs Electric circuits PROPS: product permutation categories From graphs to categories Petri nets Rewriting logic Process calculi Conclusions CINA, Civitanova Marche, January Ugo Montanari 3

Roadmap Networks Milner flowgraph algebras Denotational process algebras (Soft) constraint networks Networks as components & connectors Petri nets Signal flow graphs Electric circuits PROPS: product permutation categories From graphs to categories Petri nets Rewriting logic Process calculi Conclusions CINA, Civitanova Marche, January Ugo Montanari 4

Ugo Montanari Communication networks & routing Neural networks & connectivism Computer networks Stochastic models of the internet (Barabasi, Simon) Social networks and concept mining, complex systems Computation, semantics, economics of networks Networks of connectors & buffers 5 A Variety of Networks

Flow Graphs and Flow Algebras Robin Milner, Flow Graphs and Flow Algebras, JACM 1979 CINA, Civitanova Marche, January Ugo Montanari 6

Flow Graphs and Flow Algebras Robin Milner, Flow Graphs and Flow Algebras, JACM 1979 CINA, Civitanova Marche, January Ugo Montanari 7

CHARM, Chemical Abstract with Restriction Machine Corradini, Montanari, Rossi, An Abstract Machine for Concurrent Modular Systems: CHARM, TCS 1994 Parallel composition fuses visible nodes and hyperarcs with the same name Modelling concurrent constraint programming Modelling P/T Petri nets CINA, Civitanova Marche, January Ugo Montanari 8

Denotational Semantics CINA, Civitanova Marche, January Ugo Montanari 9  George Milne, Robin Milner, Concurrent Processes and Their Syntax, JACM 1979 Tony Hoare, Communicating Sequential Processes, CACM 1978  Interpreting the algebra in a semantic domain

Networks of (soft) Constraints CINA, Civitanova Marche, January Ugo Montanari 10  Bistarelli, Montanari, Rossi, Semiring-Based Constraint Satisfaction and Optimization, JACM 1997  Semiring definition of constraint composition  c: (V→D)→S  (c 1 x c 2 )η = c 1 η x c 2 η

11 Seite Courcelle Graph Algebras Graphs have an interface with a list of visible nodes called sources. There are basic graphs consisting of a single vertex or edge and three classes of operations on graphs:  disjoint union where source lists are concatenated  fusion of sources  permutation, duplication and restriction of sources every operation is indexed by the arities of the involved sources: thus there are infinite operations The sets of graphs of bounded treewidth are exactly those that can be constructed using only a finite number of operations (but possibly unboundedly many times). Alternatively, the sets of graphs of bounded treewidth are subsets of graph languages generated by hyperedge replacement graph grammars CINA, Civitanova Marche, January Ugo Montanari 11

12 Seite Structural Recursion on Graph Operations Inductive families of evaluations on Courcelle operations (or on graph productions) can be defined on several discrete and continuous domains. In practice, a tuple of properties must be defined on graph syntactic trees by structural recursion. It should be proved that the result of the evaluation does not depend on the particular syntactic tree of the given graph. CINA, Civitanova Marche, January Ugo Montanari 12

13 Seite Terminal Reliability An example: probability of a multiparty connection in a network all the arcs have independent probabilities of failure A subgraph connected to the rest of the graph by a set V of nodes a probability distribution assigns to each partition P of V the probability that exactly the nodes in each class of P are actually connected Inductively, given a graph production and the probability distributions for all the nonterminals in its right hand side compute the connection probability for the right hand side. Fratta, L., and Montanari, U., Terminal Reliability in a Communication Network: An Efficient Algorithm, Second International Symposium on Network Theory, Herceg-Novi, July 3-7, 1972, pp CINA, Civitanova Marche, January Ugo Montanari 13

14 Seite Back to (Almost) Milner + structural congruence: commutative monoidality of ||, α-conversion, swapping of restrictions + nominal structure CINA, Civitanova Marche, January Ugo Montanari Problem made of two subproblems p and q Assignment for x in p has already been determined Atomic subproblem of a single constraint A Empty subproblem 14 Terms up-to structural congruence are (hyper)graphs with hidden nodes: A(X) is a graph consisting of a single hyperedge and its distinct nodes

15 Seite Nominal structure CINA, Civitanova Marche, January Ugo Montanari bijective with axioms + distributivity over all other operators Permutations come with a notion of “untyped” free variables, independent on the specific algebra Signature includes permutations 15

16 Seite Secondary Optimization Problem CINA, Civitanova Marche, January Ugo Montanari Scope extension allows us to choose the order of variable elimination (secondary optimization problem) … Normal form (x)(y)(z)(v)(f 1 (x,y)+f 2 (y,z)+f 3 (z,v)+f 4 (v,x)) Canonical forms (x)(y)(f 1 (x,y)+(z)(f 2 (y,z)+(v)(f 3 (z,v)+f 4 (v,x)))) (y)(z)(f 2 (y,z)+(v)(f 3 (z,v)+(x)(f 4 (v,x)+f 1 (x,y)))) … Apply from left to right as much as you can => assign variables as soon as you can 16

Roadmap Networks Milner flowgraph algebras Denotational process algebras (Soft) constraint networks Networks as components & connectors Petri nets Signal flow graphs Electric circuits PROPS: product permutation categories From graphs to categories Petri nets Rewriting logic Process calculi Conclusions CINA, Civitanova Marche, January Ugo Montanari 17

Ugo Montanari 18 Two decades ago:  Sw systems seen as a collection of cooperating reusable components emerged as a trend Sw architectures are centered around three main kinds of elements:  processing elements (components),  data elements, and  connecting elements (connectors) Components, Data, and Connectors

Ugo Montanari Some Connectors from Literature 19

Ugo Montanari Reo by Arbab at al. channels and bounded buffers Some Connectors from Literature 20

Ugo Montanari Some Connectors from Literature BIP by Sifakis at al. 21

Ugo Montanari Span(Graph) by Katis, Sabadini and Walters Some Connectors from Literature 22

Ugo Montanari One-place buffers Some Connectors from Literature 23

Ugo Montanari Connectors can be seen as black boxes input interface output interface admissible signals on interfaces Abstract semantics is just a matrix n inputs  2 n rows m outputs  2 m columns sequential composition is matrix multiplication parallel composition is matrix expansion …  0101  0010 … …111001… Abstract Semantics

Ugo Montanari An Example: Symmetries  11  10  01  = connectors boxes are immaterial

Ugo Montanari Tiles Combine horizontal and vertical structures through interfaces initial configuration final configuration trigger effect

Ugo Montanari Tiles Compose tiles horizontally

Ugo Montanari Tiles Compose tiles horizontally (also vertically and in parallel)

Ugo Montanari 29 Sobocinski’s Nets with Boundaries Over-simplified graphical notation: transitions are not drawn Boundaries = attach points for pending arcs Composition = can fuse and multiply transitions +

PROPS: PRoduct Permutation categories The basic structure: symmetric monoidal categories sequential and parallel composition permutation of wires axiomatization = string diagram isomorphism additional connectors with axioms Petri nets: 4 binary connectors: AND, OR, coAnd, coOR and buffers most general combination of synchronization and nondeterminism coalgebraic theory for F(X) = P(A x X) bialgebraic theory: operations preserve bisimilarity standard representatives of equivalence classes for finite Petri nets Signal flow graphs => Electric circuits => CINA, Civitanova Marche, January Ugo Montanari 30

Signal Flow Graphs  Foundations of control theory  S. J. Mason. Feedback Theory: I. Some Properties of Signal Flow Graphs. Massachusetts Institute of Technology, Research Laboratory of Electronics,  Coalgebraic theory for F(X) = A x X  J. J. M. M. Rutten. A tutorial on coinductive stream calculus and signal flow graphs, TCSSci.,  PROP treatment  Bonchi, Sobocinski, Zanasi, A Categorical Semantics of Signal Flow Graphs, CONCUR 2014  a sound and complete graphical theory of vector subspaces over the field of polynomial fractions, with relational composition  buffers are derivatives in the operational calculus (e.g. via Laplace transforms)  deterministic functional vs deadlock-prone relational CINA, Civitanova Marche, January Ugo Montanari 31

Electric Circuits  John C. Baez, Brendan Fong, A Compositional Framework for Passive Linear Networks, arXiv.org  resistor, reactors and capacitors  buffers represent derivatives of the operational calculus  nodes of the network with two values  a potential (voltage of the node)  and a current (current entering/exiting the node)  again coalgebraic theory for F(X) = A x X  the temporal series of the final coalgebra  represent the temporal behavior of the circuit  similar to the functional definition  vs. temporal behavior of Fibonacci. CINA, Civitanova Marche, January Ugo Montanari 32

Roadmap Networks Milner flowgraph algebras Denotational process algebras (Soft) constraint networks Networks as components & connectors Petri nets Signal flow graphs Electric circuits PROPS: product permutation categories From graphs to categories Petri nets Rewriting logic Process calculi Conclusions CINA, Civitanova Marche, January Ugo Montanari 33

Algebraic “ Petri nets are monoids ” by Meseguer, Montanari –Algebra of (concurrent) computations via the lifting of the monoidal structure of markings to steps and computations sequential composition “ ; ” (of computations) plus identities (idle steps) plus parallel composition  (of markings, steps and computations) plus functoriality of  (concurrency!) leads to a (strictly) symmetric monoidal category of computations Collective Token Philosophy (CTPh) –T (_) (commutative processes) Individual Token Philosophy (ITPh) –P (_) (concatenable processes) CINA, Civitanova Marche, January Ugo Montanari 34

Collective vs. Token View Best-Devillers vs. Goltz-Reisig processes CINA, Civitanova Marche, January Ugo Montanari 35

The ITPh Story, I PTNetsDecOcc U (_) (_) + D (_) F (_) Sassone ’ s chain of adjunctions SafeOccPES Winskel ’ s chain of coreflections U (_) E (_) N (_) L (_) Pr (_) Petri * SMonCat * PreOrd P (N) Dom (_)  CINA, Civitanova Marche, January Ugo Montanari 36

Pre-Nets Under the CTPh, the construction T (_) is completely satisfactory –T (_) is left adjoint to the forgetful functor from CMonCat  to Petri –T (_) can be conveniently expressed at the level of (suitable) theories (e.g. in PMEqtl) But the CTPh does not model concurrency We argue that, under the ITPh, all the difficulties are due to the multiset (marking) view of states Pre-nets (Roberto Bruni et al.) are the natural implementation of P/T nets under the ITPh –pre-sets and post-sets are strings, not multisets! –for each transition t: u  v, just one implementation t p,q : p  q is considered CINA, Civitanova Marche, January Ugo Montanari 37

Pre-Nets, Algebraically Under the ITPh, the construction Z (_) is completely satisfactory –Z (_) is left adjoint to the forgetful functor from SMonCat  to PreNets –Z (_) can be conveniently expressed at the level of (suitable) theories (e.g. in PMEqtl) –All the pre-nets implementations R of the same P/T net N have isomorphic Z (R) –P (N) can be recovered from (any) Z (R) PreNetsSMonCat  Z (_) G (_) CINA, Civitanova Marche, January Ugo Montanari 38

The Pre-Net Picture PreNetsPreOccPESDom U (_) E (_) ? L (_) Pr (_) PreOrd (_)  SMonCat  Z (_) G (_) Functorial diagram reconciling all views Algebraic semantics via adjunction A missing link in the unfolding PTNets A (_)  CINA, Civitanova Marche, January Ugo Montanari 39

Operational Concurrency Quite similar developments: Term rewriting (2-categories), Jose Meseguer Logic programming (double categories), Andrea Corradini Graphs (DPO / SPO) Paolo Baldan Process Calculi (Tiles, monoidal double categories), Fabio Gadducci, Roberto Bruni CINA, Civitanova Marche, January Ugo Montanari 40

Roadmap Networks Milner flowgraph algebras Denotational process algebras (Soft) constraint networks Networks as components & connectors Petri nets Signal flow graphs Electric circuits PROPS: product permutation categories From graphs to categories Petri nets Rewriting logic Process calculi Conclusions CINA, Civitanova Marche, January Ugo Montanari 41

Conclusion  Additional kinds of networks  Computational fields  Synchronized hyperedge replacement  Neural networks  Bayesian networks  Additional interpreted domains  Cyberphysical systems  Hardware and software architectures  Heterogeneous systems CINA, Civitanova Marche, January Ugo Montanari 42