Discrete Mathematics with Applications Chapter 2: The Logic of - - PowerPoint PPT Presentation

discrete mathematics with applications
SMART_READER_LITE
LIVE PREVIEW

Discrete Mathematics with Applications Chapter 2: The Logic of - - PowerPoint PPT Presentation

Logical Equivalence Conditional Statements Conditional Equivalences Discrete Mathematics with Applications Chapter 2: The Logic of Compound Statements (Part 2) January 25, 2019 Chapter 2: The Logic of Compound Statements (Part 2) Discrete


slide-1
SLIDE 1

Logical Equivalence Conditional Statements Conditional Equivalences

Discrete Mathematics with Applications

Chapter 2: The Logic of Compound Statements (Part 2) January 25, 2019

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-2
SLIDE 2

Logical Equivalence Conditional Statements Conditional Equivalences

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-3
SLIDE 3

Logical Equivalence Conditional Statements Conditional Equivalences

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-4
SLIDE 4

Logical Equivalence Conditional Statements Conditional Equivalences

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q. To test whether P and Q are logically equivalent:

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-5
SLIDE 5

Logical Equivalence Conditional Statements Conditional Equivalences

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q. To test whether P and Q are logically equivalent:

1 Construct a truth table with one column for P and another

column for Q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-6
SLIDE 6

Logical Equivalence Conditional Statements Conditional Equivalences

Two statement forms are called logically equivalent if, and

  • nly if, they have identical truth values for each possible

assignment of truth values to their statement variables. Notation: If P and Q are logically equivalent, we write P ≡ Q. To test whether P and Q are logically equivalent:

1 Construct a truth table with one column for P and another

column for Q.

2 Check for whether these two columns are identical.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-7
SLIDE 7

Logical Equivalence Conditional Statements Conditional Equivalences

Example: double negation property: ∼(∼p) ≡ p p ∼p ∼(∼p) T F T F T F

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-8
SLIDE 8

Logical Equivalence Conditional Statements Conditional Equivalences

Example: De Morgan’s Laws p q ∼p ∼q p ∧ q ∼(p ∧ q) ∼p ∨ ∼q T T F F T F F T F F T F T T F T T F F T T F F T T F T T

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-9
SLIDE 9

Logical Equivalence Conditional Statements Conditional Equivalences

Example: De Morgan’s Laws p q ∼p ∼q p ∧ q ∼(p ∧ q) ∼p ∨ ∼q T T F F T F F T F F T F T T F T T F F T T F F T T F T T So ∼(p ∧ q) ≡ ∼p ∨ ∼q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-10
SLIDE 10

Logical Equivalence Conditional Statements Conditional Equivalences

Example: De Morgan’s Laws p q ∼p ∼q p ∧ q ∼(p ∧ q) ∼p ∨ ∼q T T F F T F F T F F T F T T F T T F F T T F F T T F T T So ∼(p ∧ q) ≡ ∼p ∨ ∼q. Exercise: use truth tables to show that ∼(p ∨ q) ≡ ∼p ∧ ∼q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-11
SLIDE 11

Logical Equivalence Conditional Statements Conditional Equivalences

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-12
SLIDE 12

Logical Equivalence Conditional Statements Conditional Equivalences

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated. This should intuitively should make sense. In order for p ∧ q to be false, we would need p to be false or q to be false.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-13
SLIDE 13

Logical Equivalence Conditional Statements Conditional Equivalences

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated. This should intuitively should make sense. In order for p ∧ q to be false, we would need p to be false or q to be false. The negation of an “or” statement is logically equivalent to the “and” statement in which each component is negated.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-14
SLIDE 14

Logical Equivalence Conditional Statements Conditional Equivalences

De Morgan’s Laws demystified

Simply stated, the negation of an “and” statement is logically equivalent to the “or” statement in which each component is negated. This should intuitively should make sense. In order for p ∧ q to be false, we would need p to be false or q to be false. The negation of an “or” statement is logically equivalent to the “and” statement in which each component is negated. Again, this should intuitively make sense. In order for p ∨ q to be false, both p and q need to be false.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-15
SLIDE 15

Logical Equivalence Conditional Statements Conditional Equivalences

Write negations of each of the following statements in simple English.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-16
SLIDE 16

Logical Equivalence Conditional Statements Conditional Equivalences

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-17
SLIDE 17

Logical Equivalence Conditional Statements Conditional Equivalences

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-18
SLIDE 18

Logical Equivalence Conditional Statements Conditional Equivalences

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-19
SLIDE 19

Logical Equivalence Conditional Statements Conditional Equivalences

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

1 John is not 6 feet tall or he weighs less than 200 pounds.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-20
SLIDE 20

Logical Equivalence Conditional Statements Conditional Equivalences

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

1 John is not 6 feet tall or he weighs less than 200 pounds. 2 The bus was not late and Tom’s watch was not slow.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-21
SLIDE 21

Logical Equivalence Conditional Statements Conditional Equivalences

Write negations of each of the following statements in simple English.

1 John is 6 feet tall and he weighs at least 200 pounds. 2 The bus was late or Tom’s watch was slow.

Answers:

1 John is not 6 feet tall or he weighs less than 200 pounds. 2 The bus was not late and Tom’s watch was not slow.

WARNING: “The bus was early and Tom’s watch was fast” is an incorrect negation! Be careful with what the opposite of common English words are.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-22
SLIDE 22

Logical Equivalence Conditional Statements Conditional Equivalences

Common Logical Equivalences

Exercise: Verify these using truth tables.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-23
SLIDE 23

Logical Equivalence Conditional Statements Conditional Equivalences

Appealing to the aforementioned common logical equivalences is helpful for verifying other, less obvious equivalences.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-24
SLIDE 24

Logical Equivalence Conditional Statements Conditional Equivalences

Appealing to the aforementioned common logical equivalences is helpful for verifying other, less obvious equivalences. e.g. Verify that ∼(∼p ∧ q) ∧ (p ∨ q) ≡ p.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-25
SLIDE 25

Logical Equivalence Conditional Statements Conditional Equivalences

Appealing to the aforementioned common logical equivalences is helpful for verifying other, less obvious equivalences. e.g. Verify that ∼(∼p ∧ q) ∧ (p ∨ q) ≡ p.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-26
SLIDE 26

Logical Equivalence Conditional Statements Conditional Equivalences

Appealing to the aforementioned common logical equivalences is helpful for verifying other, less obvious equivalences. e.g. Verify that ∼(∼p ∧ q) ∧ (p ∨ q) ≡ p. ∼(∼p ∧ q) ∧ (p ∨ q) ≡ (∼(∼p) ∨ ∼q) ∧ (p ∨ q) (De Morgan) ≡ (p ∨ ∼q) ∧ (p ∨ q) (Double Negative) ≡ p ∨ (∼q ∧ q) (Distributive Property) ≡ p ∨ c (Negation Law) ≡ p (Universal Bound Law)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-27
SLIDE 27

Logical Equivalence Conditional Statements Conditional Equivalences

If p and q are statement variables, the conditional of q by p is the statement “if p then q” or “p implies q.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-28
SLIDE 28

Logical Equivalence Conditional Statements Conditional Equivalences

If p and q are statement variables, the conditional of q by p is the statement “if p then q” or “p implies q.” Notation: p → q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-29
SLIDE 29

Logical Equivalence Conditional Statements Conditional Equivalences

If p and q are statement variables, the conditional of q by p is the statement “if p then q” or “p implies q.” Notation: p → q. p is called the hypothesis or antecedent.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-30
SLIDE 30

Logical Equivalence Conditional Statements Conditional Equivalences

If p and q are statement variables, the conditional of q by p is the statement “if p then q” or “p implies q.” Notation: p → q. p is called the hypothesis or antecedent. q is called the conclusion or consequent.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-31
SLIDE 31

Logical Equivalence Conditional Statements Conditional Equivalences

Example

p: “I am rich.” q: “I would buy a car.” p → q: “If I were rich, then I would buy a car.” (or “I would buy a car if I were rich.”)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-32
SLIDE 32

Logical Equivalence Conditional Statements Conditional Equivalences

The truth table for → p q p → q T T T T F F F T T F F T

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-33
SLIDE 33

Logical Equivalence Conditional Statements Conditional Equivalences

The truth table for → p q p → q T T T T F F F T T F F T p → q is false only when p is true and q is false; otherwise it is true.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-34
SLIDE 34

Logical Equivalence Conditional Statements Conditional Equivalences

The truth table for → p q p → q T T T T F F F T T F F T p → q is false only when p is true and q is false; otherwise it is true. This should intuitively make sense. The only way that the statement “if p happens, then q also happens” could be false is if p happened, but q didn’t.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-35
SLIDE 35

Logical Equivalence Conditional Statements Conditional Equivalences

A conditional statement that is true because its hypothesis is false is called vacuously true or true by default.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-36
SLIDE 36

Logical Equivalence Conditional Statements Conditional Equivalences

A conditional statement that is true because its hypothesis is false is called vacuously true or true by default. Consider for instance the statement “If you show up for work Monday morning, then you will get the job.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-37
SLIDE 37

Logical Equivalence Conditional Statements Conditional Equivalences

A conditional statement that is true because its hypothesis is false is called vacuously true or true by default. Consider for instance the statement “If you show up for work Monday morning, then you will get the job.” This statement is vacuously true if you do not show up for work.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-38
SLIDE 38

Logical Equivalence Conditional Statements Conditional Equivalences

A conditional statement that is true because its hypothesis is false is called vacuously true or true by default. Consider for instance the statement “If you show up for work Monday morning, then you will get the job.” This statement is vacuously true if you do not show up for work. This should make sense. The only way the above statement would be untrue would be if you do show up for work and yet do not get the job. (If you don’t show up to work, then the implication just doesn’t apply to you.)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-39
SLIDE 39

Logical Equivalence Conditional Statements Conditional Equivalences

Order of Operations

The precedence of the logical connectives is ∼ , then ∧, then ∨, and then → .

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-40
SLIDE 40

Logical Equivalence Conditional Statements Conditional Equivalences

Order of Operations

The precedence of the logical connectives is ∼ , then ∧, then ∨, and then → . → associates to the left.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-41
SLIDE 41

Logical Equivalence Conditional Statements Conditional Equivalences

Order of Operations

The precedence of the logical connectives is ∼ , then ∧, then ∨, and then → . → associates to the left. But as always, parenthesizing complicated statement forms is always preferred.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-42
SLIDE 42

Logical Equivalence Conditional Statements Conditional Equivalences

Order of Operations

The precedence of the logical connectives is ∼ , then ∧, then ∨, and then → . → associates to the left. But as always, parenthesizing complicated statement forms is always preferred. e.g. p ∨ ∼q → r is (p ∨ ∼q) → r

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-43
SLIDE 43

Logical Equivalence Conditional Statements Conditional Equivalences

Order of Operations

The precedence of the logical connectives is ∼ , then ∧, then ∨, and then → . → associates to the left. But as always, parenthesizing complicated statement forms is always preferred. e.g. p ∨ ∼q → r is (p ∨ ∼q) → r e.g. p → q ∧ ∼p → r is (p → (q ∧ ∼p)) → r

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-44
SLIDE 44

Logical Equivalence Conditional Statements Conditional Equivalences

Example: The truth table for (p ∨ ∼q) → ∼p p q ∼q p ∨ ∼q ∼p (p ∨ ∼q) → ∼p T T F T F F T F T T F F F T F F T T F F T T T T

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-45
SLIDE 45

Logical Equivalence Conditional Statements Conditional Equivalences

The “Division into Cases” Equivalence

Example: The truth table for (p ∨ q) → r ≡ (p → r) ∧ (q → r) p q r p ∨ q p → r q → r (p ∨ q) → r (p → r) ∧ (q → r) T T T T T T T T T T F T F F F F T F T T T T T T T F F T F T F F F T T T T T T T F T F T T F F F F F T F T T T T F F F F T T T T

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-46
SLIDE 46

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Suppose p, r are true and q is false. Find the truth value of the following statement forms.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-47
SLIDE 47

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Suppose p, r are true and q is false. Find the truth value of the following statement forms.

1 ∼(p → q)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-48
SLIDE 48

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Suppose p, r are true and q is false. Find the truth value of the following statement forms.

1 ∼(p → q) 2 ∼p → ∼q

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-49
SLIDE 49

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Suppose p, r are true and q is false. Find the truth value of the following statement forms.

1 ∼(p → q) 2 ∼p → ∼q 3 (p ∧ q) → r

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-50
SLIDE 50

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Suppose p, r are true and q is false. Find the truth value of the following statement forms.

1 ∼(p → q) 2 ∼p → ∼q 3 (p ∧ q) → r

Construct the truth tables for (p → q) → r and p → (q → r). Are these statement forms logically equivalent?

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-51
SLIDE 51

Logical Equivalence Conditional Statements Conditional Equivalences

Representation of “If-Then” as “Or”

p → q ≡ ∼p ∨ q

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-52
SLIDE 52

Logical Equivalence Conditional Statements Conditional Equivalences

Representation of “If-Then” as “Or”

p → q ≡ ∼p ∨ q

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-53
SLIDE 53

Logical Equivalence Conditional Statements Conditional Equivalences

Representation of “If-Then” as “Or”

p → q ≡ ∼p ∨ q p q ∼p ∼p ∨ q p → q T T F T T T F F F F F T T T T F F T T T This is a SUPER IMPORTANT logical equivalence!!!

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-54
SLIDE 54

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Rewrite the statement “Either you get to work on time or you are fired.” in if-then form.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-55
SLIDE 55

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Rewrite the statement “Either you get to work on time or you are fired.” in if-then form. Let ∼p be “You get to work on time.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-56
SLIDE 56

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Rewrite the statement “Either you get to work on time or you are fired.” in if-then form. Let ∼p be “You get to work on time.” Let q be “You are fired.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-57
SLIDE 57

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Rewrite the statement “Either you get to work on time or you are fired.” in if-then form. Let ∼p be “You get to work on time.” Let q be “You are fired.” Since ∼p ∨ q ≡ p → q, we can rewrite the statement as “If you do not get to work on time, then you are fired.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-58
SLIDE 58

Logical Equivalence Conditional Statements Conditional Equivalences

Negation of a Conditional Statement

Using the fact that p → q ≡ ∼p ∨ q, we can see that ∼(p → q) ≡ ∼(∼p ∨ q) ≡ ∼(∼p) ∧ ∼q (De Morgan’s Law) ≡ p ∧ ∼q (Double Negative Law)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-59
SLIDE 59

Logical Equivalence Conditional Statements Conditional Equivalences

Negation of a Conditional Statement

Using the fact that p → q ≡ ∼p ∨ q, we can see that ∼(p → q) ≡ ∼(∼p ∨ q) ≡ ∼(∼p) ∧ ∼q (De Morgan’s Law) ≡ p ∧ ∼q (Double Negative Law) So the negation of “if p then q” is logically equivalent to “p and not q.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-60
SLIDE 60

Logical Equivalence Conditional Statements Conditional Equivalences

Negation of a Conditional Statement

Using the fact that p → q ≡ ∼p ∨ q, we can see that ∼(p → q) ≡ ∼(∼p ∨ q) ≡ ∼(∼p) ∧ ∼q (De Morgan’s Law) ≡ p ∧ ∼q (Double Negative Law) So the negation of “if p then q” is logically equivalent to “p and not q.” This should make sense considering that p → q is false only when p is true and q is false.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-61
SLIDE 61

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Negate each of the following statements:

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-62
SLIDE 62

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Negate each of the following statements:

1 “If my car is in the repair shop, then I cannot get to class.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-63
SLIDE 63

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Negate each of the following statements:

1 “If my car is in the repair shop, then I cannot get to class.” 2 “If Sara lives in Athens, then she lives in Greece.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-64
SLIDE 64

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Negate each of the following statements:

1 “If my car is in the repair shop, then I cannot get to class.” 2 “If Sara lives in Athens, then she lives in Greece.”

Possible Answers:

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-65
SLIDE 65

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Negate each of the following statements:

1 “If my car is in the repair shop, then I cannot get to class.” 2 “If Sara lives in Athens, then she lives in Greece.”

Possible Answers:

1 “My car is in the repair shop and I can get to class.” or “My

car is in the repair shop, but I can get to class.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-66
SLIDE 66

Logical Equivalence Conditional Statements Conditional Equivalences

Exercises

Negate each of the following statements:

1 “If my car is in the repair shop, then I cannot get to class.” 2 “If Sara lives in Athens, then she lives in Greece.”

Possible Answers:

1 “My car is in the repair shop and I can get to class.” or “My

car is in the repair shop, but I can get to class.”

2 “Sara lives in Athens and she does not live in Greece.” or

“Sara lives in Athens, but she does not live in Greece.” (Sara might live in Georgia, or Ohio, or Wisconsin instead.)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-67
SLIDE 67

Logical Equivalence Conditional Statements Conditional Equivalences

Converse, Inverse, Contrapositive

For a conditional statement p → q

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-68
SLIDE 68

Logical Equivalence Conditional Statements Conditional Equivalences

Converse, Inverse, Contrapositive

For a conditional statement p → q

1 its converse is q → p

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-69
SLIDE 69

Logical Equivalence Conditional Statements Conditional Equivalences

Converse, Inverse, Contrapositive

For a conditional statement p → q

1 its converse is q → p 2 its inverse is ∼p → ∼q

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-70
SLIDE 70

Logical Equivalence Conditional Statements Conditional Equivalences

Converse, Inverse, Contrapositive

For a conditional statement p → q

1 its converse is q → p 2 its inverse is ∼p → ∼q 3 its contrapositive is ∼q → ∼p

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-71
SLIDE 71

Logical Equivalence Conditional Statements Conditional Equivalences

Converse, Inverse, Contrapositive

For a conditional statement p → q

1 its converse is q → p 2 its inverse is ∼p → ∼q 3 its contrapositive is ∼q → ∼p

Truth tables for each p q ∼p ∼q p → q q → p ∼p → ∼q ∼q → ∼p T T F F T T T T T F F T F T T F F T T F T F F T F F T T T T T T

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-72
SLIDE 72

Logical Equivalence Conditional Statements Conditional Equivalences

Some Observations

A conditional statement p → q is logically equivalent to its contrapositive ∼q → ∼p.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-73
SLIDE 73

Logical Equivalence Conditional Statements Conditional Equivalences

Some Observations

A conditional statement p → q is logically equivalent to its contrapositive ∼q → ∼p. The converse q → p is logically equivalent to the inverse ∼p → ∼q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-74
SLIDE 74

Logical Equivalence Conditional Statements Conditional Equivalences

Some Observations

A conditional statement p → q is logically equivalent to its contrapositive ∼q → ∼p. The converse q → p is logically equivalent to the inverse ∼p → ∼q. However, a conditional statement p → q is NOT logically equivalent to its converse q → p.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-75
SLIDE 75

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Consider the statement “If it’s raining, then the ground is wet.” (Sounds reasonable)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-76
SLIDE 76

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Consider the statement “If it’s raining, then the ground is wet.” (Sounds reasonable) Converse: “If the ground is wet, then it’s raining.” (This is a completely different statement. It’s also false.)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-77
SLIDE 77

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Consider the statement “If it’s raining, then the ground is wet.” (Sounds reasonable) Converse: “If the ground is wet, then it’s raining.” (This is a completely different statement. It’s also false.) Contrapositive: “If the ground is not wet, then it’s not raining.” (This means the same thing as the original statement.)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-78
SLIDE 78

Logical Equivalence Conditional Statements Conditional Equivalences

Example

Consider the statement “If it’s raining, then the ground is wet.” (Sounds reasonable) Converse: “If the ground is wet, then it’s raining.” (This is a completely different statement. It’s also false.) Contrapositive: “If the ground is not wet, then it’s not raining.” (This means the same thing as the original statement.) Inverse: “If it’s not raining, then the ground is not wet.” (This means the same thing as the converse.)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-79
SLIDE 79

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-80
SLIDE 80

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-81
SLIDE 81

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q. 2 p implies q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-82
SLIDE 82

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q. 2 p implies q. 3 p only if q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-83
SLIDE 83

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q. 2 p implies q. 3 p only if q. 4 p is a sufficient condition for q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-84
SLIDE 84

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q. 2 p implies q. 3 p only if q. 4 p is a sufficient condition for q.

Common English phrases q → p or, equivalently, ∼p → ∼q:

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-85
SLIDE 85

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q. 2 p implies q. 3 p only if q. 4 p is a sufficient condition for q.

Common English phrases q → p or, equivalently, ∼p → ∼q:

1 p if q

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-86
SLIDE 86

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q. 2 p implies q. 3 p only if q. 4 p is a sufficient condition for q.

Common English phrases q → p or, equivalently, ∼p → ∼q:

1 p if q 2 p is a necessary condition for q

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-87
SLIDE 87

Logical Equivalence Conditional Statements Conditional Equivalences

Common English phrases for p → q or, equivalently, ∼q → ∼p:

1 If p, then q. 2 p implies q. 3 p only if q. 4 p is a sufficient condition for q.

Common English phrases q → p or, equivalently, ∼p → ∼q:

1 p if q 2 p is a necessary condition for q

In other words, the conclusion of an implication expresses a necessary condition whereas the hypothesis expresses a sufficient condition.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-88
SLIDE 88

Logical Equivalence Conditional Statements Conditional Equivalences

Biconditional Statements

Given statement variables p and q, the biconditional of p and q is “p if and only if q” and is denoted by p ↔ q.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-89
SLIDE 89

Logical Equivalence Conditional Statements Conditional Equivalences

Biconditional Statements

Given statement variables p and q, the biconditional of p and q is “p if and only if q” and is denoted by p ↔ q. The words “if and only if” are sometimes abbreviated iff.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-90
SLIDE 90

Logical Equivalence Conditional Statements Conditional Equivalences

Biconditional Statements

Given statement variables p and q, the biconditional of p and q is “p if and only if q” and is denoted by p ↔ q. The words “if and only if” are sometimes abbreviated iff. Truth table for p ↔ q p q p ↔ q T T T T F F F T F F F T

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-91
SLIDE 91

Logical Equivalence Conditional Statements Conditional Equivalences

Some Properties of the Biconditional

p ↔ q is true when p and q share the same truth values and is false when p and q have different truth values.

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-92
SLIDE 92

Logical Equivalence Conditional Statements Conditional Equivalences

Some Properties of the Biconditional

p ↔ q is true when p and q share the same truth values and is false when p and q have different truth values. p ↔ q ≡ (p → q) ∧ (q → p)

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications

slide-93
SLIDE 93

Logical Equivalence Conditional Statements Conditional Equivalences

Some Properties of the Biconditional

p ↔ q is true when p and q share the same truth values and is false when p and q have different truth values. p ↔ q ≡ (p → q) ∧ (q → p) A common English phrase for the biconditional statement p ↔ q is that “p is a necessary and sufficient condition for q.”

Chapter 2: The Logic of Compound Statements (Part 2) Discrete Mathematics with Applications