Logic in Action Chapter 9: Proofs http://www.logicinaction.org/ ( - - PowerPoint PPT Presentation

logic in action
SMART_READER_LITE
LIVE PREVIEW

Logic in Action Chapter 9: Proofs http://www.logicinaction.org/ ( - - PowerPoint PPT Presentation

Logic in Action Chapter 9: Proofs http://www.logicinaction.org/ ( http://www.logicinaction.org/ ) 1 / 24 Natural Deduction for Propositional Logic Systems revised so far Issues with the tableau method. ( http://www.logicinaction.org/ ) 2 / 24


slide-1
SLIDE 1

Logic in Action

Chapter 9: Proofs

http://www.logicinaction.org/

(http://www.logicinaction.org/) 1 / 24

slide-2
SLIDE 2

Natural Deduction for Propositional Logic

Systems revised so far

Issues with the tableau method.

(http://www.logicinaction.org/) 2 / 24

slide-3
SLIDE 3

Natural Deduction for Propositional Logic

Systems revised so far

Issues with the tableau method. It is a refutation method.

(http://www.logicinaction.org/) 2 / 24

slide-4
SLIDE 4

Natural Deduction for Propositional Logic

Systems revised so far

Issues with the tableau method. It is a refutation method. It does not follow the way humans reason.

(http://www.logicinaction.org/) 2 / 24

slide-5
SLIDE 5

Natural Deduction for Propositional Logic

Systems revised so far

Issues with the tableau method. It is a refutation method. It does not follow the way humans reason. Issues with the presented derivation systems.

(http://www.logicinaction.org/) 2 / 24

slide-6
SLIDE 6

Natural Deduction for Propositional Logic

Systems revised so far

Issues with the tableau method. It is a refutation method. It does not follow the way humans reason. Issues with the presented derivation systems. Proofs are not very natural (e.g., try to prove ϕ → ¬¬ϕ).

(http://www.logicinaction.org/) 2 / 24

slide-7
SLIDE 7

Natural Deduction for Propositional Logic

Systems revised so far

Issues with the tableau method. It is a refutation method. It does not follow the way humans reason. Issues with the presented derivation systems. Proofs are not very natural (e.g., try to prove ϕ → ¬¬ϕ). They do not facilitate conditional reasoning.

(http://www.logicinaction.org/) 2 / 24

slide-8
SLIDE 8

Natural Deduction for Propositional Logic

The deduction property

(http://www.logicinaction.org/) 3 / 24

slide-9
SLIDE 9

Natural Deduction for Propositional Logic

The deduction property Σ, ϕ | = ψ if and only if Σ | = ϕ → ψ

(http://www.logicinaction.org/) 3 / 24

slide-10
SLIDE 10

Natural Deduction for Propositional Logic

What if we can make assumptions?

Consider a proof for ϕ → ϕ.

(http://www.logicinaction.org/) 4 / 24

slide-11
SLIDE 11

Natural Deduction for Propositional Logic

What if we can make assumptions?

Consider a proof for ϕ → ϕ. Using the derivation system presented in Chapter 2, the proof takes several steps.

(http://www.logicinaction.org/) 4 / 24

slide-12
SLIDE 12

Natural Deduction for Propositional Logic

What if we can make assumptions?

Consider a proof for ϕ → ϕ. Using the derivation system presented in Chapter 2, the proof takes several steps. But if we can make assumptions . . .

(http://www.logicinaction.org/) 4 / 24

slide-13
SLIDE 13

Natural Deduction for Propositional Logic

What if we can make assumptions?

Consider a proof for ϕ → ϕ. Using the derivation system presented in Chapter 2, the proof takes several steps. But if we can make assumptions . . . 1 ϕ

(http://www.logicinaction.org/) 4 / 24

slide-14
SLIDE 14

Natural Deduction for Propositional Logic

What if we can make assumptions?

Consider a proof for ϕ → ϕ. Using the derivation system presented in Chapter 2, the proof takes several steps. But if we can make assumptions . . . 1 ϕ 2 ϕ

repetition 1 (http://www.logicinaction.org/) 4 / 24

slide-15
SLIDE 15

Natural Deduction for Propositional Logic

What if we can make assumptions?

Consider a proof for ϕ → ϕ. Using the derivation system presented in Chapter 2, the proof takes several steps. But if we can make assumptions . . . 1 ϕ 2 ϕ

repetition 1

3 ϕ → ϕ

deduction 1-2 (http://www.logicinaction.org/) 4 / 24

slide-16
SLIDE 16

Natural Deduction for Propositional Logic

What if we can make assumptions?

Consider a proof for ϕ → ϕ. Using the derivation system presented in Chapter 2, the proof takes several steps. But if we can make assumptions . . . 1 ϕ 2 ϕ

repetition 1

3 ϕ → ϕ

deduction 1-2

This is the main idea for the deduction rule.

(http://www.logicinaction.org/) 4 / 24

slide-17
SLIDE 17

Natural Deduction for Propositional Logic

The deduction rule

Suppose you want to prove ϕ → ψ.

(http://www.logicinaction.org/) 5 / 24

slide-18
SLIDE 18

Natural Deduction for Propositional Logic

The deduction rule

Suppose you want to prove ϕ → ψ. Assume ϕ. ϕ

(http://www.logicinaction.org/) 5 / 24

slide-19
SLIDE 19

Natural Deduction for Propositional Logic

The deduction rule

Suppose you want to prove ϕ → ψ. Assume ϕ. If after further steps ϕ . . .

(http://www.logicinaction.org/) 5 / 24

slide-20
SLIDE 20

Natural Deduction for Propositional Logic

The deduction rule

Suppose you want to prove ϕ → ψ. Assume ϕ. If after further steps you can prove ψ, ϕ . . . ψ

(http://www.logicinaction.org/) 5 / 24

slide-21
SLIDE 21

Natural Deduction for Propositional Logic

The deduction rule

Suppose you want to prove ϕ → ψ. Assume ϕ. If after further steps you can prove ψ, then you actually have ϕ → ψ. ϕ . . . ψ ϕ → ψ

deduction (http://www.logicinaction.org/) 5 / 24

slide-22
SLIDE 22

Natural Deduction for Propositional Logic

Recall

The three axioms for propositional logic

(http://www.logicinaction.org/) 6 / 24

slide-23
SLIDE 23

Natural Deduction for Propositional Logic

Recall

The three axioms for propositional logic

1 ϕ → (ψ → ϕ) (http://www.logicinaction.org/) 6 / 24

slide-24
SLIDE 24

Natural Deduction for Propositional Logic

Recall

The three axioms for propositional logic

1 ϕ → (ψ → ϕ) 2 (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) (http://www.logicinaction.org/) 6 / 24

slide-25
SLIDE 25

Natural Deduction for Propositional Logic

Recall

The three axioms for propositional logic

1 ϕ → (ψ → ϕ) 2 (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) 3 (¬ϕ → ¬ψ) → (ψ → ϕ) (http://www.logicinaction.org/) 6 / 24

slide-26
SLIDE 26

Natural Deduction for Propositional Logic

Proving the axioms (1)

The axiom ϕ → (ψ → ϕ) can be proved from deduction:

(http://www.logicinaction.org/) 7 / 24

slide-27
SLIDE 27

Natural Deduction for Propositional Logic

Proving the axioms (1)

The axiom ϕ → (ψ → ϕ) can be proved from deduction: 1 ϕ

(http://www.logicinaction.org/) 7 / 24

slide-28
SLIDE 28

Natural Deduction for Propositional Logic

Proving the axioms (1)

The axiom ϕ → (ψ → ϕ) can be proved from deduction: 1 ϕ 2 ψ

(http://www.logicinaction.org/) 7 / 24

slide-29
SLIDE 29

Natural Deduction for Propositional Logic

Proving the axioms (1)

The axiom ϕ → (ψ → ϕ) can be proved from deduction: 1 ϕ 2 ψ 3 ϕ

repetition 1 (http://www.logicinaction.org/) 7 / 24

slide-30
SLIDE 30

Natural Deduction for Propositional Logic

Proving the axioms (1)

The axiom ϕ → (ψ → ϕ) can be proved from deduction: 1 ϕ 2 ψ 3 ϕ

repetition 1

4 ψ → ϕ

deduction 2-3 (http://www.logicinaction.org/) 7 / 24

slide-31
SLIDE 31

Natural Deduction for Propositional Logic

Proving the axioms (1)

The axiom ϕ → (ψ → ϕ) can be proved from deduction: 1 ϕ 2 ψ 3 ϕ

repetition 1

4 ψ → ϕ

deduction 2-3

5 ϕ → (ψ → ϕ)

deduction 1-4 (http://www.logicinaction.org/) 7 / 24

slide-32
SLIDE 32

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction:

(http://www.logicinaction.org/) 8 / 24

slide-33
SLIDE 33

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ)

(http://www.logicinaction.org/) 8 / 24

slide-34
SLIDE 34

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ

(http://www.logicinaction.org/) 8 / 24

slide-35
SLIDE 35

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ 3 ϕ

(http://www.logicinaction.org/) 8 / 24

slide-36
SLIDE 36

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ 3 ϕ 4 ψ

modus ponens 3,2 (http://www.logicinaction.org/) 8 / 24

slide-37
SLIDE 37

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ 3 ϕ 4 ψ

modus ponens 3,2

5 ψ → χ

modus ponens 3,1 (http://www.logicinaction.org/) 8 / 24

slide-38
SLIDE 38

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ 3 ϕ 4 ψ

modus ponens 3,2

5 ψ → χ

modus ponens 3,1

6 χ

modus ponens 4,5 (http://www.logicinaction.org/) 8 / 24

slide-39
SLIDE 39

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ 3 ϕ 4 ψ

modus ponens 3,2

5 ψ → χ

modus ponens 3,1

6 χ

modus ponens 4,5

7 ϕ → χ

deduction 3-6 (http://www.logicinaction.org/) 8 / 24

slide-40
SLIDE 40

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ 3 ϕ 4 ψ

modus ponens 3,2

5 ψ → χ

modus ponens 3,1

6 χ

modus ponens 4,5

7 ϕ → χ

deduction 3-6

8 (ϕ → ψ) → (ϕ → χ)

deduction 2-7 (http://www.logicinaction.org/) 8 / 24

slide-41
SLIDE 41

Natural Deduction for Propositional Logic

Proving the axioms (2)

The axiom (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ)) can be proved from modus ponens and deduction: 1 ϕ → (ψ → χ) 2 ϕ → ψ 3 ϕ 4 ψ

modus ponens 3,2

5 ψ → χ

modus ponens 3,1

6 χ

modus ponens 4,5

7 ϕ → χ

deduction 3-6

8 (ϕ → ψ) → (ϕ → χ)

deduction 2-7

9 (ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ))

deduction 1-8 (http://www.logicinaction.org/) 8 / 24

slide-42
SLIDE 42

Natural Deduction for Propositional Logic

We need more

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) cannot be proved from modus ponens and deduction.

(http://www.logicinaction.org/) 9 / 24

slide-43
SLIDE 43

Natural Deduction for Propositional Logic

We need more

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) cannot be proved from modus ponens and deduction. We need a way to deal with negations.

(http://www.logicinaction.org/) 9 / 24

slide-44
SLIDE 44

Natural Deduction for Propositional Logic

The refutation rule

Suppose you want to prove ϕ.

(http://www.logicinaction.org/) 10 / 24

slide-45
SLIDE 45

Natural Deduction for Propositional Logic

The refutation rule

Suppose you want to prove ϕ. Assume ¬ϕ. ¬ϕ

(http://www.logicinaction.org/) 10 / 24

slide-46
SLIDE 46

Natural Deduction for Propositional Logic

The refutation rule

Suppose you want to prove ϕ. Assume ¬ϕ. If after further steps ¬ϕ . . .

(http://www.logicinaction.org/) 10 / 24

slide-47
SLIDE 47

Natural Deduction for Propositional Logic

The refutation rule

Suppose you want to prove ϕ. Assume ¬ϕ. If after further steps you can prove a contradiction ⊥, ¬ϕ . . . ⊥

(http://www.logicinaction.org/) 10 / 24

slide-48
SLIDE 48

Natural Deduction for Propositional Logic

The refutation rule

Suppose you want to prove ϕ. Assume ¬ϕ. If after further steps you can prove a contradiction ⊥, then ¬ϕ cannot be true ¬ϕ . . . ⊥

(http://www.logicinaction.org/) 10 / 24

slide-49
SLIDE 49

Natural Deduction for Propositional Logic

The refutation rule

Suppose you want to prove ϕ. Assume ¬ϕ. If after further steps you can prove a contradiction ⊥, then ¬ϕ cannot be true so you actually have ϕ. ¬ϕ . . . ⊥ ϕ

refutation (http://www.logicinaction.org/) 10 / 24

slide-50
SLIDE 50

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation:

(http://www.logicinaction.org/) 11 / 24

slide-51
SLIDE 51

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ

(http://www.logicinaction.org/) 11 / 24

slide-52
SLIDE 52

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ

(http://www.logicinaction.org/) 11 / 24

slide-53
SLIDE 53

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ 3 ¬ϕ

(http://www.logicinaction.org/) 11 / 24

slide-54
SLIDE 54

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ 3 ¬ϕ 4 ¬ψ

modus ponens 3,1 (http://www.logicinaction.org/) 11 / 24

slide-55
SLIDE 55

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ 3 ¬ϕ 4 ¬ψ

modus ponens 3,1

5 ⊥

modus ponens 2,4 (http://www.logicinaction.org/) 11 / 24

slide-56
SLIDE 56

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ 3 ¬ϕ 4 ¬ψ

modus ponens 3,1

5 ⊥

modus ponens 2,4

6 ϕ

refutation 3-5 (http://www.logicinaction.org/) 11 / 24

slide-57
SLIDE 57

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ 3 ¬ϕ 4 ¬ψ

modus ponens 3,1

5 ⊥

modus ponens 2,4

6 ϕ

refutation 3-5

7 ψ → ϕ

deduction 2-6 (http://www.logicinaction.org/) 11 / 24

slide-58
SLIDE 58

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ 3 ¬ϕ 4 ¬ψ

modus ponens 3,1

5 ⊥

modus ponens 2,4

6 ϕ

refutation 3-5

7 ψ → ϕ

deduction 2-6

8 (¬ϕ → ¬ψ) → (ψ → ϕ)

deduction 1-7 (http://www.logicinaction.org/) 11 / 24

slide-59
SLIDE 59

Natural Deduction for Propositional Logic

Proving the axioms (3)

The axiom (¬ϕ → ¬ψ) → (ψ → ϕ) can be proved from modus ponens, deduction and refutation: 1 ¬ϕ → ¬ψ 2 ψ 3 ¬ϕ 4 ¬ψ

modus ponens 3,1

5 ⊥

modus ponens 2,4

6 ϕ

refutation 3-5

7 ψ → ϕ

deduction 2-6

8 (¬ϕ → ¬ψ) → (ψ → ϕ)

deduction 1-7

For step 5, note that ¬ψ can be seen as an abbreviation of ψ → ⊥.

(http://www.logicinaction.org/) 11 / 24

slide-60
SLIDE 60

Natural Deduction for Propositional Logic

So . . .

ϕ , ϕ → ψ ψ

modus ponens

ϕ . . . ψ ϕ → ψ

deduction

¬ϕ . . . ⊥ ϕ

refutation (http://www.logicinaction.org/) 12 / 24

slide-61
SLIDE 61

Natural Deduction for Propositional Logic

So . . .

ϕ , ϕ → ψ ψ

modus ponens

ϕ . . . ψ ϕ → ψ

deduction

¬ϕ . . . ⊥ ϕ

refutation

The modus ponens, deduction and refutation rules are a complete system for propositional logic.

(http://www.logicinaction.org/) 12 / 24

slide-62
SLIDE 62

Natural Deduction for Propositional Logic

To facilitate things . . .

(http://www.logicinaction.org/) 13 / 24

slide-63
SLIDE 63

Natural Deduction for Propositional Logic

To facilitate things . . .

Natural deduction introduces rules to manipulate all the connectives in an easy way.

(http://www.logicinaction.org/) 13 / 24

slide-64
SLIDE 64

Natural Deduction for Propositional Logic

For implication →

(http://www.logicinaction.org/) 14 / 24

slide-65
SLIDE 65

Natural Deduction for Propositional Logic

For implication →

ϕ , ϕ → ψ ψ

modus ponens (http://www.logicinaction.org/) 14 / 24

slide-66
SLIDE 66

Natural Deduction for Propositional Logic

For implication →

ϕ , ϕ → ψ ψ

modus ponens

E→

(http://www.logicinaction.org/) 14 / 24

slide-67
SLIDE 67

Natural Deduction for Propositional Logic

For implication →

ϕ , ϕ → ψ ψ

modus ponens

ϕ . . . ψ ϕ → ψ

deduction

E→

(http://www.logicinaction.org/) 14 / 24

slide-68
SLIDE 68

Natural Deduction for Propositional Logic

For implication →

ϕ , ϕ → ψ ψ

modus ponens

ϕ . . . ψ ϕ → ψ

deduction

E→ I→

(http://www.logicinaction.org/) 14 / 24

slide-69
SLIDE 69

Natural Deduction for Propositional Logic

For negation ¬

(http://www.logicinaction.org/) 15 / 24

slide-70
SLIDE 70

Natural Deduction for Propositional Logic

For negation ¬

¬ϕ , ϕ ⊥

(http://www.logicinaction.org/) 15 / 24

slide-71
SLIDE 71

Natural Deduction for Propositional Logic

For negation ¬

¬ϕ , ϕ ⊥

(http://www.logicinaction.org/) 15 / 24

slide-72
SLIDE 72

Natural Deduction for Propositional Logic

For negation ¬

¬ϕ , ϕ ⊥ ¬ϕ . . . ⊥ ϕ

refutation

(http://www.logicinaction.org/) 15 / 24

slide-73
SLIDE 73

Natural Deduction for Propositional Logic

For negation ¬

¬ϕ , ϕ ⊥ ¬ϕ . . . ⊥ ϕ

refutation

E¬ I¬

(http://www.logicinaction.org/) 15 / 24

slide-74
SLIDE 74

Natural Deduction for Propositional Logic

For conjunction ∧

(http://www.logicinaction.org/) 16 / 24

slide-75
SLIDE 75

Natural Deduction for Propositional Logic

For conjunction ∧

ϕ ∧ ψ ϕ ϕ ∧ ψ ψ

(http://www.logicinaction.org/) 16 / 24

slide-76
SLIDE 76

Natural Deduction for Propositional Logic

For conjunction ∧

ϕ ∧ ψ ϕ ϕ ∧ ψ ψ

E∧

(http://www.logicinaction.org/) 16 / 24

slide-77
SLIDE 77

Natural Deduction for Propositional Logic

For conjunction ∧

ϕ ∧ ψ ϕ ϕ ∧ ψ ψ ϕ , ψ ϕ ∧ ψ

E∧

(http://www.logicinaction.org/) 16 / 24

slide-78
SLIDE 78

Natural Deduction for Propositional Logic

For conjunction ∧

ϕ ∧ ψ ϕ ϕ ∧ ψ ψ ϕ , ψ ϕ ∧ ψ

E∧ I∧

(http://www.logicinaction.org/) 16 / 24

slide-79
SLIDE 79

Natural Deduction for Propositional Logic

For disjunction ∨

(http://www.logicinaction.org/) 17 / 24

slide-80
SLIDE 80

Natural Deduction for Propositional Logic

For disjunction ∨

ϕ ∨ ψ , ϕ . . . χ , ψ . . . χ χ

(http://www.logicinaction.org/) 17 / 24

slide-81
SLIDE 81

Natural Deduction for Propositional Logic

For disjunction ∨

ϕ ∨ ψ , ϕ . . . χ , ψ . . . χ χ

E∨

(http://www.logicinaction.org/) 17 / 24

slide-82
SLIDE 82

Natural Deduction for Propositional Logic

For disjunction ∨

ϕ ∨ ψ , ϕ . . . χ , ψ . . . χ χ ϕ ϕ ∨ ψ ψ ϕ ∨ ψ

E∨

(http://www.logicinaction.org/) 17 / 24

slide-83
SLIDE 83

Natural Deduction for Propositional Logic

For disjunction ∨

ϕ ∨ ψ , ϕ . . . χ , ψ . . . χ χ ϕ ϕ ∨ ψ ψ ϕ ∨ ψ

E∨ I∨

(http://www.logicinaction.org/) 17 / 24

slide-84
SLIDE 84

Natural Deduction for Predicate Logic

For predicate logic

In order to present introduction and elimination rules for both ∀ and ∃, we need to recall two notions.

(http://www.logicinaction.org/) 18 / 24

slide-85
SLIDE 85

Natural Deduction for Predicate Logic

For predicate logic

In order to present introduction and elimination rules for both ∀ and ∃, we need to recall two notions. Bounded variable.

(http://www.logicinaction.org/) 18 / 24

slide-86
SLIDE 86

Natural Deduction for Predicate Logic

For predicate logic

In order to present introduction and elimination rules for both ∀ and ∃, we need to recall two notions. Bounded variable. Substitution of a variable for a term in a formula.

(http://www.logicinaction.org/) 18 / 24

slide-87
SLIDE 87

Natural Deduction for Predicate Logic

Bounded variable

(http://www.logicinaction.org/) 19 / 24

slide-88
SLIDE 88

Natural Deduction for Predicate Logic

Bounded variable

Scope of a quantifier. In a formula of the form ∀xϕ (∃xϕ), the subformula ϕ is said to be the scope of the quantifier ∀ (∃).

(http://www.logicinaction.org/) 19 / 24

slide-89
SLIDE 89

Natural Deduction for Predicate Logic

Bounded variable

Scope of a quantifier. In a formula of the form ∀xϕ (∃xϕ), the subformula ϕ is said to be the scope of the quantifier ∀ (∃). Binding a variable. In a formula of the form ∀xϕ (∃xϕ), the quantifier ∀ (∃) binds any occurrence of x in ϕ that is not bounded by another quantifier inside ϕ.

(http://www.logicinaction.org/) 19 / 24

slide-90
SLIDE 90

Natural Deduction for Predicate Logic

Bounded variable

Scope of a quantifier. In a formula of the form ∀xϕ (∃xϕ), the subformula ϕ is said to be the scope of the quantifier ∀ (∃). Binding a variable. In a formula of the form ∀xϕ (∃xϕ), the quantifier ∀ (∃) binds any occurrence of x in ϕ that is not bounded by another quantifier inside ϕ. Bounded variable. An occurrence of a variable x is bounded in a formula ϕ if there is a quantifier in ϕ that binds it.

(http://www.logicinaction.org/) 19 / 24

slide-91
SLIDE 91

Natural Deduction for Predicate Logic

Substitution (1)

(http://www.logicinaction.org/) 20 / 24

slide-92
SLIDE 92

Natural Deduction for Predicate Logic

Substitution (1)

Substitution inside a term. Replacing the occurrences of the variable y for the term t inside the term s produces the term denoted by (s)y

t (http://www.logicinaction.org/) 20 / 24

slide-93
SLIDE 93

Natural Deduction for Predicate Logic

Substitution (1)

Substitution inside a term. Replacing the occurrences of the variable y for the term t inside the term s produces the term denoted by (s)y

t

Formally, For a constant: (c)y

t := c

For a variable: 8 < : (x)y

t := x

for x different from y (y)y

t := t (http://www.logicinaction.org/) 20 / 24

slide-94
SLIDE 94

Natural Deduction for Predicate Logic

Substitution (1)

Substitution inside a term. Replacing the occurrences of the variable y for the term t inside the term s produces the term denoted by (s)y

t

Formally, For a constant: (c)y

t := c

For a variable: 8 < : (x)y

t := x

for x different from y (y)y

t := t

Examples: (a)x

c := a

(x)y

a := x

(z)z

y := y (http://www.logicinaction.org/) 20 / 24

slide-95
SLIDE 95

Natural Deduction for Predicate Logic

Substitution (2)

(http://www.logicinaction.org/) 21 / 24

slide-96
SLIDE 96

Natural Deduction for Predicate Logic

Substitution (2)

Substitution inside a formula. Replacing the free occurrences of the variable y for the term t inside the formula ϕ produces the formula denoted by (ϕ)y

t (http://www.logicinaction.org/) 21 / 24

slide-97
SLIDE 97

Natural Deduction for Predicate Logic

Substitution (2)

Substitution inside a formula. Replacing the free occurrences of the variable y for the term t inside the formula ϕ produces the formula denoted by (ϕ)y

t

Formally, (P t1 · · · tn)y

t := P (t1)y t · · · (tn)y t

(¬ϕ)y

t := ¬(ϕ)y t

(ϕ ∧ ψ)y

t := (ϕ)y t ∧ (ψ)y t

(ϕ ∨ ψ)y

t := (ϕ)y t ∨ (ψ)y t

(ϕ → ψ)y

t := (ϕ)y t → (ψ)y t

(ϕ ↔ ψ)y

t := (ϕ)y t ↔ (ψ)y t

8 < : (∀xϕ)y

t := ∀x(ϕ)y t

(∀yϕ)y

t := ∀yϕ

8 < : (∃xϕ)y

t := ∃x(ϕ)y t

(∃yϕ)y

t := ∃yϕ (http://www.logicinaction.org/) 21 / 24

slide-98
SLIDE 98

Natural Deduction for Predicate Logic

For the universal quantifier ∀

(http://www.logicinaction.org/) 22 / 24

slide-99
SLIDE 99

Natural Deduction for Predicate Logic

For the universal quantifier ∀

∀x ϕ (ϕ)x

t

provided that no variable in t

  • ccurs bounded in ϕ

(http://www.logicinaction.org/) 22 / 24

slide-100
SLIDE 100

Natural Deduction for Predicate Logic

For the universal quantifier ∀

∀x ϕ (ϕ)x

t

provided that no variable in t

  • ccurs bounded in ϕ

E∀

(http://www.logicinaction.org/) 22 / 24

slide-101
SLIDE 101

Natural Deduction for Predicate Logic

For the universal quantifier ∀

∀x ϕ (ϕ)x

t u

. . . (ϕ)x

u

∀x ϕ provided that no variable in t

  • ccurs bounded in ϕ

for u a special symbol not used anywhere else in the proof

E∀

(http://www.logicinaction.org/) 22 / 24

slide-102
SLIDE 102

Natural Deduction for Predicate Logic

For the universal quantifier ∀

∀x ϕ (ϕ)x

t u

. . . (ϕ)x

u

∀x ϕ provided that no variable in t

  • ccurs bounded in ϕ

for u a special symbol not used anywhere else in the proof

E∀ I∀

(http://www.logicinaction.org/) 22 / 24

slide-103
SLIDE 103

Natural Deduction for Predicate Logic

For the existential quantifier ∃

(http://www.logicinaction.org/) 23 / 24

slide-104
SLIDE 104

Natural Deduction for Predicate Logic

For the existential quantifier ∃

∃x ϕ ,

u

(ϕ)x

u

. . . ψ ψ for u a special symbol not used anywhere in the proof

(http://www.logicinaction.org/) 23 / 24

slide-105
SLIDE 105

Natural Deduction for Predicate Logic

For the existential quantifier ∃

∃x ϕ ,

u

(ϕ)x

u

. . . ψ ψ for u a special symbol not used anywhere in the proof

E∃

(http://www.logicinaction.org/) 23 / 24

slide-106
SLIDE 106

Natural Deduction for Predicate Logic

For the existential quantifier ∃

∃x ϕ ,

u

(ϕ)x

u

. . . ψ ψ (ϕ)x

t

∃x ϕ for u a special symbol not used anywhere in the proof provided that no variable in t

  • ccurs bounded in ϕ

E∃

(http://www.logicinaction.org/) 23 / 24

slide-107
SLIDE 107

Natural Deduction for Predicate Logic

For the existential quantifier ∃

∃x ϕ ,

u

(ϕ)x

u

. . . ψ ψ (ϕ)x

t

∃x ϕ for u a special symbol not used anywhere in the proof provided that no variable in t

  • ccurs bounded in ϕ

E∃ I∃

(http://www.logicinaction.org/) 23 / 24

slide-108
SLIDE 108

Natural Deduction for Predicate Logic

For the identity symbol =

(http://www.logicinaction.org/) 24 / 24

slide-109
SLIDE 109

Natural Deduction for Predicate Logic

For the identity symbol =

t1 = t2 , ϕ ϕ[t1/t2] t1 = t2 , ϕ ϕ[t2/t1]

where ϕ[t1/t2] is the result of replac- ing, in ϕ, some ocurrences of t2 by t1, provided that

(http://www.logicinaction.org/) 24 / 24

slide-110
SLIDE 110

Natural Deduction for Predicate Logic

For the identity symbol =

t1 = t2 , ϕ ϕ[t1/t2] t1 = t2 , ϕ ϕ[t2/t1]

where ϕ[t1/t2] is the result of replac- ing, in ϕ, some ocurrences of t2 by t1, provided that t2 contains only variables that

  • ccurr freely in ϕ, and

(http://www.logicinaction.org/) 24 / 24

slide-111
SLIDE 111

Natural Deduction for Predicate Logic

For the identity symbol =

t1 = t2 , ϕ ϕ[t1/t2] t1 = t2 , ϕ ϕ[t2/t1]

where ϕ[t1/t2] is the result of replac- ing, in ϕ, some ocurrences of t2 by t1, provided that t2 contains only variables that

  • ccurr freely in ϕ, and

t1 contains only variables that do not get bounded after replacement.

(http://www.logicinaction.org/) 24 / 24

slide-112
SLIDE 112

Natural Deduction for Predicate Logic

For the identity symbol =

t1 = t2 , ϕ ϕ[t1/t2] t1 = t2 , ϕ ϕ[t2/t1]

where ϕ[t1/t2] is the result of replac- ing, in ϕ, some ocurrences of t2 by t1, provided that t2 contains only variables that

  • ccurr freely in ϕ, and

t1 contains only variables that do not get bounded after replacement.

E=

(http://www.logicinaction.org/) 24 / 24

slide-113
SLIDE 113

Natural Deduction for Predicate Logic

For the identity symbol =

t1 = t2 , ϕ ϕ[t1/t2] t1 = t2 , ϕ ϕ[t2/t1] t = t

where ϕ[t1/t2] is the result of replac- ing, in ϕ, some ocurrences of t2 by t1, provided that t2 contains only variables that

  • ccurr freely in ϕ, and

t1 contains only variables that do not get bounded after replacement.

for any term t.

E=

(http://www.logicinaction.org/) 24 / 24

slide-114
SLIDE 114

Natural Deduction for Predicate Logic

For the identity symbol =

t1 = t2 , ϕ ϕ[t1/t2] t1 = t2 , ϕ ϕ[t2/t1] t = t

where ϕ[t1/t2] is the result of replac- ing, in ϕ, some ocurrences of t2 by t1, provided that t2 contains only variables that

  • ccurr freely in ϕ, and

t1 contains only variables that do not get bounded after replacement.

for any term t.

E= I=

(http://www.logicinaction.org/) 24 / 24