Top Banner
1 Section 1.2 Propositional Equivalences
26

1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

Dec 20, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

1

Section 1.2

Propositional Equivalences

Page 2: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

2

Equivalent Propositions

• Have the same truth table

• Can be used interchangeably

• For example, exclusive or and the negation of biconditional are equivalent propositions:p q p q p q (p q)

T T F T FT F T F TF T T F TF F F T F

Page 3: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

3

Equivalent propositions

• Logical equivalence is denoted with the symbol

• If p q is true, then p q

Page 4: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

4

Tautology

• A compound proposition that is always true, regardless of the truth values that appear in it

• For example, p p is a tautology:

p p p p

T F TF T T

Page 5: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

5

Contradiction

• A compound proposition that is always false

• For example, p p is a contradiction:

p p p p

T F FF T F

Page 6: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

6

Tautology vs. Contradiction

• The negation of a tautology is a contradiction, and the negation of a contradiction is a tautology

• Contingency: a compound proposition that is neither a tautology nor a contradiction

Page 7: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

7

Determining Logical Equivalence

• Method 1: use truth table

• Method 2: use proof by substitution - requires knowledge of logical equivalencies of portions of compound propositions

Page 8: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

8

Method 1 example

Show that p q p q

p q p p q q p q

T T F F F FT F F T T TF T T T F TF F T F T F

Page 9: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

9

Method 1 example

Show that (p q) p q

p q p q (p q) p q p q

T T T F F F FT F F T F T TF T F T T F TF F F T T T T

Page 10: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

10

Method 1 exampleShow that p (q r) (p q) (p r)

p q r qr p(qr) pq pr (pq)(pr)

T T T T T T T TT T F T T T F TT F T T T F T TT F F F F F F FF T T T F F F FF T F T F F F FF F T T F F F FF F F F F F F F

Page 11: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

11

The limits of truth tables

• The previous slide illustrates how truth tables become cumbersome when several propositions are involved

• For a compound proposition containing N propositions, the truth table would require 2N rows

Page 12: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

12

Method 2: using equivalences

• There are many proven equivalences that can be used to prove further equivalences

• Some of the most important and useful of these are found in Tables 5, 6 and 7 on page 24 of your text, as well as on the next several slides

Page 13: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

13

Identity Laws

p T pp F p

In other words, if p is ANDed with another propositionknown to be true, or ORed with another proposition knownto be false, the truth value of the compound propositionwill be the truth value of p

Page 14: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

14

Domination Laws

p T Tp F F

A compound proposition will always be true if it is composed of any proposition p ORed with any proposition known to be true.

Conversely, a compound proposition will always be false if itis composed of any proposition p ANDed with a proposition known to be false

Page 15: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

15

Idempotent Laws

p p pp p p

A compound proposition composed of any proposition pcombined with itself via conjunction or disjunction willhave the truth value of p

Page 16: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

16

Double negation

(p) p

The negation of a negation is … well, not anegation

Page 17: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

17

Commutative Laws

p q q pp q q p

Ordering doesn’t matter in conjunction and disjunction(just like addition and multiplication)

Page 18: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

18

Associative Laws

(p q) r p (q r)(p q) r p (q r)

Grouping doesn’t affect outcome when the sameoperation is involved - this is true for compoundpropositions composed of 3, 4, 1000 or N propositions

Page 19: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

19

Distributive Lawsp (q r) (p q) (p r)p (q r) (p q) (p r)

OR distributes across AND; AND distributesacross OR

Page 20: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

20

DeMorgan’s Laws

(p q) p q(p q) p q

The NOT of p AND q is NOT p OR NOT q;the NOT of p OR q is NOT p AND NOT q

Like Association, DeMorgan’s Laws apply to N propositions in a compound proposition

Page 21: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

21

Two Laws with No Name

p p Tp p F

A proposition ORed with its negation is always true;a proposition ANDed with its negation is always false

Page 22: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

22

A Very Useful (but nameless) Law

(p q) (p q)

The implication “if p, then q” is logicallyequivalent to NOT p ORed with q

Page 23: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

23

Method 2: Proof by Substitution

• Uses known laws of equivalences to prove new equivalences

• A compound proposition is gradually transformed, through substitution of known equivalences, into a proveable form

Page 24: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

24

Example 1: Show that(p q) p is a tautology

1. Since (p q) (p q), change compound proposition to: (p q) p

2. Applying DeMorgan’s first law, which states: (p q) p q, change compound proposition to: p q p

3. Applying commutative law: p p q

4. Since p p T, we have T q

5. And finally, by Domination, any proposition ORed with true must be true - so the compound proposition is a tautology

Page 25: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

25

Example 2: Show thatp q and p q are logically equivalent

1. Start with definition of biconditional:p q p q q p; then the 2 expressions become:(p q) (q p) and (p q) (q p)

2. Since p q p q, change expressions to:((p) q) (q p) and (p q) ((q) p);same as: (p q) (q p) and (p q) (q p)

3. Reordering terms, by commutation, we get:(p q) (p q) and (p q) (p q)

Since the two expressions are now identical, they are clearly equivalent.

Page 26: 1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.

26

Section 1.2

Propositional Equivalences

- ends -