mth202 Lecture03
mth202 Lecture03
LOGICAL EQUIVALENCES
LAWS OF LOGIC
DeMorgan’s laws: ~ (p q) ~ p ~ q
~ (p q) ~ p ~ q
Universal bound laws: ptt
pcc
Absorption laws: p (p q) p
p (p q) p
Negations of t and c: ~tc
1
~ct
Note that all these laws can be proved by using truth tables
Solution:
p [~(~p q)] p [~(~p) (~q)] DeMorgan’s Law
p [p(~q)] Double Negative Law
[p p](~q) Associative Law for
p (~q) Indempotent Law
Which is the simplified statement form.
EXAMPLE
~ (~ p q) (p q) p
SOLUTION
Consider
~(~p q) (pq)
(~(~p) ~q) (p q) DeMorgan’s Law
(p ~q) (pq) Double Negative Law
p (~q q) Distributive Law
pc Negation Law
p Identity Law
Hence the logical equivalence has been shown. 2
SIMPLIFYING A STATEMENT
EXERCISE
Introduction
Consider the statement:
"If you earn an A in Math, then I'll buy you a computer."
This statement is made up of two simpler statements:
p: "You earn an A in Math," and
q: "I will buy you a computer."
The original statement is then saying :
if p is true, then q is true, or, more simply, if p, then q.
We can also phrase this as p implies q, and we write p q.
EXPLANATION
p q pq
T T T
T F F
F T T
F F T
5
PRACTICE WITH CONDITIONAL STATEMENTS
• “if p then q”
• “p implies q”
• “if p, q”
• “p only if q”
• “p is sufficient for q”
• “not p unless q”
• “q follows from p”
• “q if p”
• “q whenever p”
• “q is necessary for p”
6
EXERCISE
7
1. To get an A in this class it is necessary for you to get an A on the
final.
SOLUTION pr
2. You do every exercise in this book; You get an A on the final, implies,
you get an A in the class.
SOLUTION pqr
1. ~(negation)
2. (conjunction), (disjunction)
3. (conditional)
EXAMPLE
p q ~q ~p p ~q p~q~p
T T F F T F
T F T F T F
F T F T F T
F F T T T T
In the above table we use the hierarchy of operations to complete the truth
table.
That’s why we have column for ~q and then for ~p after the columns of p
and q then we have the column for p ~q because order of operation as
given below and at the end we have column for the statement form which
involve implication that is p ~ q ~ p.
9
EXAMPLE
p q ~q ~p pq ~q ~p
T T F F T T
T F T F F F
F T F T T T
F F T T T T
10
IMPLICATION LAW
pq ~pq
p q pq ~p ~pq
T T T F T
T F F F F
F T T T T
F F T T T
In the above table as you note that the entries in the third and last
columns are same so these statement forms are logically equivalent.
This is very important logical equivalence shows that the implication
can be replaced by using ~ and .
Thus the negation of “if p then q” is logically equivalent to “p and not q”.
Accordingly, the negation of an if-then statement does not start with the
word if.
You should see yourself that the Negation of implication and implication
are not Logically equivalent.
11
EXAMPLES
p q pq ~p ~q ~p ~q
T T T F F T
T F F F T T
F T T T F F
F F T T T T
12
WRITING INVERSE
p q pq qp
T T T T
T F F T
F T T F
F F T T
Now since the entries in the last two columns are not same so the
corresponding statement forms are not logically equivalent. That is
conditional statement and its converse are not logically equivalent
13
WRITING CONVERSE
p q pq ~q~p
T T T T
T F F F
F T T T
F F T T
Note that the entries in the last two columns are same .Hence the
corresponding statement forms are logically equivalent. Also note that in the
above table we did not made the columns for ~ q and ~ p. But you should
made these columns also.
14
WRITING CONTRAPOSITIVE
REASONING EXERCISES
15