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

logica i e
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 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

slide-2
SLIDE 2

A slide from lecture 2:

1.2. Natural deduction

Proof rules Premises φ1, φ2, . . . , φn Conclusion ψ Sequent φ1, φ2, . . . , φn ⊢ ψ

2

slide-3
SLIDE 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

slide-4
SLIDE 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

slide-5
SLIDE 5

A slide from lecture 2:

The rules for conjunction

And-introduction: φ ψ φ ∧ ψ

∧i

And-elimination: φ ∧ ψ φ

∧e1

φ ∧ ψ ψ

∧e2

5

slide-6
SLIDE 6

Alternative notation

And-elimination: φ ∧ ψ φ

∧eR

φ ∧ ψ ψ

∧eL

6

slide-7
SLIDE 7

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

7

slide-8
SLIDE 8

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

8

slide-9
SLIDE 9

The rules of double negation

It is not true that it does not rain. ¬¬φ φ

¬¬e

φ ¬¬φ

¬¬i

9

slide-10
SLIDE 10

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

  • Proof. . .

10

slide-11
SLIDE 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

slide-12
SLIDE 12

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

  • Proof. . .

12

slide-13
SLIDE 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

slide-14
SLIDE 14

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

  • Proof. . .

14

slide-15
SLIDE 15

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

  • Proof. . .

p → ¬q, q ⊢ ¬p

  • Proof. . .

15

slide-16
SLIDE 16

The rule implies introduction

Example. p → q ⊢ ¬q → ¬p

  • Proof. . .

16

slide-17
SLIDE 17

The rule implies introduction

φ . . . ψ φ → ψ

→ i

We can only use a formula φ in a proof at a given point, if . . .

17

slide-18
SLIDE 18

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

  • Proof. . .

18

slide-19
SLIDE 19

One-line argument

1 p premise

19

slide-20
SLIDE 20

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

  • Proof. . .

20

slide-21
SLIDE 21

Boxproof

q → r assumption

¬q → ¬p assumption

p assumption

¬¬p ¬¬i 3

¬¬q MT 2,4

q ¬¬e 5

r → e 1,6

p → r → i 3–7

(¬q → ¬p) → (p → r) → i 2–8



(q → r) → ((¬q → ¬p) → (p → r)) → i 1–9

21

slide-22
SLIDE 22

Structure of possible proof

Structure of formula (tree)

22

slide-23
SLIDE 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

slide-24
SLIDE 24

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

p → (q → r) premise

p → q premise

p premise

q → r → e 1,3

q → e 2,3

r → e 4,5

24

slide-25
SLIDE 25

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

  • Proof. . .

25

slide-26
SLIDE 26

Example 1.14. p → (q → r) ⊢ p ∧ q → r

  • Proof. . .

Hence, equivalent formulas: p ∧ q → r ⊣⊢ p → (q → r)

26

slide-27
SLIDE 27

The rules for disjunction

Or-introduction: φ φ ∨ ψ

∨i1

ψ φ ∨ ψ

∨i2

Regardless of ψ / φ . . .

27

slide-28
SLIDE 28

Alternative notation

Or-introduction: φ φ ∨ ψ

∨iR

ψ φ ∨ ψ

∨iL

28

slide-29
SLIDE 29

Or-elimination

How to infer χ from φ ∨ ψ ?

29

slide-30
SLIDE 30

Or-elimination

φ ∨ ψ φ . . . χ ψ . . . χ χ

∨e

30

slide-31
SLIDE 31

Example. p ∨ q ⊢ q ∨ p

  • Proof. . .

31