Propositional Logic Practice Problem Solution
Propositional Logic Practice Problem Solution
1. a) p → ¬q
b) ¬p ∧ ¬q
c) q → ¬p
d) ¬p → ¬q
2. a) Sharks have not been spotted near the shore.
b) Swimming at the New Jersey shore is allowed, and sharks have been spotted near the
shore.
c) Swimming at the New Jersey shore is not allowed, or sharks have been spotted near the
shore.
d) If swimming at the New Jersey shore is allowed, then sharks have not been spotted near
the shore.
e) If sharks have not been spotted near the shore, then swimming at the New Jersey shore is
allowed.
f) If swimming at the New Jersey shore is not allowed, then sharks have not been spotted
near the shore.
g) Swimming at the New Jersey shore is allowed if and only if sharks have not been spotted
near the shore.
h) Swimming at the New Jersey shore is not allowed, and either swimming at the New Jersey
shore is allowed or sharks have not been spotted near the shore. Note that we were able to
incorporate the parentheses by using the word ”either” in the second half of the sentence.
i) Swimming at the New Jersey shore is allowed or Sharks have been spotted near the shore
but not both.
3. a) This is just the negation of p, so we write ¬p.
b) This is a conjunction (”but” means ”and”): p ∧ ¬q.
c) The position of the word ”if” tells us which is the antecedent and which is the consequence:
p → q.
d) ¬p → ¬q
e) The sufficient condition is the antecedent: p → q.
f) q ∧ ¬p
g) ”Whenever” means ”if : q → p.
4. Many forms of the answers for this exercise are possible.
a) One form of the converse that reads well in English is ”I will ski tomorrow only if it snows
today.” We could state the contrapositive as ”If I don’t ski tomorrow, then it will not have
snowed today.” The inverse is ”If it does not snow today, then I will not ski tomorrow.”
b) The proposition as stated can be rendered ”If there is going to be a quiz, then I will come
to class.” The converse is ”If I come to class, then there will be a quiz.” (Or, perhaps even
better, ”I come to class only if there’s going to be a quiz.”) The contrapositive is ”If I don’t
come to class, then there won’t be a quiz.” The inverse is ”If there is not going to be a quiz,
then I don’t come to class.”
c) There is a variable (”a positive integer”) in this sentence, so technically it is not a proposi-
tion. Nevertheless, we can treat sentences such as this in the same way we treat propositions.
Its converse is ”A positive integer is a prime if it has no divisors other than 1 and itself.” (Note
that this can be false, since the number 1 satisfies the hypothesis but not the conclusion.)
The contrapositive of the original proposition is ”If a positive integer has a divisor other than
1 and itself, then it is not prime.” (We are simplifying a bit here, replacing ”does not have
no divisors” by ”has a divisor.” Note that this is always true, assuming that we are talking
about positive divisors.) The inverse is ”If a positive integer is not prime, then it has a divisor
other than 1 and itself.”
p q ¬p ¬q p∧q ¬(p ∧ q) ¬p ∨ ¬q
T T F F T F F
5. T F F T F T T
F T T F F T T
F F T T F T T
p q q→p p ∧ (q → p) p → (p ∧ (q → p))
T T T T T
6. T F T T T
F T F F T
F F T F T
p q ¬q p⊕q p ⊕ ¬q (p ⊕ q) → (p ⊕ ¬q)
T T F F T T
8. T F T T F F
F T F T F F
F F T F T T
9. Lets consider p: Germany, q: England, and r: Argentina
We need to demonstrate that p ∨ (q ∧ r) and (p ∨ q) ∧ (p ∨ r) are logically equivalent.
p q r q ∧ r p ∨ (q ∧ r) p ∨ q p ∨ r (p ∨ q) ∧ (p ∨ r)
T T T T T T T T
T T F F T T T T
T F T F T T T T
T F F F T T T T
F T T T T T T T
F T F F F T F F
F F T F F F T F
F F F F F F F F
10. a) There is a student who spends more than five hours every weekday in class.
b) Every student spends more than five hours every weekday in class.
c) There is a student who does not spend more than five hours every weekday in class.
d) No student spends more than five hours every weekday in class. (Or, equivalently, every
student spends less than or equal to five hours every weekday in class.)
2
11. a) This statement is that for every x, if x is a comedian, then x is funny. In English, this is
most simply stated, ”Every comedian is funny.”
b) This statement is that for every x in the domain (universe of discourse), x is a comedian
and x is funny. In English, this is most simply stated, ”Every person is a funny comedian.”
c) This statement is that there exists an x in the domain such that if x is a comedian then
x is funny. In English, this might be rendered, ”There exists a person such that ifs/he is a
comedian, then s/he is funny.”
d) This statement is that there exists an x in the domain such that x is a comedian and
x is funny. In English, this might be rendered, ”There exists a funny comedian” or ”Some
comedians are funny” or ”Some funny people are comedians.
13. Let P(x) be ”x is perfect”; let F(x) be ”x is your friend”; and let the domain (universe of
discourse) be all people.
a) ∀x¬P (x)
b) ¬∀xP (x)
c) ¬∀x(F (x) → P (x))
d) ∃x(F (x) ∧ P (x))
e) ∀x(F (x) ∧ P (x)
f) (¬∀xF (x)) ∨ (∃x¬P (x))