68 KiB
Exercise Set 2.1
Page 74
In each of 1-4 represent the common form of each argument using letters to stand for component sentences, and fill in the blanks so that the argument in part (b) has the same logical form as the argument in part (a).
a.
If all integers are rational, then the number 1 is rational.
All integers are rational.
Therefore, the number 1 is rational.
If p, then q.
p
Therefore, q
b.
If all algebraic expressions can be written in prefix notation ,then
"(a^2 + 2b)(a^2 - b) can be written in prefix notation.".
"All algebraic expressions can be written in prefix notation".
Therefore, (a + 2b)(a^2 - b) can be written in prefix notation.
a.
If all computer programs contain errors, then this program contains an error.
This program does not contain an error.
Therefore, it is not the case that all computer programs contain errors.
If p, then \neg q.
\neg q.
Therefore \neg p.
b.
If ______, then ______.
"2 is odd"
"all prime numbers are odd."
2 is not odd.
Therefore, it is not the case that all prime numbers are odd.
a.
This number is even or this number is odd.
This number is not even.
Therefore, this number is odd.
Either p or q.
\neg p
Therefore q
b.
______ or logic is confusing.
"My mind is shot"
My mind is not shot.
Therefore, ______.
"the logic is confusing."
a.
If the program syntax is faulty, then the computer will generate an error message.
If the computer generates an error message, then the program will not run.
Therefore, if the program syntax is faulty, then the program will not run.
If p, then q.
If q then \neg r.
Therefore, if p, then \neg r.
b.
If this simple graph ______, then it is complete.
If this graph ______, then any two of its vertices can be joined by a path.
Therefore, if this simple graph has 4 vertices and 6 edges, then ______.
"has 4 vertices"
"has 6 edges"
"any two of its vertices can be joined by a path."
- Indicate which of the following sentences are statements.
a. 1,024 is the smallest four-digit number that is a perfect square.
This is a statement (a true one).
b. She is a mathematics major.
This is a statement.
c. 128 = 2^6
This is a statement.
d. x = 2^6
This is not a statement.
Write the statements in 6-9 in symbolic form using the symbols \neg, \wedge,
\vee and the indicated letters to represent component statements.
- Let
s ="stocks are increasing" andi ="interest rates are steady."
a. Stocks are increasing but interest rates are steady.
s \wedge i
b. Neither are stocks increasing nor are interest rates steady.
\neg s \wedge \neg i
- Juan is a math major but not a computer science major. (
m ="Juan is a math major,"c ="Juan is a computer science major")
m \wedge \neg c
- Let
h ="John is healthy,"w ="John is wealthy," ands ="John is wise."
a. John is healthy and wealthy but not wise.
(h \wedge w \wedge) \neg s
b. John is not wealthy but he is healthy and wise.
\neg w \wedge (h \wedge s)
c. John is neither healthy, wealthy, nor wise.
(\neg h \wedge \neg w) \wedge \neg s
d. John is neither wealthy nor wise, but he is healthy.
(\neg w \wedge \neg s) \wedge h
e. John is wealthy, but he is not both healthy and wise.
h \wedge (\neg h \neg s)
- Let
p ="x > 5,"q ="x = 5," andr ="10 > x."
a. x \geq 5
p \ vee q
b. 10 > x > 5
r \wedge p
c. 10 > x \geq 5
r \wedge (p \vee q)
- Let
pbe the statement "DATAENDFLAG is off,"qthe statement "ERROR equals 0," andrthe statement "SUM is less than 1,000." Express the following sentences in symbolic notation.
a. DATAENDFLAG is off, ERROR equals 0, and SUM is less than 1,000.
p \wedge q \wedge r
b. DATAENDFLAG is off but ERROR is not equal to 0.
p \wedge \neg q
c. DATAENDFLAG is off; however, ERROR is not 0 or SUM is greater than or equal to 1,000.
p \wedge (\neg q \vee \neg r)
e. Either DATAENDFLAG is on or it is the case that both ERROR equals 0 and SUM is less than 1,000.
\neg p \vee (q \wedge r)
- In the following sentence, is the word or used in its inclusive or exclusive sense? A team wins the playoffs if it wins two games in a row or a total of three games.
This is an inclusive or, as it is possible for the team to win two games in a row and a total of three games.
Write truth tables for the statement forms 12-15.
\neg p \wedge q
p |
q |
\neg p |
\neg p \wedge q |
|---|---|---|---|
| T | T | F | F |
| T | F | F | F |
| F | T | T | T |
| F | F | T | F |
\neg (p \wedge q) \vee (p \vee q)
p |
q |
(p \wedge q) |
\neg (p \wedge q) |
(p \vee q) |
\neg (p \wedge q) \vee (p \vee q) |
|---|---|---|---|---|---|
| T | T | T | F | T | T |
| T | F | F | T | T | T |
| F | T | F | T | T | T |
| F | F | F | T | F | T |
p \wedge (q \wedge r)
p |
q |
r |
(q \wedge r) |
p \wedge (q \wedge r) |
|---|---|---|---|---|
| T | T | T | T | T |
| T | T | F | F | F |
| T | F | T | F | F |
| T | F | F | F | F |
| F | T | T | T | F |
| F | T | F | F | F |
| F | F | T | F | F |
| F | F | F | F | F |
p \wedge (\neg q \vee r)
p |
q |
r |
(q \vee r) |
\neg (q \vee r) |
p \wedge (\neg q \vee r) |
|---|---|---|---|---|---|
| T | T | T | T | F | F |
| T | T | F | T | F | F |
| T | F | T | T | F | F |
| T | F | F | F | T | T |
| F | T | T | T | F | F |
| F | T | F | T | F | F |
| F | F | T | T | F | F |
| F | F | F | F | T | F |
Determine whether the statement forms in 16-24 are logically equivalent. In each case, construct a truth table and include a sentence justifying your answer. Your sentence should show that you understand the meaning of logical equivalence.
p \vee (p \wedge q) \text{ and } p
p |
q |
(p \wedge q) |
p \vee (p \wedge q) |
|---|---|---|---|
| T | T | T | T |
| T | F | F | T |
| F | T | F | F |
| F | F | F | F |
As the columns for both p and p \vee (p \wedge q) have the same truth
values, they can be said to be equivalent. This proves one of the absorption
laws.
\neg (p \wedge q) \text{ and } \neg p \wedge \neg q
p |
q |
\neg p |
\neg q |
(p \wedge q) |
\neg (p \wedge q) |
\neg p \wedge \neg q |
|---|---|---|---|---|---|---|
| T | T | F | F | T | F | F |
| T | F | F | T | F | T | F |
| F | T | T | F | F | T | F |
| F | F | T | T | F | T | T |
No \neg (p \wedge q) \cancel{\equiv} \neg p \wedge \neg q, as the columns for
both \neg (p \wedge q) and \neg p \wedge \neg q do not have the same truth
values.
p \vee \mathbf{t} \text{ and } \mathbf{t}
p |
\mathbf{t} |
p \vee \mathbf{t} |
|---|---|---|
| T | T | T |
| F | T | T |
Yes, p \vee \mathbf{t} \equiv \mathbf{t}, proving one of the universal bound
laws.
p \wedge \mathbf{t} \text{ and } p
p |
\mathbf{t} |
p \wedge \mathbf{t} |
|---|---|---|
| T | T | T |
| F | T | F |
Yes, p \wedge \mathbf{t} \equiv p, proving one of the identity laws.
p \wedge \mathbf{c} \text{ and } p \vee \mathbf{c}
p |
\mathbf{c} |
p \wedge \mathbf{c} |
p \vee \mathbf{c} |
|---|---|---|---|
| T | F | F | T |
| F | F | F | F |
No, p \wedge \mathbf{c} \cancel{\equiv} p \vee \mathbf{c}, as their two
column's truth values are not equal.
(p \wedge q) \wedge r \text{ and } p \wedge (q \wedge r)
p |
q |
r |
(p \wedge q) |
(q \wedge r) |
(p \wedge q) \wedge r |
p \wedge (q \wedge r) |
|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T |
| 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 | T | F | F |
| F | T | F | F | F | F | F |
| F | F | T | F | F | F | F |
| F | F | F | F | F | F | F |
Yes, (p \wedge q) \wedge r \equiv p \wedge (q \wedge r), proving one of the
associative laws.
p \wedge (q \vee r) \text{ and } (p \wedge q) \vee (p \wedge r)
p |
q |
r |
(q \vee r) |
(p \wedge q) |
(p \wedge r) |
p \wedge (q \vee r) |
(p \wedge q) \vee (p \wedge r) |
|---|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T | T |
| T | T | F | T | T | F | T | T |
| T | F | T | T | F | T | T | T |
| T | F | F | F | F | F | F | F |
| F | T | T | T | F | F | F | F |
| F | T | F | T | F | F | F | F |
| F | F | T | T | F | F | F | F |
| F | F | F | F | F | F | F | F |
Yes, p \wedge (q \vee r) \equiv (p \wedge q) \vee (p \wedge r), proving one of
the distributive laws.
(p \wedge q) \vee r \text{ and } p \wedge (q \vee r)
p |
q |
r |
(p \wedge q) |
(q \vee r) |
(p \wedge q) \vee r |
p \wedge (q \vee r) |
|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T |
| T | T | F | T | T | T | T |
| T | F | T | F | T | T | T |
| T | F | F | F | F | F | F |
| F | T | T | F | T | T | F |
| F | T | F | F | T | F | F |
| F | F | T | F | T | T | F |
| F | F | F | F | F | F | F |
No, (p \wedge q) \vee r \cancel{\equiv} p \wedge (q \vee r), as their columns
in the truth table do not have the same truth values.
(p \vee q) \vee (p \wedge r) \text{ and } (p \vee q) \wedge r
p |
q |
r |
(p \vee q) |
(p \wedge r) |
(p \vee q) \vee (p \wedge r) |
(p \vee q) \wedge r |
|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T |
| T | T | F | T | F | T | F |
| T | F | T | T | T | T | T |
| T | F | F | T | F | T | F |
| F | T | T | T | F | T | T |
| F | T | F | T | F | T | F |
| F | F | T | F | F | F | F |
| F | F | F | F | F | F | F |
No, (p \vee q) \vee (p \wedge r) \cancel{\equiv} (p \vee q) \wedge r, as their
two columns in the truth table do not have the same truth values.
Use De Morgan's laws to write negations for the statements in 25-30.
- Hal is a math major and Hal's sister is a computer science major.
Hal is not a math major or Hal's sister is not a computer science major.
- Sam is an orange belt and Kate is a red belt.
Sam is not an orange belt or Kate is not a red belt.
- The connector is loose or the machine is unplugged.
The connector is not loose and the machine is not unplugged.
- The train is late or my watch is fast.
The train is not late and my watch is not fast.
- This computer program has a logical error in the first ten lines or it is being run with an incomplete data set.
This computer program does not have a logical error in the first ten lines and it is not being run with an incomplete data set.
- The dollar is at an all-time high and the stock market is at a record low.
The dollar is not at an all-time high or the stock market is not at a record low.
- Let
sbe a string of length 2 with characters from\{0, 1, 2\}, and define statementsa,b,c, anddas follows:
a = "the first character of s is 0"
b = "the first character of s is 1"
c = "the second character of s is 1"
c = "the second character of s is 2".
Describe the set of all strings for which each of the following is true.
a. (a \vee b) \wedge (c \vee d)
This is the full given set \{0, 1, 2\} as the first letter could be a 0 or 1
and the second letter could be a 1 or 2.
b. (\neg(a \vee b)) \wedge (c \vee d)
This is the set \{1, 2\}, as the first character is neither 0 nor 1, but the
second character is either 1 or 2.
c. ((\neg a) \vee b) \wedge (c \vee (\neg d))
This only has the set \{1\}, as the first condition says the first character
can either be not 0 or 1, while the second character can be either 1 or not 2.
Assume x is a particular real number and use De Morgan's laws to write
negations for the statements in 32-37.
-2 < x < 7
-2 \geq x \text{ or } x \geq 7
-10 < x < 2
-10 \geq x \text{ or } x \geq 2
x < 2 \text{ or } x > 5
2 \leq x \leq 5
x \leq -1 \text{ or } x > 1
-1 < x \leq 1
1 > x \geq -3
1 \geq x \text{ or } x < -3
0 > x \geq -7
0 \leq x \text{ or } x < -7
In 38 and 39, imagine that num_orders and num_instock are particular values, such as might occur during execution of a computer program. Write negations for the following statements.
(\text{num_orders } > 100 \text{ and } \text{num_instock } \leq 500) \text{ or } \text{num_instock } < 200
(\text{num_orders } \leq 100 \text{ or } \text{num_instock } > 500) \text{ and } \text{num_instock } \geq 200
(\text{num_orders } < 50 \text{ and } \text{num_instock } > 300) \text{ or } (50 \leq \text{ num_orders } < 75 \text{ and } \text{num_instock} > 500)
(\text{num_orders } \geq 50 \text{ or } \text{num_instock } \leq 300) \text{ and } (50 > \text{ num_orders } \geq 75 \text{ or } \text{num_instock} \leq 500)
Use truth tables to establish which of the statement forms in 40-43 are tautologies and which are contradictions.
(p \wedge q) \vee (\neg p \vee (p \wedge \neg q))
p |
q |
\neg p |
\neg q |
(p \wedge q) |
(p \wedge \neg q) |
(\neg p \vee (p \wedge \neg q)) |
(p \wedge q) \vee (\neg p \vee (p \wedge \neg q)) |
|---|---|---|---|---|---|---|---|
| T | T | F | F | T | F | F | T |
| T | F | F | T | F | T | T | T |
| F | T | T | F | F | F | T | T |
| F | F | T | T | F | F | T | T |
So the statement (p \wedge q) \vee (\neg p \vee (p \wedge \neg q)) is a
tautology as all of its truth values are true.
(p \wedge \neg q) \wedge (\neg p \vee q)
p |
q |
\neg p |
\neg q |
(p \wedge neg q) |
(\neg p \vee q) |
(p \wedge \neg q) \wedge (\neg p \vee q) |
|---|---|---|---|---|---|---|
| T | T | F | F | F | T | F |
| T | F | F | T | T | F | F |
| F | T | T | F | F | T | F |
| F | F | T | T | F | T | F |
So the statement (p \wedge \neg q) \wedge (\neg p \vee q) is a contradiction,
as all of its truth values are false.
((\neg p \wedge q) \wedge (q \wedge r)) \wedge \neg q
p |
q |
r |
\neg p |
\neg q |
(\neg p \wedge q) | (q \wedge r) |
((\neg p \wedge q) \wedge (q \wedge r)) |
((\neg p \wedge q) \wedge (q \wedge r)) \wedge \neg q |
|---|---|---|---|---|---|---|---|---|
| T | T | T | F | F | F | T | F | F |
| T | T | F | F | F | F | F | F | F |
| T | F | T | F | T | F | F | F | F |
| T | F | F | F | T | F | F | F | F |
| F | T | T | T | F | T | T | T | F |
| F | T | F | T | F | T | F | F | F |
| F | F | T | T | T | F | F | F | F |
| F | F | F | T | T | F | F | F | F |
So the statement ((\neg p \wedge q) \wedge (q \wedge r)) \wedge \neg q is a
contradiction as all of its truth values are false.
(\neg p \vee q) \vee (p \wedge \neg q)
p |
q |
\neg p |
\neg q |
(\neg p \vee q) |
(p \wedge \neg q) |
(\neg p \vee q) \vee (p \wedge \neg q) |
|---|---|---|---|---|---|---|
| T | T | F | F | T | F | T |
| T | F | F | T | F | T | T |
| F | T | T | F | T | F | T |
| F | F | T | T | T | F | T |
So the statement (\neg p \vee q) \vee (p \wedge \neg q) is a tautology, as all
of the truth values are true.
- Recall that
a < x < bmeans thata < xandx < b. Alsoa \leq bmeans thata < bora = b. Find all real numbers that satisfy the following inequalities.
a. 2 < x \leq 0
No real numbers satisfy this inequality (x cannot both be greater than 2 and
less than or equal to 0).
b. 1 \leq x < -1
No real numbers satisfy this inequality (x cannot both be greater than or
equal to 1 and also less than -1).
- Determine whether the statements in (a) and (b) are logically equivalent.
a. Bob is both a math and computer science major and Ann is a math major, but Ann is not both a math and computer science major.
(p \wedge q \wedge r) \wedge \neg(r \wedge s)
(p \wedge q \wedge r) \wedge (\neg r \vee \neg s)
p \wedge q \wedge r \wedge \neg s
b. It is not the case that both Bob and Ann are both math and computer science majors, but it is the case that Ann is a math major and Bob is both a math and computer science major.
\neg((p \wedge r) \wedge (q \wedge s)) \wedge (r \wedge (p \wedge q))
(\neg(p \wedge r) \vee \neg(q \wedge s)) \wedge (r \wedge (p \wedge q))
(\neg p \vee \neg r) \vee (\neg q \vee \neg s) \wedge (r \wedge p \wedge q)
\neg s \wedge r \wedge p \wedge q
p \wedge q \wedge r \neg s
Both parts (a) and (b) are logically equivalent.
- Let the symbol
\oplusdenote exclusive or; sop \plus q \equiv (p \vee q) \wedge \neg(p \wedge q). Hence the truth table forp \plus qis as follows:
p |
q |
p \plus q |
|---|---|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
a. Find simpler statement forms that are logically equivalent to p \oplus p
and (p \oplus p) \oplus p.
p |
p |
p \oplus p |
(p \oplus p) \oplus p |
|---|---|---|---|
| T | T | F | T |
| F | F | F | F |
p \oplus p \equiv \mathbf{c}
(p \oplus p) \oplus p \equiv p
b. Is (p \oplus q) \oplus r \equiv p \oplus (q \oplus r)? Justify your answer.
p |
q |
r |
(p \oplus q) |
(q \oplus r) |
(p \oplus q) \oplus r |
p \oplus (q \oplus r) |
|---|---|---|---|---|---|---|
| T | T | T | F | F | T | T |
| T | T | F | F | T | F | F |
| T | F | T | T | T | F | F |
| T | F | F | T | F | T | T |
| F | T | T | T | F | F | F |
| F | T | F | T | T | T | T |
| F | F | T | F | T | T | T |
| F | F | F | F | F | F | F |
They are equivalent, (p \oplus q) \oplus r \equiv p \oplus (q \oplus r), as
their columns in the truth table show they have the same truth values.
c. Is (p \oplus q) \wedge r \equiv (p \wedge r) \oplus (q \wedge r)? Justify
your answer.
p |
q |
r |
(p \oplus q) |
(p \wedge r) |
(q \wedge r) |
(p \oplus q) \wedge r |
(p \wedge r) \oplus (q \wedge r) |
|---|---|---|---|---|---|---|---|
| T | T | T | F | T | T | F | F |
| T | T | F | F | F | F | F | F |
| T | F | T | T | T | F | T | T |
| T | F | F | T | F | F | F | F |
| F | T | T | T | F | T | T | T |
| F | T | F | T | F | F | F | F |
| F | F | T | F | F | F | F | F |
| F | F | F | F | F | F | F | F |
They are equivalent,
(p \oplus q) \wedge r \equiv (p \wedge r) \oplus (q \wedge r), as their
columns in the truth table show they have the same truth values.
- In logic and in standard English, a double negative is equivalent to a positive. There is one fairly common English usage in which a "double positive" is equivalent to a negative. What is it? Can you think of others?
"Yeah, yeah" (see page 902)
In 48 and 49 below, a logical equivalence is derived from Theorem 2.1.1. Supply a reason for each step.
p \vee \neg q \vee (p \wedge q) \equiv p \wedge (\neg q \vee q) \text{ by (a)}
by distributive law
\quad \equiv p \wedge (q \vee \neg q) \text{ by (b)}
by commutative law
\quad \equiv p \wedge \mathbf{t} \text{ by (c)}
by universal bound law
\quad \equiv p \text{ by (d)}
by identity law
Therefore, (p \wedge \neg q) \vee (p \wedge q) \equiv p.
(p \vee \neg q) \wedge (\neg p \vee \neg q)
\quad \equiv (\neg q \vee p) \wedge (\neg q \vee \neg p) \text{ by (a)}
by commutative law
\quad \equiv \neg q \vee (p \wedge \neg p) \text{ by (b)}
by distributive law
\quad \equiv q \vee \mathbf{c} \text{ by (c)}
by universal bound law
\quad \equiv \neg q \text{ by (d)}
by negation law
Therefore, (p \vee \neg q) \wedge (\neg p \vee \neg q) \equiv \neg q.
Use Theorem 2.1.1 to verify the logical equivalences in 50-54. Supply a reason for each step.
(p \wedge \neg q) \vee p \equiv p
(p \wedge \neg q) \vee p \equiv p
p \vee (p \wedge \neg q) \equiv p \text{ by communative law for } \vee
\equiv p \text{ by the absorption law for } \vee \text{ with } \neg q \text{ replacing } q
p \wedge (\neg q \vee p) \equiv p
p \wedge (\neg q \vee p) \equiv p
(p \wedge \neg q) \vee (p \wedge p) \equiv p \text{ by distributive law for } \wedge
(p \wedge \neg q) \vee p \equiv p \text{ by idempotent law for } \wedge
p \vee (p \wedge \neg q) \equiv p \text{ by commutative law for } \vee
\equiv p \text{ by absorption law for } \vee \text{ with } \neg q \text{ replacing } q
\neg(p \vee \neg q) \vee (\neg p \wedge \neg q) \equiv \neg p
\neg(p \vee \neg q) \vee (\neg p \wedge \neg q) \equiv \neg p
(\neg p \wedge q) \vee (\neg p \wedge \neg q) \equiv \neg p \text{ by De Morgan's law for } \vee
\neg p \wedge (q \vee \neg q) \equiv \neg p \text{ by distributive law for } \wedge
\neg p \wedge \mathbf{t} \equiv \neg p \text{ by negation law for } \vee
\neg p \equiv \neg p \text{ by identity law for } \wedge
\neg((\neg p \wedge q) \vee (\neg p \wedge \neg q)) \vee (p \wedge q) \equiv p
\neg((\neg p \wedge q) \vee (\neg p \wedge \neg q)) \vee (p \wedge q) \equiv p
(\neg(\neg p \wedge q) \wedge \neg(\neg p \wedge \neg q)) \vee (p \wedge q) \equiv p \text{ by De Morgan's law for } \vee
((p \vee \neg q) \wedge (p \vee q)) \vee (p \wedge q) \equiv p \text{ by De Morgan's law for } \wedge
(p \vee (\neg q \wedge q)) \vee (p \wedge q) \equiv p \text{ by distributive law for } \vee
(p \vee \mathbf{c}) \vee (p \wedge q) \equiv p \text{ by negation law for } \wedge
p \vee (p \wedge q) \equiv p \text{ by identity law for } \vee
p \equiv p \text{ by absorption law for } \vee
(p \wedge (\neg(\neg p \vee q))) \vee (p \wedge q) \equiv p
(p \wedge (\neg(\neg p \vee q))) \vee (p \wedge q) \equiv p
(p \wedge (p \wedge \neg q)) \vee (p \wedge q) \equiv p \text{ by De Morgan's law for } \vee
((p \wedge p) \wedge \neg q) \vee (p \wedge q) \equiv p \text{ by associative law for } \wedge
(p \wedge \neg q) \vee (p \wedge q) \equiv p \text{ by idempotent law for } \wedge
p \wedge (\neg q \vee q) \equiv p \text{ by distributive law for } \wedge
p \wedge \mathbf{t} \equiv p \text{ by negation law for } \vee
p \equiv p \text{ by identity law for } \wedge
Exercise Set 2.2
Page 86
Rewrite the statements in 1-4 in if-then form.
- This loop will repeat exactly
ntimes if it does not contain a stop or a go to.
"If this lop does not contain a stop or a go to, then it will repeat
exactly N times."
- I am on time for work if I catch the 8:05 bus.
"If I catch the 8:05 bus, then I am on time for work."
- Freeze or I'll shoot.
"If you do not freeze, then I'll shoot."
- Fix my ceiling or I won't pay my rent.
"If you do not fix my ceiling, then I won't pay my rent."
Construct truth tables for the statements forms in 5-11.
\neg p \vee q \to \neg q
p |
q |
\neg p |
\neg q |
\neg p \vee q |
\neg p \vee q \to \neg q |
|---|---|---|---|---|---|
| T | T | F | F | T | F |
| T | F | F | T | F | T |
| F | T | T | F | T | F |
| F | F | T | T | T | T |
(p \vee q) \vee (\neg p \wedge q) \to q
p |
q |
\neg p |
(p \vee q) |
(\neg p \wedge q) |
(p \vee q) \vee (\neg p \wedge q) |
(p \vee q) \vee (\neg p \wedge q) \to q |
|---|---|---|---|---|---|---|
| T | T | F | T | F | T | T |
| T | F | F | T | F | T | F |
| F | T | T | T | T | T | T |
| F | F | T | F | F | F | T |
p \wedge \neg q \to r
p |
q |
r |
\neg q |
p \wedge \neg q |
p \wedge \neg q \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 |
\neg p \vee q \to r
p |
q |
r |
\neg p |
\neg p \vee q |
\neg p \vee q \to r |
|---|---|---|---|---|---|
| T | T | T | F | T | T |
| T | T | F | F | T | F |
| T | F | T | F | F | T |
| T | F | F | F | F | T |
| F | T | T | T | T | T |
| F | T | F | T | T | F |
| F | F | T | T | T | T |
| F | F | F | T | T | F |
p \wedge \neg r \leftrightarrow q \vee r
p |
q |
r |
\neg r |
p \wedge \neg r |
q \vee r |
p \wedge \neg r \leftrightarrow q \vee r |
|---|---|---|---|---|---|---|
| T | T | T | F | F | T | F |
| T | T | F | T | T | T | T |
| T | F | T | F | F | T | F |
| T | F | F | T | T | F | F |
| F | T | T | F | F | T | F |
| F | T | F | T | F | T | F |
| F | F | T | F | F | T | F |
| F | F | F | T | F | F | T |
(p \to r) \leftrightarrow (q \to r)
p |
q |
r |
(p \to r) |
(q \to r) |
(p \to r) \leftrightarrow (q \to r) |
|---|---|---|---|---|---|
| T | T | T | T | T | T |
| T | T | F | F | F | T |
| T | F | T | T | T | T |
| T | F | F | F | T | F |
| F | T | T | T | T | T |
| F | T | F | T | F | F |
| F | F | T | T | T | T |
| F | F | F | T | T | T |
(p \to (q \to r)) \leftrightarrow ((p \wedge q) \to r)
p |
q |
r |
(q \to r) |
(p \wedge q) |
(p \to (q \to r)) |
((p \wedge q) \to r) |
(p \to (q \to r)) \leftrightarrow ((p \wedge q) \to r) |
|---|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T | T |
| T | T | F | F | T | F | F | T |
| T | F | T | T | F | T | T | T |
| T | F | F | T | F | T | T | T |
| F | T | T | T | F | T | T | T |
| F | T | F | F | F | T | T | T |
| F | F | T | T | F | T | T | T |
| F | F | F | T | F | T | T | T |
- Use the logical equivalence established in Example 2.2.3,
p \vee q \to r \equiv (p \to r) \wedge (q \to r), to rewrite the following statement. (Assume thatxrepresents a fixed real number.)
If x > 2 or x < -2, then x^2 > 4.
If x > 2, then x^2 > 4 and if x < -2, then x^2 > 4.
- Use truth tables to verify the following logical equivalences. Include a few words of explanation with your answers.
a. p \to q \equiv \neg p \vee q
p |
q |
\neg p |
p \to q |
\neg p \vee q |
|---|---|---|---|---|
| T | T | F | T | T |
| T | F | F | F | F |
| F | T | T | T | T |
| F | F | T | T | T |
Both columns for p \to q and \neg p \vee q have the same truth values, so
they are logically equivalent.
b. \neg(p \to q) \equiv p \wedge \neg q
p |
q |
\neg q |
(p \to q) |
\neg(p \to q) |
p \wedge \neg q |
|---|---|---|---|---|---|
| T | T | F | T | F | F |
| T | F | T | F | T | T |
| F | T | F | T | F | F |
| F | F | T | T | F | F |
Both columns for \neg(p \to q) and p \wedge \neg q have the same truth
values, so they are logically equivalent.
a. Show that the following statement forms are all logically equivalent:
p \to (q \vee r), (p \wedge \neg q) \to r, and (p \wedge \neg r) \to q
p |
q |
r |
\neg q |
\neg r |
(q \vee r) |
(p \wedge \neg q) |
(p \wedge \neg r) |
p \to (q \vee r) |
(p \wedge \neg q) \to r |
(p \wedge \neg r) \to q |
|---|---|---|---|---|---|---|---|---|---|---|
| T | T | T | F | F | T | F | F | T | T | T |
| T | T | F | F | T | T | F | T | T | T | T |
| T | F | T | T | F | T | T | F | T | T | T |
| T | F | F | T | T | F | T | T | F | F | F |
| F | T | T | F | F | T | F | F | T | T | T |
| F | T | F | F | T | T | F | F | T | T | T |
| F | F | T | T | F | T | F | F | T | T | T |
| F | F | F | T | T | F | F | F | T | T | T |
b. Use the logical equivalences established in part (a) to rewrite the following
sentence in two different ways. (Assume that n represents a fixed integer.)
If n is prime, then n is odd or n is 2.
"If n is prime and n is not odd then n is $2$"
"If n is prime and n is not 2, then n is odd."
- Determine whether the following statement forms are logically equivalent:
p \to (q \to r) and (p \to q) \to r
p |
q |
r |
(q \to r) |
(p \to q) |
p \to (q \to r) |
(p \to q) \to r |
|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T |
| T | T | F | F | F | F | T |
| T | F | T | T | T | T | T |
| T | F | F | T | F | T | T |
| F | T | T | T | T | T | T |
| F | T | F | F | T | T | F |
| F | F | T | T | T | T | T |
| F | F | F | T | T | T | F |
No, they are not equivalent, p \to (q \to r) \cancel{\equiv} (p \to q) \to r
as their truth values are not the same.
In 16 and 17, write each of the two statements in symbolic form and determine whether they are logically equivalent. Include a truth table and a few words of explanation to show that you understand what it means for statements to be logically equivalent.
- If you paid full price, you didn't buy it at Crown Books. You didn't buy it at Crown Books or you paid full price.
p is "You paid full price"
q is "You bought it at Crown Books"
p \to \neg q \text{ and } \neg q \vee p
p |
q |
\neg q |
p \to \neg q |
\neg q \vee p |
|---|---|---|---|---|
| T | T | F | F | T |
| T | F | T | T | T |
| F | T | F | T | F |
| F | F | T | T | T |
No, these two statements are not logically equivalent as their truth tables do not have the same truth values.
p \to \neg q \cancel{\equiv} \neg q \vee p
One could not buy it at Crown Books, and not paid full price, and also one could have paid full price and have also bought it at Crown books.
- If
2is a factor ofnand3is a factor ofn, then6is a factor ofn.2is not a factor ofnor3is not a factor ofnor6is a factor ofn.
p is "2 is a factor of $n$"
q is "3 is a factor of $n$"
r is "6 is a factor of $n$"
p \wedge q \to r\text{ and } \neg p \vee \neg q \vee r
p |
q |
r |
\neg p |
\neg q |
p \wedge q |
\neg p \vee \neg q |
p \wedge q \to r |
\neg p \vee \neg q \vee r |
|---|---|---|---|---|---|---|---|---|
| T | T | T | F | F | T | F | T | T |
| T | T | F | F | F | T | F | F | F |
| T | F | T | F | T | F | T | T | T |
| T | F | F | F | T | F | T | T | T |
| F | T | T | T | F | F | T | T | T |
| F | T | F | T | F | F | T | T | T |
| F | F | T | T | T | F | T | T | T |
| F | F | F | T | T | F | T | T | T |
Yes, they are equivalent, as their truth tables show the same truth values.
p \wedge q \to r \equiv \neg p \vee \neg q \vee r
- Write each of the following three statements in symbolic form and determine which pairs are logically equivalent. Include truth tables and a few words of explanation.
p = "It walks like a duck"
q = "It talks like a duck"
r = "It is a duck"
If it walks like a duck and it talks like a duck, then it is a duck.
p \wedge q \to r
Either it does not walk like a duck or it does not talk like a duck, or it is a duck.
p \vee \neg q \vee r
If it does not walk like a duck and it does not talk like a duck, then it is not a duck.
\neg p \wedge \neg q \to \neg r
p |
q |
r |
\neg p |
\neg q |
\neg r |
p \wedge q |
p \vee \neg q |
\neg p \wedge \neg q |
p \wedge q \to r |
p \vee \neg q \vee r |
\neg p \wedge \neg q \to \neg r |
|---|---|---|---|---|---|---|---|---|---|---|---|
| T | T | T | F | F | F | T | T | F | T | T | T |
| T | T | F | F | F | T | T | T | F | F | T | T |
| T | F | T | F | T | F | F | T | F | T | T | T |
| T | F | F | F | T | T | F | T | F | T | T | T |
| F | T | T | T | F | F | F | F | F | T | T | T |
| F | T | F | T | F | T | F | F | F | T | F | T |
| F | F | T | T | T | F | F | T | T | T | T | F |
| F | F | F | T | T | T | F | T | T | T | T | T |
No, none of these statements are equivalent, as you can see in their corresponding truth table's truth values.
p \wedge q \to r \cancel{\equiv} p \vee \neg q \vee r \cancel{\equiv} \neg p \wedge \neg q \to \neg r
- True or false? The negation of "If Sue is Luiz's mother, then Ali is his cousin" is "If Sue is Luiz's mother, then Ali is not his cousin."
p = "Sue is Luiz's mother"
q = "Ali is his cousin"
Firs statement is:
p \to q
Negation is:
p \wedge \neg q
"Sue is Luiz's mother and Ali is not his cousin."
Second statement is:
p \to \neg q
Negation is:
p \to q
"If Sue is Luiz's mother, then Ali is his cousin."
So no, they are not equivalent:
p \wedge \neg q \cancel{\equiv} p \wedge q
- Write negations for each of the following statements. (Assume that all variables represent fixed quantities or entities, as appropriate.)
a. If P is a square, then P is a rectangle.
p \to q
Negation:
p \wedge \neg q
"P is a square and P is not a rectangle."
b. If today is New Year's Eve, then tomorrow is January.
p \to q
p \wedge \neg q
"Today is New Year's Eve and tomorrow is not January."
c. If the decimal expansion of r is terminating, then r is rational.
"The decimal expansion of r is terminating and r is not rational."
d. If n is prime, then n is odd or n is 2.
n is prime and n is not odd and n is not 2.
e. If x is nonnegative, then x is positive or x is 0.
x is nonnegative and x is both negative and not 0.
f. If Tom is Ann's father, then Jim is her uncle and Sue is her aunt.
Tom is Ann's father and either Jim is not her uncle or Sue is not her aunt.
g. If n is divisible by 6, then n is divisible by 2 and n is divisible
by 3.
n is divisible by 6 and either n is not divisible by 2 or n is not
divisible by 3.
- Suppose that
pandqare statements so thatp \to qis false. Find the truth values of each of the following.
p |
q |
p \to q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
This means that p = T and q = F.
a. \neg p \to q
F \to F = T
b. p \vee q
T \vee F = T
c. q \to p
F \to T = T
- Write contrapositives for the statements of exercise 20.
a. \neg p \to q
\neg q \to p
b. p \vee q
\neg q \to p
c. q \to p
\neg p \to \neg q
- Write the converse and inverse for each statement of exercise 20.
a. \neg p \to q
Converse:
q \to \neg p
Inverse:
p \to \neg q
b. p \vee q
Because the contrapositive is equivalent, we can take:
\neg q \to p
Converse:
p \to \neg q
Inverse:
q \to \neg p
c. q \to p
Converse:
p \to q
Inverse:
\neg q \to \neg p
Use truth tables to establish the truth of each statement in 24-27.
- A conditional statement is not logically equivalent to its converse.
p |
q |
p \to q |
q \to p |
|---|---|---|---|
| T | T | T | T |
| T | F | F | T |
| F | T | T | F |
| F | F | T | T |
As you can see p \to q \cancel{\equiv} q \to p, so a conditional statement is
not equivalent to its converse.
- A conditional statement is not logically equivalent to its inverse.
p |
q |
\neg p |
\neg q |
p \to q |
\neg p \to \neg q |
|---|---|---|---|---|---|
| T | T | F | F | T | T |
| T | F | F | T | F | T |
| F | T | T | F | T | F |
| F | F | T | T | T | T |
As you can see p \to q \cancel{\equiv} \neg p \to \neg q, so a conditional
statement is not equivalent to its inverse.
- A conditional statement and its contrapositive are logically equivalent to each other.
p |
q |
\neg q |
\neg p |
p \to q |
\neg q \to \neg p |
|---|---|---|---|---|---|
| T | T | F | F | T | T |
| T | F | T | F | F | F |
| F | T | F | T | T | T |
| F | F | T | T | T | T |
As you can see p \to q \equiv \neg q \to \neg p, so a conditional statement is
logically equivalent to it's contrapositive.
- The converse and inverse of a conditional statement are logically equivalent to each other.
p |
q |
p \to q |
q \to p |
\neg p \to \neg q |
|---|---|---|---|---|
| T | T | T | T | T |
| T | F | F | T | T |
| F | T | T | F | F |
| F | F | T | T | T |
As you can see, q \to p \equiv \neg p \to \neg q, so the converse and the
inverse of a conditional statement are logically equivalent to each other.
- "Do you mean that you think you can find out the answer to it?" said the March Hare.
"Exactly so," said Alice.
"Then you should say what you mean," the March Hare went on.
"I do," Alice hastily replied; "at least-at least I mean what I say-that's the same thing, you know."
"Not the same thing a bit!" said the Hatter.
"Why, you might just as well say that 'I see what I eat' is the same thing as 'I eat what I see'!"
-from "A Mad Tea-Party" in Alice in Wonderland, by Lewis Carroll
The Hatter is right. "I say what I mean" is not the same thing as "I mean what I say." Rewrite each of these two sentences in if-then form and explain the logical relation between them. (This exercise is referred to in the introduction to Chapter 4.)
p \to q
q \to p
p |
q |
p \to q |
q \to p |
|---|---|---|---|
| T | T | T | T |
| T | F | F | T |
| F | T | T | F |
| F | F | T | T |
You can also rewrite this as "If I say something, I mean it." and "If I mean it, I say something." Even from a linguistic standpoint these are not the same statements. One can "mean it" (be sincere) and never say something, for example.
If statement forms P and Q are logically equivalent, then
P \leftrightarrow Q is a tautology. Conversely, if P \leftrightarrow Q is a
tautology, then P and Q are logically equivalent. Use \leftrightarrow to
convert each of the logical equivalences in 29-31 to a tautology. Then use a
truth table to verify each tautology.
p \to (q \vee r) \equiv (p \wedge \neg q) \to r
(p \to (q \vee r)) \leftrightarrow (p \wedge \neg q \to r)
p |
q |
r |
\neg q |
(q \vee r) |
(p \wedge \neg q) |
p \to (q \vee r) |
(p \wedge \neg q) \to r |
|---|---|---|---|---|---|---|---|
| T | T | T | F | T | F | T | T |
| T | T | F | F | T | F | T | T |
| T | F | T | T | T | T | T | T |
| T | F | F | T | F | T | F | F |
| F | T | T | F | T | F | T | T |
| F | T | F | F | T | F | T | T |
| F | F | T | T | T | F | T | T |
| F | F | F | T | F | F | T | T |
p \wedge (q \vee r) \equiv (p \wedge q) \vee (p \wedge r)
(p \wedge (q \vee r)) \leftrightarrow ((p \wedge q) \vee (p \wedge r))
p |
q |
r |
(q \vee r) |
(p \wedge q) |
(p \wedge r) |
(p \wedge (q \vee r)) |
((p \wedge q) \vee (p \wedge r) \) |
|---|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T | T |
| T | T | F | T | T | F | T | T |
| T | F | T | T | F | T | T | T |
| T | F | F | F | F | F | F | F |
| F | T | T | T | F | F | F | F |
| F | T | F | T | F | F | F | F |
| F | F | T | T | F | F | F | F |
| F | F | F | F | F | F | F | F |
p \to (q \to r) \equiv (p \wedge q) \to r
p \to (q \to r) \leftrightarrow (p \wedge q) \to r
p |
q |
r |
(q \to r) |
(p \wedge q) |
p \to (q \to r) |
(p \wedge q) \to r |
|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T |
| T | T | F | F | T | F | F |
| T | F | T | T | F | T | T |
| T | F | F | T | F | T | T |
| F | T | T | T | F | T | T |
| F | T | F | F | F | T | T |
| F | F | T | T | F | T | T |
| F | F | F | T | F | T | T |
Rewrite each of the statements in 32 and 33 as a conjunction of two if-then statements.
- This quadratic equation has two distinct real roots if, and only if, its discriminant is greater than zero.
"If this quadratic equation has two distinct real roots, then it's discriminant is greater than zero and if this quadratic equation's discriminant is greater than zero, then it has two distinct real roots."
- This integer is even if, and only if, it equals twice some integer.
"If this integer is even, then it equals twice some integer and if this integer is equal to twice some integer, then it is even."
Rewrite the statements in 34 and 35 in if-then form in two ways, one of which is the contrapositive of the other. Use the formal definition of "only if."
- The Cubs will win the pennant only if they win tomorrow's game.
Contrapositive:
"If the Cubs have not won tomorrow's game, then they will not win the pennant."
Only-if:
"If the Cub's won the pennant, then they will have won tomorrow's game."
- Sam will be allowed on Signe's racing boat only if he is an expert sailor.
Contrapositive:
"If Sam is not an expert sailor, then he will not be allowed on Sign'es racing boat."
Only-if:
"If Sam was allowed on Signe's racing boat, then he was an expert sailor."
- Taking the long view on your education, you go to the Prestige Corporation and ask what you should do in college to be hired when you graduate. The personnel director replies that you will be hired only if you major in mathematics or computer science, get a B average or better, and take accounting. You do, in fact, become a math major, get a B+ average, and take accounting. You return to Prestige Corporation, make a formal application, and are turned down. Did the personnel director lie to you?
No, because "only if" means that the conditions have already been met, not conditions that have yet to be met. Because you "become a math major", "get a B+ average", and "take accounting", you have not fulfilled the director's requirements, which is that "You have majored in mathematics or computer science, you have a B average or better, and you have taken accounting."
Some programming languages use statements of the form "r unless $s$" to mean
that as long as s does not happen, then r will happen. More formally:
Definition:
If r and s are statements,
r unless $s$ means if \neg s then r.
In 37-39 rewrite the statements in if-then form.
- Payment will be made on fifth unless a new hearing is granted.
"If a new hearing is not granted, then payment will be made on the fifth."
- Ann will go unless it rains.
"If it does not rain, then Ann will go."
- This door will not open unless a security code is entered.
"If a security code is not entered, then this door will not open."
Rewrite the statements in 40 and 41 in if-then form.
- Catching the 8:05 bus is a sufficient condition for my being on time for work.
"If I catch the 8:05 bus, then I am on time for work."
- Having two
45\degreeangles is a sufficient condition for this triangle to be a right triangle.
"If I have two 45\degree angles, then this triangle is a right triangle."
Use the contrapositive to rewrite the statements in 42 and 43 in if-then form in two ways.
- Being divisible by
3is a necessary condition for this number to be divisible by9.
The statement is:
"If this number is not divisible by 3, then this number is not divisible by
9."
The contrapositive is:
"If this number is divisible by 9, then this number is divisible by 3."
- Doing homework regularly is a necessary condition for Jim to pass the course.
The statement is:
"If Jim does not do homework regularly, then Jim does not pass the course."
The contrapositive is:
"If Jim passed the course, then Jim did the homework."
Note that "a sufficient condition for s is $r$" means r is a sufficient
condition for s and that "a necessary condition for s is $r$" means r is a
necessary condition for s. Rewrite the statements in 44 and 45 in if-then
form.
- A sufficient condition for Jon's team to win the championship is that it win the rest of its games.
"If Jon's team wins the rest of its games, then it will win the championship."
- A necessary condition for this computer program to be correct is that it not produce error messages during translation.
"If this computer program produces error messages during translation, then this computer program is not correct."
- "If compound X is boiling, then its temperature must be at least $150\degree$C." Assuming that this statement is true, which of the following must also be true?
p = "Compound X is boiling"
q = "Compound X's temperature is at least $150\degree$C"
a. If the temperature of compound X is at least $150\degree$C, then compound X is boiling.
q \to p
This is not equivalent to p \to q, so this is not necessarily true.
b. If the temperature of compound X is less than $150\degree$C, then compound X is not boiling.
\neg q \to \neg p
This is the contrapositive statement, and is logically equivalent to the original statement. This is therefore true.
c. Compound X will boil only if its temperature is at least $150\degree$C.
"If Compound X is boiling, then its temperature is at least $150\degree$C."
This is the same statement as the original p \to q, so this is true.
d. If compound X is not boiling, then its temperature is less than $150\degree$C.
\neg p \to q
This is not related to the original statement be it by contrapositive, converse, inverse, only-if, etc. So this is not true.
e. A necessary condition for compound X to boil is that its temperature be at least $150\degree$C.
"If Compound X is not at a boil, then its temperature is not at least $150\degree$C."
\neg p \to \neg c
This is the inverse of the statement, and therefore not equivalent to the original statement.
f. A sufficient condition for compound X to boil is that its temperature be at least $150\degree$C.
"If Compound X is at a boil, then its temperature is at least $150\degree$C"
This statement is equivalent to the original, and so therefore is true.
In 47-50(a) use the logical equivalences p \to q \equiv \neg p \vee q and
p \leftrightarrow q \equiv (\neg p \vee q) \wedge (\neg q \vee p) to rewrite
the given statement forms without using the symbol \to or \leftrightarrow,
and (b) use the logical equivalence p \vee q \equiv \neg(\neg p \wedge \neg q)
to rewrite each statement form using only \wedge and \neg.
a.
p \to q \equiv \neg p \vee q
p \leftrightarrow q \equiv (\neg p \vee q) \wedge (\neg q \vee p)
Avoid \to and \leftrightarrow.
b.
p \vee q \equiv \neg(\neg p \wedge \neg q)
Only use \wedge and \neg.
p \wedge \neg q \to r
a.
(p \wedge \neg q) \to r \equiv \neg(p \wedge \neg q) \vee r
b.
(p \wedge \neg q) \to r \equiv \neg(p \wedge \neg q) \vee r
\neg\left[(p \wedge \neg q) \wedge \neg r \right]
p \vee \neg q \to r \vee q
a.
p \vee \neg q \to r \vee q \equiv \neg(p \vee \neg q) \vee (r \vee q)
b.
\neg(p \vee \neg q) \vee (r \vee q)
\neg\left[\neg\neg(p \vee \neg q) \wedge \neg(r \vee q)\right]
\neg\left[(p \vee \neg q) \wedge \neg(r \vee q)\right]
\neg\left[(p \vee \neg q) \wedge (\neg r \wedge \neg q)\right]
\neg\left[(\neg p \wedge q) \wedge (\neg r \wedge \neg q)\right]
(p \to r) \leftrightarrow (q \to r)
a.
(\neg(p \to r) \vee (q \to r)) \wedge (\neg(q \to r) \vee (p \to r))
b.
\neg(\neg\neg(p \to r) \wedge \neg(q \to r)) \wedge \neg(\neg\neg(q \to r) \wedge \neg(p \to r))
\neg((p \to r) \wedge \neg(q \to r)) \wedge \neg((q \to r) \wedge \neg(p \to r))
(p \to (q \to r)) \leftrightarrow ((p \wedge q) \to r)
a.
(\neg(p \to (q \to r)) \vee ((p \wedge q) \to r)) \wedge (\neg((p \wedge q) \to r) \vee (p \to (q \to r)))
(\neg(\neg p \vee (q \to r)) \vee (\neg(p \wedge q) \vee r)) \wedge (\neg(\neg(p \wedge q) \vee r) \vee (\neg p \vee (q \to r)))
(\neg(\neg p \vee (\neg q \vee r)) \vee (\neg(p \wedge q) \vee r)) \wedge (\neg(\neg(p \wedge q) \vee r) \vee (\neg p \vee (\neg q \vee r)))
b.
Stolen from Gemini (everything else done by hand so far, lol):
\neg\left(\neg(p \wedge q \wedge \neg r) \wedge (p \wedge q \wedge \neg r)\right) \wedge \neg\left(\neg(p \wedge q \wedge \neg r) \wedge (p \wedge q \wedge \neg r)\right)
- Given any statement form, is it possible to find a logically equivalent form
that uses only
\negand\wedge? Justify your answer.
Yes, we can always convert any statement form into a logically equivalent form using other equivalency identities and De Morgan's laws. Consider:
p \to q \equiv \neg p \vee q
Using De Morgan's Law we can then:
p \to q \equiv \neg(\neg(\neg p) \wedge \neg q)
p \to q \equiv \neg(p \wedge \neg q)
Now let's consider:
p \leftrightarrow q \equiv (p \to q) \wedge (q \to p)
p \leftrightarrow q \equiv \neg(p \wedge \neg q) \wedge \neg(q \wedge \neg p)