Probabilistic Methods in Concurrency Lecture 7 The probabilistic asynchronous p-calculus Catuscia Palamidessi catuscia@lix.polytechnique.fr www.lix.polytechnique.fr/~catuscia.

Slides:



Advertisements
Similar presentations
Automata Theory Part 1: Introduction & NFA November 2002.
Advertisements

Impossibility of Distributed Consensus with One Faulty Process
08 April PPS - Groupe de Travail en Concurrence The probabilistic asynchronous -calculus Catuscia Palamidessi, INRIA Futurs, France.
Models of Concurrency Manna, Pnueli.
Paris, 3 Dec 2007MPRI Course on Concurrency MPRI – Course on Concurrency Lecture 12 Probabilistic process calculi Catuscia Palamidessi LIX, Ecole Polytechnique.
Regular Expressions and DFAs COP 3402 (Summer 2014)
Formal Semantics of Programming Languages 虞慧群 Topic 6: Advanced Issues.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
Compiling Communicating Processes into Delay-Insensitive VLSI Circuits Alain J. Martin Department of Computer Science California Institute of Technology.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
Probabilistic Methods in Concurrency Lecture 9 Other uses of randomization: a randomized protocol for anonymity Catuscia Palamidessi
Luca de Alfaro Thomas A. Henzinger Ranjit Jhala UC Berkeley Compositional Methods for Probabilistic Systems.
Bangalore, 2 Feb 2005Probabilistic security protocols 1 CIMPA School on Security Specification and verification of randomized security protocols Lecture.
Anna Philippou Department of Computer Science University of Cyprus Joint work with Mauricio Toro Department of Comp. Sc. EAFIT University Christina Kassara.
Probabilistic Methods in Concurrency Lecture 3 The pi-calculus hierarchy: separation results Catuscia Palamidessi
Course on Probabilistic Methods in Concurrency (Concurrent Languages for Probabilistic Asynchronous Communication) Lecture 1 The pi-calculus and the asynchronous.
PZ12A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ12A - Guarded commands Programming Language Design.
Languages. A Language is set of finite length strings on the symbol set i.e. a subset of (a b c a c d f g g g) At this point, we don’t care how the language.
Conformance Simulation Relation ( ) Let and be two automata over the same alphabet simulates () if there exists a simulation relation such that Note that.
AR vs. CFSM Abdallah Tabbara. CFSM Overview 4 CFSM has: –a finite state machine part –a data computation part –a locally synchronous behavior transitions.
1 Ivan Lanese Computer Science Department University of Bologna Italy Concurrent and located synchronizations in π-calculus.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
Languages. A Language is set of finite length strings on the symbol set i.e. a subset of (a b c a c d f g g g) At this point, we don’t care how the language.
Programming Language Semantics Axiomatic Semantics of Parallel Programs.
Costas Busch - LSU1 Non-Deterministic Finite Automata.
Methods of teaching programming at high schools and universities Vera Dron,
Lecture #12 Distributed Algorithms (I) CS492 Special Topics in Computer Science: Distributed Algorithms and Systems.
Chapter 10: Compilers and Language Translation Invitation to Computer Science, Java Version, Third Edition.
Probabilistic Methods in Concurrency Lecture 4 Problems in distributed systems for which only randomized solutions exist Catuscia Palamidessi
11 February CdP INRIA Futurs Catuscia Palamidessi INRIA Saclay.
1 IOA: Mathematical Models  Distributed Programs Nancy Lynch November 15, 2000 Collaborators: Steve Garland, Josh Tauber, Anna Chefter, Antonio Ramirez,
- 1 - Embedded Systems - SDL Some general properties of languages 1. Synchronous vs. asynchronous languages Description of several processes in many languages.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
10 December 2002ENS Cachan1 Generalized dining philosophers Catuscia Palamidessi, INRIA in collaboration with Mihaela Oltea Herescu, IBM Michael Pilquist,
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
MPRI – Course on Concurrency Probabilistic methods in Concurrency Catuscia Palamidessi INRIA Futurs and LIX
Lexical Analysis: Finite Automata CS 471 September 5, 2007.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
Parallel execution Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Distributed Programming Concepts and Notations. Inter-process Communication Synchronous Messages Asynchronous Messages Select statement Remote procedure.
MPRI 3 Dec 2007Catuscia Palamidessi 1 Why Probability and Nondeterminism? Concurrency Theory Nondeterminism –Scheduling within parallel composition –Unknown.
MPRI – Course on Concurrency Lectures 11 and 12 The pi-calculus expressiveness hierarchy Catuscia Palamidessi INRIA Futurs and LIX
14 October BASICS'09, Shanghai On the expressive power of synchronization primitives in the π-calculus Catuscia Palamidessi, INRIA Saclay, France.
Concurrency 5 The theory of CCS Specifications and Verification Expressive Power Catuscia Palamidessi
非同期マルチキャスト通 信を行う言語 Scope の操 作的意味 増山隆
Probabilistic Methods in Concurrency Lecture 6 Progress statements: A tool for verification of probabilistic automata Catuscia Palamidessi
6 October PPDP / GPCE 2002 Mobile Calculi Catuscia Palamidessi, INRIA Futurs, France joint work with Mihaela Herescu, IBM, Austin for Distributed.
Operational Semantics Mooly Sagiv Tel Aviv University Sunday Scrieber 8 Monday Schrieber.
ICS312 Introduction to Compilers Set 23. What is a Compiler? A compiler is software (a program) that translates a high-level programming language to machine.
Types and Programming Languages Lecture 16 Simon Gay Department of Computing Science University of Glasgow 2006/07.
16 January 2004LIX1 Equipe Comète Concurrency, Mobility, and Transactions Catuscia Palamidessi INRIA-Futurs and LIX.
CPE555A: Real-Time Embedded Systems
Non Deterministic Automata
Catuscia Palamidessi, INRIA Saclay, France
Formal verification in SPIN
Probabilistic Methods in Concurrency Lecture 5 Basics of Measure Theory and Probability Theory Probabilistic Automata Catuscia Palamidessi
Lecture 14: Iteration and Recursion (Section 6.5 – 6.6)
PROGRAMMING LANGUAGES
Chapter 2 FINITE AUTOMATA.
Non-Deterministic Finite Automata
Non Deterministic Automata
Preliminaries: Distributions
Parallel execution Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
CS21 Decidability and Tractability
Frédéric Gava Bulk-Synchronous Parallel ML Implementation of the
Instructor: Aaron Roth
Instructor: Aaron Roth
Frédéric Gava Bulk-Synchronous Parallel ML
Chapter 10: Compilers and Language Translation
Expressive Power of CCS
Presentation transcript:

Probabilistic Methods in Concurrency Lecture 7 The probabilistic asynchronous p-calculus Catuscia Palamidessi catuscia@lix.polytechnique.fr www.lix.polytechnique.fr/~catuscia Page of the course: www.lix.polytechnique.fr/~catuscia/teaching/Pisa/

The probabilistic asynchronous p-calculus Originally developed as an intermediate language for the fully distributed implementation of the p-calculus (Herescu and Palamidessi) The results of Lecture 4 show that a fully distributed implementation of p must necessarily be randomized A two-steps approach: p Advantages: the correctness proof is easier since [[ ]] (which is the difficult part of the implementation) is between two similar languages [[ ]] probabilistic asynchronous p << >> distributed machine Pisa, 7 July 2004 Prob methods in Concurrency

ppa: the Probabilistic Asynchonous p Syntax: based on the asynchronous p of Amadio, Castellani, Sangiorgi g ::= x(y) | t prefixes P ::= Si pi gi . Pi pr. inp. guard. choice Si pi = 1 | x^y output action | P | P parallel | (x) P new name | recA P recursion | A procedure name Pisa, 7 July 2004 Prob methods in Concurrency

The operational semantics of ppa Based on the Probabilistic Automata of Segala and Lynch Distinction between nondeterministic behavior (choice of the scheduler) and probabilistic behavior (choice of the process) Scheduling Policy: The scheduler chooses the group of transitions 1/2 1/3 2/3 1/2 1/3 2/3 1/2 1/3 2/3 Execution: The process chooses probabilistically the transition within the group Pisa, 7 July 2004 Prob methods in Concurrency

The operational semantics of ppa Representation of a group of transition P { --gi-> pi Pi } i Rules Choice Si pi gi . Pi {--gi-> pi Pi }i P {--gi-> piPi }i Par ____________________ Q | P {--gi-> piQ | Pi }i Pisa, 7 July 2004 Prob methods in Concurrency

The operational semantics of ppa Rules (continued) P {--xi(yi)-> piPi }i Q {--x^z-> 1 Q’ }i Com ____________________________________ P | Q {--t-> piPi[z/yi] | Q’ }xi=x U { --xi(yi)-> pi Pi | Q }xi=/=x P {--xi(yi)-> piPi }i Res ___________________ qi renormalized (x) P { --xi(yi)-> qi (x) Pi }xi =/= x Pisa, 7 July 2004 Prob methods in Concurrency

The expressive power of p Example of distributed agreement: the leader election problem P Q y x Pisa, 7 July 2004 Prob methods in Concurrency

Prob methods in Concurrency Implementation of ppa Compilation in Java << >> : ppa  Java Distributed << P | Q >> = << P >>.start(); << Q >>.start(); Compositional << P op Q >> = << P >> jop << Q >> for all op Channels are one-position buffers with test-and-set (synchronized) methods for input and output The probabilistic input guarded construct is implemented as a while loop in which channels to be tried are selected according to their probability. The loop repeats until an input is successful Pisa, 7 July 2004 Prob methods in Concurrency