Lecture 17:Inference Michael Fourman - - PowerPoint PPT Presentation

lecture 17 inference
SMART_READER_LITE
LIVE PREVIEW

Lecture 17:Inference Michael Fourman - - PowerPoint PPT Presentation

Lecture 17:Inference Michael Fourman https://www.youtube.com/watch?v=Lvcnx6-0GhA An argument is a connected series of statements to establish a proposition. 2 Is this a valid argument? Assumptions: If the races are fixed or the


slide-1
SLIDE 1

Lecture 17:Inference

Michael Fourman

slide-2
SLIDE 2

2

An argument is

a connected series of statements 
 to establish a proposition.

https://www.youtube.com/watch?v=Lvcnx6-0GhA

slide-3
SLIDE 3

Is this a valid argument?

  • Assumptions:

If the races are fixed or the gambling houses are crooked, then the tourist trade will decline. If the tourist trade declines then the police force will be happy. The police force is never happy.

  • Conclusion:

The races are not fixed

2

3

The argument is valid iff
 if the assumptions are all true
 then the conclusion is true

slide-4
SLIDE 4

4

RF the Races are Fixed GC the Gambling houses are Crooked TT the Tourist Trade will decline PH the Police force will be Happy Assumptions:                   

  • If the races are fixed or the gambling houses

are crooked then the tourist trade will decline. (RF ∨ GC) → TT

  • If the tourist trade declines then the police

force will be happy. TT → PH

  • The police force is never happy. ¬PH

Conclusion:

  • The races are not fixed. ¬RF

The argument is valid iff the following entailment is valid: (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

slide-5
SLIDE 5

5

We could check the validity of the entailment by checking all sixteen assignments of truth values to the four basic propositions. Can we do do less work? Consider our example Remember that an entailment is valid 
 unless there is a counterexample. A counterexample is an assignment of truth values that makes everything on the left true, 
 and everything on the right false.

(RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

slide-6
SLIDE 6

6

A counterexample is an assignment of truth values that makes everything on the left true, 
 and everything on the right false.

The basic idea:

for each entailment Γ ⊨ Δ show that if there is a counterexample to this entailment then there is a counterexample to some simpler entailment.

Consider: (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF (1) (RF ∨ GC) → TT, TT → PH, RF | = PH (2) Any counterexample to (1) is a counterexample to (2) (and vice versa).

slide-7
SLIDE 7

7

Consider: (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF (1) (RF ∨ GC) → TT, TT → PH, RF | = PH (2) Any counterexample to (1) is a counterexample to (2) (and vice versa).

(2) is simpler - there are fewer logical operators If (2) is valid, there is no counterexample, so (1) is also valid We write this as a rule

(RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

slide-8
SLIDE 8

8

(RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

There is a counterexample to the conclusion, 
 iff there is a counterexample to the assumption. Therefore ∴ If the assumption of the rule (above the line) is valid, then the conclusion (below the line) is valid.

slide-9
SLIDE 9

9

Now consider (RF ∨ GC) → TT, TT → PH, RF | = PH (2) Any counterexample will make TT → PH true so it will either make TT false, in which case it is a counterexample to (RF ∨ GC) → TT, RF | = PH, TT (3)

  • r make PH true, in which case it is a counterexample to

(RF ∨ GC) → TT, PH, RF | = PH (4) (or both).

There is a counter-example to (2) iff there is a counter- example to (at least) one of (3), (4).

slide-10
SLIDE 10

10

Now consider (RF ∨ GC) → TT, TT → PH, RF | = PH (2) Any counterexample will make TT → PH true so it will either make TT false, in which case it is a counterexample to (RF ∨ GC) → TT, RF | = PH, TT (3)

  • r make PH true, in which case it is a counterexample to

(RF ∨ GC) → TT, PH, RF | = PH (4) This gives a rule: (RF ∨ GC) → TT, RF | = PH, TT (RF ∨ GC) → TT, PH, RF | = PH (RF ∨ GC) → TT, TT → PH, RF | = PH

There is a counter-example to the conclusion iff there is a counter-example to (at least) one of the assumptions.

slide-11
SLIDE 11

11

(RF ∨ GC) → TT, RF | = PH, TT (RF ∨ GC) → TT, PH, RF | = PH (RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

Putting these two rules together we start to build a proof tree If we have a counterexample to the conclusion then we have a counterexample to at least one of the assumptions

slide-12
SLIDE 12

12

Now consider (RF ∨ GC) → TT, PH, RF | = PH (4) Any counterexample would make PH true and make PH false, but this is impossible, so there are no counterexamples. We draw a line over (4) to make a rule with no assumptions. (RF ∨ GC) → TT, PH, RF | = PH We still have the key property:

  • there is a counterexample to the conclusion iff there is a

counterexample to (at least) one of the assumptions

slide-13
SLIDE 13

13

Only one assumption remains If we have a counterexample to the conclusion then we have a counterexample to at least one of the assumptions. Our next step should be familiar.

(RF ∨ GC) → TT, RF | = PH, TT (RF ∨ GC) → TT, PH, RF | = PH (RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

slide-14
SLIDE 14

14

We follow a pattern used earlier

RF | = PH, TT, RF ∨ GC TT, RF | = PH, TT (RF ∨ GC) → TT, RF | = PH, TT (RF ∨ GC) → TT, PH, RF | = PH (RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) ✓

with Γ = RF, A = RF ∨ GC, B = TT, ∆ = PH, TT

slide-15
SLIDE 15

15

Another pattern we used earlier

RF | = PH, TT, RF ∨ GC TT, RF | = PH, TT (RF ∨ GC) → TT, RF | = PH, TT (RF ∨ GC) → TT, PH, RF | = PH (RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

Γ, A ` ∆, A (I) (with A = TT, Γ = RF, ∆ = PH)

slide-16
SLIDE 16

16

Now consider RF | = PH, TT, RF ∨ GC Any counterexample will make both RF and GC false, so it is a counterexample to RF | = PH, TT, RF, GC This gives a rule RF | = PH, TT, RF, GC RF | = PH, TT, RF ∨ GC

A valuation is a counter-example to the conclusion iff it is a counter-example to the assumption.

slide-17
SLIDE 17

17

The pattern for this rule is

RF | = PH, TT, RF, GC RF | = PH, TT, RF ∨ GC TT, RF | = PH, TT (RF ∨ GC) → TT, RF | = PH, TT (RF ∨ GC) → TT, PH, RF | = PH (RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

Γ ` A, B, ∆ Γ ` A _ B, ∆ (_R)

Our proof is almost done

slide-18
SLIDE 18

18

Immediate!

RF | = PH, TT, RF, GC RF | = PH, TT, RF ∨ GC TT, RF | = PH, TT (RF ∨ GC) → TT, RF | = PH, TT (RF ∨ GC) → TT, PH, RF | = PH (RF ∨ GC) → TT, TT → PH, RF | = PH (RF ∨ GC) → TT, TT → PH, ¬PH | = ¬RF

Γ, A ` ∆, A (I)

slide-19
SLIDE 19

Gentzen’s Rules (I)

19

Γ, A ` ∆, A (I) Γ, A, B ` ∆ Γ, A ^ B ` ∆ (^L) Γ ` A, B, ∆ Γ ` A _ B, ∆ (_R) Γ, A ` ∆ Γ, B ` ∆ Γ, A _ B ` ∆ (_L) Γ ` A, ∆ Γ ` B, ∆ Γ ` A ^ B, ∆ (^R) a sequent, Γ ⊢ Δ 


where Γ and Δ are finite sets of expressions

is valid iff 
 whenever every expression in Γ is true some expression in Δ is true

Gerhard Karl Erich Gentzen (November 24, 1909 – August 4, 1945)

1924 1945

slide-20
SLIDE 20

Gentzen’s Rules (I)

20

Γ, A ` ∆, A (I) Γ, A, B ` ∆ Γ, A ^ B ` ∆ (^L) Γ ` A, B, ∆ Γ ` A _ B, ∆ (_R) Γ, A ` ∆ Γ, B ` ∆ Γ, A _ B ` ∆ (_L) Γ ` A, ∆ Γ ` B, ∆ Γ ` A ^ B, ∆ (^R) a counterexample to the sequent Γ ⊢ Δ, 
 is a valuation that makes every expression in Γ true

and

every expression in Δ false

(a sequent is valid iff it has no counterexample)

slide-21
SLIDE 21

21

A, B ` A, B (I) A ^ B ` A, B (^L) A ^ B ` A _ B (_R)

slide-22
SLIDE 22

22

A rule

Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R)

A valuation is a counterexample to the top line iff it is a counterexample to the bottom line

slide-23
SLIDE 23

23

Another rule

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L)

A valuation is a counterexample to the bottom line iff it is a counterexample to at least one of the entailments on the top line

slide-24
SLIDE 24

24

a valuation is a counterexample to the conclusion it is a counterexample to at least one assumption

iff

Γ, A ` ∆, A (I) Γ, A, B ` ∆ Γ, A ^ B ` ∆ (^L) Γ ` A, B, ∆ Γ ` A _ B, ∆ (_R) Γ, A ` ∆ Γ, B ` ∆ Γ, A _ B ` ∆ (_L) Γ ` A, ∆ Γ ` B, ∆ Γ ` A ^ B, ∆ (^R) Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ ` A, ∆ Γ, ¬A ` ∆ (¬L) Γ, A ` ∆ Γ ` ¬A, ∆ (¬R)

slide-25
SLIDE 25

25

a valuation is a counterexample to the conclusion it is a counterexample to at least one assumption

iff

Γ, A ` ∆, A (I) Γ, A, B ` ∆ Γ, A ^ B ` ∆ (^L) Γ ` A, B, ∆ Γ ` A _ B, ∆ (_R) Γ, A ` ∆ Γ, B ` ∆ Γ, A _ B ` ∆ (_L) Γ ` A, ∆ Γ ` B, ∆ Γ ` A ^ B, ∆ (^R) Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ ` A, ∆ Γ, ¬A ` ∆ (¬L) Γ, A ` ∆ Γ ` ¬A, ∆ (¬R)

slide-26
SLIDE 26

26

?? A ! (B ! C) ` B ! (A ! C)

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ, A ` ∆, A (I)

slide-27
SLIDE 27

27

?? A ! (B ! C) ` B ! (A ! C)

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ, A ` ∆, A (I)

this goal Γ, A → B ⊢ Δ matches the conclusion of (→ L) where Γ is empty Δ is B→(A→C) A is A B is B→C

slide-28
SLIDE 28

28

?? A ! (B ! C) ` B ! (A ! C)

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ, A ` ∆, A (I)

this goal : matches which is the conclusion of (→ R) where Γ is Α→(B→C) Δ is empty A is B B is Α→C Γ ⊢ Α → B , Δ

slide-29
SLIDE 29

29

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ, A ` ∆, A (I)

?? A ! (B ! C), B ` A ! C A ! (B ! C) ` B ! (A ! C) (! R) this goal matches the conclusion of (→ R) where Γ is Α→(B→C) Δ is empty A is B B is Α→C Γ , Α ⊢ B , Δ

slide-30
SLIDE 30

30

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ, A ` ∆, A (I)

?? A ! (B ! C), B, A ` C A ! (B ! C), B ` A ! C (! R) A ! (B ! C) ` B ! (A ! C) (! R)

slide-31
SLIDE 31

31

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ, A ` ∆, A (I)

B, A ` A, C (I) ?? B ! C, B, A ` C A ! (B ! C), B, A ` C (! L) A ! (B ! C), B ` A ! C (! R) A ! (B ! C) ` B ! (A ! C) (! R)

slide-32
SLIDE 32

32

Γ ` A, ∆ Γ, B ` ∆ Γ, A ! B ` ∆ (! L) Γ, A ` B, ∆ Γ ` A ! B, ∆ (! R) Γ, A ` ∆, A (I)

B, A ` A, C (I) B, A ` B, C (I) C, B, A ` C (I) B ! C, B, A ` C (! L) A ! (B ! C), B, A ` C (! L) A ! (B ! C), B ` A ! C (! R) A ! (B ! C) ` B ! (A ! C) (! R)