Complete Axioms for Stateless Connectors

About This Presentation
Title:

Complete Axioms for Stateless Connectors

Description:

The tile model. Operational and observational semantics of open concurrent systems ... tile bisimilar iff they have the same associated tick-tables. Tile ... – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 68
Provided by: csUn5

less

Transcript and Presenter's Notes

Title: Complete Axioms for Stateless Connectors


1
Complete Axioms for Stateless Connectors
CALCO 2005, Swansea, Wales, UK, 3-6 September 2005
Ivan Lanese Dipartimento di Informatica
Università di Pisa
joint work with Roberto Bruni and Ugo
Montanari Dipartimento di Informatica Università
di Pisa
2
Roadmap
  • Why connectors?
  • The tile model
  • Stateless connectors
  • Axiomatization of synch-connectors
  • Adding mutual exclusion
  • Concluding remarks

3
Roadmap
  • Why connectors?
  • The tile model
  • Stateless connectors
  • Axiomatization of synch-connectors
  • Adding mutual exclusion
  • Concluding remarks

4
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

5
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, )

6
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 Stefanescus flow algebras and REO
    connectors

7
Roadmap
  • Why connectors?
  • The tile model
  • Stateless connectors
  • Axiomatization of synch-connectors
  • Adding mutual exclusion
  • Concluding remarks

8
The tile model
  • Operational and observational semantics of open
    concurrent systems
  • compositional in space and time
  • Category based

9
Configurations
output interface
input interface
10
Configurations
output interface
input interface
parallel composition
functoriality
sequential composition
11
Configurations
output interface
input interface
parallel composition
functoriality symmetries symmetric monoidal
cat
sequential composition
12
Observations
initial interface
final interface
13
Tiles
  • Combine horizontal and vertical structures
    through interfaces

14
Tiles
  • Compose tiles
  • horizontally

15
Tiles
  • Compose tiles
  • horizontally
  • (also vertically and in parallel)

symmetric monoidal double cat
16
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

17
Roadmap
  • Why connectors?
  • The tile model
  • Stateless connectors
  • Axiomatization of synch-connectors
  • Adding mutual exclusion
  • Concluding remarks

18
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

19
Basic connectors
  • Symmetry

Duplicator
Bang
Mex
Zero
20
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

21
Operational semantics
  • Tiles specify the behaviours of basic connectors
  • When composed, connectors must agree on the
    observation at the interfaces

22
Basic tiles (I)
Dual connectors have dual tiles
23
Basic tiles (II)
24
Denotational semantics
  • Connectors can be seen as black boxes
  • input interface
  • output interface
  • admissible observations on interfaces
  • Denotations are just matrixes
  • n inputs ? 2n rows
  • m outputs ? 2m columns
  • dual is transposition
  • sequential composition is matrix multiplication
  • parallel composition is matrix expansion
  • cells are filled with empty/copies of matrices

1
1
1
1
2
2
2
2
3
3
3
3
4
4
25
Denotational semantics
26
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

27
Roadmap
  • Why connectors?
  • The tile model
  • Stateless connectors
  • Axiomatization of synch-connectors
  • Adding mutual exclusion
  • Concluding remarks

28
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

29
Gs-monoidal axioms
30
Additional P-monoidal axioms
31
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

32
Normal form
Central points (correspond to cells of the base)
  • Sort connectors

Hiding connectors directly connected to central
points
Central points are connected to at least one
external interface
33
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

34
Roadmap
  • Why connectors?
  • The tile model
  • Stateless connectors
  • Axiomatization of synch-connectors
  • Adding mutual exclusion
  • Concluding remarks

35
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

36
Obtaining zero connector

def

!
37
Obtaining comex connector
!

!
!
  • Hiding and synchronization allow to flip wires

38
Looking for axiomatization of mex

39
Looking for axiomatization of mex

?
40
Looking for axiomatization of mex

?
?
41
Looking for axiomatization of mex

?
?
42
Looking for axiomatization of mex

?
?
43
Key axioms
?
44
Key axioms

!
45
Some axioms about mex-dup

46
Some axioms about zero
0

47
A sample proof
0
0
48
Additional axioms

49
An axiom scheme
!


!
!
50
An axiom scheme
!

!
51
Full tables
  • Entry with empty domain is enabled
  • All the tables with that property can be
    expressed
  • Generalized sorted and normal form

52
Full tables
Zeros directly connected to free variables
53
Full tables
Hiding connected to roots of mex or to central
points
54
Full tables
Each hidden variable is connected to at most two
central points
55
Full tables
At most one path between a central point and a
variable
56
Full tables
No hidden variables are connected to the same
central points
57
Full tables
No two central points have the same set of
variables
58
Full tables
Each central point is connected to at least a
free variable
59
Full tables
Each pair of central points share at least a
variable
60
Full tables
Hidden variables attached to roots of mex are on
the left
61
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

62
Roadmap
  • Why connectors?
  • The tile model
  • Stateless connectors
  • Axiomatization of synch-connectors
  • Adding mutual exclusion
  • Concluding remarks

63
Conclusions
  • Full correspondences between
  • observational semantics
  • denotational semantics
  • equivalence classes modulo axioms
  • Normalization allows to find a standard
    representative

64
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

65
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)

66
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

67
Thanks!
Questions?
Write a Comment
User Comments (0)