Automi Ibridi
Carla Piazza1
1Dipartimento di Matematica ed Informatica Universit `a di Udine
carla.piazza@dimi.uniud.it
Conclusions
Indice del Corso (Dis)Ordinato
Automi Ibridi: Sintassi e Semantica Sistemi a stati finiti(breve ripasso) Il problema dellaRaggiungibilit `a Risultati diIndecidibilit `a
Classi notevoli di Automi Ibridi:timed, rectangular, o-minimal, . . . Tecniche di Decisione: (Bi)Simulazione, Cylindric Algebraic Decomposition, Teoremi di Selezione,Semantiche approssimate Equazioni Differenziali
. . . e tanto altro:
Logiche temporali Composizione di Automi Il caso Stocastico
Stabilit `a, Osservabilit `a, Controllabilit `a Strumenti Software
Applicazioni
Nella lezione precedente . . .
. . . abbiamo visto che:
SeH `e definito con formule su(R, +, ∗, <, 0, 1), allora Path Reachability ⇔ Formula Satisfiability
Reachability ⇔ Infinite Formula Satisfiability Inoltre si possono usare le formule per definiremodelli astratti
Casagrande et al. Inclusion dynamics hybrid automata. I.&C., 2008 Tiwari et al. Series of Abstractions for Hybrid Automata. HSCC, 2002
Conclusions
Warning!
i risultati relativi allaPath Reachabilitypresuppongono almeno latransitivit `adelle dinamiche
con le formule siamo passati da semanticaoperazionalea denotazionale
anche nei modelliastrattiabbiamo mantenutoprecisione infinita
Proviamo a passare aprecisione finita
Warning!
i risultati relativi allaPath Reachabilitypresuppongono almeno latransitivit `adelle dinamiche
con le formule siamo passati da semanticaoperazionalea denotazionale
anche nei modelliastrattiabbiamo mantenutoprecisione infinita
Proviamo a passare aprecisione finita
Conclusions
Warning!
i risultati relativi allaPath Reachabilitypresuppongono almeno latransitivit `adelle dinamiche
con le formule siamo passati da semanticaoperazionalea denotazionale
anche nei modelliastrattiabbiamo mantenutoprecisione infinita
Proviamo a passare aprecisione finita
Warning!
i risultati relativi allaPath Reachabilitypresuppongono almeno latransitivit `adelle dinamiche
con le formule siamo passati da semanticaoperazionalea denotazionale
anche nei modelliastrattiabbiamo mantenutoprecisione infinita
Proviamo a passare aprecisione finita
Conclusions
Which is Your Point of View?
The world isdense
(R, +, ∗, <, 0, 1) first-order theory isdecidable
The world isdiscrete
Diophantine equations areundecidable
What about theirinterplay?
Which is Your Point of View?
The world isdense
(R, +, ∗, <, 0, 1) first-order theory isdecidable
The world isdiscrete
Diophantine equations areundecidable
What about theirinterplay?
Conclusions
Example
Bouncing Ball
X = V ˙ V = −g ˙
X ≥ 0 X
0= X
V
0= −γV
Example
Zeno Behavior The automaton avoids time elapsing by crossing edges infinitely often
Conclusions
Example
Zeno Point The limit point of a Zeno behavior
Delta-Notch
DeltaandNotchare proteins involved in cell differentiation (see, e.g., Collier et al., Ghosh et al.)
Notch production is triggered by high Delta levels in neighboring cells
Delta production is triggered by low Notch concentrations in thesame cell
High Delta levels lead todifferentiation
Conclusions
Delta-Notch: Single Cell Automaton
q1 q2
q3 q4
XD0 = fD(XD, T ) XN0 = fN(XN, T )
XD0 = gD(XD, T ) XN0 = fN(XN, T )
XD0 = fD(XD, T ) XN0 = gN(XN, T )
XD0 = gD(XD, T ) XN0 = gN(XN, T )
fDandfN increaseDelta and Notch,gDandgN decreaseDelta and Notch, respectively
Delta-Notch: Two Cells Automaton
It is the Cartesian product of two “single cell” automata
TheZenostate can occur only in the case of
two cells withidenticalinitial concentrations
Conclusions
Verification
Question
Can we automaticallyverifyhybrid automata?
Let us start from the basic case ofReachability
Naive Reachability (H, Initial set) Old ← ∅
New ← Initial set while New 6= Old do
Old ← New
New ← Discrete Reach(H, Continuous Reach(H, Old )) return Old
Verification
Question
Can we automaticallyverifyhybrid automata?
Let us start from the basic case ofReachability
Naive Reachability (H, Initial set) Old ← ∅
New ← Initial set while New 6= Old do
Old ← New
New ← Discrete Reach(H, Continuous Reach(H, Old )) return Old
Conclusions
Bounded Sets and Undecidability
Even if the invariants arebounded,reachabilityisundecidable
Proof sketch
Encode two-counter machine by exploiting density:
each counter value,n, is represented in a continuous variable by the value2−n
each control function is mimed by a particular location
Where is the Problem?
Keeping in mind our examples:
Question “Meaning”
What is the meaning of these undecidability results?
Question “Decidability”
Can we avoid undecidability by adding some natural hypothesis to the semantics?
Conclusions
Undecidability in Real Systems
Undecidabilityin our models comes from . . . infinitedomains: unbounded invariants densedomains: the “trick”nas2−n
But whichreal systemdoes involve . . . unbounded quantities?
infinite precision?
Unboundednessanddensityabstractdiscrete largequantities
Undecidability in Real Systems
Undecidabilityin our models comes from . . . infinitedomains: unbounded invariants densedomains: the “trick”nas2−n
But whichreal systemdoes involve . . . unbounded quantities?
infinite precision?
Unboundednessanddensityabstractdiscrete largequantities
Conclusions
Dense vs Discrete - Intuition
We do not really want to completely abandondensedomains
We need to introduce afinitelevel ofprecisioninbounded densedomains, we can distinguish two sets only if they differ of
“at least ”
Intuitively, we can see thatsomething newhas been reached only if areasonable largeset of new points has been
discovered, i.e., we aremyope
Dense vs Discrete
Lemma (Convergence)
Let S ⊆ Rk be a bounded set such that S = ∪i∈NDi, with either Di =Dj or Di∩ Dj = ∅
If there exists > 0 such that for each i ∈ N there exists ai such that B({ai}, ) ⊆ Di, then there exists j ∈ N such that
S = ∪i≤jDi
This is a trivialcompactness-likeresult
Conclusions
Finite Precision Semantics
Definition (-Semantics) Let > 0. For each formula ψ:
() either {|ψ|}= ∅or {|ψ|}contains an -ball (∩) {|ψ1∧ ψ2|}⊆ {|ψ1|}∩ {|ψ2|}
(∪) {|ψ1∨ ψ2|}= {|ψ1|}∪ {|ψ2|} (¬) {|ψ|}∩ {|¬ψ|}= ∅
It is a general framework: there exist many different -semantics
Reachability
Eps-Reachability(H, ψ[Z ], {| · |}) R[Z ] ← ψ[Z ]
May New R[Z0] ← ∃Z ( \Reach1(Z , Z0) ∧R[Z ]) New R[Z ] ← May New R[Z ] ∧ ¬R[Z ]
while({|New R[Z ]|}6= ∅) R[Z ] ← R[Z ] ∨ New R[Z ]
May New R[Z0] ← ∃Z ( \Reach1(Z , Z0) ∧R[Z ]) New R[Z ] ← May New R[Z ] ∧ ¬R[Z ]
return R[Z ]
Conclusions
A Decidability Result
Theorem (Reachability Problem)
Using-semanticsand assuming bothboundedinvariants and decidability for specification language, we havedecidability of reachabilityproblem for hybrid automata
Proof Sketch
Because of condition () of -semantics, continuous steps can either:
increase the reached set by at least do not increase the reach set
(∩), (∪), and (¬) ensure that the sets New R are disjoint
A Decidability Result
Theorem (Reachability Problem)
Using-semanticsand assuming bothboundedinvariants and decidability for specification language, we havedecidability of reachabilityproblem for hybrid automata
Proof Sketch
Because of condition () of -semantics, continuous steps can either:
increase the reached set by at least do not increase the reach set
(∩), (∪), and (¬) ensure that the sets New R are disjoint
Conclusions
An Instance of -semantics
Definition
Let > 0. We define [|ψ|]by structural induction on ψ as follows:
[|t1◦ t2|]=B([|t1◦ t2|], ), for ◦ ∈ {=, <}
[|ψ1∨ ψ2|]= [|ψ1|]∪ [|ψ2|]
[|ψ1∧ ψ2|]= ∪B({p},)⊆[|ψ1|]∩[|ψ2|]B({p}, ) [|∃Z ψ[Z , X ]|]= ∪p∈R[|ψ[p, X ]|]
[|∀Z ψ[Z , X ]|]= ∪B({p},)⊆∩
Z ∈R[|ψ[Z ,X ]|]B({p}, ) [|¬ψ|] = ∪B({p},)∩[|ψ|]=∅B({p}, )
Conclusions
Hybrid automata are bothpowerfulandnaturalin the modeling of hybrid systems
May be a little bittoo expressive. . . Real systems always havefinite precision
-semanticsintroduce a finite precision ingredient in hybrid automata
Using -semantics wedo not have Zeno behaviors
Conclusions
Why not. . .
. . . modeling systems over discrete latices?
00 0000 00 11 1111 11
0000 0000 1111 1111
000000 000000 111111 111111
0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000
1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111
0000 00000000 0000 00000000 00000000 00000000 0000 00000000 00000000 0000
1111 11111111 1111 11111111 11111111 11111111 1111 11111111 11111111 1111
0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000
1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111
000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000
111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000
11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111
00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000 00000
11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111
000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000
111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
0000 00000000 0000 00000000 00000000 00000000 0000 00000000 00000000 0000
1111 11111111 1111 11111111 11111111 11111111 1111 11111111 11111111 1111
0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000 0000000
1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111 1111111
No, because three main reasons:
modeling would became harder
we would increase computational complexity we would still assume infinite precision!!! (e.g., 0, 999 . . . 9 6= 1)
. . . using only < and > instead of =?
No, because reachability is still undecidable.
Under, Over and Demorgan
Example
Consider the formula 1 < X < 5 and = 0.1
We have that [|1 < X < 5|] = [|1 < X ∧ X < 5|]= (0.9, 5.1),
Consider the formula ¬(1 < X < 5)
We get that [|¬(1 < X < 5)|]= (−∞,0.9) ∪ (5.1, +∞)
Notice that this last formula is not equivalent to X ≤ 1 ∨ X ≥ 5 whose semantics is [|X ≤ 1 ∨ X ≥ 5|]= (−∞,1.1) ∪ (4.9, +∞)
Conclusions
References
Casagrande et al., “Discrete Semantics for Hybrid Automata” Discrete Event Dynamic Systems 2009
A. Girard and G. J. Pappas, “Approximation metrics for discrete and continuous systems”, IEEE TAC 2007
M. Fr ¨anzle, “Analysis of hybrid systems: An ounce of realism can save an infinity of states”, CSL 99