Truth Table
Truth Table
General Mathematics
TRUTH TABLE
Gen Math | MODULE 7
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
KEY CONCEPT: Here is the summary of logical operators that is very essential for this
module:
LESSON PROPER:
TRUTH TABLE
A truth table is a mathematical table used to determine if a compound statement is true or false.
The truth value of a statement is the classification as true or false which denoted by T or F.
A truth table is a listing of all possible combinations of the individual statements as true or false,
along with the resulting truth value of the compound statements. Truth tables are an aide in
distinguishing valid and invalid arguments.
In this lesson, we will learn the basic rules needed to construct a truth table and look at some
examples of truth tables. Each logical operators has its own truth table.
p ~p
T F
F T
Page 1 of 3
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
p^q
p q p^q
T T T
T F F
F T F
F F F
pvq
p q p^q
T T T
T F T
F T T
F F F
Page 2 of 3
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
p q p↔q
T T T
T F F
F T F
F F T
You should remember --- or be able to construct --- the truth tables for the logical connectives. You'll
use these tables to construct tables for more complicated sentences. It's easier to demonstrate what
to do than to describe it in words, so you'll see the procedure worked out in the examples.
Page 3 of 3
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
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 23 =
8 possibilities.
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.
Steps:
a. Construct a table for the premises p and q by listing all the alternatives for p and q (there
are only two premises thus there will be 4 rows)
p q
T T
T F
F T
F F
b. In the third column, list all the possible values of (based on the truth table of conjuction)
p q
T T T
T F F
F T F
F F F
p q ~(p^q)
T T T F
T F F T
F T F T
F F F T
a. Construct a table for the premises p and q by listing all the alternatives for p and q
p q
T T
T F
F T
F F
Page 1 of 6
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
p q ~p
T T F
T F F
F T T
F F T
c. In the fourth column, list all possible values of p →q (based on the truth table of conditional)
p q ~p p →q
T T F T
T F F F
F T T T
F F T T
p q ~p p →q ~p ^ (p →q)
T T F T F
T F F F F
F T T T T
F F T T T
a. Construct a table for the premises p and q by listing all the alternatives for p , q and r. (For
this case, there are 8 possible alternatives (23 = 8).
p q r
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
d. In the last column, write all the truth values for the biconditional.
p q r (p v r) q (p v r) ↔ (q)
T T T T F F
T T F T F F
T F T T T T
T F F T T T
F T T T F F
F T F F F T
F F T T T T
F F F F T F
NOTE:
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.
The opposite of a tautology is a CONTRADICTION, a formula which is "always false". In other words, a
contradiction is false for every assignment of truth values to its simple components.
If two or more compound proposition has the same truth table, then they are LOGICALLY
EQUIVALENT. Two statements X and Y are logically equivalent if X ↔ Y is a tautology.
Another way to say this is: For each assignment of truth values to the simple statements which make
up X and Y, the statements X and Y have identical truth values.
a. Construct a table for the premises p and q by listing all the alternatives for p and q
p q
T T
T F
F T
F F
b. Write the truth values for (p→q) and (q→p) in the third and fourth column, respectively.
p q (p→q) (q→p)
T T T T
Page 3 of 6
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
T F F T
F T T F
F F T T
c. In the last column, list all the truth values for (p→q) v (q→p).
The last column contains only T's. Therefore, the formula is a tautology.
p q p→q ~p ~p v q
T T T F T
T F F F F
F T T T T
F F T T T
Since the columns for p→q and ~p v q 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. This can also be written as (p→q) ↔ (~p v q).
Example 6. Show that the inverse and the converse of a conditional are logically equivalent.
Let p→q be the conditional statement, ~p → ~q be the inverse and q → p be the converse.
Since the columns for ~p → ~q and q → p are identical, the two statements are logically equivalent.
This can also be written as (~p → ~q) ↔ (q → p).
TRUTH VALUES
You can see that constructing truth tables for statements with lots of connectives or lots of simple
statements is pretty tedious and error-prone. While there might be some applications of this (e.g. to
digital circuits), at some point the best thing would be to write a program to construct truth tables (and
this has surely been done).
The point here is to understand how the truth value of a complex statement depends on the
truth values of its simple statements and its logical connectives. In most work, mathematicians don't
normally use statements which are very complicated from a logical point of view.
Page 4 of 6
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
Example:
p : 15 > 10 (True)
q : 5 < 7 (True)
1. p ^ q
TRUE
T T
Explanation:
This is a conjunction, let us refer to the truth table for conjunctions
p q p^q
T T T
T F F
F T F
F F F
Since both propositions are true, the statement is true (row 1 of truth table for
conjunctions).
2.
FALSE
F T
Explanation:
This is a combination of conjunction and negation.
p q p^q
T T F F
3. p v q
TRUE
T F
Explanation:
This is a combination of disjunction and negation.
p q pvq
T T F T
Page 5 of 6
General Mathematics 1st Trimester, S.Y. 2022-2023
Governor Pack Road, Baguio City, Philippines 2600
Tel. Nos.: (+6374) 442-3316, 442-8220; 444-2786;
442-2564; 442-8219; 442-8256; Fax No.: 442-6268 Grade Level/Section: Grade 11
Email: [email protected]; Website: www.uc-bcf.edu.ph
Propositions p and q are true; however, the statement involves a negated q which makes
the proposition ( false. Therefore, we are finding the truth value of a T or F which results to
T. A disjunction (or) is true as long as one proposition is true.
p q q pvq q → (p v q)
T T F T T
p q q p v q q ↔ (p v q)
F F T T T
Page 6 of 6