SlideShare a Scribd company logo
1 of 38
Download to read offline
A Foundation Calculus for
Attribute-based Communication
Yehia Abd Alrahman
Joint work with Rocco De Nicola, Michele Loreti,
Francesco Tiezzi and Roberto Vigo
Salamanca, Spain
April 12-18, 2015
Motivations
Collective Adaptive Systems (CAS)
Consist of a large number of components that might exhibit an
autonomic behaviour.
Components behaviour depends on their attributes, objectives,
environment, . . .
Systems are open and contain heterogeneous components.
Might rely on complex decision-making
Interactions introduce new, emerging, behaviours.
The Challenge
Our objective is the development of a theoretical framework that helps us in
understanding the essence of CAS and to tackle the main issues raised by
them.
Introduction Yehia Abd Alrahman 1/14
Open Problems for Research
Main Priorities According to FoCAS
Operating Principles: to guarantee the ability to learn, adapt, evolve,
reason ... while functioning.
Design Principles: to design, engineer and manage CAS to guarantee
the expected functionalities.
Developmental Principles: to study the evolutionary nature of CAS,
understanding the trade-off between learning and evolution)
Our Focus
We are interested in the design principles and specifically in the way
CAS-components interact and organise themselves in collectives.
Introduction Yehia Abd Alrahman 2/14
Some Related Work
Constraint-based Communication
M. John, C. Lhoussaine, J. Niehren, A. M. Uhrmacher:
The Attributed Pi Calculus. CMSB 2008: 83-102 ,
πimp(L) Attributed Pi Calculus extended with priorities T. Comp.
Sys. Biology 12: 13-76 (2010).
T. Given-Wilson, D. Gorla, Barry Jay: Concurrent Pattern Calculus.
IFIP TCS 2010: 244-258
Interaction primitives: point-to-point communication filtered by
constraints
Scalability: limited scalability due to the number of actions needed to
model message exchanges with big groups
Introduction Yehia Abd Alrahman 3/14
Some Related Work
Broadcast-based Communication
CBS - K. V. S. Prasad: A Calculus of Broadcasting Systems. Sci.
Comput. Program. 25(2-3): 285-327 (1995)
bπ-calculus - Cristian Ene, Traian Muntean: A Broadcast-based
Calculus for Communicating Systems. IPDPS 2001: 149
Interaction primitives: broadcasting communication
Scalability: scales well, but still expensive, it is unfeasible to consider
all listening processes in large systems and to possibly exclude some of
them.
Attribute-based Communication
An alternative to point-to-point communication and broadcasting could be
Attribute-based Communication
Introduction Yehia Abd Alrahman 4/14
Attribute-based Communication
The term Attribute-based Communication was coined in SCEL, but
similar notions can be found in actorspaces model (G. Agha et al.),
location-graphs (J.B. Stefani).
System structure:
A set of parallel components equipped with a set of attributes
All operating in an environment where predicates over attributes
can be evaluated
Interaction primitives: broadcasting filtered by predicates over
components attributes
Initial results
A process calculus named AbC - for Attribute-based Communication
Calculus.
Preliminarly Results Yehia Abd Alrahman 5/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
Γ :P | C1|C2
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 00
(Input) | Π(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
0
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).PΠ(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
Π(x).P
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).P
(Output) | (u)@Π.P(u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
(u)@Π.P
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P(a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
(a := u).P
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2P1 + P2
(Call) | KK
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
P1 + P2
K
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Πtt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | x
tt | a = u | Π1 ∧ Π2 | ¬Π
Preliminarly Results Yehia Abd Alrahman 6/14
AbC Calculus
(Components) C ::= Γ :P | C1|C2
(Processes) P ::=
(Inaction) 0
(Input) | Π(x).P
(Output) | (u)@Π.P
(Update) | (a := u).P
(Choice) | P1 + P2
(Call) | K
(Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π
(Data) u ::= v | xv | xv | x
Preliminarly Results Yehia Abd Alrahman 6/14
Reduction Semantics
Reduction Semantics
Γ :(a := v).P + Q | C Γ[a → v] : P | C
Γ :(v)@Π.P + Q |
m
i=1
Γi :Πi (xi ).Pi + Qi | C Γ :P |
m
i=1
Γi :Pi [v/xi ] | C
s.t. ∀i = 1, . . . , m (Γi |= Π ∧ Γ |= Πi )
∧
(C ≡ Γ : Π (x).P + Q | C where Γ |= Π ∧ Γ |= Π )
Preliminarly Results Yehia Abd Alrahman 7/14
TV-Streaming with AbC
We consider a TV broadcaster, say CNN, and two receivers RcvA and RcvB.
CNN broadcasts news for free, but sports are only for subscribers.
CNN might internally change the quality of broadcast (Qbrd) to cope with
some situations (i.e., low bandwidth).
RcvA and RcvB can receive broadcast or change the genre.
CNN (vs)@Πsport.CNN + (vn)@Πnews.CNN
+ (Qbrd := LD).CNN
+ (Qbrd := HD).CNN
RcvA ΠQ(x).RcvA
+ (Genre := Sport).RcvA
+ (Genre := News).RcvA
RcvB (tt)(x).RcvB
+ (Genre := Sport).RcvA
+ (Genre := News).RcvA
Preliminarly Results Yehia Abd Alrahman 8/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD), . . . }
Preliminarly Results Yehia Abd Alrahman 9/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD), . . . }
ΓA = {(Genre, News), . . . }
Preliminarly Results Yehia Abd Alrahman 9/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD), . . . }
ΓA = {(Genre, News), . . . }
ΓB = {(Genre, News), . . . }
Preliminarly Results Yehia Abd Alrahman 9/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD), . . . }
ΓA = {(Genre, News), . . . }
ΓB = {(Genre, News), . . . }
ΠNews = (Genre = News)
Preliminarly Results Yehia Abd Alrahman 9/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD), . . . }
ΓA = {(Genre, News), . . . }
ΓB = {(Genre, News), . . . }
ΠNews = (Genre = News)
ΠQ = (Qbrd = HD)
Preliminarly Results Yehia Abd Alrahman 9/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD(Qbrd, HD), . . . }
ΓA = {(Genre, News), . . . }
ΓB = {(Genre, News), . . . }
ΠNews = (Genre = News)
ΠQ = (Qbrd = HD)(Qbrd = HD)
Γcnn |= ΠQ
(Qbrd, HD
(Qbrd = HD)
Preliminarly Results Yehia Abd Alrahman 9/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD), . . . }
ΓA = {(Genre, News(Genre, News), . . . }
ΓB = {(Genre, News), . . . }
ΠNews = (Genre = News)(Genre = News)
ΠQ = (Qbrd = HD)
Γcnn |= ΠQ
ΓA |= ΠNews
(Genre, News
(Genre = News)
Preliminarly Results Yehia Abd Alrahman 9/14
Satisfaction Relation Γ |= Π
Γcnn = {(Qbrd, HD), . . . }
ΓA = {(Genre, News), . . . }
ΓB = {(Genre, News(Genre, News), . . . }
ΠNews = (Genre = News)(Genre = News)
ΠQ = (Qbrd = HD)
Γcnn |= ΠQ
ΓA |= ΠNews
ΓB |= ΠNews
(Genre, News
(Genre = News)
Preliminarly Results Yehia Abd Alrahman 9/14
Interaction Fragment
Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Preliminarly Results Yehia Abd Alrahman 10/14
Interaction Fragment
Γcnn :CNNΓcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Γcnn:(vn)@ΠNews-
Γcnn :CNN
Preliminarly Results Yehia Abd Alrahman 10/14
Interaction Fragment
Γcnn :CNN | ΓA :RcvAΓA :RcvA | . . . . . . | ΓB :RcvBΓB :RcvB
Γcnn:(vn)@ΠNews-
ΓA :RcvA ΓB :RcvB
Preliminarly Results Yehia Abd Alrahman 10/14
Interaction Fragment
Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Γcnn:(vn)@ΠNews- Γcnn :CNNΓcnn :CNN | ΓA :RcvAΓA :RcvA | . . . . . . | ΓB :RcvBΓB :RcvBΓcnn :CNN ΓA :RcvA ΓB :RcvB
Preliminarly Results Yehia Abd Alrahman 10/14
Interaction Fragment
Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Γcnn:(vn)@ΠNews- Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
...
τ
- Γcnn[Qbrd → LD]:CNNΓcnn[Qbrd → LD]:CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Now Γcnn |= ΠQ
Γcnn[Qbrd → LD]:CNN
Preliminarly Results Yehia Abd Alrahman 10/14
Interaction Fragment
Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Γcnn:(vn)@ΠNews- Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
...
τ
- Γcnn[Qbrd → LD]:CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Now Γcnn |= ΠQ
Γcnn:(vn)@ΠNews-
Preliminarly Results Yehia Abd Alrahman 10/14
Interaction Fragment
Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Γcnn:(vn)@ΠNews- Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
...
τ
- Γcnn[Qbrd → LD]:CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB
Now Γcnn |= ΠQ
Γcnn:(vn)@ΠNews- Γcnn :CNNΓcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvBΓB :RcvB
RcvA Leaves the collective
Γcnn :CNN ΓB :RcvB
Preliminarly Results Yehia Abd Alrahman 10/14
Studying Relative Expressiveness
Modelling Channels in AbC
¯ba.S | b(x).¯xd.P
τ
- S | ¯ad.P π − calculus
Future Goals Yehia Abd Alrahman 11/14
Studying Relative Expressiveness
Modelling Channels in AbC
¯ba.S | b(x).¯xd.P
τ
- S | ¯ad.P π − calculus
Γ1 :(a)@Π1.S | Γ2 :(tt)(x).(d)@Π2.P AbC − calculus
- Γ1 :S | Γ2 :(d)@Π2.P
Π1 = (port = b)
Π2 = (port = x) Π2 = (port = a)
Initially Γ2 = {(port, b)}
Future Goals Yehia Abd Alrahman 11/14
The Current State of AbC
AbC is provided with new operators at process level (i.e., parallel
composition, attribute-hiding)
AbC is provided with a labeled semantics and we proved the
correspondence with the reduction one.
We studied the behavioural theory of AbC by relying on labeled
bisimilarity and reduction barbed congruence. We proved that our
bisimilarity is a congruence.
We proved the soundness of our bisimilarity (i.e., bisimilarity is a proof
technique for reduction barbed congruence).
We proved that our labeled bisimilarity represents a complete
characterisation of reduction barbed congruence.
Future Goals Yehia Abd Alrahman 12/14
Future Work
Further steps on AbC
Consider alternative semantics for our language
Consider new operators at process level
Study the impact of bisimulation (axioms, proof techniques, . . . )
Consider alternative behavioural equivalences
Study the relative expressiveness of the calculus
Implementing the calculus
Define a language based on our calculus (an alternative version of
SCEL?)
Future Goals Yehia Abd Alrahman 13/14
Future Work
Further steps on AbC
Consider alternative semantics for our language
Consider new operators at process level
Study the impact of bisimulation (axioms, proof techniques, . . . )
Consider alternative behavioural equivalences
Study the relative expressiveness of the calculus
Implementing the calculus
Define a language based on our calculus (an alternative version of
SCEL?)
Consider stochastic variants and their relationships with CASPA (and
alternatives to it?)
Future Goals Yehia Abd Alrahman 13/14
Thank You
Future Goals Yehia Abd Alrahman 14/14

More Related Content

Similar to AbC: A calculus for attribute-based communication

Chapter 13 breakeven analysis
Chapter 13   breakeven analysisChapter 13   breakeven analysis
Chapter 13 breakeven analysis
Bich Lien Pham
 
Chapter 13 breakeven analysis
Chapter 13   breakeven analysisChapter 13   breakeven analysis
Chapter 13 breakeven analysis
Bich Lien Pham
 
AggNet: Deep Learning from Crowds
AggNet: Deep Learning from CrowdsAggNet: Deep Learning from Crowds
AggNet: Deep Learning from Crowds
Shadi Nabil Albarqouni
 
Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...
Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...
Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...
Accumulo Summit
 

Similar to AbC: A calculus for attribute-based communication (20)

Thesis
ThesisThesis
Thesis
 
Automated Program Repair, Distinguished lecture at MPI-SWS
Automated Program Repair, Distinguished lecture at MPI-SWSAutomated Program Repair, Distinguished lecture at MPI-SWS
Automated Program Repair, Distinguished lecture at MPI-SWS
 
Chapter 13 breakeven analysis
Chapter 13   breakeven analysisChapter 13   breakeven analysis
Chapter 13 breakeven analysis
 
Chapter 13 breakeven analysis
Chapter 13   breakeven analysisChapter 13   breakeven analysis
Chapter 13 breakeven analysis
 
Gaussian Process Latent Variable Model
Gaussian Process Latent Variable ModelGaussian Process Latent Variable Model
Gaussian Process Latent Variable Model
 
06-2402.pdf
06-2402.pdf06-2402.pdf
06-2402.pdf
 
Affine computation and affine automaton
Affine computation and affine automatonAffine computation and affine automaton
Affine computation and affine automaton
 
Cerutti -- TAFA2013
Cerutti -- TAFA2013Cerutti -- TAFA2013
Cerutti -- TAFA2013
 
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
Recommender Systems with Implicit Feedback Challenges, Techniques, and Applic...
 
APSEC2020 Keynote
APSEC2020 KeynoteAPSEC2020 Keynote
APSEC2020 Keynote
 
Production & operarions management review
Production & operarions management reviewProduction & operarions management review
Production & operarions management review
 
chap03--Discrete random variables probability ai and ml R2021.pdf
chap03--Discrete random variables probability ai and ml R2021.pdfchap03--Discrete random variables probability ai and ml R2021.pdf
chap03--Discrete random variables probability ai and ml R2021.pdf
 
Chap03 probability
Chap03 probabilityChap03 probability
Chap03 probability
 
AggNet: Deep Learning from Crowds
AggNet: Deep Learning from CrowdsAggNet: Deep Learning from Crowds
AggNet: Deep Learning from Crowds
 
Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...
Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...
Accumulo Summit 2015: Rya: Optimizations to Support Real Time Graph Queries o...
 
SVD and the Netflix Dataset
SVD and the Netflix DatasetSVD and the Netflix Dataset
SVD and the Netflix Dataset
 
On the Expressiveness of Attribute-based Communication
On the Expressiveness of Attribute-based CommunicationOn the Expressiveness of Attribute-based Communication
On the Expressiveness of Attribute-based Communication
 
Flow system control
Flow system controlFlow system control
Flow system control
 
On Context-Orientation in Aggregate Programming
On Context-Orientation in Aggregate ProgrammingOn Context-Orientation in Aggregate Programming
On Context-Orientation in Aggregate Programming
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
 

Recently uploaded

Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
ZurliaSoop
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
David Celestin
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
amilabibi1
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Hung Le
 

Recently uploaded (17)

Zone Chairperson Role and Responsibilities New updated.pptx
Zone Chairperson Role and Responsibilities New updated.pptxZone Chairperson Role and Responsibilities New updated.pptx
Zone Chairperson Role and Responsibilities New updated.pptx
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
 
Introduction to Artificial intelligence.
Introduction to Artificial intelligence.Introduction to Artificial intelligence.
Introduction to Artificial intelligence.
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
 
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdfSOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait Cityin kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
 
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
 
Digital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalDigital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of Drupal
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 

AbC: A calculus for attribute-based communication

  • 1. A Foundation Calculus for Attribute-based Communication Yehia Abd Alrahman Joint work with Rocco De Nicola, Michele Loreti, Francesco Tiezzi and Roberto Vigo Salamanca, Spain April 12-18, 2015
  • 2. Motivations Collective Adaptive Systems (CAS) Consist of a large number of components that might exhibit an autonomic behaviour. Components behaviour depends on their attributes, objectives, environment, . . . Systems are open and contain heterogeneous components. Might rely on complex decision-making Interactions introduce new, emerging, behaviours. The Challenge Our objective is the development of a theoretical framework that helps us in understanding the essence of CAS and to tackle the main issues raised by them. Introduction Yehia Abd Alrahman 1/14
  • 3. Open Problems for Research Main Priorities According to FoCAS Operating Principles: to guarantee the ability to learn, adapt, evolve, reason ... while functioning. Design Principles: to design, engineer and manage CAS to guarantee the expected functionalities. Developmental Principles: to study the evolutionary nature of CAS, understanding the trade-off between learning and evolution) Our Focus We are interested in the design principles and specifically in the way CAS-components interact and organise themselves in collectives. Introduction Yehia Abd Alrahman 2/14
  • 4. Some Related Work Constraint-based Communication M. John, C. Lhoussaine, J. Niehren, A. M. Uhrmacher: The Attributed Pi Calculus. CMSB 2008: 83-102 , πimp(L) Attributed Pi Calculus extended with priorities T. Comp. Sys. Biology 12: 13-76 (2010). T. Given-Wilson, D. Gorla, Barry Jay: Concurrent Pattern Calculus. IFIP TCS 2010: 244-258 Interaction primitives: point-to-point communication filtered by constraints Scalability: limited scalability due to the number of actions needed to model message exchanges with big groups Introduction Yehia Abd Alrahman 3/14
  • 5. Some Related Work Broadcast-based Communication CBS - K. V. S. Prasad: A Calculus of Broadcasting Systems. Sci. Comput. Program. 25(2-3): 285-327 (1995) bπ-calculus - Cristian Ene, Traian Muntean: A Broadcast-based Calculus for Communicating Systems. IPDPS 2001: 149 Interaction primitives: broadcasting communication Scalability: scales well, but still expensive, it is unfeasible to consider all listening processes in large systems and to possibly exclude some of them. Attribute-based Communication An alternative to point-to-point communication and broadcasting could be Attribute-based Communication Introduction Yehia Abd Alrahman 4/14
  • 6. Attribute-based Communication The term Attribute-based Communication was coined in SCEL, but similar notions can be found in actorspaces model (G. Agha et al.), location-graphs (J.B. Stefani). System structure: A set of parallel components equipped with a set of attributes All operating in an environment where predicates over attributes can be evaluated Interaction primitives: broadcasting filtered by predicates over components attributes Initial results A process calculus named AbC - for Attribute-based Communication Calculus. Preliminarly Results Yehia Abd Alrahman 5/14
  • 7. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).P (Output) | (u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x Preliminarly Results Yehia Abd Alrahman 6/14
  • 8. AbC Calculus (Components) C ::= Γ :P | C1|C2Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).P (Output) | (u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x Γ :P | C1|C2 Preliminarly Results Yehia Abd Alrahman 6/14
  • 9. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 00 (Input) | Π(x).P (Output) | (u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x 0 Preliminarly Results Yehia Abd Alrahman 6/14
  • 10. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).PΠ(x).P (Output) | (u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x Π(x).P Preliminarly Results Yehia Abd Alrahman 6/14
  • 11. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).P (Output) | (u)@Π.P(u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x (u)@Π.P Preliminarly Results Yehia Abd Alrahman 6/14
  • 12. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).P (Output) | (u)@Π.P (Update) | (a := u).P(a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x (a := u).P Preliminarly Results Yehia Abd Alrahman 6/14
  • 13. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).P (Output) | (u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2P1 + P2 (Call) | KK (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x P1 + P2 K Preliminarly Results Yehia Abd Alrahman 6/14
  • 14. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).P (Output) | (u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Πtt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | x tt | a = u | Π1 ∧ Π2 | ¬Π Preliminarly Results Yehia Abd Alrahman 6/14
  • 15. AbC Calculus (Components) C ::= Γ :P | C1|C2 (Processes) P ::= (Inaction) 0 (Input) | Π(x).P (Output) | (u)@Π.P (Update) | (a := u).P (Choice) | P1 + P2 (Call) | K (Predicates) Π ::= tt | a = u | Π1 ∧ Π2 | ¬Π (Data) u ::= v | xv | xv | x Preliminarly Results Yehia Abd Alrahman 6/14
  • 16. Reduction Semantics Reduction Semantics Γ :(a := v).P + Q | C Γ[a → v] : P | C Γ :(v)@Π.P + Q | m i=1 Γi :Πi (xi ).Pi + Qi | C Γ :P | m i=1 Γi :Pi [v/xi ] | C s.t. ∀i = 1, . . . , m (Γi |= Π ∧ Γ |= Πi ) ∧ (C ≡ Γ : Π (x).P + Q | C where Γ |= Π ∧ Γ |= Π ) Preliminarly Results Yehia Abd Alrahman 7/14
  • 17. TV-Streaming with AbC We consider a TV broadcaster, say CNN, and two receivers RcvA and RcvB. CNN broadcasts news for free, but sports are only for subscribers. CNN might internally change the quality of broadcast (Qbrd) to cope with some situations (i.e., low bandwidth). RcvA and RcvB can receive broadcast or change the genre. CNN (vs)@Πsport.CNN + (vn)@Πnews.CNN + (Qbrd := LD).CNN + (Qbrd := HD).CNN RcvA ΠQ(x).RcvA + (Genre := Sport).RcvA + (Genre := News).RcvA RcvB (tt)(x).RcvB + (Genre := Sport).RcvA + (Genre := News).RcvA Preliminarly Results Yehia Abd Alrahman 8/14
  • 18. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD), . . . } Preliminarly Results Yehia Abd Alrahman 9/14
  • 19. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD), . . . } ΓA = {(Genre, News), . . . } Preliminarly Results Yehia Abd Alrahman 9/14
  • 20. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD), . . . } ΓA = {(Genre, News), . . . } ΓB = {(Genre, News), . . . } Preliminarly Results Yehia Abd Alrahman 9/14
  • 21. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD), . . . } ΓA = {(Genre, News), . . . } ΓB = {(Genre, News), . . . } ΠNews = (Genre = News) Preliminarly Results Yehia Abd Alrahman 9/14
  • 22. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD), . . . } ΓA = {(Genre, News), . . . } ΓB = {(Genre, News), . . . } ΠNews = (Genre = News) ΠQ = (Qbrd = HD) Preliminarly Results Yehia Abd Alrahman 9/14
  • 23. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD(Qbrd, HD), . . . } ΓA = {(Genre, News), . . . } ΓB = {(Genre, News), . . . } ΠNews = (Genre = News) ΠQ = (Qbrd = HD)(Qbrd = HD) Γcnn |= ΠQ (Qbrd, HD (Qbrd = HD) Preliminarly Results Yehia Abd Alrahman 9/14
  • 24. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD), . . . } ΓA = {(Genre, News(Genre, News), . . . } ΓB = {(Genre, News), . . . } ΠNews = (Genre = News)(Genre = News) ΠQ = (Qbrd = HD) Γcnn |= ΠQ ΓA |= ΠNews (Genre, News (Genre = News) Preliminarly Results Yehia Abd Alrahman 9/14
  • 25. Satisfaction Relation Γ |= Π Γcnn = {(Qbrd, HD), . . . } ΓA = {(Genre, News), . . . } ΓB = {(Genre, News(Genre, News), . . . } ΠNews = (Genre = News)(Genre = News) ΠQ = (Qbrd = HD) Γcnn |= ΠQ ΓA |= ΠNews ΓB |= ΠNews (Genre, News (Genre = News) Preliminarly Results Yehia Abd Alrahman 9/14
  • 26. Interaction Fragment Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Preliminarly Results Yehia Abd Alrahman 10/14
  • 27. Interaction Fragment Γcnn :CNNΓcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Γcnn:(vn)@ΠNews- Γcnn :CNN Preliminarly Results Yehia Abd Alrahman 10/14
  • 28. Interaction Fragment Γcnn :CNN | ΓA :RcvAΓA :RcvA | . . . . . . | ΓB :RcvBΓB :RcvB Γcnn:(vn)@ΠNews- ΓA :RcvA ΓB :RcvB Preliminarly Results Yehia Abd Alrahman 10/14
  • 29. Interaction Fragment Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Γcnn:(vn)@ΠNews- Γcnn :CNNΓcnn :CNN | ΓA :RcvAΓA :RcvA | . . . . . . | ΓB :RcvBΓB :RcvBΓcnn :CNN ΓA :RcvA ΓB :RcvB Preliminarly Results Yehia Abd Alrahman 10/14
  • 30. Interaction Fragment Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Γcnn:(vn)@ΠNews- Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB ... τ - Γcnn[Qbrd → LD]:CNNΓcnn[Qbrd → LD]:CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Now Γcnn |= ΠQ Γcnn[Qbrd → LD]:CNN Preliminarly Results Yehia Abd Alrahman 10/14
  • 31. Interaction Fragment Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Γcnn:(vn)@ΠNews- Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB ... τ - Γcnn[Qbrd → LD]:CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Now Γcnn |= ΠQ Γcnn:(vn)@ΠNews- Preliminarly Results Yehia Abd Alrahman 10/14
  • 32. Interaction Fragment Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Γcnn:(vn)@ΠNews- Γcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB ... τ - Γcnn[Qbrd → LD]:CNN | ΓA :RcvA | . . . . . . | ΓB :RcvB Now Γcnn |= ΠQ Γcnn:(vn)@ΠNews- Γcnn :CNNΓcnn :CNN | ΓA :RcvA | . . . . . . | ΓB :RcvBΓB :RcvB RcvA Leaves the collective Γcnn :CNN ΓB :RcvB Preliminarly Results Yehia Abd Alrahman 10/14
  • 33. Studying Relative Expressiveness Modelling Channels in AbC ¯ba.S | b(x).¯xd.P τ - S | ¯ad.P π − calculus Future Goals Yehia Abd Alrahman 11/14
  • 34. Studying Relative Expressiveness Modelling Channels in AbC ¯ba.S | b(x).¯xd.P τ - S | ¯ad.P π − calculus Γ1 :(a)@Π1.S | Γ2 :(tt)(x).(d)@Π2.P AbC − calculus - Γ1 :S | Γ2 :(d)@Π2.P Π1 = (port = b) Π2 = (port = x) Π2 = (port = a) Initially Γ2 = {(port, b)} Future Goals Yehia Abd Alrahman 11/14
  • 35. The Current State of AbC AbC is provided with new operators at process level (i.e., parallel composition, attribute-hiding) AbC is provided with a labeled semantics and we proved the correspondence with the reduction one. We studied the behavioural theory of AbC by relying on labeled bisimilarity and reduction barbed congruence. We proved that our bisimilarity is a congruence. We proved the soundness of our bisimilarity (i.e., bisimilarity is a proof technique for reduction barbed congruence). We proved that our labeled bisimilarity represents a complete characterisation of reduction barbed congruence. Future Goals Yehia Abd Alrahman 12/14
  • 36. Future Work Further steps on AbC Consider alternative semantics for our language Consider new operators at process level Study the impact of bisimulation (axioms, proof techniques, . . . ) Consider alternative behavioural equivalences Study the relative expressiveness of the calculus Implementing the calculus Define a language based on our calculus (an alternative version of SCEL?) Future Goals Yehia Abd Alrahman 13/14
  • 37. Future Work Further steps on AbC Consider alternative semantics for our language Consider new operators at process level Study the impact of bisimulation (axioms, proof techniques, . . . ) Consider alternative behavioural equivalences Study the relative expressiveness of the calculus Implementing the calculus Define a language based on our calculus (an alternative version of SCEL?) Consider stochastic variants and their relationships with CASPA (and alternatives to it?) Future Goals Yehia Abd Alrahman 13/14
  • 38. Thank You Future Goals Yehia Abd Alrahman 14/14