Truth Tables and Logical Equivalences Review
Truth Tables and Logical Equivalences Review
Truth Tables and Logical Equivalences Review
Reviewer Equivalence
In the previous chapter, we’ve refreshed our minds with logical propositions including their
conjunction, disjunction, negation, implication, and biconditional. You have also learned the
converse, inverse, and contrapositive of conditional statements. Our discussion focused on
these concepts, especially on their truth values (i.e. whether they are true or false).
We identified the truth values of those statements just by analyzing them. However, it becomes
tedious to identify the truth values of statements especially if they are too long or complex. For
this reason, we must have a reliable and convenient method to identify truth values.
In this reviewer, we introduce to you how to use truth tables - a powerful tool in Propositional
logic. Also, you will learn what are logical equivalences and how truth tables can be used to
describe them.
A proposition is true if it states a piece of true or correct information and false otherwise.
Meanwhile, if we are dealing with complex propositions formed using connectives such as
conjunctions (∧), disjunctions (∨), negation (⇒), conditional statement (or implication) (⇒), and
biconditional statement (⇔), the truth value of the statement depends on the truth values of the
respective propositions that composed it. For instance, the truth value of p ⇒ q depends on the
respective truth values of p and q.
To refresh our minds about how to identify the truth value of conjunctions, disjunctions,
negations, conditional statements, and biconditionals, we summarize what we have learned
again the previous reviewer in the table below:
Truth Tables
We have stated earlier that the truth value of complex propositions formed by
connectives depends on the individual truth values of its components. Actually, we can easily
show how the truthfulness or falsity of a statement depends on its components using truth
tables.
Let us start with the simplest case: the negation of a statement. Shown below is an
example of a truth value for p and its negation ∼p.
p ∼p
T F
F T
What’s good with the truth table above is that it is very intuitive. Clearly, the table states that if p
is a true proposition, then ∼p is false and vice versa.
p q p∧q
T T T
T F F
F T F
F F F
The first row of the table shows the propositions p, q, and the conjunction p ∧ q. We have
already learned that a conjunction p ∧ q is true if both p and q are true, then as seen in the
table, only row 2, where both p and q are true, shows a “true” truth value for the conjunction.
The remaining rows provide a “false” truth value since in those rows (rows 3 to 5), p and q are
not both true.
Now that you have an understanding of truth tables and what they present. The next question
we have to answer is: How to construct a truth table?
We will try to answer this question in the next section
Let us use this step to recreate the truth table for the conjunction of P and Q which we have
presented in the previous section.
P Q P∧ Q
Now, we provided 3 columns for the table since we have to put proposition P, proposition
Q, and the conjunction of interest P ∧ Q.
P Q P∧ Q
We have to put truth values to the columns dedicated for the propositions (P and Q).
Actually, it’s totally up to you how to assign truth values for them. However, to make it
easier and more organized, start with the first column pertaining to P. An easy way to fill
this column is by putting two “true” (T) and two “false” (F) (since there are 4 columns, we
just divide it by 2 so that the T’s and F’s have equal numbers).
P Q P∧ Q
For the second column, we will assign truth values in a manner where no combination
will be repeated. In our case above, it is best to assign T’s and F’s for proposition Q in
alternating manner.
P Q P∧ Q
T T
T F
F T
F F
4) Use your knowledge about the truth values of connectives to identify the truth
value for the column dedicated to the connective.
P Q P∧ Q
T T
T F
F T
F F
Since we know that a conjunction will be true only if both propositions are true, then we
only put T in the second row because P and Q are both true in this row. For the other
rows, we just put F since not both P and Q are true on those rows.
P Q P∧ Q
T T T
T F F
F T F
F F F
You can try using the steps we have discussed in this section to create the respective
truth tables for disjunction, conditional statements, and biconditional statements. We will
just present their respective truth tables below since it will be too long if we will discuss
them one by one.
P Q P∨ Q
T T T
T F T
F T T
F F F
Truth table for Conditional Statement (or logical implication / “If and then”
statement)
P Q P⇒ Q
T T T
T F F
F T T
F F T
P Q P⇔ Q
T T T
T F F
F T F
F F T
We will use our knowledge about truth tables to identify the truth values of various complex
statements.
Let us try to create a truth table for 𝑃 ∨ 𝑄 ⇒ 𝑅 using the steps we have discussed in the
previous section.
2) Construct a table with 2n rows to put the possible truth values of the propositions
Since we have n = 3, then we need to prepare a table with 23 = 8 rows plus one
additional row where we can put the names of the propositions involved.
P Q R 𝑃 ∨ 𝑄 𝑃 ∨ 𝑄 ⇒ 𝑅
You might be wondering why I have made a table with 5 columns. There are 5 columns since
there are three individual propositions (P, Q, and R) and there are two connectives involved
(disjunction and implication).
P Q R 𝑃 ∨ 𝑄 𝑃 ∨ 𝑄 ⇒ 𝑅
P Q R 𝑃 ∨ 𝑄 𝑃 ∨ 𝑄 ⇒ 𝑅
T T
T F
T T
T F
F T
F F
F T
F F
You might notice that there are repeated combinations (row 1 and row 3), don’t sweat it because
we have not yet assigned truth values for R.
It is important how you will fill the third column since you must avoid repeating any combination.
It’s totally up to you how to fill this column as long as no combination is repeated.
Here’s a suggestion, you can fill the third column by alternating two T’s and two F’s. Doing this
will fill column “R” without repeating any combination.
P Q R 𝑃 ∨ 𝑄 𝑃 ∨ 𝑄 ⇒ 𝑅
T T T
T F T
T T F
T F F
F T T
F F T
F T F
F F F
Are there any repeated combinations? None! We’re good to go to the next section.
4) Use your knowledge about the truth values of connectives to identify the truth
value for the column dedicated to the connectives
P Q R 𝑃 ∨ 𝑄 𝑃 ∨ 𝑄 ⇒ 𝑅
T T T
T F T
T T F
T F F
F T T
F F T
F T F
F F F
Now, we’re on the fourth and fifth column which involve connectives.
Let us start with the fourth column which is the disjunction of P and Q. Note that a
disjunction will be true if at least one of the propositions is true. Hence, 𝑃 ∨ 𝑄 is true if
at least one of P and Q is true. Rows 2, 4, 5, 6, and 8 show at least one true proposition
between P and Q. The remaining rows show neither true proposition so we put F to
them.
P Q R 𝑃 ∨ 𝑄 𝑃 ∨ 𝑄 ⇒ 𝑅
T T T T
T F T F
T T F T
T F F T
F T T T
F F T F
F T F T
F F F F
We’re now on the last column that pertains to 𝑃 ∨ 𝑄 ⇒ 𝑅 . To identify the truth values
for each row under this column, we have to refer to the 4th column as the hypothesis
and the 3rd column as the conclusion.
Note that we have to put F on rows 4, 5, and 8 since they show a true hypothesis and a
false conclusion. Meanwhile, the remaining rows must be true.
P Q R 𝑃 ∨ 𝑄 𝑃 ∨ 𝑄 ⇒ 𝑅
T T T T T
T F T F T
T T F T F
T F F T F
F T T T T
F F T F T
F T F T F
F F F F T
Using the truth table above, can you identify the truth value of 𝑃 ∨ 𝑄 ⇒ 𝑅 if P is true, Q is
false and R is false?
P is true, Q is false, and R is false on row 5. In row 5, we can see that the truth value of
𝑃 ∨ 𝑄 ⇒ 𝑅 is F. Hence, the answer to this question is F.
We can use a truth table to answer this. However, we don’t have to create an entire truth table
just to answer this since the problem already specified the truth values of each proposition.
We have three propositions (P, Q, and R) and three connectives involved (implication,
conjunction, and negation). So, we prepare a table with 6 columns and 2 rows (1 for labels and
1 for truth values.
P Q R ∼𝑅 𝑄 ∧ ∼𝑅 P⇒ 𝑄 ∧ ∼𝑅
It was stated in the problem that P is true, Q is false, and R is false. We put these truth values in
the second row:
P Q R ∼𝑅 𝑄 ∧ ∼𝑅 P⇒ 𝑄 ∧ ∼𝑅
T F F
We use our knowledge about connectives to fill the remaining columns. For the fourth column,
we only need to identify the truth value of the negation of R. Since R is F, then ∼R must be T.
P Q R ∼𝑅 𝑄 ∧ ∼𝑅 P⇒ 𝑄 ∧ ∼𝑅
T F F T
Now, 𝑄 ∧ ∼ 𝑅 must be false since not both Q and ∼ 𝑅 are true (Q is false). Hence, we put F
for the fifth column.
P Q R ∼𝑅 𝑄 ∧ ∼𝑅 P⇒ 𝑄 ∧ ∼𝑅
T F F T F
Lastly, we have to fill the rightmost column. P ⇒ 𝑄 ∧ ∼ 𝑅 means that we have P as the
hypothesis and 𝑄 ∧ ∼ 𝑅 as the conclusion. Based on the table above, P is true while
𝑄 ∧ ∼ 𝑅 is false. This means that we have a true hypothesis and a false conclusion, implying
that the conditional statement must be false. Hence, we put F in the last column.
P Q R ∼𝑅 𝑄 ∧ ∼𝑅 P⇒ 𝑄 ∧ ∼𝑅
T F F T F F
The statement Q ∨ ∼P ⇔ ∼R ∧ Q is extremely complicated to look at. But, with the help of
truth tables, we can easily identify its truth value given that P, Q, and R are all true. Again, we
don’t have to create an entire truth table in this case since we are already interested in the truth
value of the given statement if all P, Q, and R are true.
Let’s start by constructing a table. We have 3 propositions involved (P, Q, and R) and five
connectives involved (disjunction, biconditional, negation, and conjunction). Hence, we will have
an 8-column table. We put T for P, Q, and R since this fact is given in the problem.
P Q R ∼P Q ∨ ∼P ∼R ∼R ∧ Q Q ∨ ∼P ⇔ ∼R ∧ Q
T T T
P Q R ∼P Q ∨ ∼P ∼R ∼R ∧ Q Q ∨ ∼P ⇔ ∼R ∧ Q
T T T F F
P Q R ∼P Q ∨ ∼P ∼R ∼R ∧ Q Q ∨ ∼P ⇔ ∼R ∧ Q
T T T F T F
Since ∼ R is F and Q is T, then ∼R ∧ Q is F since not both of the propositions are true.
P Q R ∼P Q ∨ ∼P ∼R ∼R ∧ Q Q ∨ ∼P ⇔ ∼R ∧ Q
T T T F T F F
P Q R ∼P Q ∨ ∼P ∼R ∼R ∧ Q Q ∨ ∼P ⇔ ∼R ∧ Q
T T T F T F F F
Example: Identify the truth value of “If 3 is an even or a prime number, then 3 is
rational”
Let us start by assigning propositional variables for each proposition in the given statement:
Let p be the proposition “3 is an even number”. This is a false proposition since 3 is an odd
number.
Let q be the proposition “3 is a prime number”. This is a true proposition. The only factors of 3
are 3 and itself.
Let r be the proposition “ 3 is rational”. This is false. There’s no whole number that when
multiplied by itself will result in 3.
Let us translate the statement “If 3 is an even or a prime number then 3 is rational” into a
statement with propositional variables p, q, and r.
Let us create a truth table to identify whether p v q ⇒ r is true or false. Recall that we have
stated earlier that p is false, q is true, and r is false.
p q r pvq pvq⇒r
F T F
Since p is F and q is T, then the conjunction p v q must be T since one of p and q is true.
p q r pvq pvq⇒r
F T F T
In p v q ⇒ r, the hypothesis is p v q, which is T based on the truth table above. Meanwhile, the
conclusion, which is r, is false. So, we have a true hypothesis and a false conclusion in p v q ⇒
r. Hence, p v q ⇒ r is false.
p q r pvq pvq⇒r
F T F T
For instance, the statement p ∨ ∼p is a tautology since it is always true regardless of the
truth value assigned to p and ∼p.
p ∼p p ∨ ∼p
T T T
F T T
Notice that whatever the truth values of p and ∼p, p ∨ ∼p is a true statement. Hence, p ∨ ∼p is
an example of a tautology.
number”. The statement “3 is an odd or even number” is a tautology since this statement is
always true.
p ∼p p ∧ ∼p
T F F
F T F
For example, p ⇒ ∼p is a contingency since its truth value varies. Refer to its truth table
below and observe its truth values.
p ∼p p ⇒ ∼p
T F F
F T T
Note that the truth value of P ⇒ ∼P is not always true or not always false. Hence, P ⇒ ∼P is a
contingency.
We can answer this problem by creating truth tables for each statement:
(a) For (P ∧ Q) ⇒ P:
P Q P∧Q (P ∧ Q) ⇒ P
T T T T
T F F T
F T F T
F F F T
Based on the truth table above, the truth values of (p ∧ q) ⇒ p is always true regardless of the
truth values of p and q. Hence, (p ∧ q) ⇒ p is a tautology.
(b) For P ∨ ∼Q ⇔ Q
P Q ∼Q P ∨ ∼Q P ∨ ∼Q ⇔ Q
T T F T T
T F T T F
F T F F F
F F T T F
Based on our truth table above, the truth values of p ∨ ∼ 𝑞 ⇔ q varies (it is not always true or
not always false). Hence, P ∨ ∼Q ⇔ Q is considered as a contingency.
Logical Equivalence
Two statements are logically equivalent if they always have the same truth value. In other
words, logical equivalent statements will produce similar truth values regardless of the truth
values of the propositions that composed these statements.
To make the concept of logical equivalence much clearer to you, consider these
statements:
Statement 1 : P ⇒ Q
Statement 2: ∼Q ⇒ ∼P
P Q P⇒Q
T T T
T F F
F T T
F F T
P Q ∼P ∼Q ∼Q ⇒ ∼P
T T F F T
T F F T F
F T T F T
F F T T T
T T
F F
T T
T T
Note how the truth values of the statements are the same for every assigned combination of
truth values of P and Q .
What have you noticed about P ⇒ Q and ∼Q ⇒ ∼P? Yes, they are contrapositives! Here’s an
interesting fact: The contrapositive of a conditional statement and the conditional statement
itself are logically equivalent. This also means that a conditional statement is true if its
contrapositive is true. This property is known as the Law of Contraposition.
Example: Alice said that “If I live in Manila, then I live in the Philippines”. Celine heard
this and tried to restate it as “If Alice doesn’t live in the Philippines, then she does not
live in Manila”. Are Alice and Celine’s statements logically equivalent?
Yes, since Celine’s statement is just the contrapositive of Alice’s statement. Note that a
conditional statement and its contrapositive are logically equivalent.
P Q P⇒ Q
T T T
T F F
F T T
F F T
P Q ∼P ∼P ∨ Q
T T F T
T F F F
F T T T
F F T T
Comparing the truth tables above, we can see that P ⇒ Q and ∼P ∨ Q have the same truth
values for every assigned combination of truth values of P and Q . For this reason, we conclude
that P ⇒ Q and ∼P ∨ Q are logically equivalent. In symbols: P ⇒ Q ≡ ∼P ∨ Q
We have already shown that P ⇒ Q and ∼P ∨ Q are logically equivalent. Let us provide a
concrete example of a statement that represents them.
Let P be the proposition “Fred knows algebra” and Q be the proposition ‘Fred is a high school
student”. Then, P ⇒ Q is translated as “If Fred knows algebra, then he is a high school student”
and ∼P ∨ Q is translated as “Fred does not know algebra or he is a high school student”.
Since, we have shown earlier that P ⇒ Q ≡ ∼P ∨ Q. Then, the statements: “If Fred knows
algebra, then he is a high school student” and “Fred does not know algebra or he is a high
school student” are logically equivalent. This means that if the statement “If Fred knows algebra,
then he is a high school student” is true then the statement “Fred does not know algebra or he is
a high school student” is also true.
Commutative Law
The commutative law is pretty easy to understand. It also states that the order of propositions in
a conjunction and a disjunction is not important.
For instance, the statement "Jessie is a French and a college student" is logically equivalent
with the statement "Jessie is a college student and a French".
This means that if the statement "Jessie is a French and a college student" is true, then the
the statement "Jessie is a college student and a French " will also be true. Similarly, if "Jessie is
a French and a college student"
is a false statement, then the statement "Jessie is a college student and a French" is also false.
Associative Law
Basically, this property tells us that in conjunction and disjunction, the groupings of the
propositions do not matter and will always yield the same
truth values. This means that (p v q) v r will have identical truth values with p v (q v r) (You can
try proving this using truth tables).
Distributive Law
The distributive law of logical equivalence allows us to distribute an outer connective to an inner
connective.
De Morgan’s law
This law states that the negation of the disjunction of two statements is logically equivalent to
the conjunction of the negation of each statement. Moreover, it also states that the negation of
the conjunction of two statements is logically equivalent to the disjunction of the negation of
each statement.
For instance, consider the statement “The building will be demolished or sold”. According to De
Morgan’s law, the negation of this statement is “The building will not be demolished and will not
be sold”.
Another example: suppose the statement “x is a whole number and an integer”. According to De
Morgan’s law, the negation of this statement is “x is not a whole number nor an integer”.
Example: Use De Morgan’s law to construct the opposite or negation of the statement “It
is prohibited to bring pets or sharp objects in the hotel”.
Solution: “It is allowed to bring pets and sharp objects in the hotel”
Also known as the law of contraposition, this rule states that given a conditional statement or a
logical implication, its contrapositive is logically equivalent to itself.
For instance, the statement “If p is an integer, then it is a rational number” is logically equivalent
to its contrapositive “If p is not a rational number, then p is an integer”. This implies that if the
first statement is true, then the second statement (the contrapositive) is also true (same case if
false)
Negation of an Implication
According to this law, the negation of a logical implication (or a conditional statement) is
logically equivalent to the conjunction of its hypothesis and the negation of its conclusion.
For instance, suppose we want to negate the conditional statement “If I write a poem, then I’m
inspired”. We can form it by simply constructing the conjunction of the hypothesis “I write a
poem” and the negation of the conclusion “I’m not inspired”. Hence, the negation of the given
conditional statement is “I write a poem but I’m not inspired”.
Idempotent laws
This law states that the conjunction of a statement to itself is logically equivalent to the
statement itself. Similarly, the disjunction of a statement to itself is logically equivalent to the
statement itself.
Implication to disjunction
The last logical equivalence rule that we’re going to discuss is the property of a logical
implication or a conditional statement to be written into a logically equivalent disjunction.
This law states that a conditional statement or logical implication is logically equivalent to the
disjunction of negation of the hypothesis and the conclusion.
For instance, consider the statement “If you obtained a 95% in the exam, you will be the class’
valedictorian”. We can rewrite this conditional statement into an equivalent disjunction of the
negation of the hypothesis “you obtain a 95% in the exam” and the conclusion “you will be the
class valedictorian”. Hence, the given conditional statement can be rewritten as a disjunction
this way: “You will not obtain a 95% in the exam or you will be the class valedictorian”.
You might be wondering how this disjunction “You will not obtain a 95% in the exam or you will
be the class valedictorian” becomes logically equivalent to “If you obtained a 95% in the exam,
you will be the class’ valedictorian” Well, analyze the disjunction carefully. It states that either
you will not obtain 95% on an exam or you will be a class valedictorian. This implies that if it
didn’t happen that you did not obtain a 95% in the exam, then it means that you get a 95% in
the exam and you are the valedictorian. This is exactly what the given conditional statement
states that you will be a class valedictorian if you obtain a 95% in the exam.
We summarize the logical equivalence rules we have discussed in the table below:
Associative law (p v q) v r ≡ p v (q v r)
(p Λ q) Λ r ≡ p Λ (q Λ r)
Distributive law p v (q v r) ≡ (p v q) Λ (p v r)
p Λ (q v r) ≡ (p Λ q) v (q Λ r)