Logical Equivalence
Logical Equivalence
1. Idempotent Laws
a. p∨q≡p
b. p∧q≡p
.
2. Involution Law
~~p ≡ p
.
3. Commutative Laws
a. p∨q≡q∨p
b. p ∧ q ≡ q ∧ p
.
4. Associative Laws
a. (p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
b. (p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
.
5. Distributive Laws
a. p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
b. p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
.
6. Identity Laws
a. p∨c≡p
b. p ∧ t ≡ p
c. p∨t≡t
d. p ∧ c ≡ c
.
7. Complement Laws
a. p ∨ ~p ≡ t
b. p ∧ ~p ≡ c
c. ~t ≡ c
d. ~c ≡ t
.
8. Absorption Laws
a. p ∧ (p ∨ q) ≡ p
b. p ∨ (p ∧ q) ≡ p
.
9 DeMorgan's Law
a. ~(p ∨ q) ≡ ~p ∧ ~q
b. ~(p ∧ q) ≡ ~p ∨ ~q
A statement in sentential logic is built from simple statements using the logical
connectives , , , , and . I'll construct tables which show how the truth
or falsity of a statement built with these connective depends on the truth or falsity of
its components.
To understand why this table is the way it is, consider the following example:
Suppose it's true that you get an A and it's true that I give you a dollar. Since I kept
my promise, the implication is {\it true}. This corresponds to the first line in the table.
Suppose it's true that you get an A but it's false that I give you a dollar. Since
I didn't keep my promise, the implication is false. This corresponds to the second line
in the table.
What if it's false that you get an A? Whether or not I give you a dollar, I haven't
broken my promise. Thus, the implication can't be false, so (since this is a two-valued
logic) it must be true. This explains the last two lines of the table.
Remarks. 1. When you're constructing a truth table, you have to consider all possible
assignments of True (T) and False (F) to the component statements. For example,
suppose the component statements are P, Q, and R. Each of these statements can be
either true or false, so there are possibilities.
When you're listing the possibilities, you should assign truth values to the
component statements in a systematic way to avoid duplication or omission. The
easiest approach is to use lexicographic ordering. Thus, for a compound statement
with three components P, Q, and R, I would list the possibilities this way:
2. There are different ways of setting up truth tables. You can, for instance, write the
truth values "under" the logical connectives of the compound statement, gradually
building up to the column for the "primary" connective.
I'll write things out the long way, by constructing columns for each "piece" of the
compound statement and gradually building up to the compound statement.
Example. Construct a truth table for the formula .
A tautology is a formula which is "always true" --- that is, it is true for every
assignment of truth values to its simple components. You can think of a tautology as
a rule of logic.
I construct the truth table for and show that the formula is
always true.
The last column contains only T's. Therefore, the formula is a tautology.
P=" ".
Q=" ".
I want to determine the truth value of . Since I was given specific
truth values for P, Q, and R, I set up a truth table with a single row using the given
values for P, Q, and R:
Therefore, the statement is true.
From a practical point of view, you can replace a statement in a proof by any logically
equivalent statement.
To test whether X and Y are logically equivalent, you could set up a truth table to test
whether is a tautology --- that is, whether "has all T's in its column".
However, it's easier to set up a table containing X and Y and then check whether the
columns for X and for Y are the same.
Since the columns for and are identical, the two statements are
logically equivalent. This tautology is called Conditional Disjunction. You can use this
equivalence to replace a conditional by a disjunction.
There are an infinite number of tautologies and logical equivalences; I've listed a few
below; a more extensive list is given at the end of this section.
When a tautology has the form of a biconditional, the two statements which make
up the biconditional are logically equivalent. Hence, you can replace one side with
the other without changing the logical meaning.
(a)
(b)
Let C be the statement "Calvin is home" and let B be the statement "Bonzo is at the
moves". The given statement is . I'm supposed to negate the statement,
then simplify:
The result is "Calvin is home and Bonzo is not at the movies".
Let P be the statement "Phoebe buys a pizza" and let C be the statement "Calvin
buys popcorn". The given statement is . To simplify the negation, I'll use
the Conditional Disjunction tautology which says
The result is "Phoebe buys the pizza and Calvin doesn't buy popcorn".
By the contrapositive equivalence, this statement is the same as "If is not
rational, then it is not the case that both x and y are rational".
Example. Show that the inverse and the converse of a conditional are logically
equivalent.
Let be the conditional. The inverse is . The converse is .
I could show that the inverse and converse are equivalent by constructing a truth
table for . I'll use some known tautologies instead.
Start with :
Remember that I can replace a statement with one that is logically equivalent. For
example, in the last step I replaced with Q, because the two statements are
equivalent by Double negation.
Construct the converse, the inverse, and the contrapositive. Determine the truth or
falsity of the four statements --- the original statement, the converse, the inverse,
and the contrapositive --- using your knowledge of algebra.
The converse is true. The inverse is logically equivalent to the converse, so the
inverse is true as well.
List of Tautologies
A logical equivalence is a statement that two mathematical sentence forms are
completely interchangeable:
if one is true, so is the other; if one is false, so is the other.
not(A and B)not(A and B) is equivalent to
(not A) or (not B)(not A) or (not B)
Here's the intuition you should have when looking at this sentence.
Start with (1) and work your way to (6):
entence ... (3) ... when ... (4) ... AA is false ... (5) ... or
B)(A and B (not A)(not A or
is equivalent tois
⏞ )⏞ ⏞
equivalent to⏞
In particular, note that you say ‘is false’ when you see the word ‘not’.
A
an not( n n (not A (not(A and B)
d A an ot ot ) or (n )⟺((not A) o
AB B d B) A B ot B) r (not B))
A B A not( n n (not A (not(A and B)
an A an ot ot ) or (n )⟺((not A) o
d d B) A B ot B) r (not B))
B
T T T F F F F T
T F F T F T T T
F T F T T F T T
F F F T T T T T
For simplicity, in the subsequent truth tables we will not include the last column—the
one that shows that the ‘is equivalent to’ statement is always true.
This last column takes up a lot of space, and makes things look more complicated than
they really are.
It is equally convincing to compare the two relevant columns, to show that they are
identical.
(A or B) or C(A or B) or C is equivalent to
A or (B or C)A or (B or C)
Below, it is shown that:
(A and B) and C(A and B) and C is equivalent to
A and (B and C)A and (B and C)
A or B or CA or B or C’ and
Thus (yeh!) we can write ‘
T T F T F F F
T F T F F F F
T F F F F F F
F T T F F T F
F T F F F F F
F F T F F F F
F F F F F F F
In the exercises, you will construct truth tables to prove all the following logical
equivalences.
LOGICAL EQUIVALENCES
...
is
NAME
eq
/
uiv
DESC
RIPTI
1st1st sentence ale 2nd2nd sentence INTUITION
nt
ON
to .
..
de
Morga not(A and ...
is (not A) or (not an ‘and’ sentence
is false
n's
B)not(A a eq
B)(not A) or ( when
Law:
negatin nd B)
uiv
ale not B) AA is false
or BB is false
g an nt
‘and’ to .
sentenc
..
e
de
... an ‘or’ sentence
Morga
is is false
n's
Law:
not(A or eq (not A) and (n when
uiv
negatin
g an
B)not(A o ale ot B)(not A) a AA is false
‘or’ r B) nt
to . nd (not B) and BB is
sentenc false
..
e
...
(A and B) is
associa eq A and (B and the grouping
tivity and C(A a uiv doesn't matter
C)A and (B an
of
nd B) and ale in an ‘and’
‘and’ nt
d C) sentence
C to .
..
...
is
(A or B) o eq the grouping
associa
uiv A or (B or C) doesn't matter
tivity r C(A or
of ‘or’
ale
A or (B or C) in an ‘or’
B) or C nt
to .
sentence
..
...
is
commu eq
tativity A and BA uiv B and AB and the order doesn't
matter in an
of
‘and’ and B ale
nt A ‘and’ sentence
to .
..
...
is
eq
commu A or BA o uiv
the order doesn't
tativity B or AB or A matter in an ‘or’
of ‘or’ r B ale
nt
sentence
to .
..
...
is
negating twice in
law of eq
double not(not A) uiv
succession
AA gets you back to
negatio
n not(not A) ale
nt
where you
started
to .
..
... similar
is (A or B) and ( to: a(b+c)
A or (B a eq
distribu
uiv A or C)(A or =ab+aca(
tive nd C)A or
law
ale
B) and (A or b+c)=ab
(B and C) nt
to .
..
C) +ac
... similar
is (A and B) or ( to: a(b+c)
A and (B eq
distribu
uiv A and C)(A a =ab+aca(
tive or C)A an
law
ale
nd B) or (A an b+c)=ab
d (B or C) nt
to .
..
d C) +ac
alternat
e form A⇒BA⇒ ...
is (not A) or B(n an implication is
true when
of an eq the hypothesis is
uiv
ale false or
implica
tion B nt
to .
ot A) or B the conclusion is
true
..
...
is
contrap
eq (not B)⇒(not
ositive A⇒BA⇒ uiv
an implication is
of an
ale A)(not B equivalent to
implica B its contrapositive
tion
nt
to . )⇒(not A)
..
...
is an implication is
negatin eq false when
g an not(A⇒B) uiv A and (not B) the hypothesis is
implica
tion not(A⇒B) ale
nt A and (not B) true and
the conclusion is
to . false
..
...
is this is
bicondi eq (A⇒B) and (B justification for
tional A⟺BA uiv the ‘double
stateme ale ⇒A)(A⇒B) a arrow’
⟺B
nt nt
to . nd (B⇒A) that is used for
equivalence
..
TAUTOLOGIES
A tautology is a mathematical sentence form that is always true.
For example, ‘(A and B)⇒A(A and B)⇒A’ is a tautology, as
the truth table below confirms:
A B A and BA an (A and B)⇒A(A and
A B d B B)⇒A
T T T T
T F F T
F T F T
F F F T
The word ‘tautology’ tends to be used in logic, where the ‘pieces’ of the (always true)
sentence have the choice of being either true or false.
For example, ‘ (A and B)⇒A(A and B)⇒A’ is a tautology:
the sentence is always true; the ‘pieces’ AA and BB can be true or false.
The sentence ‘ A or (not A)A or (not A)’ is another tautology:
the sentence is always true; the ‘piece’ AA can be true or false.
The word ‘identity’, on the other hand, tends to be used for mathematical
sentences outside of the realm of logic that are always true.
Here are some examples from algebra and trigonometry (and don't worry if something
is unfamiliar here):
‘ 2 x −y =(x−y)(x+y)x2−y2=(x−y)(x+y)’ is an
2
identity from algebra.
xx and yy represent real numbers.
Here,
We finish with two important tautologies that allow us to ‘chain’ results together:
LAW OF SYLLOGISM
The following compound mathematical sentence is true,
for all possible truth values of PP, QQ, and RR:
If ((P⇒Q) and (Q⇒R))((P⇒Q) and (Q⇒R)) then
(P⇒R)(P⇒R)
Here's the intuition:
Whenever PP is true, so is QQ; and,
whenever QQ is true, so is RR; so,
LAW OF DETACHMENT
The following compound mathematical sentence is true,
for all possible truth values of PP and QQ:
(P and (P⇒Q)) ⇒ Q(P and (P⇒Q)) ⇒ Q
Here's the intuition:
PP is true; and,
If
QQ must be true.