Lecture 81 Regional Automaton CS 5270 Lecture 8. Lecture 82 What We Need to Do Problem: –We need to analyze the timed behavior of a TTS. –The timed behavior.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Clocked Mazurkiewicz Traces and Partial Order Reductions for Timed Automata D. Lugiez, P. Niebert, S. Zennou Laboratoire d Informatique Fondamentale de.
Partial Order Reduction: Main Idea
Linear Programming (LP) (Chap.29)
Game-theoretic approach to the simulation checking problem Peter Bulychev Vladimir Zakharov Lomonosov Moscow State University.
François Fages MPRI Bio-info 2007 Formal Biology of the Cell Inferring Reaction Rules from Temporal Properties François Fages, Constraint Programming Group,
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.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Compatibility between shared variable valuations in timed automaton network model- checking Zhao Jianhua, Zhou Xiuyi, Li Xuandong, Zheng Guoliang Presented.
2.1 Sets. DEFINITION 1 A set is an unordered collection of objects. DEFINITION 2 The objects in a set are called the elements, or members, of the set.
1 Formal Models for Stability Analysis : Verifying Average Dwell Time * Sayan Mitra MIT,CSAIL Research Qualifying Exam 20 th December.
Transparency No. 2-1 Formal Language and Automata Theory Chapter 2 Deterministic Finite Automata (DFA) (include Lecture 3 and 4)
Ch 5.1: Review of Power Series
Ch 5.1: Review of Power Series Finding the general solution of a linear differential equation depends on determining a fundamental set of solutions of.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
Induction and recursion
Relations Chapter 9.
Sets.
1 Preliminaries Precalculus Review I Precalculus Review II
Transformation of Timed Automata into Mixed Integer Linear Programs Sebastian Panek.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Discrete Math for CS Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation.
Partial-fraction Expansion
Boyce/DiPrima 9 th ed, Ch 5.1: Review of Power Series Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce.
Big Ideas Differentiation Frames with Icons. 1. Number Uses, Classification, and Representation- Numbers can be used for different purposes, and numbers.
Lecture51 Timed Automata II CS 5270 Lecture 5.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
CS5270 Lecture 41 Timed Automata I CS 5270 Lecture 4.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Lecture 81 Optimizing CTL Model checking + Model checking TCTL CS 5270 Lecture 9.
Mathematical Proofs. Chapter 1 Sets 1.1 Describing a Set 1.2 Subsets 1.3 Set Operations 1.4 Indexed Collections of Sets 1.5 Partitions of Sets.
CompSci 102 Discrete Math for Computer Science
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
1 Networks of TA; Specification Logic; Case Studies CS5270, P.S. Thiagarajan.
ECE/CS 584: Verification of Embedded Computing Systems Model Checking Timed Automata Sayan Mitra Lecture 09.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Section 2.1. Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the.
ECE/CS 584: Verification of Embedded Computing Systems Timed to Hybrid Automata Sayan Mitra (edited by Yu Wang) Lecture 10.
TESTCOM/FATES Test Plan Generation for Concurrent Real-Time Systems based on Zone Coverage Analysis Farn Wang Dept. of Electrical Eng. National Taiwan.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Abstraction and Abstract Interpretation. Abstraction (a simplified view) Abstraction is an effective tool in verification Given a transition system, we.
CS5270 Lecture 41 Timed Automata I CS 5270 Lecture 4.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
The Relation Induced by a Partition
Direct Proof and Counterexample IV: Division into Cases and the Quotient-Remainder Theorem For each of the following values of n and d, find integers q.
SS 2017 Software Verification Timed Automata
Applications CS 5270 Lecture 7 Lecture 7.
Relations Chapter 9.
The Fundamental Theorem of Algebra and Complete Factorization
Reflexivity, Symmetry, and Transitivity
Timed Automata II CS 5270 Lecture Lecture5.
Copyright © Cengage Learning. All rights reserved.
Instructor: Rajeev Alur
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Yet another important mathematical concept
Timed Automata Formal Systems Pallab Dasgupta Professor,
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
CSEP590 – Model Checking and Automated Verification
Course: CS60030 FORMAL SYSTEMS
Presentation transcript:

Lecture 81 Regional Automaton CS 5270 Lecture 8

Lecture 82 What We Need to Do Problem: –We need to analyze the timed behavior of a TTS. –The timed behavior of TTS is given by TS TTS –But TS TTS is an infinite transition system! Solution: –Represent TS TTS as a finite transition system. –How? –By using the notion of regions, quotient TS TTS into a finite transition system RTS. –Using regions we can compute RTS from TTS. –UPPAAL computes a refined version of RTS from TTS.

Lecture 83 The Reductions. TS TTS TA TTS RTS Both the set of states and actions are infinite. Time abstraction Finite set of actions but infinite set of states. Quotient via bisimulation of finite index. Both states and actions are finite sets. TTS Semantics Regions

Lecture 84 The Reductions. TS TTS TA TTS RTS Both the set of states and actions are infinite. Finite set of actions but infinite set of states. Both states and actions are finite sets. RTS is computed directly from TTS (a finite object) s is reachable in TTS iff the corresponding state is reachable in RTS. TTS Semantics Regions

Lecture 85 The Reductions. TS TTS TA TTS RTS Both the set of states and actions are infinite. Finite set of actions but infinite set of states. Both states and actions are finite sets. TTS Semantics Regions

Lecture 86 Behaviors TTS = (S, s in, Act, X, I,  ) We associate a “normal” transition system with TTS while taking time into account: – TS TTS = ( S, s in, Act  R,  ) – R, non-negative reals    S  Act  R  S TS TTS is an infinite transition system!

Lecture 87 Behaviors TTS = (S, s in, Act, X, I,  ) TS TTS = ( S, s in, Act  R,  ) S = S  V V --- Valuations –A valuation says what the current values of each clock variable is.  v : X R

Lecture 88 Behaviors TTS = (S, s in, Act, X, I, ! ) TS TTS = ( S, s in, Act  R,  )  R, non-negative reals    S  Act  R  S S = S  V s in = (s in, V ZERO ) –V ZERO (x) = 0 for every x in X.

Lecture 89 Behaviors There will be two types of transitions. Time pass move: –(s, v)  (s, v’)  t units of time pass starting from V.  V’ (x) = V(x) + t for every x.  V’ = V + t t

Lecture 810 Behaviors Instantaneous transition. –(s, v)  (s’, v’) –In TTS there is a transition of the form (s, a, X, g, s’) such that:  V satisfies g.  V’(x) = 0 if x is in X.  V’(x) = V(x) if x is not in X. a

Lecture 811 The Reductions. TS TTS TA TTS RTS Both the set of states and actions are infinite. Finite set of actions but infinite set of states. Both states and actions are finite sets. TTS Semantics Regions

Lecture 812 Time Abstraction TTS = (S, S0, Act, X, I, ! ) s 2 S TS TTS = (SV, sv in, Act [ R, ) ) TA TTS = (SV, sv in, Act, ) where : –(s, V) (s’, V’) iff there exists  such that –(s, V) ) (s, V+  ) in TS and –(s, V+  ) ) (s’, V’) in TS. a  a

Lecture 813 Time Abstraction TTS = (S, S0, Act, X, I, ! ) s 2 S TS TTS = (SV, sv in, Act [ R, ) ) TA TTS = (SV, sv in, Act, ) FACT: s is reachable in TTS (TS) iff s is reachable in TA. Infinite number of states but only a finite number of actions.

Lecture 814 The Reductions. TS TTS TA TTS RTS Both the set of states and actions are infinite. Finite set of actions but infinite set of states. Both states and actions are finite sets. TTS Semantics Regions

Lecture 815 Bisimulation Finite index bisimulation relation –Used to quotient a big transition system into small one.  big --- infinite  small ---- finite.

Lecture 816 Bisimulation TS = (S, s in, Act, ! ) t  S  S, an equivalence relation – s  s for every s in S (reflexive) – s  s’ implies s’  s (symmetric) –s  s’ and s’  s’’ implies s  s’’ (transitive) –s t t and s s’ implies there exists t’ such that t t’ and s’ t t’. –s t t and t t’ implies there exists s’ such that s s’ and s’ t t’. a a a a

Lecture 817 Stable Relation s t t a s’

Lecture 818 Stable Relation s’ s t t a t t’ a

Lecture 819 Finite Index Bisimulation TS = (S, s in, Act, ! ) t a bisimulation. s  S [s] t – the equivalence class containing s. –{s’ | s t s’} t is of finite index if {[s] | s  S} is a finite set.

Lecture 820 An Example ababab i t j iff (i is odd and j is odd) OR (i is even and j is even). t is a bisimulation of finite index. {1, 3, 5,….} = [5] {2, 4, 6,..} = [8]

Lecture 821 The Quotient Transition System TS = (S, s in, Act,  ) t a bisimulation. QTS = (QS, qs in, Act, ) –The t - quotient of TS. –QS = { [s] t | s 2 S} –qs in = [s in ] t –[s] [s’] iff there exists s1  [s] and s1’  [s’] such that s1  s1’ in TS. a a

22 An Example ababab i t j iff (i is odd and j is odd) OR (i is even and j is even). t is a stable equivalence relation of finite index. {1, 3, 5,….} = [5] {2, 4, 6,..} = [8] [5] [12] a b

Lecture 823 The Reductions. TS TTS TA TTS RTS Both the set of states and actions are infinite. Finite set of actions but infinite set of states. Both states and actions are finite sets. TTS Semantics Regions

Lecture 824 The Equivalence based on Regions. TA = (SV, sv in, Act, ) t  SV  SV, a bisimulation of finite index. (s, V) t (s’, V’) iff – s = s’ – V Reg V’  V and V’ belong to the same clock region.

Lecture 825 The Equivalence based on Regions. TTS = (S, S0, Act, X, I, ! ) Let m 1 / n 1, m 2 / n 2,…, m k / n k be all the (irreducible) rationals that appear in the transitions. Let K be the LCM of {n 1, n 2,.., n k }. Transform a constraint of the form x · m/n into x · (m/n) £ K etc. Let TTS’ be the resulting timed transitions system. Then s is reachable in TTS iff it is reachable in TTS’. –TTS’ has only integer-valued constants in the guards!

Lecture 826 An example x < 2.1 y > 2 x  1.2 ; y a y < 2.3 b 21/10 12/10 2 = 20/10 23/10

Lecture 827 An example x < 21 y > 20 x  12 ; y a y < 23 b Reachability properties will be preserved,

Lecture 828 The Equivalence based on Regions. TA = ( S, S 0, Act, ) t µ S £ S, a bisimulation of finite index. (s, V) t (s’, V’) iff – s = s’ – V Reg V’ ( V and V’ belong to the same region).

Lecture 829 Regional Equivalence X = {x 1, x 2, …, x n }, the set of clock variables. V, V’ ---- Two clock valuations. –V : X R –V’ : X R V Reg V’ ? r 2 R. – b r c, the largest integer less than or equal to r. (the integral part of r). – b 2.8 c = 2 – b  c = 3 r 2 R –fr( r ), the fractional part of r. r = b r c + fr(r)

Lecture 830 Regional Equivalence X = {x 1, x 2, …, x n }, the set of clock variables. V, V’ ---- Two clock valuations. –V : X R –V’ : X R V Reg V’ ? c x = MAX{ c | “x REL c” is a clock constraint appearing in some guard or invariant} x REL c x ≤ c x ≥ c x c We are assuming all constants mentioned in the guards are integers.

Lecture 831 An example x < 21 y > 20 x  12 ; y a y < 23 b C x = ? C y = ?

Lecture 832 Regional Equivalence X = {x 1, x 2, …, x n }, the set of clock variables. V, V’ ---- Two clock valuations. V Reg V’ iff (i) For every x, either  b V(x) c > c x and b V’(x) c > c x OR  V(x) · c x and V’(x)  c x. Further,  V(x)  =  V’(x)  and fr(V(x)) = 0 iff fr(V’(x)) = 0 (ii) Suppose V(x) · c x and V(y) · c y. Then fr(V(x)) · fr(V(y)) iff fr(V’(x)) · fr(V’(y)).

Lecture 833 An example x < 21 y > 20 x  12 ; y a y < 23 b V(x) = 22 V(y) = 21.6 V’(x) = 87 V’(y) = 21.8

Lecture 834 An example x < 21 y > 20 x  12 ; y a y < 23 b V(x) = 22 V(y) = 21.6 V’(x) = 24 V’(y) = 21.6

Lecture 835 An example x < 21 y > 20 x  12 ; y a y < 23 b V(x) = 20.4 V(y) = 21.6 V’(x) = 20.8 V’(y) = 21.9

Lecture 836 An example x < 21 y > 20 x  12 ; y a y < 23 b V(x) = 20.4 V(y) = 21.6 V’(x) = 20.8 V’(y) = 21.9

Lecture 837 An example x < 21 y > 20 x  12 ; y a y < 23 b V(x) = 20.4 V(y) = 21 V’(x) = 20.8 V’(y) = 21

Lecture 838 Example X = {x, y} c x = 2 c y = 1 {(0, 1)} is a region. {(x, y) | 0 < x = y < 1} is a region. 28 regions.

Lecture 839 Regional Equivalence Reg is an equivalence relation (of finite index!); Each equivalence class of Reg is called a region. There are only a finite number of regions.

Lecture 840 The Equivalence based on Regions. TA = (SV, sv in, Act, ) t µ SV  SV a bisimulation of finite index. (s, V) t (s’, V’) iff – s = s’ – V Reg V’ ( V and V’ belong to the same region).

Lecture 841 The Quotienting One member of a clock region satisfies a clock constraint iff all members of the clock region satisfy the clock constraint. This can be used to compute the t - quotient of TA, called the regional transition system.

Lecture 842 The Reductions. TS TTS TA TTS RTS Both the set of states and actions are infinite. Finite set of actions but infinite set of states. Both states and actions are finite sets. TTS Semantics Regions

Lecture 843 Time Abstraction TTS = (S, S0, Act, X, I, ! ) s 2 S TS TTS = (SV, sv in, Act [ R, ) ) TA TTS = (SV, sv in, Act, ) where : –(s, V) (s’, V’) iff there exists  such that –(s, V) ) (s, V+  ) in TS and –(s, V+  ) ) (s’, V’) in TS. a  a

Lecture 844 The Region Automaton TA TTS = (SV, sv in, Act, ) (s, V)  (s’, V’) iff s = s’ and V and V’ belong to the same clock region. [(s, V)] (s, [V]). RTS = (SRV, srV in, Act, ) –SRV = {(s, [V]) | (s, V) in SV } –srV in = (s in, [V zero ]) = (s in, {V zero }) –(s, [V]) (s’, [V’]) iff for some V1 in [V] and some V1’ in [V’] it is the case that in TA TTS, (s, V1) (s’, V1’) a a

Lecture 845 Example: TTS

Lecture 846 The Representation of Regions For each clock x specify one formula of the form: –c  x < c + 1 where c is in {0, 1, …., c x -1} OR c = c x OR x > c x – For each clock pair specify a constraint of the form x – y = 0 or x – y < k or y –x < k for a suitable k in case x  c x and y  c y.

Example: The Regional Transition System. Only the reachable states have been shown.

Lecture 848 The Regional Construction Given a timed transition system, its (finite!) regional transition system can be computed effectively. Hence one can effectively solve the reachability problem (and other verification problems) concerning timed transition systems. This is the mathematical basis for the verification tools for timed transition systems and timed automata.