



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




ECE 598: Modeling and Verification of Real-time and Hybrid Systems Fall 2008
Prof. Sayan Mitra Scribe: YOUR NAME
18.0.1 Refinement
Refinement is a special case of forward simulation where the relation between A ans B is a partial function.
Definition 1. Let A and B be comparable HIOAs. A refinement from A to B is a function F : QA → QB, satisfying the following conditions, for all states x ∈ QA and y ∈ QB:
18.0.2 Bisimulation
Definition 2. Let A and B be comparable HIOAs. A bisimulation between A to B is a relation R ⊆ QA × QB such that R is a forward simulation from A to B and R−^1 is a forward simulation from B to A.
That is, R satisfies the following conditions, for all states x ∈ QA and y ∈ QB if xRy then the following conditions hold:
Example: Forward simulation and bisimulation in transition systems.
18.0.3 Backward Simulation
Definition 3. Let A and B be comparable HIOAs. A backward simulation from A to B is a total relation R ⊆ QA × QB satisfying the following conditions, for all states x ∈ QA and y ∈ QB:
A relation R ⊆ X × Y is said to be image finite if for every x ∈ X the set {y ∈ Y | x R y} is finite.
Theorem 1. Let A and B be comparable HIOAs and let R be an image finite backward simulation relation from A to B. Then A ≤ B.
Image finiteness is necessary for proving inclusion of traces that are open sequences. See [KLSV05] for the proof.
Example. Need for backward simulation The following example illustrates the need for back- ward simulation relation.
History and prophecy relations are discussed in [KLSV05].
Thus far we have discussed how to prove that a given automaton A implements another automa- ton B. Generally, finding the simulation relation R for proving this requires some insight about the relationship between A and B. An alternative scenario where simulation relations come up is in finding B and a (bi)simulation relation that establishes that A ≤ B. Now we discuss how discrete (finite) abstractions can be constructed automatically for certain classes of hybrid systems (HIOAs). The details appear in [ADI06]. The key idea is to start with a guessed abstraction which is then refined through elimination of spurious counterexamples.
Assumptions. We will consider HIOAs without inputs (variables or actions). Let n be the num- ber of real-valued continuous internal and output variables of HIOA A, and let L be the (finite) set of valuations for the discrete variables. That is QA ⊆ Rn^ × L. Suppose the set of bad states be U = Ud × Uc ⊆ QA where Ud ⊆ L and Uc ⊆ Rn. Let Σn be the set of all n-dimensional linear expressions l : Rn^ → R and Łn be the set of all n-dimensional linear predicates π : Rn^ → B. Furthermore, we consider HIOAs A with linear dynamics, i.e., for each l ∈ L, the RHS of the differential equations are linear expressions.
Definition 5. A vector of predicates Π′^ = (π 1 ′,... , π k′′ ) refines another vector of predicates Π = (π 1 ,... , πk) if for each i ∈ { 1 ,... , k} there exists j ∈ { 1 ,... , k′} such that πi = π′ j.
Definition 6. An abstract state (l′, b′) ∈ L × Bk′ for vector of predicates Π′^ refines an abstract state (l, b) ∈ L × Bk^ for Π iff l = l′^ and CΠ′^ (b′) ⊆ CΠ(b).
Definition 7. A counterexample (l 0 ′, b′ 0 ), (l′ 1 , b′ 1 ),... , (l′ n, b′ n) for Π′^ refines another counterexample (l 0 , b 0 ), (l 1 , b 1 ),... , (ln, bn) for Π iff Π′^ refines Π and (l′ 0 , b′ 0 ) refines (l 0 , b 0 ).
For counter-example analysis we define the following two functions:
a ∈ AA, P REDa(l, b, l′, b′) := {xc ∈ CΠ(b) ∩ P rea | ∀x′^ x →a x′^ x′^ ∈ CΠ(b′) ∩ Inv′ l}
P REDT (l, b, l′, b′) := {xc ∈ CΠ(b) ∩ Invl | ∃τ ∈ TA(l, x), ∀t ∈ τ.dom, τ (t) ∈ Inv l′ ∧ τ.lstate ∈ CΠ(b′)} SU CCT (X, l′, b′) := {xc ∈ CΠ(b′) ∩ Invl′^ | ∃τ ∈ TA, τ.f statec ∈ X, τ.lstatec = xc} a ∈ AA, SU CCa(X, l′, b′) := SU CCT ({xc ∈ CΠ(b′) | ∃x 1 , x 2 , x 1 →a x 2 , x 1 ∈ X, x 2 c = xc}, l′, b′)
Here l, l′^ ∈ L, b, b′^ ∈ Bk, X ∈ Rn, P rea is the precondition/guard of action a and Invl is the invariant associated with discrete state xd = l.
Using the above functions, for a given counterexample of abstract states γ = (l 0 , b 0 ), (l 1 , b 1 ),... , (ln, bn) we then compute the the real reachable states for each prefix. Let Ri ⊆ QA be the set of reach- able states after i transitions in B according to the counter example γ. Thus, if Ri = ∅ then γ is a spurious counter example.
Counterexample \ Analysis \ Algorithm R 0 = CΠ(b 0 ) ∩ {xc ∈ Il 0 | (l 0 , xc) ∈ Q 0 A} for i ∈ 1 to n do Ri = SU CC(Ri− 1 , li, bi) if Ri = ∅ then output Spurious fi od output Real
In case we find a spurious counter-example, we would like to use this information to refine our abstraction B (with predicates Π) to a new abstraction B′^ with new predicates P i′. This new ab- straction B′^ should disallow closely related counter examples to appear again.
Suppose γ = (l 0 , b 0 ), t 1 , (l 1 , b 1 ), t 2 ,... , tn− 1 , (ln, bn) is a counter example. Here the t′ is are the tran- sition/ trajectory labels of → corresponding to the transitions or trajectories of A. Suppose further, that γ is spurious and Rk+1 = ∅ and Rk 6 = ∅, for 0 ≤ k < n. We call tk the failing transition. Then, it can be proved that Rk ∩ P REDtk (lk, bk, lk+1, bk+1) = ∅. See [ADI06].
This suggests that (lk+1, bk+1) is not really reachable from (lk, bk) but the transition is allowed in B as an artifact of the abstraction. That is, we refine Π to Π′^ such that every refined abstract state intersects at most with one of Rk and P REDtk (lk, bk, lk+1, bk+1.
The following theorem assures that the refinement process terminates after a finite number of iterations.
Theorem 2. Suppose p is a counter-example for a vector of predicates P i such that tk is the failing transi- tion. If Π′^ refines Π and contains predicates that separate Rk from P REDtk (lk, bk, lk+1, bk+1) and we find a refined counter example p′^ of p, then there exists a failing transition tj in p′^ such that j < k.
See [ADI06] for details on computing separating predicates using polyhedra. Computing ab- stractions for hybrid systems is an active area of research. Several earlier results were presente- din [TK02, TPL02, AHLP00] See the Proceedings of HSCC from past few years.
[ADI06] Rajeev Alur, Thao Dang, and Franjo Ivanˇci´c. Counterexample-guided predicate ab- straction of hybrid systems. Theor. Comput. Sci., 354(2):250–271, 2006.
[AHLP00] Rajeev Alur, Thomas Henzinger, G. Lafferriere, and George Pappas. Discrete abstrac- tions of hybrid systems. In Proceedings of the IEEE, 2000.
[KLSV05] Dilsun K. Kaynar, Nancy Lynch, Roberto Segala, and Frits Vaandrager. The Theory of Timed I/O Automata. Synthesis Lectures on Computer Science. Morgan Claypool, November 2005. Also available as Technical Report MIT-LCS-TR-917.
[TG02] Claire Tomlin and Mark R. Greenstreet, editors. Hybrid Systems: Computation and Con- trol, 5th International Workshop, HSCC 2002, Stanford, CA, USA, March 25-27, 2002, Pro- ceedings, volume 2289 of LNCS. Springer, 2002.
[TK02] Ashish Tiwari and Gaurav Khanna. Series of abstractions for hybrid automata. In Tomlin and Greenstreet [TG02], pages 465–478.
[TPL02] Paulo Tabuada, George J. Pappas, and Pedro U. Lima. Composing abstractions of hybrid systems. In Tomlin and Greenstreet [TG02], pages 436–450.