06 truth proof
play

06: Truth & Proof 15-424: Foundations of Cyber-Physical Systems - PowerPoint PPT Presentation

06: Truth & Proof 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. 06: Truth & Proof 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 / 06: Truth & Proof 1 / 13

  2. Outline Learning Objectives 1 Sequent Calculus 2 Propositional Example Proof Dynamics Example Proof Taming Arithmetic Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 2 / 13

  3. Outline Learning Objectives 1 Sequent Calculus 2 Propositional Example Proof Dynamics Example Proof Taming Arithmetic Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 2 / 13

  4. Learning Objectives Truth & Proof systematic reasoning for CPS verifying CPS models at scale pragmatics: how to use axiomatics to justify truth structure of proofs and their arithmetic CT M&C CPS discrete+continuous relation analytic skills for CPS with evolution domains Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 3 / 13

  5. Logical Trinity with Extra Leg Axiomatics Pragmatics Syntax Semantics Syntax defines the notation What problems are we allowed to write down? Semantics what carries meaning. What real or mathematical objects does the syntax stand for? Axiomatics internalizes semantic relations into universal syntactic transformations. Pragmatics how to use axiomatics to justify syntactic rendition of semantical concepts. How to do a proof? Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 4 / 13

  6. Outline Learning Objectives 1 Sequent Calculus 2 Propositional Example Proof Dynamics Example Proof Taming Arithmetic Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 4 / 13

  7. Sequent Calculus Definition (Sequent) Γ ⊢ ∆ has the same meaning as � P ∈ Γ P → � Q ∈ ∆ Q . The antecedent Γ and succedent ∆ are finite sets of d L formulas. Definition (Soundness of sequent calculus proof rules) Γ 1 ⊢ ∆ 1 Γ n ⊢ ∆ n . . . Γ ⊢ ∆ is sound iff validity of all premises implies validity of conclusion: If � (Γ 1 ⊢ ∆ 1 ) and . . . and � (Γ n ⊢ ∆ n ) then � (Γ ⊢ ∆) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 5 / 13

  8. Sequent Calculus Definition (Sequent) Γ ⊢ ∆ has the same meaning as � P ∈ Γ P → � Q ∈ ∆ Q . The antecedent Γ and succedent ∆ are finite sets of d L formulas. Definition (Soundness of sequent calculus proof rules) �   construct proofs Γ 1 ⊢ ∆ 1 Γ n ⊢ ∆ n . . .   Γ ⊢ ∆  is sound iff validity of all premises implies validity of conclusion: If � (Γ 1 ⊢ ∆ 1 ) and . . . and � (Γ n ⊢ ∆ n ) then � (Γ ⊢ ∆) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 5 / 13

  9. Sequent Calculus Definition (Sequent) Γ ⊢ ∆ has the same meaning as � P ∈ Γ P → � Q ∈ ∆ Q . The antecedent Γ and succedent ∆ are finite sets of d L formulas. Definition (Soundness of sequent calculus proof rules) �      construct proofs Γ 1 ⊢ ∆ 1 Γ n ⊢ ∆ n validity transfers . . .     Γ ⊢ ∆  � is sound iff validity of all premises implies validity of conclusion: If � (Γ 1 ⊢ ∆ 1 ) and . . . and � (Γ n ⊢ ∆ n ) then � (Γ ⊢ ∆) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 5 / 13

  10. Developed on the board: 1 Proof rules for propositional logic 2 Proofs with dynamics 3 Contextual equivalence rewriting / congruence 4 Quantifier proof rules 5 Real arithmetic 6 Structural proof rules See lecture notes for details [1]. Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 6 / 13

  11. Simple Propositional Example Proof in Sequent Calculus → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  12. Simple Propositional Example Proof in Sequent Calculus ∧ R v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  13. Simple Propositional Example Proof in Sequent Calculus ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∨ R v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) ∨ v 2 ≤ 10 ∧ R v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  14. Simple Propositional Example Proof in Sequent Calculus ?? v 2 ≤ 10 , b > 0 ⊢ b > 0 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∨ R v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) ∨ v 2 ≤ 10 ∧ R v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  15. Simple Propositional Example Proof in Sequent Calculus ∗ ?? v 2 ≤ 10 , b > 0 ⊢ b > 0 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∨ R v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) ∨ v 2 ≤ 10 ∧ R v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  16. Simple Propositional Example Proof in Sequent Calculus ∗ ?? v 2 ≤ 10 , b > 0 ⊢ b > 0 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) , v 2 ≤ 10 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∨ R v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) ∨ v 2 ≤ 10 ∧ R v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  17. Simple Propositional Example Proof in Sequent Calculus ?? v 2 ≤ 10 , b > 0 ⊢ ¬ ( v ≥ 0) , v 2 ≤ 10 ∗ ?? v 2 ≤ 10 , b > 0 ⊢ b > 0 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) , v 2 ≤ 10 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∨ R v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) ∨ v 2 ≤ 10 ∧ R v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  18. Simple Propositional Example Proof in Sequent Calculus ∗ ?? v 2 ≤ 10 , b > 0 ⊢ ¬ ( v ≥ 0) , v 2 ≤ 10 ∗ ?? v 2 ≤ 10 , b > 0 ⊢ b > 0 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) , v 2 ≤ 10 ∧ L v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∨ R v 2 ≤ 10 ∧ b > 0 ⊢ ¬ ( v ≥ 0) ∨ v 2 ≤ 10 ∧ R v 2 ≤ 10 ∧ b > 0 ⊢ b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) → R ⊢ v 2 ≤ 10 ∧ b > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 7 / 13

  19. Developed on the board: 1 Proof rules for propositional logic 2 Proofs with dynamics 3 Contextual equivalence rewriting / congruence 4 Quantifier proof rules 5 Real arithmetic 6 Structural proof rules See lecture notes for details [1]. Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 8 / 13

  20. Developed on the board: 1 Proof rules for propositional logic 2 Proofs with dynamics 3 Contextual equivalence rewriting / congruence 4 Quantifier proof rules 5 Real arithmetic 6 Structural proof rules See lecture notes for details [1]. Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 8 / 13

  21. Simple Dynamics Example Proof in Sequent Calculus [;] ⊢ [ a := − b ; c := 10] v 2 ≤ 10 ∧ − a > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � � Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 9 / 13

  22. Simple Dynamics Example Proof in Sequent Calculus [:=] ⊢ [ a := − b ][ c := 10] v 2 ≤ 10 ∧ − a > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � � [;] ⊢ [ a := − b ; c := 10] v 2 ≤ 10 ∧ − a > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � � Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 9 / 13

  23. Simple Dynamics Example Proof in Sequent Calculus [:=] ⊢ [ c := 10] � v 2 ≤ 10 ∧ − ( − b ) > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � [:=] ⊢ [ a := − b ][ c := 10] v 2 ≤ 10 ∧ − a > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � � [;] ⊢ [ a := − b ; c := 10] v 2 ≤ 10 ∧ − a > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � � Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 9 / 13

  24. Simple Dynamics Example Proof in Sequent Calculus ⊢ v 2 ≤ 10 ∧ − ( − b ) > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ 10) [:=] ⊢ [ c := 10] � v 2 ≤ 10 ∧ − ( − b ) > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � [:=] ⊢ [ a := − b ][ c := 10] v 2 ≤ 10 ∧ − a > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � � [;] ⊢ [ a := − b ; c := 10] v 2 ≤ 10 ∧ − a > 0 → b > 0 ∧ ( ¬ ( v ≥ 0) ∨ v 2 ≤ c ) � � Andr´ e Platzer (CMU) FCPS / 06: Truth & Proof 9 / 13

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