25
1 Propositional Equivalences From Aaron Bloomfield.. Used by Dr. Kotamarti

Propositional Equivalences

  • Upload
    adelio

  • View
    48

  • Download
    1

Embed Size (px)

DESCRIPTION

Propositional Equivalences. From Aaron Bloomfield.. Used by Dr. Kotamarti. Tautology and Contradiction. A tautology is a statement that is always true p  ¬p will always be true(Negation Law) A contradiction is a statement that is always false p  ¬p will always be false(Negation Law). - PowerPoint PPT Presentation

Citation preview

Page 1: Propositional Equivalences

1

Propositional Equivalences

From Aaron Bloomfield..Used by Dr. Kotamarti

Page 2: Propositional Equivalences

2

Tautology and Contradiction

A tautology is a statement that is always true p ¬p will always be true (Negation Law)

A contradiction is a statement that is always false p ¬p will always be false (Negation Law)

p p ¬p p ¬pT T FF T F

Page 3: Propositional Equivalences

3

Logical Equivalence

A logical equivalence means that the two sides always have the same truth values Symbol is ≡or (we’ll use ≡)

Page 4: Propositional Equivalences

4

p T ≡ p Identity law

p F ≡ F Domination law

Logical Equivalences of And

p T pTT T TF T F

p F pFT F FF F F

Page 5: Propositional Equivalences

5

p p ≡ p Idempotent law

p q ≡ q p Commutative law

Logical Equivalences of And

p p ppT T TF F F

p q pq qpT T T TT F F FF T F FF F F F

Page 6: Propositional Equivalences

6

(p q) r ≡ p (q r) Associative law

Logical Equivalences of And

p q r pq (pq)r qr p(qr)T T T T T T TT T F T F F FT F T F F F FT F F F F F FF T T F F T FF T F F F F FF F T F F F FF F F F F F F

Page 7: Propositional Equivalences

7

p T ≡ T Identity lawp F ≡ p Domination lawp p ≡ p Idempotent lawp q ≡ q p Commutative law(p q) r ≡ p (q r) Associative law

Logical Equivalences of Or

Page 8: Propositional Equivalences

8

Corollary of the Associative Law

(p q) r ≡ p q r(p q) r ≡ p q rSimilar to (3+4)+5 = 3+4+5Only works if ALL the operators are the same!

Page 9: Propositional Equivalences

9

¬(¬p) ≡ p Double negation lawp ¬p ≡ T Negation lawp ¬p ≡ F Negation law

Logical Equivalences of Not

Page 10: Propositional Equivalences

10

Sidewalk chalk guy

Source: http://www.gprime.net/images/sidewalkchalkguy/

Page 11: Propositional Equivalences

11

DeMorgan’s Law

Probably the most important logical equivalenceTo negate pq (or pq), you “flip” the sign, and negate BOTH p and q

Thus, ¬(p q) ≡ ¬p ¬q Thus, ¬(p q) ≡ ¬p ¬q

p q p q pq (pq) pq pq (pq) pqT T F F T F F T F FT F F T F T T T F FF T T F F T T T F FF F T T F T T F T T

Page 12: Propositional Equivalences

12

Yet more equivalences

Distributive:p (q r) ≡ (p q) (p r)p (q r) ≡ (p q) (p r)

Absorptionp (p q) ≡ pp (p q) ≡ p

Page 13: Propositional Equivalences

13

How to prove two propositions are equivalent?

Two methods: Using truth tables

Not good for long formulaIn this course, only allowed if specifically stated!

Using the logical equivalencesThe preferred method

Example: Rosen question 23, page 35 Show that: rqprqrp )()()(

Page 14: Propositional Equivalences

14

Using Truth Tables

p q r p→r q →r (p→r)(q →r) pq (pq) →r

T T T T T T T TT T F F F F T F

T F T T T T F T

T F F F T T F T

F T T T T T F T

F T F T F T F T

F F T T T T F T

F F F T T T F T

rqprqrp )()()(

(pq) →rpq(p→r)(q →r)q →rp→rrqp

Page 15: Propositional Equivalences

15

Idempotent Law

Associativity of Or

rqprqrp )()()( Definition of implication

Using Logical Equivalences

rqprqrp )()()(

rqprqp rqprrqp

rqprqrp )()()(

rqprqrp

Re-arranging

Original statement

DeMorgan’s Law

qpqp

qpqp )(

rqrprqrp )()(

rrr

Page 16: Propositional Equivalences

16

Quick survey I understood the logical

equivalences on the last slidea) Very wellb) Okayc) Not reallyd) Not at all

Page 17: Propositional Equivalences

18

Logical ThinkingAt a trial:

Bill says: “Sue is guilty and Fred is innocent.” Sue says: “If Bill is guilty, then so is Fred.” Fred says: “I am innocent, but at least one of the

others is guilty.”Let b = Bill is innocent, f = Fred is innocent, and s = Sue is innocentStatements are:

¬s f ¬b → ¬f f (¬b ¬s)

Page 18: Propositional Equivalences

19

Can all of their statements be true?Show: (¬s f) (¬b → ¬f) (f (¬b ¬s))

b f s ¬b ¬f ¬s ¬sf ¬b→¬f ¬b¬s f(¬b¬s)

T T T F F F F T F FT T F F F T T T T T

T F T F T F F T F F

T F F F T T F T T F

F T T T F F F F T T

F T F T F T T F T T

F F T T T F F T T F

F F F T T T F T T F

¬b ¬f ¬s ¬b→¬f f(¬b¬s)¬b¬s¬sfsfb

Page 19: Propositional Equivalences

20

Are all of their statements true?Show values for s, b, and f such

that the equation is trueOriginal statementDefinition of implicationAssociativity of ANDRe-arrangingIdempotent lawRe-arrangingAbsorption lawRe-arrangingDistributive lawNegation lawDomination lawAssociativity of ANDTsbf

Tsbffbfs ))(()()(Tsbffbfs ))(()()(Tsbffbfs )()(Tsbfbffs )()(Tsbfbfs )()(Tbssfbf )()(Tsfbf )(

Tsfbf )( Tsffbf )()(

TsFbf )(Tsbf )(

Page 20: Propositional Equivalences

21

What if it weren’t possible to assign such values to s, b, and f?

Original statementDefinition of implication... (same as previous slide)Domination lawRe-arrangingNegation lawDomination lawDomination lawContradiction!

Tssbf

Tssbffbfs ))(()()(Tssbffbfs ))(()()(

Tssbf )(

TFbf TFf TF

Page 21: Propositional Equivalences

22

Quick survey I feel I can prove a logical

equivalence myselfa) Absolutelyb) With a bit more practicec) Not reallyd) Not at all

Page 22: Propositional Equivalences

23

Logic PuzzlesRosen, page 23, questions 19-23Knights always tell the truth, knaves always lieA says “At least one of us is a knave” and B says nothingA says “The two of us are both knights” and B says “A is a knave”A says “I am a knave or B is a knight” and B says nothingBoth A and B say “I am a knight”A says “We are both knaves” and B says nothing

Page 23: Propositional Equivalences

24

Sand Castles

Page 24: Propositional Equivalences

25

Quick survey I felt I understood the material in this

slide set…a) Very wellb) With some review, I’ll be goodc) Not reallyd) Not at all

Page 25: Propositional Equivalences

26

Quick survey The pace of the lecture for this

slide set was…a) Fastb) About rightc) A little slowd) Too slow