Professional Documents
Culture Documents
Topic 3 Logic Equivalence 2
Topic 3 Logic Equivalence 2
p q p∧q q∧ p
T T T T
T F F F
F T F F
F F F F
↑ ↑
p ∧ q and q ∧ p always
have the same truth
values, so they are
logically equivalent
1. Construct a truth table with one column for the truth values of P and another
column for the truth values of Q.
2. Check each combination of truth values of the statement variables to see whether
the truth value of P is the same as the truth value of Q.
a. If in each row the truth value of P is the same as the truth value of Q, then P
and Q are logically equivalent.
b. If in some row P has a different truth value from Q, then P and Q are not
logically equivalent.
0
~p ~Gp )
T F T
T F
F
→
Example :Showing Nonequivalence
Show that the statement forms ∼(p ∧ q) and ∼p ∧ ∼q are not logically equivalent. Solution
This method uses a truth table annotated with a sentence of explanation.
p g np
-
g pig -
( Png) 712178
I T F F T F F
T F = T F T F
F T T F F T F
F F T T F T T
> (Png) and
nprtg
are not logically
Tautologies and Contradictions equivalent .
Tautology – is a statement form that is always true regardless of the truth values of
the individual statement substituted for its statement variables.
Contradiction – is the statement form that is always false regardless of the truth
values of the individual statement s substituted for its statement variables.
Examples: Show that the following are tautology, contradictory and contingency
statements.
1. p v ~p
P np pvnp
T F T
F T T
.
: This is a tautology .
2. p∧~p
0
up PMP This is a
T F F contradiction .
F T F
1T F F
contingency
F T T
4. (~p ∧ q) ∧ (q → p)
◦
g~p~p.iq * → p trprq )1(q→p)
T T F F T F
T F F F T F
F T T T F F
F F T F T F
this is
a contradictory statement .
Solution:
T T F F T F F
T F F T T F F
T T F F
F T F
F F T T F T T
the truth value )
since column 6 and column 7 have same ,
i. ~
( PVO) and >
prig
are
logically equivalent .
This logical equivalence is one of the two De Morgan laws, shown in example above, named after
the English mathematician Augustus De Morgan, of the mid-nineteenth century.
more 20016s
Write negations for each of the following statements: to
equal
.
=P
a. John is 6 feet tall and he weighs at least 200 pounds.
b. The bus was late or Tom’s watch was slow.
than too lbs
feet tall he less
a.) John not weighs
.
is a or
late and
.
not
b) The bus was
They have
P G P TPVF P -2g
the same
T T F T T truth values ,
T F F F F : They are
F
T T T T logically
F F T J T equivalent .
i
Example: Show that p ∨ (q ∧ r) and (p ∨ q) ∧ (p ∨ r) are logically equivalent. This is the
distributive law of disjunction over conjunction.
16 8 a 2
'
T T T T T T T T
T T F F T T T T
T F T F T T T T
T F F F T T T T
F T T T T T T T
T F F
F F T F F
F F T F
F T F
F
F F F F F F F F
TABLE 6 Logical Equivalences. TABLE 7 Logical Equivalences
Involving Conditional Statements.
Equivalence Name
p∧T≡p Identity laws p → q ≡ ¬p ∨ q t
p ∨ F ≡ p✓
r ee
p → q ≡ ¬q → ¬p
-
(p ∨ q) ∨ r ≡ p ∨ (q ∨ r) Associative laws
(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
€
¬(p ↔ q) ≡ p ↔ ¬q
p ∨ ¬p ≡ T Negation laws
-
p ∧ ¬p ≡ F
Example: Show that ¬(p → q) and p ∧ ¬q are logically equivalent without using truth
table.
Gp g)
7-1
✓ → Table
Solution: + p → ( g)
7
=
Demonym's
I ? tip ) 17g →
→ Double
I P ^ →
g Negation
Example: Show that ¬(p ∨ (¬p ∧ q)) and ¬p ∧ ¬q are logically equivalent by developing
a series of logical equivalences.
-
( pv fiprq) ) =
rip prq)
> De thorgan 's
= -
p
^
! tip) ✓ a
g)
Double negation
= ^ (P ✓ > g) -
p
Distributive
-
✗ Pnp ) g)
-
= Gpa
negation
v >
Gpr g)
-
☒ ✓ >
'
-
Identity laws
= 7PM q
Solution:
Cpr g) I (png) v ( pvq)
Cpr g)
→ >
g) ✓ (Pro)
pv
-
tip up )
v frqvq)
=
ATE ① Table 7. I
≤ $-0T ✓
② De
Morgan 's
= Mt ③ Associative
④ Negation laws
ARGUMENT
Valid argument – no matter what particular statements is substituted for the statement
variables in its premises, if the resulting premises are all true, then the conclusion is
also true.
p → q ∨ ∼r
q → p∧r
∴ p→r
Solution:
P q r >
rqv
-
r
prr p -7 qrtr q → prr p→r
T T T F T T T T T
T T F T T F T F F
T F T F F T F T T
T F F T T F T T
⊕
FT T F T F T F T
F T F T T F T F T
f- F T F F F T T T
F F F T T F T T T
valid
The argument is not
Rules of Inference
If p then q.
p
∴q
If the first premise is true and then the second premise is detached from the
hypothesis of the second first premise, then it is safe to conclude p.
p -7g -
q P→q*r qq
Example:
T T T t T
If it is raining, then the ground is wet. P
T T F
It is raining. : .
T
T F
F T T F T
Example: 7 Tr
→
If it is raining, then the ground is wet. p q
The ground is wet.
∴ ________________________ ÷
no
conclusion
?r"
A
→
Modus Tollens: (Method of denying) p q
i.
If it is raining, then the ground is wet.
The ground is not wet.
It is not
∴ _________________________
raining
Generalization: These forms of logic are used to make generalizations. For example,
according to the first statement, if p is true, then more generally, "p or q" is true for any
other statement q.
'
.
=
Suppose you're given the job of counting the upperclassmen at your school as an
example. You are wondering what class Anton is in, and they say he's a junior.
Anton is a Junior
-
? Anton is a
Junior or a senior
Specialization. r
For example, suppose you are looking for someone who knows the graph algorithms to
work on a project with you. You find that both numerical analysis and graph algorithms
are common to Ana.
-
-
'
.
Ana knws graph algorithm
Elimination. Such ways of logic claim that when you only have two options and you can
rule out one, the other must be the case.
i
For example, suppose you know that for a given number x,
x−5=0 or -
x+3=0.
If x is not negative, then x is not equal to -3
-
✗ -5=0
∴ __________________________
Here is an example:
∴ ___________________________________________
example:
If 18,486 is divisible by 18, then 18,486 is divisible by 9.
If 18,486 is divisible by 9, then the sum of the digits of 18,486 is divisible by 9.
∴ _____________________________________________
Proof by Division into Cases: It often happens that you know one thing or another is
true. If you can show that in either case a certain conclusion follows, then this conclusion
must also be true.
Example:
x is positive or x is negative.
If x is positive, then x2 > 0.
If x is negative, then x2 > 0.
∴ ______________________________