Hybrid Systems Presented by: Arnab De Anand S. An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean?

Slides:



Advertisements
Similar presentations
Model Checking Base on Interoplation
Advertisements

Model Checking Lecture 4. Outline 1 Specifications: logic vs. automata, linear vs. branching, safety vs. liveness 2 Graph algorithms for model checking.
Model Checking Lecture 3. Specification Automata Syntax, given a set A of atomic observations: Sfinite set of states S 0 Sset of initial states S S transition.
Automated Theorem Proving Lecture 1. Program verification is undecidable! Given program P and specification S, does P satisfy S?
An improved on-the-fly tableau construction for a real-time temporal logic Marc Geilen 12 July 2003 /e.
Algorithmic Software Verification VII. Computation tree logic and bisimulations.
CS 267: Automated Verification Lecture 8: Automata Theoretic Model Checking Instructor: Tevfik Bultan.
Partial Order Reduction: Main Idea
Models of Concurrency Manna, Pnueli.
Chapter 16 : KRONOS (Model Checking of Real-time Systems)
Planning based on Model Checking Dept. of Information Systems and Applied CS Bamberg University Seminar Paper Svetlana Balinova.
Automatic Verification Book: Chapter 6. What is verification? Traditionally, verification means proof of correctness automatic: model checking deductive:
François Fages MPRI Bio-info 2007 Formal Biology of the Cell Modeling, Computing and Reasoning with Constraints François Fages, Constraint Programming.
ECE Synthesis & Verification - L271 ECE 697B (667) Spring 2006 Synthesis and Verification of Digital Systems Model Checking basics.
Verification of Graph Transformation Systems Arman Sheikholeslami
CS6133 Software Specification and Verification
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
UPPAAL Introduction Chien-Liang Chen.
Hybrid System Verification Synchronous Workshop 2003 A New Verification Algorithm for Planar Differential Inclusions Gordon Pace University of Malta December.
Timed Automata.
Introduction to Uppaal ITV Multiprogramming & Real-Time Systems Anders P. Ravn Aalborg University May 2009.
1 Partial Order Reduction. 2 Basic idea P1P1 P2P2 P3P3 a1a1 a2a2 a3a3 a1a1 a1a1 a2a2 a2a2 a2a2 a2a2 a3a3 a3a3 a3a3 a3a3 a1a1 a1a1 3 independent processes.
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 13.
Compatibility between shared variable valuations in timed automaton network model- checking Zhao Jianhua, Zhou Xiuyi, Li Xuandong, Zheng Guoliang Presented.
August Moscow meeting1August Moscow meeting1August Moscow meeting11 Deductive tools in insertion modeling verification A.Letichevsky.
Review of topics Final exam : -May 2nd to May 7 th - Projects due on May 7th.
1/22 Programs : Semantics and Verification Charngki PSWLAB Programs: Semantics and Verification Mordechai Ben-Ari Mathematical Logic for Computer.
Discrete Abstractions of Hybrid Systems Rajeev Alur, Thomas A. Henzinger, Gerardo Lafferriere and George J. Pappas.
Discrete Structures Chapter 2 Part B Mathematical Induction
The Symbolic Approach to Hybrid Systems Tom Henzinger University of California, Berkeley.
ESE601: Hybrid Systems Introduction to verification Spring 2006.
Abstract Verification is traditionally done by determining the truth of a temporal formula (the specification) with respect to a timed transition system.
Model Checking LTL over (discrete time) Controllable Linear System is Decidable P. Tabuada and G. J. Pappas Michael, Roozbeh Ph.D. Course November 2005.
1/25 Pointer Logic Changki PSWLAB Pointer Logic Daniel Kroening and Ofer Strichman Decision Procedure.
Regular Model Checking Ahmed Bouajjani,Benget Jonsson, Marcus Nillson and Tayssir Touili Moran Ben Tulila
Timed UML State Machines Ognyana Hristova Tutor: Priv.-Doz. Dr. Thomas Noll June, 2007.
Model Checking Lecture 3 Tom Henzinger. Model-Checking Problem I |= S System modelSystem property.
Transformation of Timed Automata into Mixed Integer Linear Programs Sebastian Panek.
CS6133 Software Specification and Verification
CS5270 Lecture 41 Timed Automata I CS 5270 Lecture 4.
Advanced Topics in Software Engineering Marjan Sirjani Tehran University Faculty of Engineering ECE Department Tehran,
Lecture 81 Optimizing CTL Model checking + Model checking TCTL CS 5270 Lecture 9.
1 Outline:  Optimization of Timed Systems  TA-Modeling of Scheduling Tasks  Transformation of TA into Mixed-Integer Programs  Tree Search for TA using.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
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.
Symbolic Algorithms for Infinite-state Systems Rupak Majumdar (UC Berkeley) Joint work with Luca de Alfaro (UC Santa Cruz) Thomas A. Henzinger (UC Berkeley)
1 CSEP590 – Model Checking and Automated Verification Lecture outline for July 9, 2003.
Variants of LTL Query Checking Hana ChocklerArie Gurfinkel Ofer Strichman IBM Research SEI Technion Technion - Israel Institute of Technology.
Today’s Agenda  Quiz 4  Temporal Logic Formal Methods in Software Engineering1.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Model Checking Lecture 2. Model-Checking Problem I |= S System modelSystem property.
CS5270 Lecture 41 Timed Automata I CS 5270 Lecture 4.
Model Checking Lecture 2 Tom Henzinger. Model-Checking Problem I |= S System modelSystem property.
Complexity of Compositional Model Checking of Computation Tree Logic on Simple Structures Krishnendu Chatterjee Pallab Dasgupta P.P. Chakrabarti IWDC 2004,
SS 2017 Software Verification Timed Automata
Planning as model checking, (OBDDs)
Instructor: Rajeev Alur
Arithmetic Constraints and Automata
Timed Automata Formal Systems Pallab Dasgupta Professor,
Alternating tree Automata and Parity games
CSEP590 – Model Checking and Automated Verification
ECE/CS 584: Verification of Embedded Computing Systems
Over-Approximating Boolean Programs with Unbounded Thread Creation
MA/CSSE 474 More Math Review Theory of Computation
Producing short counterexamples using “crucial events”
Translating Linear Temporal Logic into Büchi Automata
Introduction to verification
Course: CS60030 FORMAL SYSTEMS
Presentation transcript:

Hybrid Systems Presented by: Arnab De Anand S

An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean? Sequence of discrete steps – in each step the system evolves continuously according to some dynamical law until a transition occurs. Transitions are instantaneous.

A Motivating Example: Thermostat The heater can be on or off. When the heater is on, the temperature increases continuously according to some formula. When the heater is off, the temperature decreases. Thermostat keeps the temperature within some limit by putting the heater on or off.

Formal Model of Hybrid Systems Model Hybrid Systems as graphs:  Vertices represent continuous activities.  Edges represent transition.

Formal Model cont’d… H = (Loc, Var, Lab, Edg, Act, Inv)  Loc: finite set of vertices (locations)  Var: finite set of real-valued variables.  A valuation v(x) assignes a real value to each variable. V is the set of valuations.  A state is a pair (l, v), l є Loc, v є V.

Formal Model cont’d…  Lab: finite set of synchronization labels, containing the stutter label τ  Edg: finite set of edges (transitions). e = (l, a, µ, l’) Stutter transition (l, µ, Id Con, l).  Act: set of activities, maps non-negative reals to valuations.  Inv: set of invariants at a location.

Time-deterministic hybrid system There is at most one activity for each location and each valuation such that f(0) = v Denoted by φ l [v].

Runs of a Hybrid System A state can change in two ways:  Discrete and Instantaneous transition that changes both l and v.  Time delay that changes only v according to activities of the location.  Some transition must be taken before the invariant becomes false. Run:

Thermostat example revisited

Hybrid Systems as Transition Systems

Composition of Hybrid Systems

Linear Hybrid System A time-deterministic hybrid system is linear if: 1. The activity functions are of the form 2. The invariant for each location is defined by a linear formula over Var.

Linear Hybrid System cont’d… 3. For all transitions, the transition relation µ is defined by a guarded set of non-deterministic assignments If α x = β x, we write

Special Cases of Linear Hybrid Systems If Act(l,x) = 0 for all locations, then x is a discrete variable. A discrete variable x is a proposition if for all transitions. A finite-state system is a linear hybrid system all of whose variables are propositions.

Special cases cont’d… If Act(l,x) = 1 for each location and for each transition, then x is a clock. A timed automaton is a LHS all of whose variables are either propositions or clocks and the linear expressions are boolean combination of inequalities of the form x#c or x-y#c (c non-negative integer).

Special cases cont’d… If for each location and for each edge, then x is an integrator. An integrator system is a LHS all of whose variables are propositions or integrators.

Example of LHS: Leaking Gas Burner

Reachability problem Given two states, does there exist any run that starts at first state and ends at another. Verification of some invariant property is equivalent to the reachability question. Reachability is undecidable in general… but decidable for some special cases.

Verification of Linear Hybrid Systems H=(Loc,Var,lab,Edg,Act,Inv) Do a reachability analysis Iteratively find out the reachable states Forward analysis – computes step successors of a given set of states Backward analysis

Forward analysis Forward time closure Set of valuations reachable from some v єP by letting time progress. (l,v)  t (l’,v’) Post condition of P w.r.t an edge e, The set of valuations reachable from v є P by executing transition e. (l,v)  a (l’,v’)

Forward Analysis (contd…) Region: A set of states Define (l,P) = {(l,v) | v є P } Extension to regions: for R=U lєLoc (l,R l )

Forward Analysis (contd…) A symbolic run on H is (in)infinite sequence ρ: (l 0,P 0 )(l 1,P 1 ),……(l i,P i ). The region (l i,P i ) is the set of states reachable from (l 0,v 0 ) after executing e 0,….e i-1 Every run of H can be represented by some symbolic run of H Given I (subset of Σ), the reachable region (I  *) is the set of states reachable from I.

Forward Analysis (contd…) Reachable region is least fixed point of. Or R l of valuations for l є Loc if lfp of. [ψ] = set of valuations that satisfy ψ Ψ is a linear formula P  v is linear if P=[ψ] for some ψ

Forward Analysis (contd…) For linear H, if P is linear, then so is l  and post e [P] pc  Var is a control var with range Loc A region R is linear of all R l ([ψ l ]) are linear Region R is defined by Do successive approx. Terminate for simple mutirated timed systems

Example : leaking gas burner.

Backward Analysis Backward time closure. Precondition. Extension

Backward Analysis (contd…) Initial region. Equations Initial region if lfp. l  and pre e [P] are linear In example, we find set of states from which ψ R =y ≥60  20z ≤y is reachable. We get null set

Model Checking (Timed CTL) Check if H satisfies a requirement expressed in real-time temporal logic Define C (disjoint with Var) State predicate is a linear formula over Var U C The grammer. Ψ is state predicate and zєC Formulas of TCTL are interpreted over state space of H

Timed CTL (contd…) Clocks can be used to express timing constraints. A run ρ=σ 0  t0 σ 1  t1 For a state ρ i =(li,vi), position  =(i,t) (0≤t ≤t i ) Positions are lexicographically ordered.

TCTL (contd…) For all positions  =(i,t) Clock valuation ξ: C  R ≥0 ξ+t and ξ[z=0] Extended state (σ, ξ)

Model Checking (contd…) (σ, ξ) ╞ Φ, if

Model Checking algorithm σ ╞ Φ, of (σ,ξ) Φ for all ξ evaluations Computes Characteristic set [Φ] (l,v) є (R ► R’) iff Single step until operator If R and R’ are linear so is R ► R’ Thus the modalities can be computed iteratively using ► Will terminate in simple multirate timed system

Examples Φ  U Φ’ computed as U i R i with  ◊ ≤c Φ computed as ¬U i R i [z=0] with

Thank you