APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION Andreas Mller - - PowerPoint PPT Presentation

approach to hybrid systems
SMART_READER_LITE
LIVE PREVIEW

APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION Andreas Mller - - PowerPoint PPT Presentation

A COMPONENT-BASED APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION Andreas Mller andreas.mueller@jku.at Stefan Mitsch smitsch@cs.cmu.edu Werner Retschitzegger werner.retschitzegger@jku.at Andr Platzer - aplatzer@cs.cmu.edu Wieland


slide-1
SLIDE 1

A COMPONENT-BASED APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION

Andreas Müller – andreas.mueller@jku.at Werner Retschitzegger – werner.retschitzegger@jku.at Wieland Schwinger – wieland.schwinger@jku.at Johannes Kepler University, Linz Department of Cooperative Information Systems http://cis.jku.at/ Stefan Mitsch – smitsch@cs.cmu.edu André Platzer - aplatzer@cs.cmu.edu Carnegie Mellon University, Pittsburgh Computer Science Department http://www.ls.cs.cmu.edu

slide-2
SLIDE 2

OVERVIEW

 Background  Cyber-Physical System  Hybrid System Models  Component-based Modeling  Component-based Modeling and Verification Approach  Components  Interfaces  Contracts  Composition Retains Contract  Conclusion and Future Work

2

slide-3
SLIDE 3

OVERVIEW

 Background  Cyber-Physical System  Hybrid System Models  Component-based Modeling  Component-based Modeling and Verification Approach  Components  Interfaces  Contracts  Composition Retains Contract  Conclusion and Future Work

3

slide-4
SLIDE 4

BACKGROUND

 Cyber-physical systems (CPS)  Cyber and physical capabilities  Continuous physical-part: vehicle movement,…  Discrete cyber-part: vehicle steering,…  Often safety-critical!  Hybrid system models – Model and analyze CPS  Hybrid programs: program notation for hybrid system modeling  Safety Analysis:  Φ → 𝛽 Ψ …starting in Φ, each run of 𝛽 leads to a safe state Ψ  Verified using Theorem Prover – KeYmaera  Challenging for large monolithic models  Component-based hybrid system modeling and verification  Component verification results do not always transfer to composite

 Component-based approach to hybrid system safety verification

4

slide-5
SLIDE 5

OVERVIEW

 Background  Cyber-Physical System  Hybrid System Models  Component-based Modeling  Component-based Modeling and Verification Approach  Components  Interfaces  Contracts  Composition Retains Contract  Conclusion and Future Work

5

slide-6
SLIDE 6

RUNNING EXAMPLE - VEHICLE CRUISE CONTROL

 Vehicle Cruise Control System  Overall Safety Property: Keep vehicle’s velocity within bounds  Split into two components  Actuator Component  Receives target velocity  Chooses target acceleration, such that target velocity can be reached  Outputs actual velocity  Cruise Controller Component  Receives actual velocity  Chooses target velocity  Outputs target velocity

6

slide-7
SLIDE 7

DEFINITION 2: COMPONENT

 Component 𝐷 = (𝑑𝑢𝑠𝑚, 𝑞𝑚𝑏𝑜𝑢)  𝑑𝑢𝑠𝑚  Discrete control part  NO continuous parts  𝑞𝑚𝑏𝑜𝑢  Continuous part 

𝑦1

′ = 𝜄1, … , 𝑦𝑜 ′ = 𝜄𝑜 & 𝐼

 Ordinary differential equations  Evolution domain H  Actuator: 𝐷𝑏𝑑 = (𝑑𝑢𝑠𝑚𝑏𝑑, 𝑞𝑚𝑏𝑜𝑢𝑏𝑑)  𝑑𝑢𝑠𝑚𝑏𝑑 ≡ 𝑏𝑏𝑑 ≔

𝑤𝑏𝑑

𝑢𝑠−𝑤𝑏𝑑

𝜗

; 𝑢𝑏𝑑

0 ≔ 𝑢

 𝑞𝑚𝑏𝑜𝑢𝑏𝑑 ≡ 𝑤𝑏𝑑

′ = 𝑏𝑏𝑑 , 𝑢′ = 1& 𝑢 − 𝑢𝑏𝑑 0 ≤ 𝜗

 Cruise Control Component  Choose target velocity choose 𝑏, such that 𝑤𝑢𝑠 is reached until 𝜗 evolve 𝑤 with rate 𝑏 for at most 𝜗

7

slide-8
SLIDE 8

DEFINITION 3: INTERFACE

 Interface 𝐽 = (𝑊𝑗𝑜, 𝜌𝑗𝑜, 𝑊𝑝𝑣𝑢, 𝜌𝑝𝑣𝑢)  𝑊𝑗𝑜…variables for input ports  𝜌𝑗𝑜…input assumptions  𝑊𝑝𝑣𝑢…variables for output ports  𝜌𝑝𝑣𝑢…output guarantees  Actuator: 𝐽𝑏𝑑  𝑊𝑗𝑜 = 𝑤𝑢𝑠 …target velocity  𝜌𝑗𝑜 𝑤𝑢𝑠 ≡ 0 ≤ 𝑤𝑢𝑠 ≤ 𝑊  𝑊𝑝𝑣𝑢 = 𝑤 …current velocity  𝜌𝑝𝑣𝑢 𝑤 ≡ 0 ≤ 𝑤 ≤ 𝑊  Cruise Control Component  Reads current velocity  Provides calculated target velocity target velocity 𝑤𝑢𝑠 in velocity interval current velocity 𝑤 in velocity interval

8

slide-9
SLIDE 9

DEFINITION 4: CONTRACT

 Contract  Initial state 𝜚  Target state 𝜔  Cont 𝐷, 𝐽 ≡

𝑢 = 0 ∧ 𝜚 → 𝑗𝑜; 𝑑𝑢𝑠𝑚; 𝑢′ = 1, 𝑞𝑚𝑏𝑜𝑢 ∗ 𝜔

 𝜔 ≡ 𝜔𝑡𝑏𝑔𝑓 ∧ Π𝑝𝑣𝑢  Actuator: (1)  𝜚 ≡ 𝑤 = 0 ∧ 𝑊 ≥ 0 ∧ ⋯  𝜔 ≡ 0 ≤ 𝑤 ≤ 𝑊  Cruise Controller Component:  Target velocity always in interval  Verified using KeYmaera repeat 0…n times valid initial state read inputs run ctrl run plant must hold after all runs

(1) Properties coincide due to simple example. Not necessarily the case!

9

vehicle velocity always in interval Vehicle initially stopped and …

slide-10
SLIDE 10

THEOREM 1: COMPOSITION RETAINS CONTRACTS

 Let… 

𝐷1, 𝐽1 and 𝐷2, 𝐽2 be Components with Interfaces

 𝐷𝑝𝑜𝑢 𝐷1, 𝐽1 and 𝐷𝑝𝑜𝑢 𝐷2, 𝐽2 verified  Compatible (Def. 6) 

𝐷3, 𝐽3 = 𝐷1, 𝐽1 || 𝐷2, 𝐽2 (Def. 5)

 Then 𝐷𝑝𝑜𝑢 𝐷3, 𝐽3 is also valid, with…  𝜚3 ≡ 𝜚1 ∧ 𝜚2

both initial states hold

 𝜔3 ≡ 𝜔1 ∧ 𝜔2

both safety properties and all output properties hold

 Two Components  Actuator and Cruise Controller  Actuator Contract verified  𝜔𝑏𝑑 ≡ vehicle velocity always in interval  Cruise Controller Contract verified  𝜔𝑑𝑑 ≡ target velocity always in interval  Compatible Composite 

𝐷𝑡𝑧𝑡, 𝐽𝑡𝑧𝑡 = 𝐷𝑏𝑑, 𝐽𝑏𝑑 || 𝐷𝑑𝑑, 𝐽𝑑𝑑

 𝜚𝑡𝑧𝑡 ≡ 𝜚𝑏𝑑 ∧ 𝜚𝑑𝑑  𝜔𝑡𝑧𝑡 ≡ 𝜔𝑏𝑑 ∧ 𝜔𝑑𝑑   vehicle velocity always in interval

10

Overall System Property!

slide-11
SLIDE 11

OVERVIEW

 Background  Cyber-Physical System  Hybrid System Models  Component-based Modeling  Component-based Modeling and Verification Approach  Components  Interfaces  Contracts  Composition Retains Contract  Conclusion and Future Work

11

slide-12
SLIDE 12

CONCLUSION AND FUTURE WORK

 We presented a technique to model and verify component-based CPS  Split system into components  Verify Components  Rebuild system from components   Transfer Verification Results!  Future Work  Extend interface and port capabilities  Implement framework as tool  Add further composition operations  Delayed transmission  Erroneous transmission

12

slide-13
SLIDE 13

A COMPONENT-BASED APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION

Andreas Müller – andreas.mueller@jku.at Werner Retschitzegger – werner.retschitzegger@jku.at Wieland Schwinger – wieland.schwinger@jku.at Johannes Kepler University, Linz Department of Cooperative Information Systems http://cis.jku.at/ Stefan Mitsch – smitsch@cs.cmu.edu André Platzer - aplatzer@cs.cmu.edu Carnegie Mellon University, Pittsburgh Computer Science Department http://www.ls.cs.cmu.edu