1 / 39

ESE601: Hybrid Systems

ESE601: Hybrid Systems. Introduction to verification. Spring 2006. Suggested reading material. Papers (R14) - (R16) on the website. The book “Model checking” by Clarke, Grumberg and Peled. What is verification?.

kylee
Download Presentation

ESE601: Hybrid Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ESE601: Hybrid Systems Introduction to verification Spring 2006

  2. Suggested reading material • Papers (R14) - (R16) on the website. • The book “Model checking” by Clarke, Grumberg and Peled.

  3. What is verification? • We need to make sure that the engineering systems we build are safe, functioning correctly, etc. • Systems can mean software, hardware, protocols, etc. Thus, not restricted to hybrid systems. In fact, verification originates in computer science, i.e. for discrete event systems. • How is verification done? The system is represented as transition system, the properties to be verified are represented as temporal logic formulas, whose truth values are to be determined/verified.

  4. Transition Systems • A transition system • consists of • A set of states Q • A set of events • A set of observations O • The transition relation • The observation map • Initial may be incorporated • The sets Q, , and O may be infinite • Language of T is all sequences of observations

  5. A painful example • The parking meter 5p 5p 5p 0 1 2 3 4 5 60 exp act act act act act act tick tick tick tick tick tick tick 5p tick States Q ={0,1,2,…,60} Events {tick,5p} Observations {exp,act} A possible string of observations (exp,act,act,act,act,act,exp,…)

  6. Temporal logic (informal) • Temporal logic involves logical propositions whose truth values depend on time. • “Tomorrow is Thursday” • The time is related to the execution steps of the transition system. • The asserted property is related to the observation of the transition system. • “At the next state, the meter expires”

  7. The basic verification problem Given transition system T, and temporal logic formula Basic verification problem • The transition system satisfies the formula if: • All executions satisfy the formula (linear time) • The initial states satisfy the formula (branching time)

  8. Another verification problem Given transition system T, and specification system S Another verification problem Language inclusion problems. Recall supervisory control problem.

  9. Linear temporal logic • Linear temporal logic syntax • The LTL formulas are defined inductively as follows • Atomic propositions • All observation symbols p are formulas • Boolean operators • If and are formulas then • Temporal operators • If and are formulas then

  10. Linear temporal logic • LTL formulas are evaluated over (infinite) sequences of execution, which are called words. • Ex: w=(exp,act,act,act,act,act,exp,…) • A word w satisfies a formula iff (w,0) satisfies it.

  11. Linear temporal logic • Express temporal specifications along sequences • Informally Syntax Semantics • Eventually p • Always p • If p then next q • p until q

  12. Linear temporal logic • Syntactic boolean abbreviations • Conjunction • Implication • Equivalence • Syntactic temporal abbreviations • Eventually • Always • In 3 steps

  13. Linear temporal logic semantics • The LTL formulas are interpreted over infinite (omega) words

  14. LTL examples • Two processors want to access a critical section. Each processor can has three observable states • p1={inCS, outCS, reqCS} • p2={inCS, outCS, reqCS} • Mutual exclusion • Both processors are not in the critical section at the same time. • Starvation freedom • If process 1 requests entry, then it eventually enters the critical section.

  15. LTL Model Checking Given transition system and LTL formula we have LTL model checking System verified Determine if Counterexample The transition system satisfies the formula if all executions satisfy it. LTL model checking is decidable for finite T Complexity : formula length transitions states

  16. Computational tree logic (CTL) • CTL is based on branching time. Its formulas are evaluated over the tree of trajectories generated from a given state of the transition system.

  17. Computation tree logic • CTL syntax • The CTL formulas are defined inductively as follows • Atomic propositions • All observation symbols p are formulas • Boolean operators • If and are formulas then • Temporal operators • If and are formulas then

  18. Computation tree logic (informally) • Express specifications in computation trees (branching time) • Informally Syntax Semantics • Inevitably next p • Possibly always p

  19. CTL Model Checking Given transition system and CTL formula we have CTL model checking System verified Determine if Counterexample The transition system satisfies the formula if all initial states satisfy it. CTL model checking is decidable for finite T Complexity : formula length transitions states

  20. Comparing logics CTL LTL CTL*

  21. Dealing with complexity Bisimulation Simulation Language Inclusion

  22. Language Equivalence • Consider two transition systems and over same and O • Languanges are equivalent L( )=L( )

  23. LTL equivalence • Consider two transition systems and and an LTL formula • Language equivalence and inclusion are difficult to check Language equivalence Language inclusion

  24. Language Equivalence CTL equivalence false true

  25. Simulation Relations • Consider two transition systems • over the same set of labels and observations. A relation • is called a simulation relation (of by ) if it • 1. Respects observations • 2. Respects transitions • If a simulation relation exists, then

  26. Game theoretic semantics • Simulation is a matching game between the systems • Check that but it is not true that

  27. 5p 5p 5p 0 1 2 3 4 5 60 exp act act act act act act tick tick tick tick tick tick tick 5p tick The parking example • The parking meter • A coarser model 5p tick 0 many exp act tick 5p tick

  28. Simulation relations • Consider two transition systems and • Complexity of • Complexity of Simulation implies language inclusion

  29. Abstraction Refinement Two important cases

  30. Bisimulation Relations • Consider two transition systems • over the same set of labels and observations. A relation • is called a bisimulation relation if it • 1. Respects observations • 2. Respects transitions • If a simulation relation exists, then

  31. Bisimulation • Consider two transition systems and • Bisimulation is a symmetric simulation • Strong notion of equivalence for transition systems Bisimulation CTL* (and LTL) equivalence

  32. Special quotients Abstraction When is the quotient language equivalent or bisimilar to T ?

  33. Quotient Transition Systems • Given a transition system • and an observation preserving partition , define • naturally using • 1. Observation Map • 2. Transition Relation

  34. Bisimulation Algorithm Quotient system always simulates the original system When does original system simulate the quotient system ?

  35. Bisimulation Algorithm Quotient system always simulates the original system When does original system simulate the quotient system ?

  36. Transition Systems • A region is a subset of states • We define the following operators

  37. Bisimulation algorithm • If T is finite, then algorithm computes coarsest quotient. • If T is infinite, there is no guarantee of termination Bisimulation Algorithm initialize while such that end while

  38. Relationships Bisimulation Strongest, more properties, easiest to check Simulation Weaker, less properties, easy to check Language Inclusion Weakest, less properties, difficult to check

  39. Complexity comparisons Bisimulation Simulation Language Equivalence

More Related