MPRI 3 Dec 2007Catuscia Palamidessi 1 Why Probability and Nondeterminism? Concurrency Theory Nondeterminism –Scheduling within parallel composition –Unknown.

Slides:



Advertisements
Similar presentations
Process Algebra Book: Chapter 8. The Main Issue Q: When are two models equivalent? A: When they satisfy different properties. Q: Does this mean that the.
Advertisements

CSC 361NFA vs. DFA1. CSC 361NFA vs. DFA2 NFAs vs. DFAs NFAs can be constructed from DFAs using transitions: Called NFA- Suppose M 1 accepts L 1, M 2 accepts.
Lecture 11: Datalog Tuesday, February 6, Outline Datalog syntax Examples Semantics: –Minimal model –Least fixpoint –They are equivalent Naive evaluation.
Paris, 3 Dec 2007MPRI Course on Concurrency MPRI – Course on Concurrency Lecture 12 Probabilistic process calculi Catuscia Palamidessi LIX, Ecole Polytechnique.
Process Algebra (2IF45) Abstraction in Process Algebra Suzana Andova.
Distributed Markov Chains P S Thiagarajan School of Computing, National University of Singapore Joint work with Madhavan Mukund, Sumit K Jha and Ratul.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
Process Algebra (2IF45) Probabilistic Process Algebra Suzana Andova.
Luca de Alfaro Thomas A. Henzinger Ranjit Jhala UC Berkeley Compositional Methods for Probabilistic Systems.
Possibilistic and probabilistic abstraction-based model checking Michael Huth Computing Imperial College London, United Kingdom.
The Algorithmics of Probabilistic Automata Weak Bisimulation Andrea Turrini Saarland University based on a joint work with Holger Hermanns.
Transparency No. 2-1 Formal Language and Automata Theory Chapter 2 Deterministic Finite Automata (DFA) (include Lecture 3 and 4)
Discrete Mathematics Lecture 4 Harper Langston New York University.
¹ -Calculus Based on: “Model Checking”, E. Clarke and O. Grumberg (ch. 6, 7) “Symbolic Model Checking: 10^20 States and Beyond”, Burch, Clark, et al “Introduction.
The Power of Simulation Relations Sixty and Beyond Toronto, August 20, 2008 Roberto Segala - University of Verona 1 The Power of Simulation Relations Roberto.
Chapter 2 Chapter The sample space of an experiment, denoted S , is the set of all possible outcomes of that experiment. An event is any collection.
Abstract Verification is traditionally done by determining the truth of a temporal formula (the specification) with respect to a timed transition system.
Chapter 8 Asynchronous System Model by Mikhail Nesterenko “Distributed Algorithms” by Nancy A. Lynch.
Approximation Metrics for Discrete and Continuous Systems Antoine Girard and George J. Pappas VERIMAG Workshop.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Formal Language Finite set of alphabets Σ: e.g., {0, 1}, {a, b, c}, { ‘{‘, ‘}’ } Language L is a subset of strings on Σ, e.g., {00, 110, 01} a finite language,
5.1 Basic Probability Ideas
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
Model Checking Lecture 3 Tom Henzinger. Model-Checking Problem I |= S System modelSystem property.
Chapter 1 Probability Spaces 主講人 : 虞台文. Content Sample Spaces and Events Event Operations Probability Spaces Conditional Probabilities Independence of.
Chapter 11 Probability Sample spaces, events, probabilities, conditional probabilities, independence, Bayes’ formula.
Chapter 3 – Set Theory  .
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Introduction to CS Theory Lecture 3 – Regular Languages Piotr Faliszewski
Athasit Surarerks THEORY OF COMPUTATION 07 NON-DETERMINISTIC FINITE AUTOMATA 1.
2G1516 Formal Methods2005 Mads Dam IMIT, KTH 1 CCS: Operational Semantics And Process Algebra Mads Dam Reading: Peled 8.3, 8.4, 8.6 – rest of ch. 8.
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
Submodule construction in logics 1 Gregor v. Bochmann, University of Ottawa Using First-Order Logic to Reason about Submodule Construction Gregor v. Bochmann.
Language: Set of Strings
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
Paris, 17 December 2007MPRI Course on Concurrency MPRI – Course on Concurrency Lecture 14 Application of probabilistic process calculi to security Catuscia.
Defining Liveness by Bowen Alpern and Fred B. Schneider Presented by Joe Melnyk.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
MPRI – Course on Concurrency Lectures 11 and 12 The pi-calculus expressiveness hierarchy Catuscia Palamidessi INRIA Futurs and LIX
NFA defined. NFA A Non-deterministic Finite-state Automata (NFA) is a language recognizing system similar to a DFA. It supports a level of non-determinism.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
2G1516 Formal Methods2005 Mads Dam IMIT, KTH 1 CCS: Processes and Equivalences Mads Dam Reading: Peled 8.5.
2G1516/2G1521 Formal Methods2004 Mads Dam IMIT, KTH 1 CCS: Processes and Equivalences Mads Dam Reading: Peled 8.1, 8.2, 8.5.
Chapter 8 Asynchronous System Model by Mikhail Nesterenko “Distributed Algorithms” by Nancy A. Lynch.
Compositional Formal Verification using MOCHA PI: Tom Henzinger Student 1: Freddy Mang (game-theoretic methods) Student 2: Ranjit Jhala (probabilistic.
Probability theory is the branch of mathematics concerned with analysis of random phenomena. (Encyclopedia Britannica) An experiment: is any action, process.
Random Variables and Stochastic Processes – Dr. Ghazi Al Sukkar Office Hours: will be.
Transparency No. 4-1 Formal Language and Automata Theory Chapter 4 Patterns, Regular Expressions and Finite Automata (include lecture 7,8,9) Transparency.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Summary of the Last Lecture This is our second lecture. In our first lecture, we discussed The vector spaces briefly and proved some basic inequalities.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Complexity and Computability Theory I Lecture #5 Rina Zviel-Girshin Leah Epstein Winter
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Model Checking Lecture 2. Model-Checking Problem I |= S System modelSystem property.
MA/CSSE 474 Theory of Computation How many regular/non-regular languages are there? Closure properties of Regular Languages (if there is time) Pumping.
Deciding Probabilistic Automata Weak Bisimulation in Polynomial Time
Sample spaces and events
Sample spaces and events
What is Probability? Quantification of uncertainty.
Probabilistic Methods in Concurrency Lecture 5 Basics of Measure Theory and Probability Theory Probabilistic Automata Catuscia Palamidessi
Turing Machines Acceptors; Enumerators
Hierarchy of languages
SS 2018 Software Verification ML, state machines
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
Formal Methods in software development
Presentation transcript:

MPRI 3 Dec 2007Catuscia Palamidessi 1 Why Probability and Nondeterminism? Concurrency Theory Nondeterminism –Scheduling within parallel composition –Unknown behavior of the environment –Underspecification Probability –Environment may be stochastic –Processes may flip coins

MPRI 3 Dec 2007Catuscia Palamidessi 2 Automata A = (Q, q 0, E, H, D) Transition relation D  Q  (E  H)  Q Internal (hidden) actions External actions: E  H =  Initial state: q 0  Q States

MPRI 3 Dec 2007Catuscia Palamidessi 3 Example: Automata A = (Q, q 0, E, H, D) coffee q0q0 q2q2 q1q1 q4q4 q3q3 q5q5 d n n n choc ch Execution: q 0 n q 1 n q 2 ch q 3 coffee q 5 Trace: n n coffee

MPRI 3 Dec 2007Catuscia Palamidessi 4 Probabilistic Automata PA = (Q, q 0, E, H, D) Transition relation D  Q  (E  H)  Disc(Q) Internal (hidden) actions External actions: E  H =  Initial state: q 0  Q States

MPRI 3 Dec 2007Catuscia Palamidessi 5 Example: Probabilistic Automata q0q0 q1q1 q2q2 q3q3 q4q4 q5q5 fair unfair flip 1/2 2/3 1/3 beep

MPRI 3 Dec 2007Catuscia Palamidessi 6 Example: Probabilistic Automata q0q0 qhqh qtqt qpqp flip 1/2 2/3 1/3 beep

MPRI 3 Dec 2007Catuscia Palamidessi 7 Example: Probabilistic Automata q0q0 q1q1 q2q2 q3q3 q4q4 q5q5 fair unfair flip 1/2 2/3 1/3 beep What is the probability of beeping?

MPRI 3 Dec 2007Catuscia Palamidessi 8 Example: Probabilistic Executions q0q0 q1q1 q3q3 q4q4 q5q5 1/2 q0q0 q2q2 q3q3 q4q4 q5q5 unfair flip 2/3 1/3 beep  (beep) = 2/3  (beep) = 1/2 fair beep flip 1/2 2/3

MPRI 3 Dec 2007Catuscia Palamidessi 9 Example: Probabilistic Executions q0q0 q1q1 q2q2 q3q3 q4q4 q3q3 q4q4 q5q5 q5q5 fair unfair flip beep 1/2 2/3 1/3 1/2 1/4 2/6 7/12

MPRI 3 Dec 2007Catuscia Palamidessi 10 Sample set –Set of objects  Sigma-field (  -field) –Subset F of 2  satisfying Inclusion of  Closure under complement Closure under countable union Closure under countable intersection Measure on ( , F ) –Function  from F to   For each countable collection { X i } I of pairwise disjoint sets of F,  (  I X i ) =  I  ( X i ) (Sub-)probability measure –Measure  such that  (  ) = 1 (  (  )  1) Sigma-field generated by C  2  –Smallest  -field that includes C Measure Theory Example: set of executions Study probabilities of sets of executions which sets can I measure?

MPRI 3 Dec 2007Catuscia Palamidessi 11 Measure Theory Why not F = 2  ? Flip a fair coin infinitely many times  = { h,t }   (  ) = 0 for each   ( first coin h ) = 1/2 Theorem: there is no probability measure on 2  such that  (  ) = 0 for each 

MPRI 3 Dec 2007Catuscia Palamidessi 12 Theorem A measure on cones extends uniquely to a measure on the  -field generated by cones q0q0 q1q1 q2q2 q3q3 q4q4 q3q3 q4q4 q5q5 q5q5 fair unfair flip beep 1/2 2/3 1/3 1/2 Cones and Measures Cone of  –Set of executions with prefix  –Represent event “  occurs” Measure of a cone –Product edges of  CC 

MPRI 3 Dec 2007Catuscia Palamidessi 13 Examples of Events Eventually action a occurs –Union of cones where action a occurs once Action a occurs at least n times –Union of cones where action a occurs n times Action a occurs at most n times –Complement of action a occurs at least n+1 times Action a occurs exactly n times –Intersection of previous two events Action a occurs infinitely many times –Intersection of action a occurs at least n times for all n Execution  occurs and nothing is scheduled after –Set consisting of  only –C  intersected complement of cones that extend 

MPRI 3 Dec 2007Catuscia Palamidessi 14 Schedulers - Resolution of nondeterminism Scheduler Function  : exec*(A)  Q x (E  H) x Disc(Q)  if  (  ) = (q,a, ) then q = lstate(  ) Probabilistic execution generated by  from state r Measure   r (C s ) = 0 if r  s   r   r (C r ) = 1    r (C  aq ) =   r (C  )  q ) if  (  ) = (q,a, )

MPRI 3 Dec 2007Catuscia Palamidessi 15 Probabilistic CCS P :: = 0 | P|P | .P | P + P | (  ) P | X | let X = P in X | P  p P Probabilistic processes .P  (P) Prefix  P 1  p P 2  p  1 + (1-p)  2  P  Nondeterministic process  P + Q  

MPRI 3 Dec 2007Catuscia Palamidessi 16 Probabilistic CCS Communication P  Interleaving  P 1  P 2   P|Q  |Q  P 1  (P 2 )P 2  (P2)(P2)  (P 2 | P 2 ) âa Hiding ( a) P   P   ( a)   Recursion   P[ let X = P in X / X ]   X   a, â  let X = P in

MPRI 3 Dec 2007Catuscia Palamidessi 17 Bisimulation Relations We have the following objectives They should extend the corresponding relations in the non probabilistic case Keep definitions simple Where are the key differences?

MPRI 3 Dec 2007Catuscia Palamidessi 18 Strong Bisimulation on Automata Strong bisimulation between A 1 and A 2 Relation R  Q x Q, Q=Q 1  Q 2, such that q0q0 q1q1 q3q3 q2q2 q4q4 s0s0 s1s1 s3s3 aa b a bb s s q q a a R R  q, s, a, q  s +

MPRI 3 Dec 2007Catuscia Palamidessi 19 Strong Bisimulation on Probabilistic Automata Strong bisimulation between A 1 and A 2 Relation R  Q x Q, Q=Q 1  Q 2, such that q0q0 q1q1 q3q3 q2q2 q4q4 s0s0 s1s1 s3s3 a b a bb 11  C  Q/ R.  ( C ) =  ( C ) s  q  a a R R  q, s, a,    1 1   R  R  + [LS89]

MPRI 3 Dec 2007Catuscia Palamidessi 20 Probabilistic Bisimulations These two Probabilistic Automata are not bisimilar Yet they satisfy the same formulas of a logic PCTL –The logic observes probability bounds on reachability properties Bisimilar if we match transitions with convex combinations of transitions q1q1 q2q2 q3q3 q2q2 q3q3 q2q2 q3q s1s1 s2s2 s3s3 s2s2 s3s aaaaa bcbcbcbcbc ~ ~p~p

MPRI 3 Dec 2007Catuscia Palamidessi 21 Weak Bisimulation on Automata Weak bisimulation between A 1 and A 2 Relation R  Q x Q, Q=Q 1  Q 2, such that q0q0 q1q1 q3q3 q2q2 q4q4 s1s1 s3s3   b bb s s q q a a R R  q, s, a, q  s + s  s   : trace(  )=a, fstate(  )=s, lstate(  )=s a

MPRI 3 Dec 2007Catuscia Palamidessi 22 Weak bisimulation on Probabilistic Automata q0q0 q1q1 q3q3 q2q2 q4q4 s1s1 s3s3  b bb Weak bisimulation between A 1 and A 2 Relation R  Q x Q, Q=Q 1  Q 2, such that s  q  a a R R  q, s, a,    111  C  Q/ R.  ( C ) =  ( C )   R  R  + [LS89]

MPRI 3 Dec 2007Catuscia Palamidessi 23 Weak Transition There is a probabilistic execution  such that –  ( exec* ) = 1 – trace (  ) =  ( a ) – fstate (  ) =  ( q ) – lstate (  ) =  q  a (it is finite) (its trace is a) (it starts from q ) (it leads to  ) q  s  iff    : trace(  )=a, fstate(  )=q, lstate(  )=s a

MPRI 3 Dec 2007Catuscia Palamidessi 24 Exercises Prove that the probabilistic CCS is an extension of CCS (to define what this means is part of the exercise) Prove that probabilistic bisimulation is an extension of bisimulation Write the Lehmann-Rabin algorithm in probabilistic CCS (without using guarded choice)