Probabilistic Methods in Concurrency Lecture 6 Progress statements: A tool for verification of probabilistic automata Catuscia Palamidessi

Slides:



Advertisements
Similar presentations
Many-to-one Trapdoor Functions and their Relations to Public-key Cryptosystems M. Bellare S. Halevi A. Saha S. Vadhan.
Advertisements

08 April PPS - Groupe de Travail en Concurrence The probabilistic asynchronous -calculus Catuscia Palamidessi, INRIA Futurs, France.
Deadlocks Operating Systems (234123) Spring 2013 Deadlocks Dan Tsafrir (13/5/2013) Partially based on slides by Hagit Attiya OS (234123) - spring 2013.
Paris, 3 Dec 2007MPRI Course on Concurrency MPRI – Course on Concurrency Lecture 12 Probabilistic process calculi Catuscia Palamidessi LIX, Ecole Polytechnique.
Review of Probability. Definitions (1) Quiz 1.Let’s say I have a random variable X for a coin, with event space {H, T}. If the probability P(X=H) is.
Dining Philosophers (Diners) Problem n definition n Chandy and Misra solution n extension to drinking philosophers.
Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
Distributed Algorithms – 2g1513 Lecture 10 – by Ali Ghodsi Fault-Tolerance in Asynchronous Networks.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
SPL/2010 Liveness And Performance 1. SPL/2010 Performance ● Throughput - How much work can your program complete in a given time unit? ● Example: HTTP.
Probabilistic Methods in Concurrency Lecture 9 Other uses of randomization: a randomized protocol for anonymity Catuscia Palamidessi
Bangalore, 2 Feb 2005Probabilistic security protocols 1 CIMPA School on Security Specification and verification of randomized security protocols Lecture.
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.
Computability and Complexity 20-1 Computability and Complexity Andrei Bulatov Random Sources.
CSE115/ENGR160 Discrete Mathematics 04/12/11 Ming-Hsuan Yang UC Merced 1.
Bakery Algorithm - Proof
Process Synchronization
CSE 421 Algorithms Richard Anderson Autumn 2006 Lecture 2.
Probabilistic Verification of Discrete Event Systems Håkan L. S. Younes.
 Idit Keidar, Principles of Reliable Distributed Systems, Technion EE, Spring Principles of Reliable Distributed Systems Lecture 6: Impossibility.
 Idit Keidar, Principles of Reliable Distributed Systems, Technion EE, Spring Principles of Reliable Distributed Systems Lecture 12: Impossibility.
CS 603 Dining Philosopher’s Problem February 15, 2002.
The Power of Simulation Relations Sixty and Beyond Toronto, August 20, 2008 Roberto Segala - University of Verona 1 The Power of Simulation Relations Roberto.
511 Friday March 30, 2001 Math/Stat 511 R. Sharpley Lecture #27: a. Verification of the derivation of the gamma random variable b.Begin the standard normal.
Concurrency: Deadlock1 ©Magee/Kramer 2 nd Edition Chapter 6 Deadlock.
The Critical Section Problem
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
Discrete Maths Objective to introduce mathematical induction through examples , Semester 2, Mathematical Induction 1.
MATH 224 – Discrete Mathematics
Probabilistic Methods in Concurrency Lecture 4 Problems in distributed systems for which only randomized solutions exist Catuscia Palamidessi
CIS 842: Specification and Verification of Reactive Systems Lecture Specifications: Sequencing Properties Copyright , Matt Dwyer, John Hatcliff,
10 December 2002ENS Cachan1 Generalized dining philosophers Catuscia Palamidessi, INRIA in collaboration with Mihaela Oltea Herescu, IBM Michael Pilquist,
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Classical problems.
Specifying and Verifying Event-based Fairness Enhanced Systems 1 ICFEM 2008 Specifying and Verifying Event-based Fairness Enhanced Systems Jun SUN, Yang.
CIS 842: Specification and Verification of Reactive Systems Lecture Specifications: LTL Model Checking Copyright , Matt Dwyer, John Hatcliff,
Discrete Maths: Induction/1 1 Discrete Maths Objective – –to introduce mathematical induction through examples , Semester
Distributed Algorithms Lecture 10b – by Ali Ghodsi Fault-Tolerance in Asynchronous Networks – Probabilistic Consensus.
MPRI – Course on Concurrency Probabilistic methods in Concurrency Catuscia Palamidessi INRIA Futurs and LIX
Probabilistic Anonymity Mohit Bhargava, IIT New Delhi Catuscia Palamidessi, INRIA Futurs & LIX.
Probabilistic and Nondeterministic Aspects of Anonymity Catuscia Palamidessi, INRIA & LIX Based on joint work with Mohit Bhargava, IIT New Delhi Kostas.
Paris, 17 December 2007MPRI Course on Concurrency MPRI – Course on Concurrency Lecture 14 Application of probabilistic process calculi to security Catuscia.
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
Chapter 11 Resource Allocation by Mikhail Nesterenko “Distributed Algorithms” by Nancy A. Lynch.
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
ECE/CS 584: Verification of Embedded Computing Systems Model Checking Timed Automata Sayan Mitra Lecture 09.
Lecture 4 Correctness and Fairness Verification and Assurance.
Program Correctness. The designer of a distributed system has the responsibility of certifying the correctness of the system before users start using.
Software Systems Verification and Validation Laboratory Assignment 4 Model checking Assignment date: Lab 4 Delivery date: Lab 4, 5.
Randomized Algorithms Randomized Algorithms CS648 Lecture 25 Derandomization using conditional expectation A probability gem Lecture 25 Derandomization.
Analysis of Algorithms: Math Review Richard Kelley, Lecture 2.
6 October PPDP / GPCE 2002 Mobile Calculi Catuscia Palamidessi, INRIA Futurs, France joint work with Mihaela Herescu, IBM, Austin for Distributed.
1 HEINZ NIXDORF INSTITUTE University of Paderborn Algorithms and Complexity Christian Schindelhauer Algorithms for Radio Networks Winter Term 2005/2006.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Lecture 4 1 Honnor Projects Supervised by Catuscia Palamidessi The  -calculus, a small language for specification and verification of concurrency and.
Randomized Algorithms for Distributed Agreement Problems Peter Robinson.
16 January 2004LIX1 Equipe Comète Concurrency, Mobility, and Transactions Catuscia Palamidessi INRIA-Futurs and LIX.
Catuscia Palamidessi, INRIA Saclay, France
Dining Philosophers (Diners) Problem
Probabilistic Methods in Concurrency Lecture 5 Basics of Measure Theory and Probability Theory Probabilistic Automata Catuscia Palamidessi
CAP 4800/CAP 5805: Computer Simulation Concepts
Practical Session 12 Deadlocks
Liveness And Performance
Richard Anderson Autumn 2006 Lecture 1
Probabilistic Methods in Concurrency Lecture 7 The probabilistic asynchronous p-calculus Catuscia Palamidessi
CAP 4800/CAP 5805: Computer Simulation Concepts
Richard Anderson Winter 2009 Lecture 2
Richard Anderson Autumn 2019 Lecture 2
Presentation transcript:

Probabilistic Methods in Concurrency Lecture 6 Progress statements: A tool for verification of probabilistic automata Catuscia Palamidessi Page of the course:

Pisa, 6 July 2004Prob methods in Concurrency2 Progress statements –Proposed by Lynch and Segala –A formal method to analyse probabilistic algorithms Definition (progress statements) –Given sets of states S, T, and a class of adversaries A, we write S –A,p-> T if, under any adversary in A, from any state in S, we eventually reach a state in T with probability at least p –Furthermore, we write S unless T if, whenever from a state in S we do not reach a state in T, we remain in S (possibly in a different state of S)

Pisa, 6 July 2004Prob methods in Concurrency3 Progress statements Some useful properties –If A is history-insensitive, S –A,p-> T, and T –A,q-> U, then S –A,pq-> U –If S 1 –A,p 1 -> T 1, and S 2 –A,p 2 -> T 2, then S 1  S 2 –A,p-> T 1  T 2 where p = min{p 1,p 2 } –S –A,1-> S –If A is history-insensitive and S –A,p-> T and S unless T, and p > 0, then S –A,1-> T

Pisa, 6 July 2004Prob methods in Concurrency4 History insensitivity Definition: a class of adversaries A is history-insensitive if: for every  A, and for every fragment of execution e, there exists  ’  A such that, for every fragment of execution e ’,  ’( e ’) =  ( ee ’) Proposition: The class of fair adversaries is history-insensitive Proof: Given  and e, define  ’( e ’) =  ( ee ’). Clearly  ’ is still fair

Pisa, 6 July 2004Prob methods in Concurrency5 Example of verification: the dining philosophers An example of verification using the progress statements. The example we consider is the randomized algorithm of Lehmann and Rabin for the dining philosophers We will show that under a fair adversary scheduler we have deadlock-freedom (and livelock-freedom), i.e. if a philosopher gets hungry, then with probability 1 some philosopher (not necessarily the same) will eventually eat.

Pisa, 6 July 2004Prob methods in Concurrency6 State action description R think or reminder region get hungry F flip ready to toss W wait waiting for first fork Ssecondchecking second resource Ddropdropping first resource Peatpre-critical region Cexitcritical region E F dropFdrop first fork E S dropSdrop second fork E R remmove to reminder region The dining philosophers: the algorithm T T

Pisa, 6 July 2004Prob methods in Concurrency7 Example of verification: The dining philosophers Let us introduce the following global (sets of) states Try : at least one phil is in T={F,W,S,D,P} Eat : at least one phil is in C RT : at least one phil is in T, all the others are in T, R or E R Flip : at least one phil is in F Pre : at least one phil is in P Good : at least one process is in a ‘’good state’’, i.e. in {W,S} while his second fork f is not the first fork for the neighbor (i.e. the neighbor is not committed to f) We want to show that Try –A,1-> Eat for A = fair adv

Pisa, 6 July 2004Prob methods in Concurrency8 Example of verification: The dining philosophers We can prove that, for the class of fair adversaries A (omitted in the following notation): –Try -1-> RT  Eat –RT -1-> Flip  Good  Pre –Flip -1/2-> Good  Pre –Good -1/4-> Pre –Pre -1-> Eat Using the properties of progress statements we derive Try -1/8-> Eat Since we also have Try unless Eat, we can conclude