08 events responses
play

08: Events & Responses 15-424: Foundations of Cyber-Physical - PowerPoint PPT Presentation

08: Events & Responses 15-424: Foundations of Cyber-Physical Systems Andr e Platzer aplatzer@cs.cmu.edu Computer Science Department Carnegie Mellon University, Pittsburgh, PA 0.5 0.4 0.3 0.2 1.0 0.1 0.8 0.6 0.4 0.2 Andr e


  1. 08: Events & Responses 15-424: Foundations of Cyber-Physical Systems Andr´ e Platzer aplatzer@cs.cmu.edu Computer Science Department Carnegie Mellon University, Pittsburgh, PA 0.5 0.4 0.3 0.2 1.0 0.1 0.8 0.6 0.4 0.2 Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 1 / 20

  2. Outline Learning Objectives 1 The Need for Control 2 Quantum the Ping Pong Ball Cartesian Demon Determinizing Ping Pong Balls Event-triggered Control 3 Evolution Domains Detect Events Non-negotiability of Physics Splitting and Connecting Evolution Domains Firing of Events Physics vs. Control Proof 4 Loop Invariants Summary 5 Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 2 / 20

  3. Outline Learning Objectives 1 The Need for Control 2 Quantum the Ping Pong Ball Cartesian Demon Determinizing Ping Pong Balls Event-triggered Control 3 Evolution Domains Detect Events Non-negotiability of Physics Splitting and Connecting Evolution Domains Firing of Events Physics vs. Control Proof 4 Loop Invariants Summary 5 Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 2 / 20

  4. Learning Objectives Events & Responses using loop invariants design event-triggered control CT M&C CPS modeling CPS semantics of event-triggered control event-triggered control operational effects continuous sensing model-predictive control feedback mechanisms control vs. physics Cartesian Demons Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 3 / 20

  5. Outline Learning Objectives 1 The Need for Control 2 Quantum the Ping Pong Ball Cartesian Demon Determinizing Ping Pong Balls Event-triggered Control 3 Evolution Domains Detect Events Non-negotiability of Physics Splitting and Connecting Evolution Domains Firing of Events Physics vs. Control Proof 4 Loop Invariants Summary 5 Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 3 / 20

  6. Quantum the Safely Bored Bouncing Ball Proposition (Quantum can bounce around safely) 0 ≤ x ∧ x = H ∧ v = 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; (? x =0; v := − cv ∪ ? x � =0) � ∗ ](0 ≤ x ∧ x ≤ H ) � [ @invariant (2 gx = 2 gH − v 2 ∧ x ≥ 0) Proof Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 4 / 20

  7. Quantum the Safely Bored Bouncing Ball Can be improved. . . Proposition (Quantum can bounce around safely) 0 ≤ x ∧ x = H ∧ v = 0 ∧ g > 0 ∧ 1 = c → x ′ = v , v ′ = − g & x ≥ 0; (? x =0; v := − cv ∪ ? x � =0) � ∗ ](0 ≤ x ∧ x ≤ H ) � [ @invariant (2 gx = 2 gH − v 2 ∧ x ≥ 0) Proof Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 4 / 20

  8. Quantum the Safely Bored Bouncing Ball Can be improved. . . Proposition (Quantum can bounce around safely) 0 ≤ x ∧ x = H ∧ v = 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; (? x =0; v := − cv ∪ ? x � =0) � ∗ ](0 ≤ x ∧ x ≤ H ) � [ @invariant (2 gx = 2 gH − v 2 ∧ x ≥ 0) Proof Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 4 / 20

  9. Quantum the Daring Ping Pong Ball Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; �� � ∗ � (? x =0; v := − cv ∪ ? x � =0) (0 ≤ x ≤ 5) Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 5 / 20

  10. Quantum the Daring Ping Pong Ball Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; �� � ∗ � (? x =0; v := − cv ∪ ?4 ≤ x ≤ 5; v := − fv ∪ ? x � =0) (0 ≤ x ≤ 5) Ask Ren´ e Descartes Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 5 / 20

  11. Cartesian Doubt: Ren´ e Descartes’s Cartesian Demon 1641 Outwit the Cartesian Demon Skeptical about the truth of all beliefs until justification has been found. Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 6 / 20

  12. Quantum the Daring Ping Pong Ball Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; �� � ∗ � (? x =0; v := − cv ∪ ?4 ≤ x ≤ 5; v := − fv ∪ ? x � =0) (0 ≤ x ≤ 5) Ask Ren´ e Descartes Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 7 / 20

  13. Quantum the Daring Ping Pong Ball Could run instead of control Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; �� � ∗ � (? x =0; v := − cv ∪ ?4 ≤ x ≤ 5; v := − fv ∪ ? x � =0) (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 7 / 20

  14. Quantum the Daring Ping Pong Ball No bounce at event Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; �� � ∗ � (? x =0; v := − cv ∪ ?4 ≤ x ≤ 5; v := − fv ∪ ? x � =0 ∧ x < 4 ∨ x > 5) (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 7 / 20

  15. Quantum the Daring Ping Pong Ball Could miss this event Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → x ′ = v , v ′ = − g & x ≥ 0; �� � ∗ � (? x =0; v := − cv ∪ ?4 ≤ x ≤ 5; v := − fv ∪ ? x � =0 ∧ x < 4 ∨ x > 5) (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 7 / 20

  16. Quantum the Deterministically Daring Ping Pong Ball Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → { x ′ = v , v ′ = − g & x ≥ 0 } ; �� � ∗ � if ( x =0) v := − cv else if (4 ≤ x ≤ 5) v := − fv (0 ≤ x ≤ 5) Ask Ren´ e Descartes Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 8 / 20

  17. Quantum the Deterministically Daring Ping Pong Ball Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → { x ′ = v , v ′ = − g & x ≥ 0 } ; �� � ∗ � if ( x =0) v := − cv else if (4 ≤ x ≤ 5) v := − fv (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 8 / 20

  18. Quantum the Deterministically Daring Ping Pong Ball Could also miss if-then event Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → { x ′ = v , v ′ = − g & x ≥ 0 } ; �� � ∗ � if ( x =0) v := − cv else if (4 ≤ x ≤ 5) v := − fv (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 8 / 20

  19. Outline Learning Objectives 1 The Need for Control 2 Quantum the Ping Pong Ball Cartesian Demon Determinizing Ping Pong Balls Event-triggered Control 3 Evolution Domains Detect Events Non-negotiability of Physics Splitting and Connecting Evolution Domains Firing of Events Physics vs. Control Proof 4 Loop Invariants Summary 5 Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 8 / 20

  20. Evolution Domains Detect Events Evolution domains detect events x ′ = f ( x ) & Q Evolution domain Q of a differential equation is responsible for detecting events. Q can stop physics whenever an event happens on which the control wants to take action. x w Q u t r 0 x ′ = f ( x ) & Q Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 9 / 20

  21. Quantum the Deterministically Daring Ping Pong Ball Could also miss if-then event Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → { x ′ = v , v ′ = − g & x ≥ 0 } ; �� � ∗ � if ( x =0) v := − cv else if (4 ≤ x ≤ 5) v := − fv (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 10 / 20

  22. Quantum the Deterministically Daring Ping Pong Ball Domain as event trap? Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → { x ′ = v , v ′ = − g & x ≥ 0 ∧ 4 ≤ x ≤ 5 } ; �� � ∗ � if ( x =0) v := − cv else if (4 ≤ x ≤ 5) v := − fv (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 10 / 20

  23. Quantum the Deterministically Daring Ping Pong Ball Broken physics: Always event Conjecture (Quantum can play ping pong safely) 0 ≤ x ∧ x ≤ 5 ∧ v ≤ 0 ∧ g > 0 ∧ 1 ≥ c ≥ 0 ∧ f ≥ 0 → { x ′ = v , v ′ = − g & x ≥ 0 ∧ 4 ≤ x ≤ 5 } ; �� � ∗ � if ( x =0) v := − cv else if (4 ≤ x ≤ 5) v := − fv (0 ≤ x ≤ 5) Ask Ren´ e Descartes who says no! Proof? Andr´ e Platzer (CMU) FCPS / 08: Events & Responses 10 / 20

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