A CEGAR Approach for Stability Verification of Linear Hybrid Systems
Miriam García Soto
Co-authored work with Pavithra Prabhakar DARS 2017
1
A CEGAR Approach for Stability Verification of Linear Hybrid Systems - - PowerPoint PPT Presentation
A CEGAR Approach for Stability Verification of Linear Hybrid Systems Miriam Garca Soto Co-authored work with Pavithra Prabhakar DARS 2017 1 Cyber-Physical Systems (CPSs) Systems in which software "cyber" interacts with the
1
Medical Devices Automotive Robotics Aeronautics Process control
2
✤ Automotive systems: Cruise control, lane assistants ✤ Medical Devices: Pacemakers, infusion pumps
✤ Security ✤ Reliability ✤ Safety
✤ Models for Cyber-Physical Systems (Automata based) ✤ Robustness Specifications (Logic based) ✤ Verification Algorithms (Model checker)
3
Model checker
Theorem prover
4
5
˙ x = f(x, u) y = h(x)
Physical System
Control
u = g(y)
6
qT
Gearbox
Kq τ Z (vd − v)dv Kq(vd − v)
PI Control
Discrete Control
if v − vd =
1 pi ωhigh
q → q + 1 if v − vd =
1 pi ωlow
q → q − 1
−pr
q
M T
r E + KqE
Cruise control
7
1 2 3 4
E = 1 p4 ωlow E = 1 p3 ωlow E = 1 p2 ωlow E = 1 p1 ωhigh E = 1 p2 ωhigh E = 1 p3 ωhigh ˙ x = A1x ˙ x = A2x ˙ x = A3x ˙ x = A4x
E
T
4 to 3
to 2
to 1
1 to 2
to 3
to 4
x0 x1 x2
T
8
9
Cruise control Robotic arm Bipedal robot walking
✤ Cruise control: stability with respect to the desired velocity ✤ Robotic arm: stability with respect to the set point ✤ Bipedal walking: stability with respect the periodic orbit
10
A system is Lyapunov stable with respect to the equilibrium point 0 if for every ε > 0 there exists δ > 0 such that for every execution σ starting from Bδ(0) , σ(t) ∈ Bε(0), for all time t. A system is asymptotically stable with respect to the equilibrium point 0 if it is Lyapunov stable and there exist η > 0 such that every execution σ starting from Bη(0) converges to 0.
η σ σ
Lyapunov Stable Asymptotically Stable Unstable
f1 f2 f3 f4 f1 f2 f3 f4 f1 f2 f3 f4
11
Stability can be determined by eigenvalues analysis
Stable Stable
Eigenvalue analysis does not suffice for switched linear system Stable Unstable
12
V
x y
✤ Continuously differentiable
∂V (x) ∂x F(x) ≤ 0 ∀x
✤ Positive definite ✤ Function value decreases along any trajectory
✤ Common Lyapunov functions ✤ Multiple Lyapunov functions
13
✤ Choose a template ✤ Encode Lyapunov function conditions as constraints ✤ Solve using sum-of-squares programming tools
✤ Success depends crucially on the choice of the template ✤ The current methods provide no insight into the reason for the failure,
✤ No guidance regarding the choice of the next template
14
15
Property violated Abstraction Relation Analysis Results Abstract Counterexample Property Abstract System Concrete System
Abstract Model-Check Validate Refine Yes No Yes No
Property satisfied
✤ Systematically iterates over the
✤ Returns a counterexample in the case
✤ The counterexample can be used to
✤ Success depends crucially on the
✤ The current methods provide no
✤ No guidance regarding the choice of
16
17
Facets F = {f1, f2, f3, f4} Concrete system
18
Facets F = {f1, f2, f3, f4} Concrete system
19
Facets F = {f1, f2, f3, f4} Concrete system Abstract system
20
Facets F = {f1, f2, f3, f4} Concrete system Abstract system
21
Facets F = {f1, f2, f3, f4} Concrete system Abstract system
22
Facets F = {f1, f2, f3, f4} Concrete system Abstract system
23
Facets F = {f1, f2, f3, f4} Concrete system Abstract system
24
Facets F = {f1, f2, f3, f4} Concrete system Abstract system
25
Facets F = {f1, f2, f3, f4} Concrete system
Abstract system
W(π) = 2 · 1 3 · 1 3 · 1 = 2 9 < 1
26
Product of edge weights = 1 Lyapunov Stable Product of edge weights = 1/4 Asymptotically Stable Product of edge weights = 4 Unstable
27
28
29
✤ Solution is an exponential function ✤ Need a representation on which optimization can be performed ✤ Approximation methods [Girard et al., Frehse et al.]
30
31
x1 6 0 x2 > 0
Hybridization for stability analysis of switched linear systems. HSCC’16
32
✤ the abstract weighted graph has no edges with infinite weights, and ✤ no cycles with product of edge weights greater than 1
1
1 1 2 2 3
1 1
2
Abstract system
1 1
1 2
2 1
2 1
Abstract system
Abstraction based model-checking of stability of hybrid systems. CAV’13 Foundations of Quantitative Predicate Abstraction for Stability Analysis of Hybrid Systems. VMCAI’15
33
✤ Model-checking of the abstract system returns an abstract counterexample
✤ Spurious ACE: If there exist no infinite execution (concrete) of the system
✤ Validation: Checking if the ACE is spurious.
34
35
Existence of an infinite concrete counterexample is equivalent to the existence of a finite execution along the cycle with certain properties, which can be encoded as an SMT formula.
36
37
Counterexample guided abstraction refinement for stability analysis. CAV’16
38
39
LHS PHS Stable/Unstable/Abstract counterexample
HYBRIDIZATION ABSTRACTION MODEL-CHECKING VALIDATION REFINEMENT
PPL GLPK NetworkX Z3
40
41
CPS design Control theory Formal methods
✤ Development of a novel CEGAR approach, based on abstraction and
✤ Automatic process for linear and polyhedral hybrid systems ✤ Framework extendable to more complex class of hybrid systems ✤ Techniques implemented in AVERIST provide promising results ✤ Application to an automatic gearbox
42
LHS PHS Stable/Unstable/Abstract counterexample
HYBRIDIZATION ABSTRACTION MODEL-CHECKING VALIDATION REFINEMENT
PPL GLPK NetworkX Z3