logical foundations of cyber physical systems
play

Logical Foundations of Cyber-Physical Systems Andr Platzer Andr - PowerPoint PPT Presentation

08: Events & Responses Logical Foundations of Cyber-Physical Systems Andr Platzer Logical Foundations of Cyber-Physical Systems Andr Platzer Andr Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 1 / 20 Outline Learning


  1. 08: Events & Responses Logical Foundations of Cyber-Physical Systems André Platzer Logical Foundations of Cyber-Physical Systems André Platzer André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 1 / 20

  2. Outline Learning Objectives 1 The Need for Control 2 Events in Control Cartesian Demon Event Detection 3 Event-Triggered Control Evolution Domains Detect Events Non-negotiability of Physics Dividing Up the World Event Firing Physics vs. Control Event-Triggered Verification Summary 4 André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 2 / 20

  3. Outline Learning Objectives 1 The Need for Control 2 Events in Control Cartesian Demon Event Detection 3 Event-Triggered Control Evolution Domains Detect Events Non-negotiability of Physics Dividing Up the World Event Firing Physics vs. Control Event-Triggered Verification Summary 4 André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 3 / 20

  5. Outline Learning Objectives 1 The Need for Control 2 Events in Control Cartesian Demon Event Detection 3 Event-Triggered Control Evolution Domains Detect Events Non-negotiability of Physics Dividing Up the World Event Firing Physics vs. Control Event-Triggered Verification Summary 4 André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 ) � [ André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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é Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 ) � [ André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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é Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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é Descartes Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 5 / 20

  11. Cartesian Doubt: Descartes’s Cartesian Demon 1641 Outwit the Cartesian Demon Skeptical about the truth of all beliefs until justification has been found. André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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é Descartes Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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é Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 7 / 20

  14. Quantum the Daring Ping-Pong Ball No bounce nor 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é Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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é Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 7 / 20

  16. Quantum the Deterministically Daring Ping-Pong Ball Rewrite as if-then-else 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 elseif ( 4 ≤ x ≤ 5 ) v := − fv ( 0 ≤ x ≤ 5 ) Ask René Descartes Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 elseif ( 4 ≤ x ≤ 5 ) v := − fv ( 0 ≤ x ≤ 5 ) Ask René Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 elseif ( 4 ≤ x ≤ 5 ) v := − fv ( 0 ≤ x ≤ 5 ) Ask René Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 8 / 20

  19. Outline Learning Objectives 1 The Need for Control 2 Events in Control Cartesian Demon Event Detection 3 Event-Triggered Control Evolution Domains Detect Events Non-negotiability of Physics Dividing Up the World Event Firing Physics vs. Control Event-Triggered Verification Summary 4 André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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é Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 elseif ( 4 ≤ x ≤ 5 ) v := − fv ( 0 ≤ x ≤ 5 ) Ask René Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 elseif ( 4 ≤ x ≤ 5 ) v := − fv ( 0 ≤ x ≤ 5 ) Ask René Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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 elseif ( 4 ≤ x ≤ 5 ) v := − fv ( 0 ≤ x ≤ 5 ) Ask René Descartes who says no! Proof? André Platzer (CMU) LFCPS/08: Events & Responses LFCPS/08 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