automatically robustifying verified hybrid systems in
play

Automatically Robustifying Verified Hybrid Systems in KeYmaera X - PowerPoint PPT Presentation

Automatically Robustifying Verified Hybrid Systems in KeYmaera X Nathan Fulton Carnegie Mellon University September 13, 2016 Dagstuhl, Germany Robustness A system is robust if it operates correctly despite: Disturbances in actuation


  1. Automatically Robustifying Verified Hybrid Systems in KeYmaera X Nathan Fulton Carnegie Mellon University September 13, 2016 Dagstuhl, Germany

  2. Robustness A system is robust if it operates correctly despite: • Disturbances in actuation • Uncertainty in sensing • Deviation from typical dynamics • Adversarial agents • . . . 1

  3. Robustness A system is robust if it operates correctly despite: • Disturbances in actuation • Uncertainty in sensing Expressible by systematically • Deviation from typical dynamics modifying a hybrid system • Adversarial agents • . . . 1

  4. Robustness A system is robust if it operates correctly despite: • Disturbances in actuation • Uncertainty in sensing Expressible by systematically • Deviation from typical dynamics modifying a hybrid system • Adversarial agents • . . . Can we automatically robustify hybrid systems? 1

  5. Automatic Incremental Robustification Typical verification approach: begin with a simplified model , then incrementally add complexity . 2

  6. Automatic Incremental Robustification Typical verification approach: begin with a simplified model , then incrementally add complexity . Advantages: • Initial verification task exposes essential aspects of the safety argument. • Successive verification tasks are tractable. 2

  7. Automatic Incremental Robustification Typical verification approach: begin with a simplified model , then incrementally add complexity . Advantages: Disadvantages: • Initial verification task • Re-verification is expensive. exposes essential aspects of • Verification efforts are the safety argument. non-compositional. • Successive verification tasks are tractable. 2

  8. Automatic Incremental Robustification Typical verification approach: begin with a simplified model , then incrementally add complexity . Advantages: Disadvantages: • Initial verification task • Re-verification is expensive. exposes essential aspects of • Verification efforts are the safety argument. non-compositional. • Successive verification tasks are tractable. Goal: Automatic Incremental Robustification 2

  9. Specifying Hybrid Systems Definition (Hybrid Programs) Assign x := θ Sequence α ; β Test ? ϕ Iteration α ∗ Choice α ∪ β ODEs { x ′ 1 = θ 1 , . . . , x ′ n = θ n & H } 3

  10. Specifying Hybrid Systems Definition (Hybrid Programs) Assign x := θ Sequence α ; β Test ? ϕ Iteration α ∗ Choice α ∪ β ODEs { x ′ 1 = θ 1 , . . . , x ′ n = θ n & H } Differential Dynamic Logic (d L ) formulas describe reachability properties of hybrid programs using modalities: [ α ] ϕ and � α � ϕ . 3

  11. Specifying Hybrid Systems [ ] ϕ 4

  12. Example: A Hybrid Systems Specification in d L [ { ( AT + v ) 2 { ?( x ≥ + obs ); a := A ∪ a := − B } ; 2 B c := 0; { x ′ = v , v ′ = a , c ′ = 1 ∧ v ≥ 0 ∧ c ≤ T } } ∗ ] x ≤ obs 5

  13. Example: A Hybrid Systems Specification in d L [ { ( AT + v ) 2 { ?( x ≥ + obs ); a := A ∪ a := − B } ; 2 B c := 0; { x ′ = v , v ′ = a , c ′ = 1 ∧ v ≥ 0 ∧ c ≤ T } } ∗ ] x ≤ obs • Parametric controller design 5

  14. Example: A Hybrid Systems Specification in d L [ { ( AT + v ) 2 { ?( x ≥ + obs ); a := A ∪ a := − B } ; 2 B c := 0; { x ′ = v , v ′ = a , c ′ = 1 ∧ v ≥ 0 ∧ c ≤ T } } ∗ ] x ≤ obs • Parametric controller design • Non-determinism 5

  15. Example: A Hybrid Systems Specification in d L A > 0 ∧ B > 0 ∧ T > 0 ∧ v ≥ 0 ∧ v 2 2 B + obs ≤ x ≤ obs → [ { ( AT + v ) 2 { ?( x ≥ + obs ); a := A ∪ a := − B } ; 2 B c := 0; { x ′ = v , v ′ = a , c ′ = 1 ∧ v ≥ 0 ∧ c ≤ T } } ∗ ] x ≤ obs • Parametric controller design • Non-determinism • Symbolic constraints on parameters 5

  16. Verifying a Simple Hybrid System in KeYmaera X KeYmaera X is a trustworthy and scriptable hybrid systems theorem prover. • Trustworthy: All prover automation passes through a small soundness-critical core ( < 2 KLOC). • Scriptable: KeYmaera X provides a DSL for writing proof search programs. 6

  17. Example: Adding Actuation Error A > 0 ∧ B > 0 ∧ T > 0 ∧ v ≥ 0 ∧ v 2 2 B + obs ≤ x ≤ obs → { ?( x ≥ (( A ) T + v ) 2 [ { + obs ); a := A ∪ a := − B } ; 2( B ) c := 0; { x ′ = v , v ′ = a , c ′ = 1 ∧ v ≥ 0 ∧ c ≤ T } } ∗ ] x ≤ obs 7

  18. Example: Adding Actuation Error A > 0 ∧ B > 0 ∧ T > 0 ∧ v ≥ 0 ∧ 0 < ǫ < A ∧ ǫ < B ∧ v 2 2 B ± ǫ + obs ≤ x ≤ obs → [ { { ?( x ≥ (( A ± ǫ ) T + v ) 2 + obs ); a := A ± ǫ ∪ a := − B ± ǫ } ; 2( B ± ǫ ) c := 0; { x ′ = v , v ′ = a , c ′ = 1 ∧ v ≥ 0 ∧ c ≤ T } } ∗ ] x ≤ obs 7

  19. Example: Adding Actuation Error A > 0 ∧ B > 0 ∧ T > 0 ∧ v ≥ 0 ∧ 0 < ǫ < A ∧ ǫ < B ∧ v 2 2 B − ǫ + obs ≤ x ≤ obs → [ { { ?( x ≥ (( A + ǫ ) T + v ) 2 + obs ); a := A + ǫ ∪ a := − B − ǫ } ; 2( B − ǫ ) c := 0; { x ′ = v , v ′ = a , c ′ = 1 ∧ v ≥ 0 ∧ c ≤ T } } ∗ ] x ≤ obs 8

  20. Co-Transformation of Models and Tactics Simple Model Simple Model + Uncertainty ImplyR(1) & loop(p(x,v,a,A,B), ImplyR(1) & 1) < ( loop(p(x,v,a,A+ ǫ ,B − ǫ ), 1) < ( QE, QE, QE, QE, splitCases(1) < ( splitCases(1) < ( chase(1) & ODE & QE chase(1) & ODE & QE chase(1) & ODE & QE chase(1) & ODE & QE )) )) 9

  21. Incremental Robustification via Model/Proof Co-Transformation � Tractable initial verification � Verification of robustified models re-use ideas from initial safety proof ? Compositional robustification � Re-verification is expensive (manual effort) × Re-verification is expensive (computationally) 10

  22. Incremental Robustification via Refinement System α refines system β ( α ≤ β ) if every state reachable by α is also reachable by β . 11

  23. Incremental Robustification via Refinement System α refines system β ( α ≤ β ) if every state reachable by α is also reachable by β . • Many robustifications are refinements (after changing environment and controller). 11

  24. Incremental Robustification via Refinement System α refines system β ( α ≤ β ) if every state reachable by α is also reachable by β . • Many robustifications are refinements (after changing environment and controller). • Refinement makes direct use the initial safety property: [ β ] ϕ α ≤ β [ α ] ϕ 11

  25. Incremental Robustification via Refinement System α refines system β ( α ≤ β ) if every state reachable by α is also reachable by β . • Many robustifications are refinements (after changing environment and controller). • Refinement makes direct use the initial safety property: [ β ] ϕ α ≤ β [ α ] ϕ • ≤ has a well-understood algebraic structure. 11

  26. Conclusions and Further Thoughts Automatic incremental robustification automates common changes to CPS models 12

  27. Conclusions and Further Thoughts Automatic incremental robustification automates common changes to CPS models Further Thoughts: • It would be nice to have automatic robustification procedures for high-fidelity models of common sensors and actuators. • Notions of robustness are describable in differential game logic (dG L ); automation story is unclear. 12

  28. Conclusions and Further Thoughts Automatic incremental robustification automates common changes to CPS models Further Thoughts: • It would be nice to have automatic robustification procedures for high-fidelity models of common sensors and actuators. • Notions of robustness are describable in differential game logic (dG L ); automation story is unclear. Thanks: KeYmaera X developers (Stefan Mistch, Andr` e Platzer, Brandon Bohrer, Jan-David Quesel) Advertisement: KeYmaera X Tutorial at FM this year! 12

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend