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 4, maandag 24 september 2018 1.4 Semantics of propositional logic 1.2 Natural


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 4, maandag 24 september 2018 1.4 Semantics of propositional logic 1.2 Natural deduction Als ik zou willen dat je het begreep, had ik het wel beter uitgelegd.

1

slide-2
SLIDE 2

Huiswerkopgave 1

2

slide-3
SLIDE 3

A slide from lecture 3:

Or-elimination

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

∨e

3

slide-4
SLIDE 4

Example 1.16. q → r ⊢ p ∨ q → p ∨ r

  • Proof. . .

4

slide-5
SLIDE 5

Example 1.18. Disjunctions distribute over conjunctions. p ∧ (q ∨ r) ⊢ (p ∧ q) ∨ (p ∧ r) (p ∧ q) ∨ (p ∧ r) ⊢ p ∧ (q ∨ r)

  • Proof. . .

5

slide-6
SLIDE 6

The rule ‘copy’

⊢ p → (q → p)

  • Proof. . .

6

slide-7
SLIDE 7

The rules for negation

7

slide-8
SLIDE 8

Definition 1.19. Contradictions are expressions of the form φ∧¬φ or ¬φ∧φ, where φ is any formula. Not-elimination: φ ¬φ ⊥

¬e

8

slide-9
SLIDE 9

p ∧ ¬p ⊢ q p: The moon is made of green cheese. q: I like pepperoni on my pizza.

9

slide-10
SLIDE 10

(p ∧ q) ∨ (¬p ∧ ¬q) p → q p q ¬p ¬q p ∧ q ¬p ∧ ¬q (p ∧ q) ∨ (¬p ∧ ¬q) p → q T T F F T F T T T F F T F F F F F T T F F F F T F F T T F T T T

10

slide-11
SLIDE 11

φ ∧ ¬φ ψ φ ¬φ φ ∧ ¬φ ψ T F F . . . F T F . . .

11

slide-12
SLIDE 12

Bottom-elimination: ⊥ φ

⊥e

12

slide-13
SLIDE 13

Example 1.20. ¬p ∨ q ⊢ p → q

  • Proof. . .

13

slide-14
SLIDE 14

Not-introduction: φ . . . ⊥ ¬φ

¬i

14

slide-15
SLIDE 15

Example 1.21. p → q, p → ¬q ⊢ . . .

15

slide-16
SLIDE 16

Example 1.21. p → q, p → ¬q ⊢ ¬p

  • Proof. . .

16

slide-17
SLIDE 17

A slide from lecture 3: Example 1.7. p → (q → r), p, ¬r ⊢ ¬q

  • Proof. . .

17

slide-18
SLIDE 18

Example 1.22. p → (q → r), p, ¬r ⊢ ¬q Proof without Modus Tollens. . .

18

slide-19
SLIDE 19

A slide from lecture 2:

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

19

slide-20
SLIDE 20

Example 1.23. p ∧ ¬q → r, ¬r, p ⊢ q

  • Proof. . .

20

slide-21
SLIDE 21

1.2.2. Derived rules

Modus tollens φ → ψ ¬ψ ¬φ

MT

  • Proof. . .

21

slide-22
SLIDE 22

1.2.2. Derived rules

Double negation-introduction φ ¬¬φ

¬¬i

  • Proof. . .

22

slide-23
SLIDE 23

1.2.2. Derived rules

Proof by contradiction ¬φ . . . ⊥ φ

PBC

  • Proof. . .

23

slide-24
SLIDE 24

1.2.2. Derived rules

Law of the excluded middle φ ∨ ¬φ

LEM

  • Proof. . .

24

slide-25
SLIDE 25

Example 1.24. p → q ⊢ ¬p ∨ q Proof (using LEM). . .

25

slide-26
SLIDE 26

Basic rules of natural induction

introduction elimination ∧

φ ψ φ∧ψ ∧i φ∧ψ φ ∧eR φ∧ψ ψ ∧eL

φ φ∨ψ ∨iR ψ φ∨ψ ∨iL φ∨ψ

φ . . . χ ψ . . . χ

χ ∨e

→ φ . . . ψ

φ→ψ → i φ φ→ψ ψ → e

26

slide-27
SLIDE 27

Basic rules of natural induction

introduction elimination ¬ φ . . . ⊥

¬φ ¬i φ ¬φ ⊥ ¬e

⊥ φ ⊥e

¬¬

¬¬φ φ ¬¬e

27

slide-28
SLIDE 28

Some useful derived rules

φ→ψ ¬ψ ¬φ MT φ ¬¬φ ¬¬i

¬φ . . . ⊥

φ PBC φ∨¬φ LEM

28

slide-29
SLIDE 29

1.2.4 Provable equivalence

Definition 1.25. Let φ and ψ be formulas of propositional logic. We say that φ and ψ are provably equivalent, if and only if the sequents φ ⊢ ψ and ψ ⊢ φ are valid; Notation: φ ⊣⊢ ψ

29

slide-30
SLIDE 30

1.2.4 Provable equivalence

Examples: ¬(p ∧ q) ⊣⊢ ¬q ∨ ¬p ¬(p ∨ q) ⊣⊢ ¬q ∧ ¬p p → q ⊣⊢ ¬q → ¬p p → q ⊣⊢ ¬p ∨ q p ∧ q → p ⊣⊢ r ∨ ¬r p ∧ q → r ⊣⊢ p → (q → r)

30

slide-31
SLIDE 31

1.2.5. An aside: proof by contradiction

Intuitionistic logicians do not accept ¬φ . . . ⊥ φ

PBC

φ ∨ ¬φ

LEM

¬¬φ φ

¬¬e

31

slide-32
SLIDE 32

Theorem 1.26. There exist irrational numbers a and b such that ab is rational.

  • Proof. . .

32