Lecture #5 Properties of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.

Slides:



Advertisements
Similar presentations
Automated Theorem Proving Lecture 1. Program verification is undecidable! Given program P and specification S, does P satisfy S?
Advertisements

Model Checking Lecture 2. Three important decisions when choosing system properties: 1automata vs. logic 2branching vs. linear time 3safety vs. liveness.
Completeness and Expressiveness
CS 267: Automated Verification Lecture 8: Automata Theoretic Model Checking Instructor: Tevfik Bultan.
Partial Order Reduction: Main Idea
Part 3: Safety and liveness
Automatic Verification Book: Chapter 6. What is verification? Traditionally, verification means proof of correctness automatic: model checking deductive:
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.
Recursive Definitions and Structural Induction
1 Mechanical Verification of Timed Automata Myla Archer and Constance Heitmeyer Presented by Rasa Bonyadlou 24 October 2002.
Section 7.4: Closures of Relations Let R be a relation on a set A. We have talked about 6 properties that a relation on a set may or may not possess: reflexive,
Lecture 6 Hyperreal Numbers (Nonstandard Analysis)
1 Formal Models for Stability Analysis : Verifying Average Dwell Time * Sayan Mitra MIT,CSAIL Research Qualifying Exam 20 th December.
Lecture #13 Stability under slow switching & state-dependent switching João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched.
1 Stability of Hybrid Automata with Average Dwell Time: An Invariant Approach Daniel Liberzon Coordinated Science Laboratory University of Illinois at.
Lecture #1 Hybrid systems are everywhere: Examples João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Safety and Liveness. Defining Programs Variables with respective domain –State space of the program Program actions –Guarded commands Program computation.
Lecture 2: Reasoning with Distributed Programs Anish Arora CSE 6333.
Infinite Automata -automata is an automaton that accepts infinite strings A Buchi automaton is similar to a finite automaton: S is a finite set of states,
CSE 555 Protocol Engineering Dr. Mohammed H. Sqalli Computer Engineering Department King Fahd University of Petroleum & Minerals Credits: Dr. Abdul Waheed.
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
Modeling Software Systems Lecture 2 Book: Chapter 4.
Reachability Analysis for Some Models of Infinite-State Transition Systems Oscar H. Ibarra, Tevfik Bultan, and Jianwen Su Department of Computer Science.
Ordinary Differential Equations S.-Y. Leu Sept. 21,28, 2005.
Programming Language Semantics Denotational Semantics Chapter 5 Part III Based on a lecture by Martin Abadi.
Antoine Girard VAL-AMS Project Meeting April 2007 Behavioral Metrics for Simulation-based Circuit Validation.
6. Markov Chain. State Space The state space is the set of values a random variable X can take. E.g.: integer 1 to 6 in a dice experiment, or the locations.
Lecture #9 Analysis tools for hybrid systems: Impact maps João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
1st-order Predicate Logic (FOL)
CIS 842: Specification and Verification of Reactive Systems Lecture Specifications: Sequencing Properties Copyright , Matt Dwyer, John Hatcliff,
Dina Workshop Analysing Properties of Hybrid Systems Rafael Wisniewski Aalborg University.
Lecture #8 Stability and convergence of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Lecture #11 Stability of switched system: Arbitrary switching João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Reading and Writing Mathematical Proofs Spring 2015 Lecture 4: Beyond Basic Induction.
Lecture #3 What can go wrong? Trajectories of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Recognizing safety and liveness Presented by Qian Huang.
Defining Liveness by Bowen Alpern and Fred B. Schneider Presented by Joe Melnyk.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Lecture #14 Computational methods to construct multiple Lyapunov functions & Applications João P. Hespanha University of California at Santa Barbara Hybrid.
Lecture #2 How to describe a hybrid system? Formal models for hybrid system João P. Hespanha University of California at Santa Barbara Hybrid Control and.
Lecture #12 Controller realizations for stable switching João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Chapter Relations and Their Properties
Safety and Liveness. Recall Program –State space Program computation –Of the form Consider the set of all program computations.
1 Temporal logic. 2 Prop. logic: model and reason about static situations. Example: Are there truth values that can be assigned to x,y simultaneously.
1 Formal Models for Stability Analysis of Hybrid Systems: Verifying Average Dwell Time * Sayan Mitra MIT,CSAIL Research Qualifying.
Program Correctness. The designer of a distributed system has the responsibility of certifying the correctness of the system before users start using.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
Variants of LTL Query Checking Hana ChocklerArie Gurfinkel Ofer Strichman IBM Research SEI Technion Technion - Israel Institute of Technology.
Presented by: Belgi Amir Seminar in Distributed Algorithms Designing correct concurrent algorithms Spring 2013.
Lecture #7 Stability and convergence of ODEs João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems NO CLASSES.
Today’s Agenda  Quiz 4  Temporal Logic Formal Methods in Software Engineering1.
Controller Synthesis For Timed Automata Authors : Eugene Asarin, Oded Maler, Amir Pnueli and Joseph Sifakis Yean-Ru Chen Embedded System Laboratory of.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Model Checking Lecture 2. Model-Checking Problem I |= S System modelSystem property.
Model Checking Lecture 2 Tom Henzinger. Model-Checking Problem I |= S System modelSystem property.
João P. Hespanha University of California at Santa Barbara
Autonomous Cyber-Physical Systems: Dynamical Systems
ECE/CS 584: Verification of Embedded Computing Systems
CSE322 Minimization of finite Automaton & REGULAR LANGUAGES
Lecture #6 Reachability
Lecture #10 Switched systems
Stability Analysis of Linear Systems
Course: CS60030 FORMAL SYSTEMS
On Topological Entropy and Stability of Switched Linear Systems
Presentation transcript:

Lecture #5 Properties of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems

Summary Properties of hybrid automata sequence properties safety properties liveness properties ensemble properties

Solution to a hybrid automaton Definition: A solution to the hybrid automaton is a pair of right-continuous signals x : [0, 1 ) ! R n q : [0, 1 ) ! Q such that 1. x is piecewise differentiable & q is piecewise constant 2. on any interval (t 1,t 2 ) on which q is constant 3. mode q 1 mode q 2  1 (q 1, x – ) = q 2 ? x  ›  2 (q 1, x – ) continuous evolution discrete transitions

Hybrid signals Definition: A hybrid time trajectory is a (finite or infinite) sequence of closed intervals  = { [  i,  ' i ] :  i ·  ' i,  ' i =  i+1, i =1,2, … } (if  is finite the last interval may by open on the right) T ´ set of hybrid time trajectories Definition:For a given  = { [  i,  ' i ] :  i ·  ' i,  i+1 =  ' i, i =1,2, … } 2 T a hybrid signal defined on  with values on X is a sequence of functions x = { x i : [  i,  ' i ] !X i =1,2, … } x :  ! X ´ hybrid signal defined on  with values on X [,][,] [,][,] [,1)[,1) t E.g.,  › { [0,1], [1,1], [1,1], [1,+ 1 ] }, x › { t/2, 1/4, 3/4, 1/t } t/2 1/4 1/t 3/4 [,][,] A hybrid signal can take multiple values for the same time-instant

Execution of a hybrid automaton Definition: An execution of the hybrid automaton is a pair of hybrid signals x :  ! R n q :  ! Q  { [  i,  ' i ] : i =1,2, … } 2 T such that 1. on any [  i,  ' i ] 2  q i is constant and 2. mode q 1 mode q 2  1 (q 1, x – ) = q 2 ? x  ›  2 (q 1, x – ) continuous evolution discrete transitions

Sequence Properties (signals)  sig ´ set of all piecewise continuous signals x:[0, T ) ! R n,T 2 ( 0, 1 ]  sig ´ set of all piecewise constant signals q:[0, T ) ! ,T 2 ( 0, 1 ] Sequence property ´ p :  sig £  sig ! {false,true} E.g., A pair of signals (q, x) 2  sig £  sig satisfies p if p (q, x) = true A hybrid automaton H satisfies p ( write H ² p ) if p ( q, x ) = true, for every solution (q, x) of H Sequence analysis ´ Given a hybrid automaton H and a sequence property p show that H ² p When this is not the case, find a witness (q, x) 2  sig £  sig such that p (q, x) = false (in general for solution starting on a given set of initial states  0 ½  £ R n )

Sequence Properties (hybrid signals)   sig ´ set of all hybrid signals x = { x i }   sig ´ set of all hybrid signals q = { q i } A pair of signals (q, x) 2  hsig £  hsig satisfies p if p (q, x) = true A hybrid automaton H satisfies p ( write H ² p ) if p ( q, x ) = true, for every solution (q, x) of H Sequence property ´ p :   sig £   sig ! {false,true} E.g., short for: x i (t) ¸ x j (t+3) 8 i : t 2 [  i,  i ’], 8 j : t+3 2 [  j,  j ’] (in general for solution starting on a given set of initial states  0 ½  £ R n )

Temporal logic formulas Propositional Logic (PL) primitives: : Æ Ç ), additional First-Order Logic (FOL) primitives: 8 9 additional Temporal Logic (TL) primitives: ¤ (always) § (eventually) ± (next time)  (until) ( ¤ p)(t 0 ),8 t ¸ t 0, p(t) ( § p )(t 0 ),9 t ¸ t 0, p(t) ( ± p )(t 0 ), p(t 0 + ) (  q,p )(t 0 ),9 t > t 0 q(t) Æ 8  2 [t 0,t) p(  ) p, q ´ propositions with free time variable t Some possible combinations: 1.“responsiveness” (always, eventually) ( ¤ § p)(t 0 ),8 t 1 ¸ t 0, 9 t ¸ t 1 p(t) 2.“persistence” (eventually, always) ( § ¤ p)(t 0 ), 9 t 1 ¸ t 0, 8 t ¸ t 1 p(t) ( § p)(t 1 ) Sequence properties are typically specified by temporal logic formulas

Example #1: Bouncing ball x 1 · 0 & x 2 < 0 ? x 2 › – c x 2 – t ( ¤ p)(t 0 ),8 t ¸ t 0, p(t) ( § p )(t 0 ),9 t ¸ t 0, p(t) ( ¤ § p)(t 0 ),8 t 1 ¸ t 0, 9 t ¸ t 1 p(t) ( § ¤ p)(t 0 ), 9 t 1 ¸ t 0, 8 t ¸ t 1 p(t) Assuming that x 1 (0) ¸ 0, the hybrid automaton satisfies: ¤ { x 1 ¸ 0 } ( short for ( ¤ { x 1 (t) ¸ 0 })(0) ) § { x 1 = 0 } ¤ § { x 1 = 0 } § ¤ { x 1 < 1 }

Safety properties safety property ´ a sequence property p that is: 1.nonempty, i.e., 9 (q,x) such that p (q,x) = true 2.prefix closed, i.e., given signals (q,x) p(q, x) ) p(q*, x*) for every prefix (q *, x * ) to (q, x) 3.limit closed, i.e., given an infinite sequence of signals (q 1,x 1 ), (q 2,x 2 ), (q 3,x 3 ), etc. each element satisfying p such that (q k,x k ) is a prefix to (q k+1,x k+1 ) 8 k then (q,x) › lim k !1 (q k,x k ) also satisfies p Given a signal x:[0,T) ! R n, T 2 (0, 1 ], x * :[0,T * ) ! R n is called a prefix to x if T * · T & x * (t) = x(t) 8 t 2 [0,T * ) “Something bad never happens:” 1. nontrivial 2. a prefix to a good signal is always good 3. if something bad happens, it will happen in finite time

(Technical parenthesis) Limit in what sense? safety property ´ … 3.limit closed, i.e., given an infinite sequence of signals (q 1,x 1 ), (q 2,x 2 ), (q 3,x 3 ), etc. each element satisfying p such that (q k,x k ) is a prefix to (q k+1,x k+1 ) 8 k then (q,x) › lim k !1 (q k,x k ) also satisfies p Prefix induces a relation R in the set of signals  sig R › { (x *,x) : x * is a prefix to x } This relation is a partial order (for short we write x * · x when (x *,x) 2 R ): 1.reflexive, i.e., a · a 8 a 2.antisymmetric, i.e., a · b, b · a ) a = b 3.transitive, i.e., a · b, b · c ) a · c Limit in the sense induced by the partial order: given x 1 · x 2 · x 3 · … lim k !1 x k = sup { x k : k ¸ 1} =unique function x such that x ¸ x k 8 k & x · y 8 y: y ¸ x k 8 k (def. of sup) Given a signal x:[0,T) ! R n, T 2 (0, 1 ], x * :[0,T * ) ! R n is called a prefix to x if T * · T & x * (t) = x(t) 8 t 2 [0,T * )

Examples E.g., p (q, x) = ¤ ( q(t),x(t) ) 2  where  ½  £ R n is a nonempty set  x1x1 x 1 satisfies p x 2 does not x2x2 this is a safety property: nonempty, prefix closed, limit closed Other safety properties: p (q, x) = x(t) ¸ 0 8 t (closed  ) p (q, x) = x(t) > 0 8 t (open  ) Nonsafety property: p (q, x) = inf t x(t) > 0 (not of the form above; not limit closed, Why?)

Liveness properties liveness property ´ a sequence property p with the property that for every finite (q*, x*) 2  sig £  sig there is some (q, x) 2  sig £  sig such that: 1.(q*, x*) is a prefix to (q, x) 2.(q, x) satisfies p “Something good can eventually happen:” for any sequence there is a good continuation. E.g., p (q, x) = § ( q(t),x(t) ) 2  where  ½  £ R n is a nonempty set p (q, x) = ¤ § ( q(t),x(t) ) 2  (always, eventually: 8 t 1 ¸ t 0, 9 t ¸ t 1 ) p (q, x) = § ¤ ( q(t),x(t) ) 2  (eventually, always: 9 t 1 ¸ t 0, 8 t ¸ t 1 ) p (q, x) = 9 L  ¤ ||x|| < Lwhat does it mean? p (q, x) = 8  § ¤ ||x|| <  what does it mean? very rich class, more difficult to verify Given a signal x:[0,T) ! R n, T 2 (0, 1 ], x * :[0,T * ) ! R n is called a prefix to x if T * · T & x * (t) = x(t) 8 t 2 [0,T * )

Completeness of liveness/safety Theorem 1:If p is both a liveness and a safety property then every (q, x) 2  sig £  sig satisfies p, i.e., p is always true (trivial property) By contradiction suppose there is a solution x that does not satisfy p x(t)x(t) take arbitrary t 1, by liveness must have a “good” continuation x’  by safety must be “good” at least until t 1 t1t1 by making t 1 ! 1 we construct sequence of “good” signals that converges to x  by safety x must be “good” x’(t)

Completeness of liveness/safety Theorem 2:For every nonempty (not always false) sequence property p there is a safety property p 1 and a liveness property p 2 such that: (q,x) satisfies p if and only if (q,x) satisfies both p 1 an p 2 Thus if we are able to verify safety and liveness properties we are able to verify any sequence property. Theorem 1:If p is both a liveness and a safety property then every (q, x) 2  sig £  sig satisfies p, i.e., p is always true (trivial property) But sequence properties are not all we may be interested in… “ensemble properties” ´ property of the whole family of solutions e.g., stability (continuity with respect to initial conditions) is not a sequence property because by looking a each solution (q, x) individually we cannot decide if the system is stable. Much more on this later… Can one find sequence properties that guarantee that the system is stable or unstable?

Next lecture… Reachability transition systems reachability algorithm backward reachability algorithm invariance algorithm controller design based on backward reachability