logica i e
play

Logica (I&E) najaar 2018 - PowerPoint PPT Presentation

Logica (I&E) najaar 2018 http://liacs.leidenuniv.nl/~vlietrvan1/logica/ Rudy van Vliet kamer 140 Snellius, tel. 071-527 2876 rvvliet(at)liacs(dot)nl college 3, maandag 17 september 2018 1.2 Natural deduction Als je e en goal meer


  1. Logica (I&E) najaar 2018 http://liacs.leidenuniv.nl/~vlietrvan1/logica/ Rudy van Vliet kamer 140 Snellius, tel. 071-527 2876 rvvliet(at)liacs(dot)nl college 3, maandag 17 september 2018 1.2 Natural deduction Als je ´ e´ en goal meer maakt dan de ander, dan win je. 1

  2. A slide from lecture 2: 1.2. Natural deduction Proof rules Premises φ 1 , φ 2 , . . . , φ n Conclusion ψ Sequent φ 1 , φ 2 , . . . , φ n ⊢ ψ 2

  3. A slide from lecture 1: Propositional logic Example 1.1. If the train arrives late and there are no taxis at the station, then John is late for his meeting. John is not late for his meeting. The train did arrive late. Therefore, there were taxis at the station. Example 1.2. If it is raining and Jane does not have her umbrella with her, then she will get wet. Jane is not wet. It is raining. Therefore, Jane has her umbrella with her. General structure: If p and not q , then r . Not r . p . Therefore, q . 3

  4. Propositional logic Example 1.1. If the train arrives late and there are no taxis at the station, then John is late for his meeting. John is not late for his meeting. The train did arrive late. Therefore, there were taxis at the station. Example 1.2. If it is raining and Jane does not have her umbrella with her, then she will get wet. Jane is not wet. It is raining. Therefore, Jane has her umbrella with her. General structure: p ∧ ¬ q → r, ¬ r, p ⊢ q 4

  5. A slide from lecture 2: The rules for conjunction And-introduction: φ ψ ∧ i φ ∧ ψ And-elimination: φ ∧ ψ φ ∧ ψ ∧ e 1 ∧ e 2 φ ψ 5

  6. Alternative notation And-elimination: φ ∧ ψ φ ∧ ψ ∧ e R ∧ e L φ ψ 6

  7. A slide from lecture 2: Example 1.4. Proof of: p ∧ q, r ⊢ q ∧ r 1 premise p ∧ q 2 premise r 3 ∧ e 2 1 q 4 ∧ i 3 , 2 q ∧ r In tree-like form. . . 7

  8. Example 1.6. Proof of: ( p ∧ q ) ∧ r, s ∧ t ⊢ q ∧ s 8

  9. The rules of double negation It is not true that it does not rain. ¬¬ φ φ ¬¬ e ¬¬ i φ ¬¬ φ 9

  10. Example 1.5. p, ¬¬ ( q ∧ r ) ⊢ ¬¬ p ∧ r Proof. . . 10

  11. The rule for eliminating implication = Modus ponens φ φ → ψ → e ψ Je maakt ´ e´ en goal meer dan de ander. Als je ´ e´ en goal meer maakt dan de ander, dan win je. 11

  12. Example. p → ( q → r ) , p → q, p ⊢ r Proof. . . 12

  13. Another rule for eliminating implication = Modus tollens φ → ψ ¬ ψ MT ¬ φ Als je ´ e´ en goal meer maakt dan de ander, dan win je. Je wint niet. 13

  14. Example 1.7. p → ( q → r ) , p, ¬ r ⊢ ¬ q Proof. . . 14

  15. Examples 1.8. ¬ p → q, ¬ q ⊢ p Proof. . . p → ¬ q, q ⊢ ¬ p Proof. . . 15

  16. The rule implies introduction Example. p → q ⊢ ¬ q → ¬ p Proof. . . 16

  17. The rule implies introduction φ . . . ψ → i φ → ψ We can only use a formula φ in a proof at a given point, if . . . 17

  18. Example 1.9. ¬ q → ¬ p ⊢ p → ¬¬ q Proof. . . 18

  19. One-line argument 1 premise p 19

  20. Definition 1.10. Logical formulas φ with valid sequent ⊢ φ are theorems . Example 1.11. ⊢ ( q → r ) → (( ¬ q → ¬ p ) → ( p → r )) Proof. . . 20

  21. Boxproof assumption q → r  assumption ¬ q → ¬ p  assumption p  ¬¬ i 3 ¬¬ p  MT 2,4 ¬¬ q  ¬¬ e 5 q  → e 1,6 r  → i 3–7 p → r  ( ¬ q → ¬ p ) → ( p → r ) → i 2–8  ( q → r ) → (( ¬ q → ¬ p ) → ( p → r )) → i 1–9  21

  22. Structure of possible proof Structure of formula (tree) 22

  23. Remark 1.12. This way, we may transform any proof of φ 1 , φ 2 , φ 3 , . . . , φ n ⊢ ψ into a proof of ⊢ φ 1 → ( φ 2 → ( φ 3 → ( . . . ( φ n → ψ ) . . . ))) 23

  24. Example. p → ( q → r ) , p → q, p ⊢ r Proof: p → ( q → r ) premise  premise p → q  premise p  → e 1,3 q → r  → e 2,3 q  → e 4,5 r  24

  25. Example 1.13. p ∧ q → r ⊢ p → ( q → r ) Proof. . . 25

  26. Example 1.14. p → ( q → r ) ⊢ p ∧ q → r Proof. . . Hence, equivalent formulas: p ∧ q → r ⊣⊢ p → ( q → r ) 26

  27. The rules for disjunction Or-introduction: φ ψ ∨ i 1 ∨ i 2 φ ∨ ψ φ ∨ ψ Regardless of ψ / φ . . . 27

  28. Alternative notation Or-introduction: φ ψ ∨ i R ∨ i L φ ∨ ψ φ ∨ ψ 28

  29. Or-elimination How to infer χ from φ ∨ ψ ? 29

  30. Or-elimination φ ψ . . . . . . φ ∨ ψ χ χ ∨ e χ 30

  31. Example. p ∨ q ⊢ q ∨ p Proof. . . 31

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