Skip to main content
Logo image

Section 2.6 Chapter Review

This section includes additional practice problems for the chapter on propositional logic.

Exercises Exercises

1.

Complete a truth table for the statement \(\neg p \to (q \wedge r)\text{.}\)
Solution.
\(p\) \(q\) \(r\) \(\neg p \to (q \wedge r)\)
T T T T
T T F T
T F T T
T F F T
F T T T
F T F F
F F T F
F F F F

2.

Suppose you know that the statement “if Peter is not tall, then Quincy is fat and Robert is skinny” is false. What, if anything, can you conclude about Peter and Robert if you know that Quincy is indeed fat? Explain (you may reference problem 2.6.1).
Solution.
Peter is not tall and Robert is not skinny. You must be in row 6 in the truth table above.

3.

Are the statements \(p \to (q \vee r)\) and \((p \to q) \vee (p \to r)\) logically equivalent? Explain your answer.
Solution.
Yes. To see this, make a truth table for each statement and compare.

4.

Is the following a valid deduction rule? Explain.
\(p \to q\)
\(p\to r\)
\(\therefore\) \(p \to (q \wedge r)\text{.}\)
Solution.
Make a truth table that includes all three statements in the argument:
\(p\) \(q\) \(r\) \(p \to q\) \(p \to r\) \(p \to (q \wedge r)\)
T T T T T T
T T F T F F
T F T F T F
T F F F F F
F T T T T T
F T F T T T
F F T T T T
F F F T T T
Notice that in every row for which both \(p \to q\) and \(p \to r\) is true, so is \(p \to (q \wedge r)\text{.}\) Therefore, whenever the premises of the argument are true, so is the conclusion. In other words, the deduction rule is valid.

5.

Write the negation, converse and contrapositive for each of the statements below.
  1. If the power goes off, then the food will spoil.
  2. If the door is closed, then the light is off.
  3. \(\forall x (x \lt 1 \to x^2 \lt 1)\text{.}\)
  4. For all natural numbers \(n\text{,}\) if \(n\) is prime, then \(n\) is solitary.
  5. For all functions \(f\text{,}\) if \(f\) is differentiable, then \(f\) is continuous.
  6. For all integers \(a\) and \(b\text{,}\) if \(a\cdot b\) is even, then \(a\) and \(b\) are even.
  7. For every integer \(x\) and every integer \(y\) there is an integer \(n\) such that if \(x > 0\) then \(nx > y\text{.}\)
  8. For all real numbers \(x\) and \(y\text{,}\) if \(xy = 0\) then \(x = 0\) or \(y = 0\text{.}\)
  9. For every student in Math 321, if they do not understand implications, then they will fail the exam.
Solution.
  1. Negation: The power goes off and the food does not spoil.
    Converse: If the food spoils, then the power went off.
    Contrapositive: If the food does not spoil, then the power did not go off.
  2. Negation: The door is closed and the light is on.
    Converse: If the light is off then the door is closed.
    Contrapositive: If the light is on then the door is open.
  3. Negation: \(\exists x (x \lt 1 \wedge x^2 \ge 1)\)
    Converse: \(\forall x( x^2 \lt 1 \to x \lt 1)\)
    Contrapositive: \(\forall x (x^2 \ge 1 \to x \ge 1)\text{.}\)
  4. Negation: There is a natural number \(n\) which is prime but not solitary.
    Converse: For all natural numbers \(n\text{,}\) if \(n\) is solitary, then \(n\) is prime.
    Contrapositive: For all natural numbers \(n\text{,}\) if \(n\) is not solitary then \(n\) is not prime.
  5. Negation: There is a function which is differentiable and not continuous.
    Converse: For all functions \(f\text{,}\) if \(f\) is continuous then \(f\) is differentiable.
    Contrapositive: For all functions \(f\text{,}\) if \(f\) is not continuous then \(f\) is not differentiable.
  6. Negation: There are integers \(a\) and \(b\) for which \(a\cdot b\) is even but \(a\) or \(b\) is odd.
    Converse: For all integers \(a\) and \(b\text{,}\) if \(a\) and \(b\) are even then \(ab\) is even.
    Contrapositive: For all integers \(a\) and \(b\text{,}\) if \(a\) or \(b\) is odd, then \(ab\) is odd.
  7. Negation: There are integers \(x\) and \(y\) such that for every integer \(n\text{,}\) \(x \gt 0\) and \(nx \le y\text{.}\)
    Converse: For every integer \(x\) and every integer \(y\) there is an integer \(n\) such that if \(nx > y\) then \(x > 0\text{.}\)
    Contrapositive: For every integer \(x\) and every integer \(y\) there is an integer \(n\) such that if \(nx \le y\) then \(x \le 0\text{.}\)
  8. Negation: There are real numbers \(x\) and \(y\) such that \(xy = 0\) but \(x \ne 0\) and \(y \ne 0\text{.}\)
    Converse: For all real numbers \(x\) and \(y\text{,}\) if \(x = 0\) or \(y = 0\) then \(xy = 0\)
    Contrapositive: For all real numbers \(x\) and \(y\text{,}\) if \(x \ne 0\) and \(y \ne 0\) then \(xy \ne 0\text{.}\)
  9. Negation: There is at least one student in Math 321 who does not understand implications but will still pass the exam.
    Converse: For every student in Math 321, if they fail the exam, then they did not understand implications.
    Contrapositive: For every student in Math 321, if they pass the exam, then they understood implications.

6.

Consider the statement: for all integers \(n\text{,}\) if \(n\) is even and \(n \le 7\) then \(n\) is negative or \(n \in \{0,2,4,6\}\text{.}\)
  1. Is the statement true? Explain why.
  2. Write the negation of the statement. Is it true? Explain.
  3. State the contrapositive of the statement. Is it true? Explain.
  4. State the converse of the statement. Is it true? Explain.
Solution.
  1. The statement is true. If \(n\) is an even integer less than or equal to 7, then the only way it could not be negative is if \(n\) was equal to 0, 2, 4, or 6.
  2. There is an integer \(n\) such that \(n\) is even and \(n \le 7\) but \(n\) is not negative and \(n \not\in \{0,2,4,6\}\text{.}\) This is false, since the original statement is true.
  3. For all integers \(n\text{,}\) if \(n\) is not negative and \(n \not\in\{0,2,4,6\}\) then \(n\) is odd or \(n > 7\text{.}\) This is true, since the contrapositive is equivalent to the original statement (which is true).
  4. For all integers \(n\text{,}\) if \(n\) is negative or \(n \in \{0,2,4,6\}\) then \(n\) is even and \(n \le 7\text{.}\) This is false. \(n = -3\) is a counterexample.

7.

Consider the statement: \(\forall x (\forall y (x + y = y) \to \forall z (x\cdot z = 0))\text{.}\)
  1. Explain what the statement says in words. Is this statement true? Be sure to state what you are taking the universe of discourse to be.
  2. Write the converse of the statement, both in words and in symbols. Is the converse true?
  3. Write the contrapositive of the statement, both in words and in symbols. Is the contrapositive true?
  4. Write the negation of the statement, both in words and in symbols. Is the negation true?
Solution.
  1. For any number \(x\text{,}\) if it is the case that adding any number to \(x\) gives that number back, then multiplying any number by \(x\) will give 0. This is true (of the integers or the reals). The “if” part only holds if \(x = 0\text{,}\) and in that case, anything times \(x\) will be 0.
  2. The converse in words is this: for any number \(x\text{,}\) if everything times \(x\) is zero, then everything added to \(x\) gives itself. Or in symbols: \(\forall x (\forall z (x \cdot z = 0) \to \forall y (x + y = y))\text{.}\) The converse is true: the only number which when multiplied by any other number gives 0 is \(x = 0\text{.}\) And if \(x = 0\text{,}\) then \(x + y = y\text{.}\)
  3. The contrapositive in words is: for any number \(x\text{,}\) if there is some number which when multiplied by \(x\) does not give zero, then there is some number which when added to \(x\) does not give that number. In symbols: \(\forall x (\exists z (x\cdot z \ne 0) \to \exists y (x + y \ne y))\text{.}\) We know the contrapositive must be true because the original implication is true.
  4. The negation: there is a number \(x\) such that any number added to \(x\) gives the number back again, but there is a number you can multiply \(x\) by and not get 0. In symbols: \(\exists x (\forall y (x + y = y) \wedge \exists z (x \cdot z \ne 0))\text{.}\) Of course since the original implication is true, the negation is false.

8.

Write each of the following statements in the form, “if …, then ….” Careful, some of the statements might be false (which is alright for the purposes of this question).
  1. To lose weight, you must exercise.
  2. To lose weight, all you need to do is exercise.
  3. Every American is patriotic.
  4. You are patriotic only if you are American.
  5. The set of rational numbers is a subset of the real numbers.
  6. A number is prime if it is not even.
  7. Either the Broncos will win the Super Bowl, or they won’t play in the Super Bowl.
Solution.
  1. If you have lost weight, then you exercised.
  2. If you exercise, then you will lose weight.
  3. If you are American, then you are patriotic.
  4. If you are patriotic, then you are American.
  5. If a number is rational, then it is real.
  6. If a number is not even, then it is prime. (Or the contrapositive: if a number is not prime, then it is even.)
  7. If the Broncos don’t win the Super Bowl, then they didn’t play in the Super Bowl. Alternatively, if the Broncos play in the Super Bowl, then they will win the Super Bowl.

9.

Simplify the following.
  1. \(\neg (\neg (p \wedge \neg q) \to \neg(\neg r \vee \neg(p \to r)))\text{.}\)
  2. \(\neg \exists x \neg \forall y \neg \exists z (z = x + y \to \exists w (x - y = w))\text{.}\)
Solution.
  1. \((\neg p \vee q) \wedge (\neg r \vee (p \wedge \neg r))\text{.}\)
  2. \(\forall x \forall y \forall z (z = x+y \wedge \forall w (x-y \ne w))\text{.}\)

10.

Consider the statement: for all integers \(n\text{,}\) if \(n\) is odd, then \(7n\) is odd.
  1. Prove the statement. What sort of proof are you using?
  2. Prove the converse. What sort of proof are you using?
Solution.
  1. Direct proof.
    Proof.
    Let \(n\) be an integer. Assume \(n\) is odd. So \(n = 2k+1\) for some integer \(k\text{.}\) Then
    \begin{equation*} 7n = 7(2k+1) = 14k + 7 = 2(7k +3) + 1. \end{equation*}
    Since \(7k + 3\) is an integer, we see that \(7n\) is odd.
  2. The converse is: for all integers \(n\text{,}\) if \(7n\) is odd, then \(n\) is odd. We will prove this by contrapositive.
    Proof.
    Let \(n\) be an integer. Assume \(n\) is not odd. Then \(n = 2k\) for some integer \(k\text{.}\) So \(7n = 14k = 2(7k)\) which is to say \(7n\) is even. Therefore \(7n\) is not odd.

11.

You come across four trolls playing bridge. They declare:
Troll 1: All trolls here see at least one knave.
Troll 2: I see at least one troll that sees only knaves.
Troll 3: Some trolls are scared of goats.
Troll 4: All trolls are scared of goats.
Are there any trolls that are not scared of goats? Recall, of course, that all trolls are either knights (who always tell the truth) or knaves (who always lie).