proof tactics, strategies and derived rules cs 270 math foundations of cs jeremy johnson

38
Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Upload: barnaby-gregory

Post on 08-Jan-2018

220 views

Category:

Documents


2 download

DESCRIPTION

Conjunction Rules Introduction Rule Elimination Rule    I     ER      EL 

TRANSCRIPT

Page 1: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Proof Tactics, Strategies and Derived Rules

CS 270 Math Foundations of CSJeremy Johnson

Page 2: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Outline

1. Review Rules2. Positive subformulas and extraction3. Proof tactics• Extraction, Conversion, Inversion, Division,

and Refutation• Finding contradictions

4. Proof strategy• Search tree and an algorithm to find a proof

5. Derived rules

Page 3: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Conjunction Rules

• Introduction Rule

• Elimination Rule

I

ER

EL

Page 4: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Implication Rules

• Introduction Rule

Assume and show

• Elimination Rule (Modus Ponens) E

… I

Page 5: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Disjunction Rules

• Introduction Rule

• Elimination Rule (proof by case analysis)

IR

E

IL

Page 6: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Negation Rules

• Introduce the symbol ( to encode a contradiction

• Bottom elimination can prove anything

• Bottom introduction

I

Page 7: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Negation Rules

• Introduction and elimination rules

• Double negation E

… I

… E

Page 8: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Law of the Excluded Middle

• [derived rule LEM]

1 p p

Page 9: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Law of the Excluded Middle

• [derived rule LEM]

1 (p p) assumption

2

3 p p

Page 10: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Law of the Excluded Middle

• [derived rule LEM]

1 (p p) assumption

2 p p

3

4 p p

Page 11: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Law of the Excluded Middle

• [derived rule LEM]

1 (p p) assumption

2 p Goal

3 p p

4

5 p p

Page 12: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Law of the Excluded Middle

• [derived rule LEM]

1 (p p) assumption

2 assumption

3 Goal4 p

5 p p

6

7 p p

Page 13: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Law of the Excluded Middle

• [derived rule LEM]

1 (p p) assumption

2 assumption

3 (p p)

4 3,15 p 4

6 p p

7 6,1

8 p p 7

Page 14: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Search Tree

? P P? P P

IR IL E

? P ? P (P P) ?

Page 15: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Search Tree

? P P? P P

IR IL E

? P ? P (P P) ?

E

P ?

Page 16: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Search Tree

IL

? P

E

P ?

P ?

The only possible contradictory pair is P and Pand P ? can only be addressed by E and we are back where we started.

backtrack

Page 17: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Search Tree

? P P? P P

IR IL E

? P ? P (P P) ?

Page 18: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Proof Tactics

• Systematically search for a proof• Apply (,,) elimination rules forward• Apply introduction rules backwards• No extraneous steps• Backtrack when dead-end reached

1. Extraction2. Conversion3. Inversion4. Division5. Refutation

Page 19: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Positive Subformulas

• PS()• If is an atom return • If = return • If = then return PS() PS() • If = then return PS() PS() • If = then return PS()

Page 20: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Extraction

• Apply elimination rules forward in order to extract goals that occur as positive subformulae of the formulae on available lines.

Page 21: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Conversion

• Use disjunction elimination in order to obtain goal disjunctions.

Page 22: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Inversion

• Invert non-atomic goals by applying introduction rules backward to them.

Page 23: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Division

• Use disjunction elimination on any goals for which the previous three tactics have either not applied, or not been successful.

Page 24: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Refutation

• Apply negation elimination backward to goals that cannot be obtained by any other means.

Page 25: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Possible Contradictions

• Form a list of all negations that appear as a positive subformulas of all premises and available assumptions.

• Pair each negation with its immediate subformula .

• These pairs are the only possible contradictions that must be considered.

Page 26: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Exercise

• Prove the definition of conditional• ( ) • ( )

Page 27: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Deadend

Page 28: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Solution

Page 29: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Solution

Page 30: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Algorithm

Page 31: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Using Derived Rules

• Once you have proven a rule from the basic rules you may use it in your proofs• Derive M from (M O) M

1 (M O) M premise

2 M assumption

3 M O

4 M O Df I

5 M E1,46 I2,5

7 M 6

Page 32: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Derived Rules

• Commutative rules• •

• Associative rules• ( ) ( ) • ( ) ( )

• Idempotence rules• and • and

Page 33: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Derived Rules

• Distributive rules• ( ) ( ) ( )• ( ) ( ) ( ) • ( ) ( ) ( )• ( ) ( ) ( )

• Disjunctive syllogism• ( ),

• Cut (resolution)• ( ), ( ) ( )

Page 34: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Derived Rules

• DeMorgan’s rules• ( ) • ( ) • ( ) • ( )

Page 35: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Derived Rules

• Modus Tollens• ( , )

• Transposition• ( ) ( )

• Hypothetical Syllogism• ( , ) ( )

• Exportation and Importation• (( ) ) ( ( )) • ( ( )) (( ) )

Page 36: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Derived Rules

• Definition of conditional• ( ) • ( )

• Negated conditional• ( ) • ( )

Page 37: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Exercise

• Prove the definition of the conditional using Disjunctive Syllogism and LEM

Page 38: Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Solution1 P Q premise

2 P assumption

3 Q DSL 1,2

4 P Q I3

1 P Q premise

2 P P LEM

3 P assumption

4 Q E1,3

5 P Q IL4

6 P assumption

7 P Q IR6

8 P Q E2,5,7