towards physical hybrid systems
play

Towards Physical Hybrid Systems Katherine Cordwell and Andr Platzer - PowerPoint PPT Presentation

Towards Physical Hybrid Systems Katherine Cordwell and Andr Platzer Carnegie Mellon University August 29, 2019 This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No.


  1. Towards Physical Hybrid Systems Katherine Cordwell and André Platzer Carnegie Mellon University August 29, 2019 This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-1252522. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation or of any other sponsoring institution. This research was also sponsored by the AFOSR under grant number FA9550-16-1-0288 and by the Alexander von Humboldt Foundation. 1 / 1

  2. Safety-critical CPS • How do we know that cyber-physical systems (CPS) are functioning correctly? 2 / 1

  3. Safety-critical CPS • How do we know that cyber-physical systems (CPS) are functioning correctly? • First step: model your CPS • Hybrid systems model CPS 2 / 1

  4. Safety-critical CPS • How do we know that cyber-physical systems (CPS) are functioning correctly? • First step: model your CPS • Hybrid systems model CPS 2 / 1

  5. Then write hybrid systems in logic... ...with differential dynamic logic, perhaps? 3 / 1

  6. Then write hybrid systems in logic... ...with differential dynamic logic, perhaps? 3 / 1

  7. Then write hybrid systems in logic... ...with differential dynamic logic, perhaps? 3 / 1

  8. Then write hybrid systems in logic... ...with differential dynamic logic, perhaps? 3 / 1

  9. Then write hybrid systems in logic... ...with differential dynamic logic, perhaps? 3 / 1

  10. Then write hybrid systems in logic... ...with differential dynamic logic, perhaps? 3 / 1

  11. Then write hybrid systems in logic... ...with differential dynamic logic, perhaps? 3 / 1

  12. Problems? • The model could be overly permissive 4 / 1

  13. Problems? • The model could be overly permissive • Or the model could be overly strict 4 / 1

  14. Problems? • The model could be overly permissive • Or the model could be overly strict • Logic is precise, physical systems are not • Note that we absolutely want to have precise safety guarantees 4 / 1

  15. Math versus physics • How can models be too strict? 5 / 1

  16. Math versus physics • How can models be too strict? • Models can classify systems as being unsafe on minutely small sets 5 / 1

  17. Math versus physics • How can models be too strict? • Models can classify systems as being unsafe on minutely small sets • Is this realistic? 5 / 1

  18. Math versus physics • How can models be too strict? • Models can classify systems as being unsafe on minutely small sets • Is this realistic? • No! Even math allows more imprecision than models 5 / 1

  19. Math versus physics • How can models be too strict? • Models can classify systems as being unsafe on minutely small sets • Is this realistic? • No! Even math allows more imprecision than models • Does it matter? 5 / 1

  20. Math versus physics • How can models be too strict? • Models can classify systems as being unsafe on minutely small sets • Is this realistic? • No! Even math allows more imprecision than models • Does it matter? • Yes! Physically unrealistic counterexamples can distract from real unsafeties of a system 5 / 1

  21. Our Approach • We propose physical hybrid systems (PHS), which are systems that behave safely almost everywhere 6 / 1

  22. Our Approach • We propose physical hybrid systems (PHS), which are systems that behave safely almost everywhere • There are multiple ways to develop PHS 6 / 1

  23. Our Approach • We propose physical hybrid systems (PHS), which are systems that behave safely almost everywhere • There are multiple ways to develop PHS • Our first foray into PHS stays very close to the usual notion of safety 6 / 1

  24. Our Approach • We propose physical hybrid systems (PHS), which are systems that behave safely almost everywhere • There are multiple ways to develop PHS • Our first foray into PHS stays very close to the usual notion of safety 6 / 1

  25. Our Approach • We propose physical hybrid systems (PHS), which are systems that behave safely almost everywhere • There are multiple ways to develop PHS • Our first foray into PHS stays very close to the usual notion of safety 6 / 1

  26. Our Approach • We propose physical hybrid systems (PHS), which are systems that behave safely almost everywhere • There are multiple ways to develop PHS • Our first foray into PHS stays very close to the usual notion of safety • Our new logic (PdTL) is designed to ignore “very small”, meaningless sets of safety violations along the execution trace of a system. 6 / 1

  27. FAQ, anticipated • Why not ask the user to edit the models? 7 / 1

  28. FAQ, anticipated • Why not ask the user to edit the models? • PdTL is capturing something that is even closer to the normal notion of safety • Also, we don’t want to limit the models that a user can write 7 / 1

  29. FAQ, anticipated • Why not ask the user to edit the models? • PdTL is capturing something that is even closer to the normal notion of safety • Also, we don’t want to limit the models that a user can write • Why isn’t this just solved by robustness? 7 / 1

  30. Robustness • Safe up to small perturbations • Tool support, e.g. dReach 8 / 1

  31. Robustness • Safe up to small perturbations • Tool support, e.g. dReach • Models of CPS can and should be robust 8 / 1

  32. Robustness • But robustness is only one piece of the puzzle. We’re trying to do something different. 9 / 1

  33. Robustness • But robustness is only one piece of the puzzle. We’re trying to do something different. 9 / 1

  34. Robustness • But robustness is only one piece of the puzzle. We’re trying to do something different. • Also, robustness often requires a reachability analysis and can be more limited in scope (no induction!) 9 / 1

  35. Let’s talk PdTL • Physical differential temporal dynamic logic (PdTL) extends dTL extends dL • dTL rigorizes execution traces 10 / 1

  36. Formulas in dTL (and PdTL!) • State formulas • Evaluated in a state (at a snapshot in time) 11 / 1

  37. Formulas in dTL (and PdTL!) • State formulas • Evaluated in a state (at a snapshot in time) • States map variables to R 11 / 1

  38. Formulas in dTL (and PdTL!) • Trace formulas • State formulas • Evaluated along • Evaluated in a state execution traces (at a snapshot in (sequences of time) functions mapping • States map intervals to states) variables to R 11 / 1

  39. Traces in PdTL 12 / 1

  40. PdTL • Trace semantics • The same as in dTL, except we allow Carathéodory solutions to ODEs 13 / 1

  41. PdTL • Trace semantics • The same as in dTL, except we allow Carathéodory solutions to ODEs • Formulas • The same state formulas as dTL • Instead of dTL’s trace formulas, use � tae 13 / 1

  42. PdTL • Trace semantics • The same as in dTL, except we allow Carathéodory solutions to ODEs • Formulas • The same state formulas as dTL • Instead of dTL’s trace formulas, use � tae • Intuitively, σ | = � tae φ means φ holds except at only a “small” set of positions along the trace 13 / 1

  43. PdTL • Trace semantics • The same as in dTL, except we allow Carathéodory solutions to ODEs • Formulas • The same state formulas as dTL • Instead of dTL’s trace formulas, use � tae • Intuitively, σ | = � tae φ means φ holds except at only a “small” set of positions along the trace • Measure zero: mathematically rigorous notion of a very small set 13 / 1

  44. PdTL • How to get a measure on a trace? Map it to R σ = ( σ 0 , σ 1 , . . . , σ n ) positions (1 , 0) , . . . , (1 , r 1 ) positions (0 , 0) , . . . , (0 , r 0 ) positions ( n, 0) , . . . , ( n, r n ) . . . r 0 n − 1 n 0 1 + r 0 1 + r 0 + r 1 X X n + n + r k r k k =0 k =0 14 / 1

  45. PdTL • For σ | = � tae φ to hold: • Need φ to be satisfied at almost all positions along the trace (continuous condition) 15 / 1

  46. PdTL • For σ | = � tae φ to hold: • Need φ to be satisfied at almost all positions along the trace (continuous condition) • On discrete portions of the trace, need φ to almost hold (discrete condition) 15 / 1

  47. PdTL • For σ | = � tae φ to hold: • Need φ to be satisfied at almost all positions along the trace (continuous condition) • On discrete portions of the trace, need φ to almost hold (discrete condition) 15 / 1

  48. Compelling logical properties • Conservative extension of dL 16 / 1

  49. Compelling logical properties • Conservative extension of dL • A proof calculus that is designed to: • Remove instances of � tae when possible [? P ] � tae φ ↔ φ 16 / 1

  50. Compelling logical properties • Conservative extension of dL • A proof calculus that is designed to: • Remove instances of � tae when possible [? P ] � tae φ ↔ φ • Reduce complicated formulas to structurally simpler formulas [ α ∪ β ] � tae φ ↔ [ α ] � tae φ ∧ [ β ] � tae φ 16 / 1

Recommend


More recommend