ECE/CS 584: Hybrid Automaton Modeling Framework Simulations and Composition Lecture 05 Sayan Mitra.

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

Hybrid automata - Abstraction Anders P. Ravn Department of Computer Science, Aalborg University, Denmark Hybrid Systems – PhD School Aalborg University.
Section 7.5: Equivalence Relations Def: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive. Ex: Let.
Equivalence Relations
N-Consensus is the Second Strongest Object for N+1 Processes Eli Gafni UCLA Petr Kuznetsov Max Planck Institute for Software Systems.
Interface Theories With Component Reuse Laurent DoyenEPFL Thomas HenzingerEPFL Barbara JobstmannEPFL Tatjana PetrovEPFL.
1 Fault Diagnosis for Timed Automata Stavros Tripakis VERIMAG.
Game-theoretic approach to the simulation checking problem Peter Bulychev Vladimir Zakharov Lomonosov Moscow State University.
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.
Hybrid Approach to Model-Checking of Timed Automata DAT4 Project Proposal Supervisor: Alexandre David.
1 Formal Models for Stability Analysis : Verifying Average Dwell Time * Sayan Mitra MIT,CSAIL Research Qualifying Exam 20 th December.
1 Stability of Hybrid Automata with Average Dwell Time: An Invariant Approach Daniel Liberzon Coordinated Science Laboratory University of Illinois at.
Introduction to Computability Theory
An Introduction to Input/Output Automata Qihua Wang.
Approximate Abstraction for Verification of Continuous and Hybrid Systems Antoine Girard Guest lecture ESE601: Hybrid Systems 03/22/2006
Hybrid Systems a lecture over: Tom Henzinger’s The Theory of Hybrid Automata Anders P. Ravn Aalborg University PhD-reading course November 2005.
Embedded Systems Laboratory Department of Computer and Information Science Linköping University Sweden Formal Verification and Model Checking Traian Pop.
Hybrid automata Rafael Wisniewski Automation and Control, Dept. of Electronic Systems Aalborg University, Denmark Hybrid Systems October 9th 2009.
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.
ECE/CS 584: Hybrid Automaton Modeling Framework Executions, Reach set, Invariance Lecture 03 Sayan Mitra.
Languages of nested trees Swarat Chaudhuri University of Pennsylvania (with Rajeev Alur and P. Madhusudan)
Lecture #5 Properties of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Hybrid automata and temporal logics
ECE/CS 584: PVS Tutorial Part 1 Lecture 05 Sayan Mitra 1.
Lecture51 Timed Automata II CS 5270 Lecture 5.
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.
Timed I/O Automata: A Mathematical Framework for Modeling and Analyzing Real-Time Systems Frits Vaandrager, University of Nijmegen joint work with Dilsun.
1 Modeling and Analyzing Distributed Systems Using I/O Automata Nancy Lynch, MIT Draper Laboratory, IR&D Mid-Year Meeting December 11, 2002.
Hybrid Input/Output Automata: Theory and Applications
ECE/CS 584: Hybrid Automaton Modeling Framework Invariance, Abstractions, Simulation Lecture 04 Sayan Mitra.
MPRI 3 Dec 2007Catuscia Palamidessi 1 Why Probability and Nondeterminism? Concurrency Theory Nondeterminism –Scheduling within parallel composition –Unknown.
Equivalence Relations
Chapter 8 Asynchronous System Model by Mikhail Nesterenko “Distributed Algorithms” by Nancy A. Lynch.
Symbolic Algorithms for Infinite-state Systems Rupak Majumdar (UC Berkeley) Joint work with Luca de Alfaro (UC Santa Cruz) Thomas A. Henzinger (UC Berkeley)
ECE/CS 584: Verification of Embedded Computing Systems Model Checking Timed Automata Sayan Mitra Lecture 09.
1 Formal Models for Stability Analysis of Hybrid Systems: Verifying Average Dwell Time * Sayan Mitra MIT,CSAIL Research Qualifying.
8.5 Equivalence Relations
Process Algebra (2IF45) Abstraction Parallel composition (short intro) Suzana Andova.
MAT 2720 Discrete Mathematics Section 3.3 Relations
ECE/CS 584: Verification of Embedded Computing Systems Timed to Hybrid Automata Sayan Mitra (edited by Yu Wang) Lecture 10.
1 Modeling and Analyzing Distributed Systems Using I/O Automata Nancy Lynch, MIT Draper Laboratory, IR&D Kickoff Meeting Aug. 30, 2002.
Equivalence Relations
SS 2017 Software Verification Timed Automata
I/O Automaton Models: Basic, Timed, Hybrid, Probabilistic, Etc.
2.5 and 2.6 Properties of Equality and Congruence
Properties of Regular Languages
Chryssis Georgiou, University of Cyprus Peter Musial, VeroModo, Inc.
TIOA-to-UPPAAL Translator & Front-End Integration
Timed Automata II CS 5270 Lecture Lecture5.
Busch Complexity Lectures: Reductions
Preorders on Labelled Transition Systems
Instructor: Rajeev Alur
Intro to Theory of Computation
Model Checking for an Executable Subset of UML
High-Level Abstraction of Concurrent Finite Automata
6.852: Distributed Algorithms Spring, 2008
Alternating tree Automata and Parity games
CSE322 CONSTRUCTION OF FINITE AUTOMATA EQUIVALENT TO REGULAR EXPRESSION Lecture #9.
ECE/CS 584: Verification of Embedded Computing Systems
Undecidable problems:
CS 425 / ECE 428  2013, I. Gupta, K. Nahrtstedt, S. Mitra, N. Vaidya, M. T. Harandi, J. Hou.
Last Night’s Homework: 2.2 Handout Tonight’s Homework: 2.3 Handout
Kleene’s Theorem (Part-3)
Equivalence Relations
Automata, Grammars and Languages
NFAs accept the Regular Languages
Modeling and Analysis of Complex Computational Systems
Presentation transcript:

ECE/CS 584: Hybrid Automaton Modeling Framework Simulations and Composition Lecture 05 Sayan Mitra

Plan for Today Abstraction and Implementation relations (continued) Composition Substitutivity Looking ahead Tools: PVS, SpaceEx, Z3, UPPAAL Decidable classes Invariant generation CEGAR …

Some nice properties of Forward Simulation Let 𝒜, ℬ, and 𝒞 be comparable TAs. If R1 is a forward simulation from 𝒜 to ℬ and R2 is a forward simulation from ℬ to 𝒞, then R1 ∘ R2 is a forward simulation from 𝒜 to 𝒞 𝒜 implements 𝒞 The implementation relation is a preorder of the set of all (comparable) hybrid automata (A preorder is a reflexive and transitive relation) If R is a forward simulation from 𝒜 to ℬ and R-1 is a forward simulation from ℬ to 𝒜 then R is called a bisimulation and ℬ are 𝒜 bisimilar Bisimilarity is an equivalence relation (reflexive, transitive, and symmetric) Relational composition

A Simulation Example ℬ 𝒜 𝒜 is an implementation of ℬ Is there a forward simulation from 𝒜 to ℬ ? Consider the forward simulation relation 𝒜 : 2—c4 cannot be simulated by ℬ from 2’ although (2,2’) are related. a 3 2’ b 1 a c 2 4 𝒜 3 b a 1 2 c 4

Backward Simulations Backward simulation relation from 𝒜1 to 𝒜2 is a relation R ⊆ 𝑄 1 × 𝑄 2 such that If x1 ∈ Θ1 and x1 R x2 then x2 ∈ Θ2 such that If x’1 R x’2 and x2—a x2’ then x2 –𝜷 x2’ and x1 R x2 Trace(𝜷) = a1 For every 𝝉 ∈ 𝒯 and x2 ∈ Q2 such that x1’ R x2’, there exists x2 such that Trace(𝜷) = 𝝉 Theorem. If there exists a backward simulation relation from 𝒜1 to 𝒜2 then ClosedTraces1 ⊆ ClosedTraces2

Composition of Hybrid Automata The parallel composition operation on automata enable us to construct larger and more complex models from simpler automata modules 𝒜1 to 𝒜2 are compatible if X1 ∩ X2 = H1 ∩ A2 = H2 ∩ A1 = ∅ Variable names are disjoint; Action names of one are disjoint with the internal action names of the other

Composition For compatible 𝒜1 and 𝒜2 their composition 𝒜1 || 𝒜2 is the structure 𝓐= 𝑋,𝑄,Θ,𝐸,𝐻,𝒟,𝒯 𝑋=𝑋1 ∪𝑋2 (disjoint union) 𝑄⊆𝑣𝑎𝑙(𝑋) Θ= 𝒙∈𝑄 ∀ 𝑖 ∈ 1,2 : 𝒙.𝑋𝑖∈Θ𝑖} H = H1 ∪ H2 (disjoint union) E = E1 ∪ E2 and A= E ∪ H 𝒙,𝑎,𝒙 ∈ 𝒟 iff 𝑎 ∈𝐻1 and (𝒙.𝑋1,𝑎,𝒙′.𝑋1) ∈ 𝒟1 and 𝒙.𝑋2=𝒙.𝑋2 𝑎 ∈𝐻2 and (𝒙.𝑋2,𝑎,𝒙′.𝑋2) ∈ 𝒟2 and 𝒙.𝑋1=𝒙.𝑋1 Else, (𝒙.𝑋1,𝑎,𝒙′.𝑋1) ∈ 𝒟1 and (𝒙.𝑋2,𝑎,𝒙′.𝑋2) ∈ 𝒟2 𝒯: set of trajectories for X 𝜏 ∈ 𝒯 iff ∀ 𝑖 ∈ 1,2 , 𝜏.Xi ∈𝒯i Theorem . 𝓐 is also a hybrid automaton.

Example: Send || TimedChannel Automaton Channel(b,M) variables: queue: Queue[M,Reals] := {} clock1: Reals := 0 actions: external send(m:M), receive(m:M) transitions: send(m) pre true eff queue := append(<m, clock1+b>, queue) receive(m) pre head(queue)[1] = m eff queue := queue.tail trajectories: evolve d(clock1) = 1 stop when ∃ m, d, <m,d> ∈ queue /\ clock=d Automaton PeriodicSend(u, M) variables: analog clock: Reals := 0 states: True actions: external send(m:M) transitions: send(m) pre clock = u eff clock := 0 trajectories: evolve d(clock) = 1 stop when clock=u

Composed Automaton Automaton SC(b,u) variables: queue: Queue[M,Reals] := {} clock_s, clock_c: Reals := 0 actions: external send(m:M), receive(m:M) transitions: send(m) pre clock_s = u eff queue := append(<m, clock_c+b>, queue); clock_s := 0 receive(m) pre head(queue)[1] = m eff queue := queue.tail trajectories: evolve d(clock_c) = 1; d(clock_s) = 1 stop when (∃ m, d, <m,d> ∈ queue /\ clock_c=d) \/ (clock_s=u)

Some properties about composed automata Let 𝓐= 𝒜1 || 𝒜2 and let α be an execution fragment of 𝓐. Then αi = α|(Ai, Xi) is an execution fragment of 𝒜i α is time-bounded iff both α1 and α2 are time-bounded α is admissible iff both α1 and α2 are admissible α is closed iff both α1 and α2 are closed α is non-Zeno iff both α1 and α2 are non-Zeno α is an execution iff both α1 and α2 are executions Traces 𝓐= 𝜷 𝜷| Ei ϵ Traces 𝒜i } See examples in the TIOA monograph

Substitutivity Theorem. Suppose 𝒜1 , 𝒜2 and ℬ have the same external interface and 𝒜1 , 𝒜2 are compatible with ℬ. If 𝒜1 implemens 𝒜2 then 𝒜1|| ℬ implements 𝒜2 || ℬ Proof sketch. Define the simulation relation:

Substutivity Theorem. Suppose 𝒜1 𝒜2 ℬ1 and ℬ2 are HAs and 𝒜1 𝒜2 have the same external actions and ℬ1 ℬ2 have the same external actions and 𝒜1 𝒜2 is compatible with each of ℬ1 and ℬ2 If 𝒜1 implements ℬ1 and 𝒜2 implements ℬ2 then 𝒜1 || ℬ1 implements 𝒜2||ℬ2 . Proof. 𝒜1 || ℬ1 implements 𝒜2||ℬ1 𝒜2||ℬ1 implements 𝒜2||ℬ2 By transitivity of implementation relation 𝒜1 || ℬ1 implements 𝒜2||ℬ2

Theorem. 𝒜1 || ℬ2 implements 𝒜2||ℬ2 and ℬ1 implements ℬ2 then 𝒜1 || ℬ1 implements 𝒜2||ℬ2.

Summary Implementation Relation Composition Substitutivity Forward and Backward simulations Composition Substitutivity

Example