logical foundations of cyber physical systems
play

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

21: Virtual Substitution & Real Arithmetic Logical Foundations of Cyber-Physical Systems Andr Platzer Logical Foundations of Cyber-Physical Systems Andr Platzer Andr Platzer (CMU) LFCPS/21: Virtual Substitution & Real


  1. 21: Virtual Substitution & Real Arithmetic Logical Foundations of Cyber-Physical Systems André Platzer Logical Foundations of Cyber-Physical Systems André Platzer André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 1 / 22

  2. Outline Learning Objectives 1 Real Arithmetic 2 Recap: Quadratic Equations Quadratic Weak Inequalities Infinity ∞ Virtual Substitution Expedition: Infinities Quadratic Strict Inequalities Infinitesimal ε Virtual Substitution Quantifier Elimination by Virtual Substitution of Quadratics 3 Summary 4 André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 2 / 22

  3. Outline Learning Objectives 1 Real Arithmetic 2 Recap: Quadratic Equations Quadratic Weak Inequalities Infinity ∞ Virtual Substitution Expedition: Infinities Quadratic Strict Inequalities Infinitesimal ε Virtual Substitution Quantifier Elimination by Virtual Substitution of Quadratics 3 Summary 4 André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 2 / 22

  4. Learning Objectives Virtual Substitution & Real Equations rigorous arithmetical reasoning miracle of quantifier elimination logical trinity for reals switch between syntax & semantics at will virtual substitution lemma bridge gap between semantics and inexpressibles infinities & infinitesimals CT M&C CPS analytic complexity verifying CPS at scale modeling tradeoffs André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 3 / 22

  5. Outline Learning Objectives 1 Real Arithmetic 2 Recap: Quadratic Equations Quadratic Weak Inequalities Infinity ∞ Virtual Substitution Expedition: Infinities Quadratic Strict Inequalities Infinitesimal ε Virtual Substitution Quantifier Elimination by Virtual Substitution of Quadratics 3 Summary 4 André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 3 / 22

  6. Quadratic Virtual Substitution Theorem (Virtual Substitution: Quadratic Equation x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c = 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ �� ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) ¯ ¯ x x Lemma (Virtual Substitution Lemma for √· ) F ( a + b √ ≡ F ( a + b √ Extended logic c ) / d c ) / d FOL R x ¯ x [ F ( a + b √ � c ) / d ω r x ∈ [ [ F ] ] iff ω ∈ [ ] ] where r = ( ω [ [ a ] ]+ ω [ [ b ] ] ω [ [ c ] ]) / ( ω [ [ d ] ]) ∈ R ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 4 / 22

  7. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  8. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ �� ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) ¯ ¯ x x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  9. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) � ¯ ¯ x x � ∨ F small ... ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  10. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) � ¯ ¯ x x � ∨ F − ∞ ... ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  11. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) � ¯ ¯ x x � ∨ F − ∞ ... ¯ x − ∞ the rubber band number that’s smaller on any comparison André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  12. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) � ¯ ¯ x x � ∨ ( ax 2 + bx + c ≤ 0 ) − ∞ ∧ F − ∞ ... ¯ x ¯ x − ∞ needs to satisfy the quadratic inequality (obvious for roots, not − ∞ ) André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  13. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) � ¯ ¯ x x � ∨ ( ax 2 + bx + c ≤ 0 ) − ∞ ∧ F − ∞ ... ¯ x ¯ x Lemma (Virtual Substitution Lemma for − ∞ ) F − ∞ ≡ F − ∞ x ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  14. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) � ¯ ¯ x x � ∨ ( ax 2 + bx + c ≤ 0 ) − ∞ ∧ F − ∞ ... ¯ x ¯ x Lemma (Virtual Substitution Lemma for − ∞ ) Extended logic FOL R ∪{− ∞ , ∞ } FOL R F − ∞ ≡ F − ∞ x ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  15. Quadratic Inequality Virtual Substitution Theorem (Virtual Substitution: Quadratic Inequality x �∈ a , b , c ) a � = 0 ∨ b � = 0 ∨ c � = 0 → � ∃ x ( ax 2 + bx + c ≤ 0 ∧ F ) ↔ a = 0 ∧ b � = 0 ∧ F − c / b ¯ x √ √ ∨ a � = 0 ∧ b 2 − 4 ac ≥ 0 ∧ � F ( − b + b 2 − 4 ac ) / ( 2 a ) ∨ F ( − b − b 2 − 4 ac ) / ( 2 a ) � ¯ ¯ x x � ∨ ( ax 2 + bx + c ≤ 0 ) − ∞ ∧ F − ∞ ... ¯ x ¯ x Lemma (Virtual Substitution Lemma for − ∞ ) Extended logic FOL R ∪{− ∞ , ∞ } FOL R F − ∞ ≡ F − ∞ x ¯ x ω r [ F − ∞ x ∈ [ [ F ] ] iff ω ∈ [ ] ] where r → − ∞ ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 5 / 22

  16. Virtual Substitution of Infinities p = ∑ n i = 0 a i x i Virtual Substitution of − ∞ into Comparisons ( p = 0 ) − ∞ ≡ ¯ x ( p ≤ 0 ) − ∞ ≡ ¯ x ( p < 0 ) − ∞ ≡ ¯ x ( p � = 0 ) − ∞ ≡ ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 6 / 22

  17. Virtual Substitution of Infinities p = ∑ n i = 0 a i x i Virtual Substitution of − ∞ into Comparisons n � ( p = 0 ) − ∞ ≡ a i = 0 ¯ x i = 0 ( p ≤ 0 ) − ∞ ≡ ¯ x ( p < 0 ) − ∞ ≡ ¯ x ( p � = 0 ) − ∞ ≡ ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 6 / 22

  18. Virtual Substitution of Infinities p = ∑ n i = 0 a i x i Virtual Substitution of − ∞ into Comparisons n � ( p = 0 ) − ∞ ≡ a i = 0 ¯ x i = 0 ( p ≤ 0 ) − ∞ ≡ ( p < 0 ) − ∞ ∨ ( p = 0 ) − ∞ ¯ ¯ ¯ x x x ( p < 0 ) − ∞ ≡ ¯ x ( p � = 0 ) − ∞ ≡ ¯ x André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 6 / 22

  19. Virtual Substitution of Infinities p = ∑ n i = 0 a i x i Virtual Substitution of − ∞ into Comparisons n � ( p = 0 ) − ∞ ≡ a i = 0 ¯ x i = 0 ( p ≤ 0 ) − ∞ ≡ ( p < 0 ) − ∞ ∨ ( p = 0 ) − ∞ ¯ ¯ ¯ x x x ( p < 0 ) − ∞ ≡ p ( - ∞ ) < 0 ¯ x ( p � = 0 ) − ∞ ≡ ¯ x Ultimately negative at − ∞ lim x →− ∞ p ( x ) < 0 � if def p ( - ∞ ) < 0 ≡ if André Platzer (CMU) LFCPS/21: Virtual Substitution & Real Arithmetic LFCPS/21 6 / 22

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