An Introduction to Hybrid Systems Modeling

Similar documents
An Introduction to Hybrid Systems Modeling

Timed Automata VINO 2011

The algorithmic analysis of hybrid system

Decidability Results for Probabilistic Hybrid Automata

Finite Automata and Languages

Hybrid systems and computer science a short tutorial

Recent results on Timed Systems

Guest lecturer: Prof. Mark Reynolds, The University of Western Australia

Models for Efficient Timed Verification

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either

Lecture 6: Reachability Analysis of Timed and Hybrid Automata

Timed Automata. Chapter Clocks and clock constraints Clock variables and clock constraints

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39

540 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 43, NO. 4, APRIL Algorithmic Analysis of Nonlinear Hybrid Systems

Computation Tree Logic (CTL) & Basic Model Checking Algorithms

Lecture 11: Timed Automata

Real-Time Systems. Lecture 10: Timed Automata Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany main

T Reactive Systems: Temporal Logic LTL

for System Modeling, Analysis, and Optimization

Discrete abstractions of hybrid systems for verification

Time and Timed Petri Nets

Time(d) Petri Net. Serge Haddad. Petri Nets 2016, June 20th LSV ENS Cachan, Université Paris-Saclay & CNRS & INRIA

Alan Bundy. Automated Reasoning LTL Model Checking

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford

Automata-Theoretic Model Checking of Reactive Systems

Timo Latvala. February 4, 2004

Modelling Real-Time Systems. Henrik Ejersbo Jensen Aalborg University

Modal and Temporal Logics

Reasoning about Strategies: From module checking to strategy logic

Synthesis weakness of standard approach. Rational Synthesis

Control Synthesis of Discrete Manufacturing Systems using Timed Finite Automata

Relational Interfaces and Refinement Calculus for Compositional System Reasoning

ESE601: Hybrid Systems. Introduction to verification

Model Checking. Temporal Logic. Fifth International Symposium in Programming, volume. of concurrent systems in CESAR. In Proceedings of the

Software Verification using Predicate Abstraction and Iterative Refinement: Part 1

Preface. Motivation and Objectives

Automata, Logic and Games: Theory and Application

Parameter Synthesis for Timed Kripke Structures

Complexity Issues in Automated Addition of Time-Bounded Liveness Properties 1

APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1. Antoine Girard A. Agung Julius George J. Pappas

Testing System Conformance for Cyber-Physical Systems

ONR MURI AIRFOILS: Animal Inspired Robust Flight with Outer and Inner Loop Strategies. Calin Belta

Interchange Semantics For Hybrid System Models

Formal Verification. Lecture 1: Introduction to Model Checking and Temporal Logic¹

Algorithmic Verification of Stability of Hybrid Systems

Timed Automata. Semantics, Algorithms and Tools. Zhou Huaiyang

From Monadic Second-Order Definable String Transformations to Transducers

Abstraction-based synthesis: Challenges and victories

Overview. Discrete Event Systems Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for?

Lecture 16: Computation Tree Logic (CTL)

The State Explosion Problem

Communication in Petri nets

Topics in Verification AZADEH FARZAN FALL 2017

Towards a Mechanised Denotational Semantics for Modelica

Linear Time Logic Control of Discrete-Time Linear Systems

DES. 4. Petri Nets. Introduction. Different Classes of Petri Net. Petri net properties. Analysis of Petri net models

An Algebra of Hybrid Systems

An Introduction to Temporal Logics

Failure Diagnosis of Discrete-Time Stochastic Systems subject to Temporal Logic Correctness Requirements

Complexity Issues in Automated Addition of Time-Bounded Liveness Properties 1

7. F.Balarin and A.Sangiovanni-Vincentelli, A Verication Strategy for Timing-

TIMED automata, introduced by Alur and Dill in [3], have

Semantic Equivalences and the. Verification of Infinite-State Systems 1 c 2004 Richard Mayr

Pushdown timed automata:a binary reachability characterization and safety verication

Verification of Linear Duration Invariants by Model Checking CTL Properties

Modeling and Analysis of Hybrid Systems

Hybrid Automata. Lecturer: Tiziano Villa 1. Università di Verona

Learning Goals of CS245 Logic and Computation

Infinite Games. Sumit Nain. 28 January Slides Credit: Barbara Jobstmann (CNRS/Verimag) Department of Computer Science Rice University

State-Space Exploration. Stavros Tripakis University of California, Berkeley

Finite-State Model Checking

Computer-Aided Program Design

Robust Controller Synthesis in Timed Automata

CS 208: Automata Theory and Logic

Liveness in L/U-Parametric Timed Automata

From games to executables!

A Decidable Class of Planar Linear Hybrid Systems

Towards Co-Engineering Communicating Autonomous Cyber-physical Systems. Bujorianu, M.C. and Bujorianu, M.L. MIMS EPrint:

Software Verification with Abstraction-Based Methods

arxiv: v1 [cs.fl] 25 Nov 2018

Unbounded, Fully Symbolic Model Checking of Timed Automata using Boolean Methods

Verification of temporal properties on hybrid automata by simulation relations

Logic Model Checking

CS256/Winter 2009 Lecture #1. Zohar Manna. Instructor: Zohar Manna Office hours: by appointment

Modal logics and their semantics

FORMAL METHODS LECTURE III: LINEAR TEMPORAL LOGIC

Reversal-Bounded Counter Machines

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang

On simulations and bisimulations of general flow systems

Logics for Hybrid Systems

CS477 Formal Software Dev Methods

MODEL CHECKING TIMED SAFETY INSTRUMENTED SYSTEMS

Alternating Time Temporal Logics*

Flat counter automata almost everywhere!

Verification of Polynomial Interrupt Timed Automata

Visibly Linear Dynamic Logic

Formal Verification Techniques. Riccardo Sisto, Politecnico di Torino

Modeling & Control of Hybrid Systems. Chapter 7 Model Checking and Timed Automata

Temporal Logic of Actions

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège

Transcription:

CS620, IIT BOMBAY An Introduction to Hybrid Systems Modeling Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS620: New Trends in IT: Modeling and Verification of Cyber-Physical Systems (2 August 2013) A. Trivedi 1 of 12

Course overview 1. Formal Modeling of CPS Discrete Dynamical Systems (Extended Finite State Machines) Continuous Dynamical Systems (Ordinary Differential Equations) Hybrid Dynamical Systems Timed automata, Hybrid automata, PCDs, Multi-mode systems, and other decidable subclasses 2. Tools for modeling CPS UPPAAL HyTech Stateflow/Simulink 3. Verification and Synthesis Classical temporal logics LTL and CTL Real-time extensions of these logics, in particular MTL Model-Checking for timed and hybrid automata Automatic Synthesis for CPS (satisfiability, controller-environment games, code-generations, etc.) A. Trivedi 2 of 12

Grading 20% 30% 20% 30% End-semester Project Mid-semester Quizzes A. Trivedi 3 of 12

Dynamical Systems Dynamical System: A system whose state evolves with time governed by a fixed set of rules or dynamics. state: valuation to variables (discrete or continuous) of the system time: discrete or continuous dynamics: discrete, continuous, or hybrid A. Trivedi 4 of 12

Dynamical Systems Dynamical System: A system whose state evolves with time governed by a fixed set of rules or dynamics. state: valuation to variables (discrete or continuous) of the system time: discrete or continuous dynamics: discrete, continuous, or hybrid Discrete System Continuous System Hybrid Systems. A. Trivedi 4 of 12

Dynamical Systems Discrete Dynamical Systems A. Trivedi 5 of 12

Most General Model for Dynamical Systems Definition (State Transition Systems) A state transition system is a tuple T = (S, S 0, Σ, ) where: S is a (potentially infinite) set of states; S 0 S is the set of initial states; Σ is a (potentially infinite) set of actions; and S Σ S is the transition relation; A. Trivedi 6 of 12

Most General Model for Dynamical Systems Definition (State Transition Systems) A state transition system is a tuple T = (S, S 0, Σ, ) where: S is a (potentially infinite) set of states; S 0 S is the set of initial states; Σ is a (potentially infinite) set of actions; and S Σ S is the transition relation; tick tick tick tick, 0, 1, 2, 3 tick tick tick count, 0 count, 1 count, 2 count, 3 tick A. Trivedi 6 of 12

State Transition Systems Definition (State Transition Systems) A state transition system is a tuple T = (S, S 0, Σ, ) where: S is a (potentially infinite) set of states; S 0 S is the set of initial states; Σ is a (potentially infinite) set of actions; and S Σ S is the transition relation; Finite and countable state transition systems A finite run is a sequence s 0, a 1, s 1, s 2, s 2,..., s n such that s 0 S 0 and for all 0 i < n we have that (s i, a i+1, s i+1 ). Reachability and Safe-Schedulability problems A. Trivedi 7 of 12

State Transition Systems Definition (State Transition Systems) A state transition system is a tuple T = (S, S 0, Σ, ) where: S is a (potentially infinite) set of states; S 0 S is the set of initial states; Σ is a (potentially infinite) set of actions; and S Σ S is the transition relation; Finite and countable state transition systems A finite run is a sequence s 0, a 1, s 1, s 2, s 2,..., s n such that s 0 S 0 and for all 0 i < n we have that (s i, a i+1, s i+1 ). Reachability and Safe-Schedulability problems We need efficient computer-readable representations of infinite systems! A. Trivedi 7 of 12

Extended Finite State Machines Let X be the set of variables (real-valued) of the system let X = N. A valuation ν of X is a function ν : X R. We consider a valuation as a point in R N equipped with Euclidean Norm. A. Trivedi 8 of 12

Extended Finite State Machines Let X be the set of variables (real-valued) of the system let X = N. A valuation ν of X is a function ν : X R. We consider a valuation as a point in R N equipped with Euclidean Norm. A predicate is defined simply as a subset of R N represented (non-linear) algebraic equations involving X. Non-linear predicates, e.g. x + 9.8 sin(z) = 0 A. Trivedi 8 of 12

Extended Finite State Machines Let X be the set of variables (real-valued) of the system let X = N. A valuation ν of X is a function ν : X R. We consider a valuation as a point in R N equipped with Euclidean Norm. A predicate is defined simply as a subset of R N represented (non-linear) algebraic equations involving X. Non-linear predicates, e.g. x + 9.8 sin(z) = 0 Polyhedral predicates: a 1x 1 + a 2x 2 + + a nx n k where a i R, x i X, and = {<,, =,, >}. A. Trivedi 8 of 12

Extended Finite State Machines Let X be the set of variables (real-valued) of the system let X = N. A valuation ν of X is a function ν : X R. We consider a valuation as a point in R N equipped with Euclidean Norm. A predicate is defined simply as a subset of R N represented (non-linear) algebraic equations involving X. Non-linear predicates, e.g. x + 9.8 sin(z) = 0 Polyhedral predicates: a 1x 1 + a 2x 2 + + a nx n k where a i R, x i X, and = {<,, =,, >}. Octagonal predicates x i x j k or x i k where x i, x j X, and = {<,, =,, >}. Rectangular predicates x i k where x i X, and = {<,, =,, >}. Singular Predicates x i = c. A. Trivedi 8 of 12

Poly-, Rect-, and Octa- Predicates x y y x z x z y (a) (b) (b) (c) A. Trivedi 9 of 12

Extended Finite State Machines x<3, tick, x =x + 1,, x =x, tick, x =x count,, x =x x=3, tick, x =0 Extended Finite State Machines (EFSMs): Finite state-transition systems coupled with a finite set of variables The valuation remains unchanged while system stays in a mode (state) The valuation changes during a transition when it jumps to the valuation governed by a predicate over X X specified in the transition relation. Transitions are guarded by predicates over X Mode invariants Initial state and valuation A. Trivedi 10 of 12

Extended Finite State Machines x<3, tick, x =x + 1,, x =x, tick, x =x count,, x =x x=3, tick, x =0 Definition (EFSM: Syntax) An extended finite state machine is a tuple M = (M, M 0, Σ, X,, I, V 0 ) such that: M is a finite set of control modes including a distinguished initial set of control modes M 0 M, Σ is a finite set of actions, X is a finite set of real-valued variable, M pred(x) Σ pred(x X ) M is the transition relation, I : M pred(x) is the mode-invariant function, and V 0 pred(x) is the set of initial valuations. A. Trivedi 11 of 12

EFSM: Semantics x<3, tick, x =x + 1,, x =x, tick, x =x count,, x =x x=3, tick, x =0 tick tick tick tick, 0, 1, 2, 3 tick tick tick count, 0 count, 1 count, 2 count, 3 tick A. Trivedi 12 of 12

EFSM: Semantics The semantics of an EFSM M = (M, M 0, Σ, X,, I, V 0 ) is given as a state transition graph T M = (S M, S0 M, Σ M, M ) where S M (M R X ) is the set of configurations of M such that for all (m, ν) S M we have that ν I(m); S M 0 S M such that (m, ν) S M if m M 0 and ν V 0 ; Σ M = Σ is the set of labels; M S M Σ M S M is the set of transitions such that ((m, ν), a, (m, ν )) M if there exists a transition δ = (m, g, a, j, m ) such that the current valuation ν satisfies the guard of δ, i.e. ν g; the pair of current and next valuations (ν, ν ) satisfies the jump constraint of δ, i.e. (ν, ν ) j; and the next valuation satisfies the invariant of the target mode of δ, i.e. ν I(m ). A. Trivedi 13 of 12