2.2 Conditional Statements
2.2 Conditional Statements
2 Conditional Statements
1
Implication (if - then)
Truth Table of →
p q p→q
true true true
true false false
false true true
false false true
Examples of Implications
• “If this lecture ever ends, then the sun will
rise tomorrow.” True or False?
• “If Tuesday is a day of the week, then I am
superman.” True or False?
• “If 1+1=6, then I am the president.”
True or False?
• “If the moon is made of green cheese, then I
am richer than Bill Gates.” True or False?
Module #1 - Logic
Logical Proof
which is equivalent to
q is true and p is false.
which is equivalent to
q → p is false.
6
Example
What are the contrapositive, the converse,
and the inverse of the conditional statement
“The home team wins whenever it is raining?”
Solution
“q whenever p” is one of the ways to express
the conditional statement p → q,
The original statement can be rewritten as
“If it is raining, then the home team wins.”
Contrapositive:
“If the home team does not win, then it is not
raining.” 7
The converse is
“If the home team wins, then it is raining.”
The inverse is
“If it is not raining, then the home team does
not win.”
8
Writing the Contrapositive
Example
Write each of the following statements in its equivalent
contrapositive form:
a. If Howard can swim across the lake, then Howard
can swim to the island.
b. b. If today is Easter, then tomorrow is Monday
Solution
a. If Howard cannot swim to the island, then Howard
cannot swim across the lake.
b. b. If tomorrow is not Monday, then today is not
Easter.
9
Converting Only If to If-Then
Example
Rewrite the following statement in if-then form in two
ways, one of which is the contrapositive of the other.
John will break the world’s record for the mile run
only if he runs the mile in under four minutes.
Solution
If John breaks the world’s record, then he will have
run the mile in under four minutes.
If John does not run the mile in under four minutes,
then he will not break the world’s record.
10
Converting a Sufficient Condition to If-Then Form
Example
Rewrite the following statement in the form
“If A then B”:
Pia’s birth on U.S. soil is a sufficient condition for her
to be a U.S. citizen
Solution
If Pia was born on U.S. soil, then she is a U.S. citizen.
11
Converting a Necessary Condition to If-Then Form
Example
Rewrite the following statement in if-then form and
its contrapositive.
George’s attaining age 35 is a necessary condition for
his being president of the US.
Solution
If George can be president of the United States, then
he has attained the age of 35.
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
13
Example:
Use the logically equivalence P → Q P Q to
rewrite the following statement in if-then form:
Either you get to work on time or you are fired.
Solution
P → Q is logically equivalent to P Q.
Let P be the proposition: you get to work on time.
And let Q be: you are fired.
Then the given statement becomes: P Q
which is logically equivalent to P → Q, which reads
If you don’t get to work on time, then you are fired.
14
The Negation of a Conditional Statement
Since P → Q P Q, then
(P → Q) (P Q) P Q
Therefore, (P → Q) P Q
15
Example:
Write negations for each of the following statements:
a. If my car is in the repair shop, then I cannot get to
class.
b. If Sara lives in Athens, then she lives in Greece.
Solution
a. My car is in the repair shop and I can get to class.
16
Example: Show that
(p q) → (p q) is a tautology.
Solution (p q) → (p q)
(p q) (p q)
De Morgan’s law ( p q) (p q)
( p p) ( q q)
tt
Domination law
t
17
The Biconditional
The biconditional of p and q is “p if, and only if, q”
and is denoted p q.
p q is equivalent to (p → q) (q → p)
18
Biconditional (if and only if)
Truth Table of
p q pq
true true true
true false false
false true false
false false true
20
Use the equivalence p → q p q to show that
the following propositions are logically equivalent:
(p q) → r (p → r) (q → r)
Solution
(p q) → r (p q) r p → q p q
(p → r) (q → r) p → q p q
21
Use the equivalence p → q p q to show that
the following propositions are logically equivalent:
p → (q r) (p q) → r
Solution
p → (q r) p (q r) p → q p q
(p q) → r p → q p q
22
Use the equivalence p → q p q to show that
the following propositions are logically equivalent:
p → (q r) (p r) → q
Solution
p → (q r) p (q r) p → q p q
p (r q) Commutativity Law
(p r) → q p → q p q
23
Use the equivalence p → q p q to show that
the following propositions are logically equivalent:
p → (q → r) (p q) → r
Solution
p → (q → r) p (q → r) p → q p q
p (q r) p → q p q
(p q) → r p → q p q
24