Section 2.1 Statements and Logical Operators
Beginning Activity Beginning Activity 1: Compound Statements
Mathematicians often develop ways to construct new mathematical objects from existing mathematical objects. It is possible to form new statements from existing statements by connecting the statements with words such as “and” and “or” or by negating the statement. A logical operator (or connective) on mathematical statements is a word or combination of words that combines one or more mathematical statements to make a new mathematical statement. A compound statement is a statement that contains one or more operators. Because some operators are used so frequently in logic and mathematics, we give them names and use special symbols to represent them.
The conjunction of the statements \(P\) and \(Q\) is the statement “\(P\) and \(Q\)” and its denoted by \(P \wedge Q\) . The statement \(P \wedge Q\) is true only when both \(P\) and \(Q\) are true.
The disjunction of the statements \(P\) and \(Q\) is the statement “\(P\) or \(Q\)” and its denoted by \(P \vee Q\text{.}\) The statement \(P \vee Q\) is true only when at least one of \(P\) or \(Q\) is true.
The negation of the statement \(P\) is the statement “not \(P\)” and is denoted by \(\mynot P\) . The negation of \(P\) is true only when \(P\) is false, and \(\mynot P\) is false only when \(P\) is true.
The implication or conditional is the statement “If \(P\) then \(Q\)” and is denoted by \(P \to Q\) . The statement \(P \to Q\) is often read as “\(P\) implies \(Q\text{,}\)” and we have seen in Section 1.1 that \(P \to Q\) is false only when \(P\) is true and \(Q\) is false.
Some comments about the disjunction..
It is important to understand the use of the operator “or.” In mathematics, we use the “inclusive or” unless stated otherwise. This means that \(P \vee Q\) is true when both \(P\) and \(Q\) are true and also when only one of them is true. That is, \(P \vee Q\) is true when at least one of \(P\) or \(Q\) is true, or \(P \vee Q\) is false only when both \(P\) and \(Q\) are false.
A different use of the word “or” is the “exclusive or.” For the exclusive or, the resulting statement is false when both statements are true. That is, “\(P\) exclusive or \(Q\)” is true only when exactly one of \(P\) or \(Q\) is true. In everyday life, we often use the exclusive or. When someone says, “At the intersection, turn left or go straight,” this person is using the exclusive or.
Some comments about the negation.
Although the statement, \(\mynot P\text{,}\) can be read as “It is not the case that \(P\text{,}\)” there are often better ways to say or write this in English. For example, we would usually say (or write):
The negation of the statement, “391 is prime” is “391 is not prime.”
The negation of the statement, “\(12 \lt 9\)” is “\(12 \geq 9\text{.}\)”
1.
For the statements
\(P\text{:}\) 15 is odd
\(Q\text{:}\) 15 is primewrite each of the following statements as English sentences and determine whether they are true or false. Notice that \(P\) is true and \(Q\) is false.
(a)
\(P \wedge Q\text{.}\)
(b)
\(P \vee Q\)
(c)
\(P \wedge \mynot Q\)
(d)
\(\mynot P \vee \mynot Q\)
2.
For the statements
\(P\text{:}\) 15 is odd
\(R\text{:}\) \(15 \lt 17\)write each of the following statements in symbolic form using the operators \(\wedge\text{,}\) \(\vee\text{,}\) and \(\mynot\text{.}\)
(a)
\(15 \geq 17\text{.}\)
(b)
15 is odd or \(15 \geq 17\text{.}\)
(c)
15 is even or \(15 \lt 7\)
(d)
15 is odd and \(15 \geq 17\text{.}\)
Beginning Activity Beginning Activity 2: Truth Values of Statements
We will use the following two statements for all of this activity:
\(P\) is the statement “It is raining.”
\(Q\) is the statement “Daisy is playing golf.”
In each of the following four parts, a truth value will be assigned to statements \(P\) and \(Q\text{.}\) For example, in Question (1), we will assume that each statement is true. In Question (2), we will assume that \(P\) is true and \(Q\) is false. In each part, determine the truth value of each of the following statements:
Which of the four statements in List 2.1 are true and which are false in each of the following four situations?
1.
When \(P\) is true (it is raining) and \(Q\) is true (Daisy is playing golf).
2.
When \(P\) is true (it is raining) and \(Q\) is false (Daisy is not playing golf).
3.
When \(P\) is false (it is not raining) and \(Q\) is true (Daisy is playing golf).
4.
When \(P\) is false (it is not raining) and \(Q\) is false (Daisy is not playing golf).
In the beginning activities for this section, we learned about compound statements and their truth values. This information can be summarized with the following truth tables:
\(P\) | \(\mynot P\) |
T | F |
F | T |
\(P\) | \(Q\) | \(P \wedge Q\) |
T | T | T |
T | F | F |
F | T | F |
F | F | F |
\(P\) | \(Q\) | \(P \vee Q\) |
T | T | T |
T | F | T |
F | T | T |
F | F | F |
\(P\) | \(Q\) | \(P \to Q\) |
T | T | T |
T | F | F |
F | T | T |
F | F | T |
Rather than memorizing the truth tables, for many people it is easier to remember the rules summarized in Table 2.2.
Operator | Symbolic Form | Summary of Truth Values |
---|---|---|
Conjunction | \(P \wedge Q\) | True only when both \(P\) and \(Q\) are true |
Disjunction | \(P \vee Q\) | False only when both \(P\) and \(Q\) are false |
Negation | \(\mynot P\) | Opposite truth value of \(P\) |
Conditional | \(P \to Q\) | False only when \(P\) is true and \(Q\) is false |
Subsection Other Forms of Conditional Statements
Conditional statements are extremely important in mathematics because almost all mathematical theorems are (or can be) stated as a conditional statement in the following form:
If “certain conditions are met,” then “something happens.”It is imperative that all students studying mathematics thoroughly understand the meaning of a conditional statement and the truth table for a conditional statement.
We also need to be aware that in the English language, there are other ways for expressing the conditional statement \(P \to Q\) other than “If \(P\text{,}\) then \(Q\text{.}\)” Following are some common ways to express the conditional statement \(P \to Q\) in the English language:
If \(P\text{,}\) then \(Q\text{.}\)
\(P\) implies \(Q\text{.}\)
\(P\) only if \(Q\text{.}\)
\(Q\) if \(P\text{.}\)
Whenever \(P\) is true, \(Q\) is true.
\(Q\) is true whenever \(P\) is true.
\(Q\) is necessary for \(P\text{.}\) (This means that if \(P\) is true, then \(Q\) is necessarily true.)
\(P\) is sufficient for \(Q\text{.}\) (This means that if you want \(Q\) to be true, it is sufficient to show that \(P\) is true.)
In all of these cases, \(P\) is the hypothesis of the conditional statement and \(Q\) is the conclusion of the conditional statement.
Progress Check 2.3. The “Only If” Statement.
Recall that a quadrilateral is a four-sided polygon. Let \(S\) represent the following true conditional statement:
If a quadrilateral is a square, then it is a rectangle.
Write this conditional statement in English using
(a)
the word “whenever”
Whenever a quadrilateral is a square, it is a rectangle, or a quadrilateral is a rectangle whenever it is a square.
(b)
the phrase “only if”
A quadrilateral is a square only if it is a rectangle.
(c)
the phrase “is necessary for”
Being a rectangle is necessary for a quadrilateral to be a square.
(d)
the phrase “is sufficient for”
Being a square is sufficient for a quadrilateral to be a rectangle.
Subsection Constructing Truth Tables
Truth tables for compound statements can be constructed by using the truth tables for the basic connectives. To illustrate this, we will construct a truth table for \(\left( {P \wedge \mynot Q} \right) \to R\text{.}\) The first step is to determine the number of rows needed.
For a truth table with two different simple statements, four rows are needed since there are four different combinations of truth values for the two statements. We should be consistent with how we set up the rows. The way we will do it in this text is to label the rows for the first statement with (T, T, F, F) and the rows for the second statement with (T, F, T, F). All truth tables in the text have this scheme.
For a truth table with three different simple statements, eight rows are needed since there are eight different combinations of truth values for the three statements. Our standard scheme for this type of truth table is shown in Table 2.4.
The next step is to determine the columns to be used. One way to do this is to work backward from the form of the given statement. For \(\left( {P \wedge \mynot Q} \right) \to R\text{,}\) the last step is to deal with the conditional operator \(\left( \to \right)\text{.}\) To do this, we need to know the truth values of \(\left( {P \wedge \mynot Q} \right)\) and \(R\text{.}\) To determine the truth values for \(\left( {P \wedge \mynot Q} \right)\text{,}\) we need to apply the rules for the conjunction operator \(\left( \wedge \right)\) and we need to know the truth values for \(P\) and \(\mynot Q\text{.}\)
Table 2.4 is a completed truth table for \(\left( {P \wedge \mynot Q} \right) \to R\) with the step numbers indicated at the bottom of each column. The step numbers correspond to the order in which the columns were completed.
\(P\) | \(Q\) | \(R\) | \(\mynot Q\) | \(P \wedge \mynot Q\) | \(\left( P \wedge \mynot Q \right) \to R\) |
---|---|---|---|---|---|
T | T | T | F | F | T |
T | T | F | F | F | T |
T | F | T | T | T | T |
T | F | F | T | T | F |
F | T | T | F | F | T |
F | T | F | F | F | T |
F | F | T | T | F | T |
F | F | F | T | F | T |
1 | 1 | 1 | 2 | 3 | 4 |
When completing the column for \(P \wedge \mynot Q\text{,}\) remember that the only time the conjunction is true is when both \(P\) and \(\mynot Q\) are true.
When completing the column for \(\left( {P \wedge \mynot Q} \right) \to R\text{,}\) remember that the only time the conditional statement is false is when the hypothesis \(\left( {P \wedge \mynot Q} \right)\) is true and the conclusion, \(R\text{,}\) is false.
The last column entered is the truth table for the statement \(\left( {P \wedge \mynot Q} \right) \to R\) using the setup in the first three columns.
Progress Check 2.5. Constructing Truth Tables.
Construct a truth table for each of the following statements:
(a)
\(P \wedge \mynot Q\)
(b)
\(\mynot \left( {P \wedge Q} \right)\)
(c)
\(\mynot P \wedge \mynot Q\)
(d)
\(\mynot P \vee \mynot Q\)
\(P\) | \(Q\) | \(P \wedge \mynot Q\) | \(\mynot \left( P \wedge Q \right)\) | \(\mynot P \wedge \mynot Q\) | \(\mynot P \vee \mynot Q\) |
T | T | F | F | F | F |
T | F | T | T | F | T |
F | T | F | T | F | T |
F | F | F | T | T | T |
Statements (2) and (4) have the same truth table.
Do any of these statements have the same truth table?
Subsection The Biconditional Statement
Some mathematical results are stated in the form “\(P\) if and only if \(Q\)” or “\(P\) is necessary and sufficient for \(Q\text{.}\)” An example would be, “A triangle is equilateral if and only if its three interior angles are congruent.” The symbolic form for the biconditional statement “\(P\) if and only if \(Q\)” is \(P \leftrightarrow Q\text{.}\) In order to determine a truth table for a biconditional statement, it is instructive to look carefully at the form of the phrase “\(P\) if and only if \(Q\text{.}\)” The word “and” suggests that this statement is a conjunction. Actually it is a conjunction of the statements “\(P\) if \(Q\)” and “\(P\) only if \(Q\text{.}\)” The symbolic form of this conjunction is \(\left[ {\left( {Q \to P} \right) \wedge \left( {P \to Q} \right)} \right]\text{.}\)
Progress Check 2.6. The Truth Table for the Biconditional Statement.
Complete a truth table for \(\left[ {\left( {Q \to P} \right) \wedge \left( {P \to Q} \right)} \right]\text{.}\) Use the following columns: \(P\text{,}\) \(Q\text{,}\) \(Q \to P\text{,}\) \(P \to Q\text{,}\) and \(\left[ {\left( {Q \to P} \right) \wedge \left( {P \to Q} \right)} \right]\text{.}\) The last column of this table will be the truth table for \(P \leftrightarrow Q\text{.}\)
Subsection Other Forms of the Biconditional Statement
As with the conditional statement, there are some common ways to express the biconditional statement, \(P \leftrightarrow Q\text{,}\) in the English language. For example,
\(P\) if and only if \(Q\text{.}\)
\(P\) implies \(Q\) and \(Q\) implies \(P\text{.}\)
\(P\) is necessary and sufficient for \(Q\text{.}\)
Subsection Tautologies and Contradictions
Definition.
A tautology is a compound statement \(S\) that is true for all possible combinations of truth values of the component statements that are part of \(S\text{.}\) A contradiction is a compound statement that is false for all possible combinations of truth values of the component statements that are part of \(S\text{.}\)
That is, a tautology is necessarily true in all circumstances, and a contradiction is necessarily false in all circumstances.
Progress Check 2.7. Tautologies and Contradictions.
For statements \(P\) and \(Q\text{:}\)
(a)
Use a truth table to show that \(\left( {P \vee \mynot P} \right)\) is a tautology.
(b)
Use a truth table to show that \(\left( {P \wedge \mynot P} \right)\) is a contradiction.
(c)
Use a truth table to determine if \(P \to (P \vee Q)\) is a tautology, a contradiction, or neither.
\(P\) | \(\mynot P\) | \(P \vee \mynot P\) | \(P \wedge \mynot P\) |
T | F | T | F |
F | T | T | F |
\(P\) | \(Q\) | \(P \vee Q\) | \(P \to (P \vee Q)\) |
T | T | T | T |
T | F | T | T |
F | T | T | T |
F | F | F | T |
Exercises Exercises
1.
Suppose that Daisy says, “If it does not rain, then I will play golf.” Later in the day you come to know that it did rain but Daisy still played golf. Was Daisy's statement true or false? Support your conclusion.
The statement was true. When the hypothesis is false, the conditional statement is true.
2.
Suppose that \(P\) and \(Q\) are statements for which \(P \to Q\) is true and for which \(\mynot Q\) is true. What conclusion (if any) can be made about the truth value of each of the following statements?
(a)
\(P\)
\(P\) is false.
(b)
\(P \wedge Q\)
\(P \wedge Q\) is false.
(c)
\(P \vee Q\)
\(P \vee Q\) is false.
3.
Suppose that \(P\) and \(Q\) are statements for which \(P \to Q\) is false. What conclusion (if any) can be made about the truth value of each of the following statements?
(a)
\(\mynot P \to Q\)
(b)
\(Q \to P\)
(c)
\(P \vee Q\)
4.
Suppose that \(P\) and \(Q\) are statements for which \(Q\) is false and \(\mynot P \to Q\) is true (and it is not known if \(R\) is true or false). What conclusion (if any) can be made about the truth value of each of the following statements?
(a)
\(\mynot Q \to P\)
(b)
\(P\)
(c)
\(P \wedge R\)
Statement \(P\) is true but since we do not know if \(R\) is true or false, we cannot tell if \(P \wedge R\) is true or false.
(d)
\(R \to \mynot P\)
5.
Construct a truth table for each of the following statements:
(a)
\(P \to Q\)
\(P\) | \(Q\) | \(P \to Q\) |
T | T | T |
T | F | F |
F | T | T |
F | T | T |
(b)
\(Q \to P\)
\(P\) | \(Q\) | \(Q \to P\) |
T | T | T |
T | F | T |
F | T | F |
F | F | T |
(c)
\(\mynot P \to \mynot Q\)
\(P\) | \(Q\) | \(Q \to P\) |
T | T | T |
T | F | T |
F | T | F |
F | F | T |
(d)
\(\mynot Q \to \mynot P\)
\(P\) | \(Q\) | \(P \to Q\) |
T | T | T |
T | F | F |
F | T | T |
F | T | T |
(e)
Do any of these statements have the same truth table?
Statements (a) and (d) have the same truth table. Statements (b) and (c) have the same truth table.
6.
Construct a truth table for each of the following statements:
(a)
\(P \vee \mynot Q\)
(b)
\(\mynot (P \vee Q)\)
(c)
\(\mynot P \vee \mynot Q\)
(d)
\(\mynot P \wedge \mynot Q\)
(e)
Do any of these statements have the same truth table?
7.
Construct truth tables for \(P \wedge \left( {Q \vee R} \right)\) and \(\left( {P \wedge Q} \right) \vee \left( {P \wedge R} \right)\text{.}\) What do you observe?
\(P\) | \(Q\) | \(R\) | \(P \wedge (Q \vee R)\) | \((P \wedge Q) \vee (P \wedge R)\) |
T | T | T | T | T |
T | T | F | T | T |
T | F | T | T | T |
T | F | F | F | F |
F | T | T | F | F |
F | T | F | F | F |
F | F | T | F | F |
F | F | F | F | F |
The two statements have the same truth table.
8.
Suppose each of the following statements is true.
Laura is in the seventh grade.
Laura got an A on the mathematics test or Sarah got an A on the mathematics test.
If Sarah got an A on the mathematics test, then Laura is not in the seventh grade.
If possible, determine the truth value of each of the following statements. Carefully explain your reasoning.
(a)
Laura got an A on the mathematics test.
(b)
Sarah got an A on the mathematics test.
(c)
Either Laura or Sarah did not get an A on the mathematics test.
9.
Let \(P\) stand for “the integer \(x\) is even,” and let \(Q\) stand for “\(x^2\) is even.” Express the conditional statement \(P \to Q\) in English using
(a)
The “if then” form of the conditional statement
(b)
The word “implies”
(c)
The “only if” form of the conditional statement
The integer \(x\) is even only if \(x^2\) is even.
(d)
The phrase “is necessary for”
For the integer \(x\) to be even, it is necessary that \(x^2\) be even.
(e)
The phrase “is sufficient for”
10.
Repeat Exercise 9 for the conditional statement \(Q \to P\text{.}\)
11.
For statements \(P\) and \(Q\text{,}\) use truth tables to determine if each of the following statements is a tautology, a contradiction, or neither.
(a)
\(\mynot Q \vee (P \to Q)\text{.}\)
\(\mynot Q \vee (P \to Q)\) is a tautology.
(b)
\(Q \wedge (P \wedge \mynot Q)\text{.}\)
\(Q \wedge (P \wedge \mynot Q)\) is a contradiction.
(c)
\((Q \wedge P) \wedge (P \to \mynot Q)\text{.}\)
\((Q \wedge P) \wedge (P \to \mynot Q)\) is a contradiction.
(d)
\(\mynot Q \to (P \wedge \mynot P)\text{.}\)
\(\mynot Q \to (P \wedge \mynot P)\) is neither a tautology nor a contradiction.
12.
For statements \(P\text{,}\) \(Q\text{,}\) and \(R\text{:}\)
(a)
Show that \(\left[ (P \to Q) \wedge P \right] \to Q\) is a tautology.
Note: In symbolic logic, this is an important logical argument form called modus ponens.
(b)
Show that \(\left[ (P \to Q) \wedge (Q \to R) \right] \to (P \to R)\) is a tautology.
Note: In symbolic logic, this is an important logical argument form called syllogism.
Activity 4. Working with Conditional Statements.
(a)
Complete the following table:
English Form | Hypothesis | Conclusion | Symbolic Form |
---|---|---|---|
If \(P\text{,}\) then \(Q\text{.}\) | \(P\) | \(Q\) | \(P \to Q\) |
\(Q\) only if \(P\text{.}\) | \(Q\) | \(P\) | \(Q \to P\) |
\(P\) is necessary for \(Q\text{.}\) | |||
\(P\) is sufficient for \(Q\text{.}\) | |||
\(Q\) is necessary for \(P\text{.}\) | |||
\(P\) implies \(Q\text{.}\) | |||
\(P\) only if \(Q\text{.}\) | |||
\(P\) if \(Q\text{.}\) | |||
If \(Q\) then \(P\text{.}\) | |||
If \(\neg Q\text{,}\) then \(\neg P\text{.}\) | |||
If \(P\text{,}\) then \(Q \wedge R\text{.}\) | |||
If \(P \vee Q\text{,}\) then \(R\text{.}\) |
Activity 5. Working With Truth Values of Statements.
Suppose that \(P\) and \(Q\) are true statements, that \(U\) and \(V\) are false statements, and that \(W\) is a statement and it is not known if \(W\) is true or false.
Which of the following statements are true, which are false, and for which statements is it not possible to determine if it is true or false? Justify your conclusions.
(a)
\((P \vee Q) \vee (U \wedge W)\)
(b)
\(P \wedge (Q \to W)\)
(c)
\(P \wedge (W \to Q)\)
(d)
\(W \to (P \wedge U)\)
(e)
\(W \to (P \wedge \mynot U)\)
(f)
\((\mynot P \vee \mynot U) \wedge (Q \vee \mynot V)\)
(g)
\((P \wedge \mynot V) \wedge (U \vee W)\)
(h)
\((P \vee \mynot Q) \to (U \wedge W)\)
(i)
\((P \vee W) \to (U \wedge W)\)
(j)
\((U \wedge \mynot V) \to (P \wedge W)\)