1 Probabilistic Timed Automata Jeremy Sproston Università di Torino PaCo kick-off meeting, 23/10/2008.

Slides:



Advertisements
Similar presentations
Model Checking Lecture 4. Outline 1 Specifications: logic vs. automata, linear vs. branching, safety vs. liveness 2 Graph algorithms for model checking.
Advertisements

Black Box Checking Book: Chapter 9 Model Checking Finite state description of a system B. LTL formula. Translate into an automaton P. Check whether L(B)
Part VI NP-Hardness. Lecture 23 Whats NP? Hard Problems.
Lecture 24 MAS 714 Hartmut Klauck
1 Fault Diagnosis for Timed Automata Stavros Tripakis VERIMAG.
Distributed Markov Chains P S Thiagarajan School of Computing, National University of Singapore Joint work with Madhavan Mukund, Sumit K Jha and Ratul.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
UPPAAL Introduction Chien-Liang Chen.
Hybrid Systems Presented by: Arnab De Anand S. An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean?
Timed Automata.
Introduction to Uppaal ITV Multiprogramming & Real-Time Systems Anders P. Ravn Aalborg University May 2009.
Probabilistic Model Checking CS 395T. Overview uCrowds redux uProbabilistic model checking PRISM model checker PCTL logic Analyzing Crowds with PRISM.
Model Checking for Probabilistic Timed Systems Jeremy Sproston Università di Torino VOSS Dagstuhl seminar 9th December 2002.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Fault-Tolerant Real-Time Networks Tom Henzinger UC Berkeley MURI Kick-off Workshop Berkeley, May 2000.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Complexity of Network Synchronization Raeda Naamnieh.
CS5371 Theory of Computation Lecture 11: Computability Theory II (TM Variants, Church-Turing Thesis)
Firewall Policy Queries Author: Alex X. Liu, Mohamed G. Gouda Publisher: IEEE Transaction on Parallel and Distributed Systems 2009 Presenter: Chen-Yu Chang.
1 Petri Nets H Plan: –Introduce basics of Petri Net models –Define notation and terminology used –Show examples of Petri Net models u Calaway Park model.
Validating Streaming XML Documents Luc Segoufin & Victor Vianu Presented by Harel Paz.
Scheduling Using Timed Automata Borzoo Bonakdarpour Wednesday, April 13, 2005 Selected Topics in Algorithms and Complexity (CSE960)
Sanjit A. Seshia and Randal E. Bryant Computer Science Department
CS 412/413 Spring 2007Introduction to Compilers1 Lecture 29: Control Flow Analysis 9 Apr 07 CS412/413 Introduction to Compilers Tim Teitelbaum.
Review of the automata-theoretic approach to model-checking.
Probabilistic Verification of Discrete Event Systems Håkan L. S. Younes.
Model Checking Lecture 5. Outline 1 Specifications: logic vs. automata, linear vs. branching, safety vs. liveness 2 Graph algorithms for model checking.
Flavio Lerda 1 LTL Model Checking Flavio Lerda. 2 LTL Model Checking LTL –Subset of CTL* of the form: A f where f is a path formula LTL model checking.
PSPACE-Completeness Section 8.3 Giorgi Japaridze Theory of Computability.
Timed UML State Machines Ognyana Hristova Tutor: Priv.-Doz. Dr. Thomas Noll June, 2007.
Model Checking Lecture 4 Tom Henzinger. Model-Checking Problem I |= S System modelSystem property.
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Languages of nested trees Swarat Chaudhuri University of Pennsylvania (with Rajeev Alur and P. Madhusudan)
Transformation of Timed Automata into Mixed Integer Linear Programs Sebastian Panek.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
Theory of Computing Lecture 17 MAS 714 Hartmut Klauck.
All-Pairs Shortest Paths & Essential Subgraph 01/25/2005 Jinil Han.
CS5270 Lecture 41 Timed Automata I CS 5270 Lecture 4.
Lecture 81 Optimizing CTL Model checking + Model checking TCTL CS 5270 Lecture 9.
Four Lectures on Model Checking Tom Henzinger University of California, Berkeley.
1 Outline:  Optimization of Timed Systems  TA-Modeling of Scheduling Tasks  Transformation of TA into Mixed-Integer Programs  Tree Search for TA using.
Synchronous Protocol Automata. Formal definitions Definition 1 A synchronous protocol automaton P is defined as a tuple (Q,S,D,V,A,->,clk,q0,qf) Channels.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
1 Model Checking of of Timed Systems Rajeev Alur University of Pennsylvania.
1 Symmetry Symmetry Chapter 14 from “Model Checking” by Edmund M. Clarke Jr., Orna Grumberg, and Doron A. Peled presented by Anastasia Braginsky March.
Vertex Coloring Distributed Algorithms for Multi-Agent Networks
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
1 CSEP590 – Model Checking and Automated Verification Lecture outline for July 9, 2003.
NPC.
Complexity 24-1 Complexity Andrei Bulatov Interactive Proofs.
TU/e Algorithms (2IL15) – Lecture 9 1 NP-Completeness NOT AND OR AND NOT AND.
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
CS5270 Lecture 41 Timed Automata I CS 5270 Lecture 4.
Krishnendu ChatterjeeFormal Methods Class1 MARKOV CHAINS.
Complexity of Compositional Model Checking of Computation Tree Logic on Simple Structures Krishnendu Chatterjee Pallab Dasgupta P.P. Chakrabarti IWDC 2004,
The Time-abstracting Bisimulation Equivalence  on TA states: Preserve discrete state changes. Abstract exact time delays. s1s2 s3  a s4  a 11 s1s2.
Autonomous units and their semantics – the parallel case
Probabilistic Timed Automata
SS 2017 Software Verification Timed Automata
SS 2017 Software Verification Probabilistic modelling – DTMC / MDP
Prof. Dr. Holger Schlingloff 1,2 Dr. Esteban Pavese 1
Part VI NP-Hardness.
Instructor: Rajeev Alur
Timed Automata Formal Systems Pallab Dasgupta Professor,
Alternating tree Automata and Parity games
CSEP590 – Model Checking and Automated Verification
‘Crowds’ through a PRISM
Course: CS60030 FORMAL SYSTEMS
Presentation transcript:

1 Probabilistic Timed Automata Jeremy Sproston Università di Torino PaCo kick-off meeting, 23/10/2008

2 FireWire root contention protocol Leader election: create a tree structure in a network of multimedia devices Symmetric, distributed protocol Uses electronic coin tossing (symmetry breaker) and timing delays

3 FireWire root contention protocol If two nodes try to become root at the same time: –Both nodes toss a coin –If heads: node waits for a “long” time (  1590ns,  1670ns) –If tails: node waits for a “short” time (  760ns,  850ns) The first node to finish waiting tries to become the root: –If the other contending node is not trying to become the root (different results for coin toss), then the first node to finish waiting becomes the root –If the other contending node is trying to become the root (same result for coin toss), then repeat the probabilistic choice

4 FireWire root contention Description of protocol: –Time –(Discrete) probability –Nondeterminism: Exact time delays are not specified in the standard, only time intervals Probabilistic timed automata - formalism featuring: –Time –(Discrete) probability –Nondeterminism

5 PTA: other case studies IEEE backoff strategy [KNS02] –Wireless Local Area Networks IEEE CSMA/CA protocol [Fru06] IPv4 Zeroconf protocol [KNPS03] –Dynamic self-configuration of network interfaces Security applications [LMT04, LMT05] PC-mobile downloading protocol [ZV06] Publish-subscribe systems [HBGS07]

6 Probabilistic timed automata Probabilistic timed automata: –An extension of Markov decision processes with clocks and constraints on clocks –An extension of timed automata with (discrete) probabilistic choice PTATA MDPLTS Clocks, constraints on clocks (Discrete) probabilities

7 Timed automata Timed automata [Alur & Dill’94]: formalism for timed + nondeterministic systems –Finite graph, clocks (real-valued variables increasing at same rate as real-time), constraints on clocks

8 Markov decision processes Markov decision process: MDP = (S,s 0,Steps): –S is a set of states with the initial state s 0 –Steps: S  2 Dist(S) \{  } maps each state s to a set of probability distributions  over S State-to-state transition: 1.Nondeterministic choice over the outgoing probability distributions of the source state 2.Probabilistic choice of target state according to the distribution chosen in step 1. succ init fail try

9 Markov decision processes The coexistence of nondeterministic and probabilistic choice means that there may be no unique probability of certain behaviours For example, we obtain the minimum and maximum probabilities of reaching a set of states State-to-state transition: 1.Nondeterministic choice over the outgoing probability distributions of the source state 2.Probabilistic choice of target state according to the distribution chosen in step 1. succ init fail try

10 Markov decision processes Policy (or adversary): to resolve nondeterminism –Mapping from every finite path to a nondeterministic choice available in the last state of the path –I.e., a policy specifies the next step to take State-to-state transition: 1.Nondeterministic choice over the outgoing probability distributions of the source state 2.Probabilistic choice of target state according to the distribution chosen in step 1. succ init fail try

11 Markov decision processes Examples of policies: –Whenever in state s1, take the blue distribution succ init fail try

12 Markov decision processes Examples of policies: –Whenever in state s1, take the blue distribution –Whenever in state s1, take the red distribution succ init fail try

13 Markov decision processes Examples of policies: –Whenever in state s1, take the blue distribution –Whenever in state s1, take the red distribution –In state s1: take the blue transition if the last choice was of the red transition; otherwise take the red transition succ init fail try

14 Markov decision processes Examples of policies: –Whenever in state s1, take the blue distribution –Whenever in state s1, take the red distribution –In state s1: take the blue transition if the last choice was of the red transition; otherwise take the red transition succ init fail try

15 Markov decision processes Policy (denoted by A): a mapping from each finite path s 0  0 s 1  1 …s n to a distribution from Steps(s n ) –By resolving the nondeterminism of a Markov decision process, a policy induces a fully probabilistic system –The probability measure Pr A s of a policy is obtained from the probability measure of its induced fully probabilistic system

16 Probabilistic timed automata Recall clocks: real-valued variables which increase at the same rate as real-time Clock constraints CC(X) over set X of clocks: g ::= x  c | g  g where x  X,   { } and c is a natural off x2x2 x3x3 on {x:=0}

17 Probabilistic timed automata Formally, PTA = (Q, q 0, X, Inv, prob): –Q finite set of locations with q 0 initial location –X is a finite set of clocks –Inv: Q  CC(X) maps locations q to invariant clock constraints –prob  Q x CC(X) x Dist(2 X x Q) is a probabilistic edge relation: yields the probability of moving from q to q’, resetting specified clocks

18 Probabilistic timed automata Discrete transition of timed automata: (q,g,C,q’)  Q x CC(X) x 2 X x Q Discrete transition of probabilistic timed automata: (q,g,p)  Q x CC(X) x Dist(2 X x Q) g,C g C1C1 C2C2 C3C

19 FireWire: node PTA Modelling: Four PTA (2 nodes, 2 wires)

20 FireWire: wire PTA

21 PTA semantics States: location, clock valuation pairs (q,v) (v is in (R >=0 ) |X| ) –Real-valued clocks give infinitely-many states Transitions: 2 classes FormalismSemantics Timed automata“Timed” transition systems Probabilistic timed automata“Timed” Markov decision processes q 2,v 2 q 1,v 3 Edge transitions... q,v q,v+d’q,v+d Time elapse (v+d adds real value d to the value of all clocks given by v) q 1,v 1

22 PTA semantics States: location, clock valuation pairs (q,v) (v is in (R >=0 ) |X| ) –Real-valued clocks give infinitely-many states Transitions: 2 classes FormalismSemantics Timed automata“Timed” transition systems Probabilistic timed automata“Timed” Markov decision processes q 2,v 2 q 1,v Probabilistic edges... q,v q,v+d’q,v+d Time elapse (v+d adds real value d to the value of all clocks given by v) 11 q 1,v

23 Probabilistic Timed CTL To express properties such as: –“under any policy, with probability >0.98, the message is delivered within 5 ms” Choices for the syntax: –Time-bound (TCTL of [ACD93]): P >0.98 [   5 delivered] –Reset quantifier (TCTL of [HNSY94]): z.[P >0.98 [  (delivered  z  5)]

24 Probabilistic Timed CTL “Time-bound” syntax of PTCTL:  ::= a |    |  | P  [  1 U  c  2 ] where: –a are atomic propositions (labelling locations), –c are natural numbers, –   { },   { , =,  } are comparison operators, –  [0,1] are probabilities –Subclass with  {0,1}: qualitative fragment

25 Probabilistic Timed CTL Example: state s satisfies P >0.9 [safe U  10 terminal]? –A path satisfies [safe U  10 terminal] iff: It reaches a terminal state within 10 time units Until that point, it is in a safe state –State s satisfies P >0.9 [safe U  10 terminal] iff all policies satisfy [safe U  10 terminal] from s with probability more than 0.9  10 safe U terminal Paths of a policy s Probability of these paths > 0.9?

26 Model checking for PTA Common characteristics: –Semantics of a PTA is an infinite-state MDP, so construct a finite-state MDP E.g., “region graph” E.g., discrete-time semantics (for certain classes of PTA/properties, equivalent to continuous-time semantics) –Apply the algorithms for the computation of maximum/minimum reachability probabilities to the finite-state MDP

off on off on off on off y<1 x1x1 {y:=0} x=1 {x,y:=0}

28 Complexity of model checking PTA Model checking for PTA: –EXPTIME-algorithm [KNSS02] –Construct finite-state MDP: exponential in the encoding of the PTA –Run the polynomial time algorithm for model checking finite-state MDPs [BdA95]

29 Complexity of model checking PTA Key sub-problem of model checking for PTAs: qualitative reachability –Does there exist a policy such that, from the initial state, we can reach the location q Final with probability 1? –(Almost) the simplest question we can ask for PTAs –EXPTIME-hard: Reduction from the acceptance problem for linearly bounded alternating Turing machines [LS07] Qualititative reachability can be expressed in PTCTL Therefore PTCTL model checking for PTAs is EXPTIME-complete

30 Complexity of model checking PTA Comparison: –TCTL model checking (and reachability) for timed automata is PSPACE-complete [ACD93, AD94] –CTL model-checking problem for transition systems operating in parallel is PSPACE- complete [KVW00] –TATL (and alternating reachability) for timed games is EXPTIME-complete [HK99,HP06]

31 TA with one or two clocks Restricting the number of clocks in timed automata [LMS04]: –Reachability for one-clock timed automata is NLOGSPACE-complete –Reachability for two-clock timed automata is NP-hard –Model checking “deadline” properties for one- clock timed automata is PTIME-complete

32 PTA with one or two clocks Restricting the number of clocks in PTA [JLS08]: –PCTL (no timed properties) for one-clock PTA is PTIME-complete –Model checking qualitative “deadline” properties for one-clock PTA is PTIME-complete –BUT qualitative reachability for two-clock PTA is EXPTIME-complete

33 PTA without nondeterminism E.g.:

34 PTA without nondeterminism Require well-formedness assumption: –On entry to a location, the guards of all outgoing edges can be enabled (possibly by letting time pass), whatever the values of clocks on entry Polynomial algorithm for expected-time reachability properties [CDFPS08]: –E.g., compute the expected time to reach location l 4 –Construct a graph of polynomial size in the encoding of the PTA –Extract two linear equation solving problems from the graph

35 PaCo and PTA Three main proposals: –Subclasses: can we define more efficient model-checking algorithms for subclasses of PTA? –Divergence: develop model-checking algorithms for PTA under more realistic assumptions –Abstraction/refinement: algorithms for determining simulation-based preorders between PTA