Model Checking of Hybrid Systems
Goran Frehse AVACS Autumn School, October 1, 2015
- Univ. Grenoble Alpes – Verimag,
2 avenue de Vignate, Centre Equation, 38610 Gières, France, frehse@imag.fr
Model Checking of Hybrid Systems Goran Frehse AVACS Autumn School, - - PowerPoint PPT Presentation
Model Checking of Hybrid Systems Goran Frehse AVACS Autumn School, October 1, 2015 Univ. Grenoble Alpes Verimag, 2 avenue de Vignate, Centre Equation, 38610 Gires, France, frehse@imag.fr Overview Hybrid Automata Set-Based Reachability
2 avenue de Vignate, Centre Equation, 38610 Gières, France, frehse@imag.fr
2
3
4
5
1 G. Frehse, C. L. Guernic, A. Donzé, R. Ray, O. Lebeltel, R. Ripado, A. Girard, T. Dang,
and O. Maler, “Spaceex: Scalable verification of hybrid systems,” in CAV’11, ser. LNCS, Springer, 2011. 6
0.5 1 1.5 2 2.5 −1 1 x0 x1 x2 x3 x4 x5 t position x 0.5 1 1.5 2 2.5 −5 5 v0 v1 v−
2
v2 v3 v4 v5 t velocity v 7
8
˙ X × RX, e.g.,
9
δ0,ξ0
α0
δ1,ξ1
10
−1 −0.8 −0.6 −0.4 −0.2 0.2 0.4 0.6 0.8 1 −5 5 x0 ξ0(δ0) = x1 ξ3(δ3) = x4 ξ1(δ1) x2 ξ2(δ2) = x3 ξ4(δ4) = x5 position x velocity v 11
12
13
δ,ξ
α
14
2 T. A. Henzinger, P. W. Kopke, A. Puri, and P. Varaiya, “What’s decidable about hybrid
automata?” Journal of Computer and System Sciences, vol. 57, pp. 94–124, 1998. 15
16
17
i=1aT ix ≤ bi
1
aT
m
b1
bm
18
x1 x2 Q pos(Q) x1 x2 P Q P ⊕ Q
qi∈Q λi · qi
i λi = 1
19
20
3 P.-H. Ho, “Automatic analysis of hybrid systems,” Technical Report CSD-TR95-1536,
PhD thesis, Cornell University, Aug. 1995. 21
t
22
x1 x2 Q pos(Q)
x1 x2 P P ⊕ pos(Q)
23
24
25
states of the Tent map
source: wikipedia Schmitz, J. P. M., D. A. Van Beek, and J. E. Rooda. "Chaos in discrete production systems?." Journal of Manufacturing Systems 21.3
brewery and chaotic throughput [Schmitz,2002] 26
27
L IS 1 1 M LIS 22 QIS 22 L IS 32 LIS 31 M LIS 23 Q IS 23 M LIS 21 QIS 21 L IS 1 3 L IS 12
28
– 266 locations, 823 transitions (~150 reachable) – 8 continuous variables
– 120s—1243s, 260—600MB – computation cost increases with nondeterminism (intervals for throughputs, initial states)
29
30
31
32
δ→0 ⌊t/δ⌋
k=0
33
X0 Ω0 Xδ Ω1 X2δ Ω2
0≤t≤T
34
X0 Ω0 Xδ Ω1 X2δ Ω2
0≤t≤δ
35
X0 Xδ Ω0
36
1 ∥A∥µ(BU) · (e∥A∥δ − 1),
4 A. Girard, “Reachability of uncertain linear systems using zonotopes,” in HSCC, 2005,
37
X0 ˆ Ω0 Xδ ˆ Ω1 X2δ ˆ Ω2
38
X0 eAδX0 Appr(eAδX0) Appr(eAδAppr(eAδX0))
X0 eAδX0 Appr(eAδX0) Appr(eA2δX0)
39
5 A. Girard, C. L. Guernic, and O. Maler, “Effjcient computation of reachable sets of linear
time-invariant systems with inputs,” in HSCC, 2006, pp. 257–271. 40
41
X0 Ω0 Xδ Ω1 X2δ Ω2 polyhedra
m constr. k gen. convex hull exp 2k Minkowski sum exp k2 linear map m / exp k intersection 2m exp 42
X0 ˆ Ω0 Xδ ˆ Ω1 X2δ ˆ Ω2 polyhedra ellipsoids
m constr. k gen. n × n matrix convex hull exp 2k approx Minkowski sum exp k2 approx linear map m / exp k O(n3) intersection 2m exp approx
6 A. B. Kurzhanski and P. Varaiya, Dynamics and Control of Trajectory Tubes. Springer,
2014. 43
v1 v2 v3 v4 c
i=1αivi
44
X0 ˆ Ω0 Xδ ˆ Ω1 X2δ ˆ Ω2 polyhedra ellipsoids zonotopes
m constr. k gen. n × n matrix k generators convex hull exp 2k approx approx Minkowski sum exp k2 approx 2k linear map m / exp k O(n3) k intersection 2m exp approx approx
7 A. Girard, “Reachability of uncertain linear systems using zonotopes,” in HSCC, 2005,
45
d∈D
46
47
X0 ˆ Ω0 Xδ ˆ Ω1 X2δ ˆ Ω2 X0 ˆ Ω0 Xδ ˆ Ω1 X2δ ˆ Ω2
polyhedra ellipsoids zonotopes support f.
m constr. k gen. n × n matrix k generators — convex hull exp 2k approx approx O(1) Minkowski sum exp k2 approx 2k O(1) linear map m / exp k O(n3) k O(n2) intersection 2m exp approx approx
48
49
50
0.1 1.0 10.0 100.0 1000.0 10000.0 1 10 100 1000
number of variables n runtime [s] 51
Photo by Andrew P Clarke
52
53
54
55
8 T. Dang and R. Testylier, “Reachability analysis for polynomial dynamical systems using the
bernstein expansion,” Reliable Computing, vol. 17, no. 2, pp. 128–152, 2012. 56
57
1 ⇒ s2 →2 s′ 2 with s′ 1 ⪯ s′ 2.
1 ⪯ s0 2.
9 R. Milner, “An algebraic definition of simulation between programs,” in Proc. of the 2nd Int.
Joint Conference on Artificial Intelligence. London, UK, September 1971, D. C. Cooper, Ed., William Kaufmann, British Computer Society, 1971, pp. 481–489. 58
1 ⪯ s0 2, bad states B1, let the abstraction of B1
59
60
61
10 T. A. Henzinger, P.-H. Ho, and H. Wong-Toi, “Algorithmic analysis of nonlinear hybrid
systems,” IEEE Transactions on Automatic Control, vol. 43, pp. 540–554, 1998. 62
Inv(ℓ) ˙ x ∈ f(x)
Inv(ℓ−) ˙ x ∈ f(x) Inv(ℓ+) ˙ x ∈ f(x)
63
64
−0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 1.2 V [V] I [mA] −0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 −0.2 0.0 0.2 0.4 0.6 0.8 1.0 1.2 V [V] I [mA]
11 G. Frehse, B. H. Krogh, R. A. Rutenbar, and O. Maler, “Time domain verification of
65
66
12 E. Asarin, T. Dang, and A. Girard, “Hybridization methods for the analysis of nonlinear
systems,” Acta Inf., vol. 43, no. 7, pp. 451–476, 2007. 67
68
69
∂x ˙ x(0) 1! t + ∂2p(x0) ∂x2 ˙ x(0)2 2! t2 + ∂p(x0) ∂x ¨ x(0) 2! t2 + · · ·
x(0) 1! t + ¨ x(0) 2! t2 + · · ·
13 A. van der Schaft, “Equivalence of dynamical systems by bisimulation,” IEEE transactions
70
71
d dt∥p(x1) − p(x2)∥ ≤ 0.
72
d dtV(x1, x2) ≤ 0
73
d dtV(x1, x2) = ∂V ∂x1f1(x1) + ∂V ∂x2f2(x2)
74
75
76
14 A. Girard and G. J. Pappas, “Approximate bisimulation: A bridge between computer
science and control theory,” European Journal of Control, vol. 17, no. 5, pp. 568–578, 2011. 77
78
79
80
15 G. E. Fainekos and G. J. Pappas, “Robustness of temporal logic specifications for
continuous-time signals,” Theor. Comp. Science, vol. 410, no. 42, pp. 4262–4291, 2009. 81
82
16 A. Donzé, T. Ferrere, and O. Maler, “Effjcient robust monitoring for stl,” in Computer Aided
Verification, Springer, 2013, pp. 264–279. 83
84
85
−1 −0.8 −0.6 −0.4 −0.2 0.2 0.4 0.6 0.8 1 −5 5 position x velocity v
86
−1 −0.8 −0.6 −0.4 −0.2 0.2 0.4 0.6 0.8 1 −5 5 position x velocity v
87
−1 −0.8 −0.6 −0.4 −0.2 0.2 0.4 0.6 0.8 1 −5 5 position x velocity v
88
−1 −0.8 −0.6 −0.4 −0.2 0.2 0.4 0.6 0.8 1 −5 5 position x velocity v
89
90
17 P. S. Duggirala, S. Mitra, M. Viswanathan, and M. Potok, “C2e2: A verification tool for
stateflow models,” in TACAS’15, Springer. 91
18 A. Donzé and O. Maler, “Robust satisfaction of temporal logic over real-valued signals,” in
FORMATS’10, Springer, 2010. 92
19 S. Sankaranarayanan and G. Fainekos, “Falsification of temporal properties of hybrid
systems using the cross-entropy method,” in HSCC’12. 93
94
95
[2]
Theoretical Computer Science, vol. 138, pp. 3–34, 1995. [3]
Computer Society, 1996, pp. 278–292. [9]
functions,” Nonlinear Analysis: Hybrid Systems, vol. 4, no. 2, pp. 250–262, 2010. [11]
for non-linear hybrid systems,” in RTSS, IEEE Computer Society, 2012,
[17]
systems,” Discrete Event Dynamic Systems, vol. 18, no. 2, pp. 163–179, 2008. [19]
Formal Techniques, Modelling and Analysis of Timed and Fault-Tolerant Systems, Springer, 2004, pp. 152–166. 96