Problemset 1_ Propositional Logic Basics
Problemset 1_ Propositional Logic Basics
Let p, q and r be the propositions "The student has submitted the assignment", "The
professor has graded the assignment", "The student receives a passing grade”
respectively. Express each of these compound propositions as an English sentence.
a. p Λ ㄱ q
Q1
b. p ⋁ r
c. p → q Λ r
d. p ↔ q
e. ㄱ r Λ (ㄱ p ⋁ ㄱ q)
Write these propositions using p and q and logical connectives (including negations and
exclusive OR):
Q4
Let p, q, and r be the propositions:
Write these propositions using p, q, and r and logical connectives (including negations).
a) The campground is open for visitors, but campfires are not allowed.
b) Campfires are allowed, and the river is safe for swimming, but the campground is not
open for visitors.
c) If the campground is open, then campfires are allowed if and only if the river is safe for
swimming.
d) Campfires are not allowed, but the campground is open and the river is safe for
swimming.
e) For campfires to be allowed, it is necessary and sufficient that the campground be open
and that the river is not safe for swimming.
f) Campfires are not allowed whenever the campground is open and the river is safe for
swimming.
a) ¬ q ↔r
b) q → ¬r
c) p ∨q ∨ r
d) ( p →¬ r )∨(q → ¬r )
e) ( p ∧q)∨(¬q ∧ r )
f) (q ∧ r )↔( p ⊕ ¬r )
Q7
Determine the converse, contrapositive, and inverse of each of these conditional statements
(Apply De Morgan's Laws for conjunction and disjunction where necessary):
How many rows appear in a truth table for each of these compound propositions?
Q8 a) p →¬ p ( p ∨¬r )∧( q ∨¬ s)
b) q ∨ p ∨ ¬ s ∨¬ r ∨ ¬t ∨u
c) ( p ∧r ∧t )↔(q ∧ t)
a) p ∧¬ p
b) p ∨¬ p
c) ( p ∨¬ q)→ q
d) ( p ∨q) ∧r
Q9
e) ( p ∧q) ∨r
f) ( p → q)↔(¬ q → ¬ p)
g) ( p ∨(q ∧r ))→(r ∨ p)
h) ¬( p ∧q)↔(¬ p ∨¬ q)
i)( p →(q ∨ r))∧( q →r )
j) ((p ∨ q)∧(r ∨ s))→( p ∧ s)
Show that each of the following compound propositions is a tautology using the truth table.
a) p ∨¬ p
b) ( p → q)∧(q → r )→( p → r )
Q10
c) ( p ↔ q)∨(¬ p ↔ q)
d) ( p ∨q) ∧(¬ p ∨r )→(q ∨r )
e) ( p → q)→((¬ q → p)∨ r )
f) ¬( p ∧¬ p)∨(q ∧r )
Q11
Show that each of these pairs of propositions are logically equivalent using truth tables.
a) p → q∧¬ q → ¬ p
b) p ↔ q∧¬ p ↔ ¬ q
c) ( p ∧q)∨(¬ p ∧¬ q)∧ p ↔ q
d) p →(q ∧ r)∧( p → q)∧( p → r)
e) ¬( p ↔q )∧ p↔ ¬ q
f) p ∧(q ∨r )∧( p ∧q)∨(p ∧ r)
g) ¬( p ∨q)∧¬ p ∧¬q
h) p ∨(q ∧r )∧( p ∨q)∧(p ∨ r)
i) p →(q → r )∧( p ∧ q)→ r
j) ( p ∨q) → r∧¬ r →(¬ p∧ ¬q )
Show that, “In the Olympic Games, either the USA will win the gold medal or both Canada and
Q12 Australia will win medals” and “The USA will win a medal or Canada will win a medal, and
the USA will win a medal or Australia will win a medal” are logically equivalent using truth
tables.
Let D(x) denote "x donates to charity regularly," where the domain consists of all people in a
city. Express each of these statements in English:
a) ∃ x D(x)
Q13
b) ∀ x D(x )
c) ∃ x ¬ D(x )
d) ∀ x ¬ D (x)
Translate these statements into English, where T(x) means "x is a teacher" and R(x) means "x
reads every day." The domain consists of all individuals in a neighborhood.
Q14 a) ∀ x (T (x )→ R(x ))
b) ∃ x (T ( x) ∧ R ( x))
c) ∀ x (T (x )∧ R(x ))
d) ∃ x (T ( x) → R (x))
Let E(x) represent "x is enrolled in an art class," B(x) means "x is in a beginner's course," G(x)
means "x has a good grade," and S(x) represent "x likes studying." The domain consists of
some students in an art class. Translate each of these statements into English.
Q15
a) ∀ x (E(x )→ G(x))
b) ∃ x (B( x )∧ S (x))
c) ¬ ∀ x (B(x )→(G(x )∨ S (x)))
Translate each of these statements into logical expressions using predicates, quantifiers, and
logical connectives. Let F(x) denote "x is a family member," and K(x) denote "x is kind."
Q17
Let L(x) represent "x knows how to play an instrument," and let M(x) represent "x is a member
of a band." Express each of these statements in terms of L(x), M(x), quantifiers, and logical
connectives. The domain for quantifiers consists of all students at a school.
a) There is a student at your school who knows how to play an instrument and is a member
of a band.
b) There is a student at your school who knows how to play an instrument but is not a
member of a band.
c) Every student at your school either knows how to play an instrument or is a member of
a band.
d) No student at your school knows how to play an instrument or is a member of a band.
Let P(x), Q(x), and R(x) be the statements "x is a scientist," "x is curious," and "x likes to
experiment," respectively. Express each of these statements using quantifiers, logical
connectives, and P(x), Q(x), and R(x), where the domain consists of all people.
Q18
a) All scientists are curious.
b) All curious people like to experiment.
c) No scientists like to experiment.
S(x): x is a student.
P(x): x is a professor.
C(y): y is a course.
State the converse, contrapositive, and inverse of each of these conditional statements:
a. The ground will be wet unless it is not raining.
Q20 b. Having fuel is necessary for running the car.
c. Being sunny is sufficient for the picnic to be enjoyable.
d. I wake up whenever the alarm rings.
e. The streets get wet when it rains.
a) The security system is activated, but the alarm does not sound.
b) The alarm sounds, and the security system is not activated.
c) If the security system is activated, then the alarm will sound if and only if there is a
breach.
d) For the alarm to sound, it is necessary and sufficient that the security system is activated
and there is a breach.
a) ¬r
b) r↔s
c) ¬r⊕s
d) (r ↔ s) ^ (¬ r ⊕ s)
Write these propositions using p and q and logical connectives (including negations).
Q23
a) You do not drive over 65 miles per hour.
b) You drive over 65 miles per hour, but you do not get a speeding ticket.
c) You will get a speeding ticket if you drive over 65 miles per hour.
d) If you do not drive over 65 miles per hour, then you will not get a speeding ticket.
e) Driving over 65 miles per hour is sufficient for getting a speeding ticket.
f) You get a speeding ticket, but you do not drive over 65 miles per hour.
g) Whenever you get a speeding ticket, you are driving over 65 miles per hour.
State the converse, contrapositive, and inverse of each of these conditional statements.
Q25
Show that ¬(p ∧ q) ≡ ¬p ∨ ¬q.
Q26 Show that the proposition is tautology p → (p ∧ (q → p))
Show that, ”In the FIFA World Cup either Germany will reach the final or England and
Q29 Argentina will reach the final” and ”Germany or England will reach the final, and Germany or
Argentina will reach the final” are logically equivalent.
Let P(x) be the statement “x spends more than five hours every weekday in class,” where the
domain for x consists of all students. Express each of these quantifications in English.
Q30 a) ∃xP(x)
b) ∀xP(x)
c) ∃x¬P(x)
d) ∀x¬P(x)
Translate these statements into English, where C(x) is “x is a comedian” and F(x) is “x is
funny” and the domain consists of all people.
a) ∀x(T(x) → F(x))
b) ∃x(T(x) ∧ A(x)
c) ¬∀x(T(x) → (F(x) ∨ C(x))
Translate each of these statements into logical expressions using predicates, quantifiers, and
logical connectives.
a) No one is perfect.
Q33 b) Not everyone is perfect.
c) All your friends are perfect.
d) At least one of your friends is perfect.
e) Everyone is your friend and is perfect.
f) Not everybody is your friend or someone is not perfect.
Let P(x) be the statement “x can speak English” and let Q(x) be the statement “x knows
programming language Python.” Express each of these sentences in terms of P(x), Q(x),
quantifiers, and logical connectives. The domain for quantifiers consists of all students at your
school.
Q34 (a) There is a student at your school who can speak English and who knows Python.
(b) There is a student at your school who can speak English but who doesn’t know Python.
(c) Every student at your school either can speak English or knows Python.
(d) No student at your school can speak English or knows Python.
Let P (x), Q(x), and R(x) be the statements “x is a professor,” “x is ignorant,” and “x is vain,”
respectively. Express each of these statements using quantifiers; logical connectives; and P (x),
Q(x), and R(x), where the domain consists of all people.
Q35
a) No professors are ignorant.
b) All ignorant people are vain.
c) No professors are vain.
Let C(x) means "x is a core course," T(x,y) means "Student y has taken course x," and G(y)
means "Student y has met graduation requirements." The domain consists of all students and
courses. Formulate the following statements using quantifiers:
Q36 a) For every student, if they have taken all core courses, they meet the graduation
requirements.
b) There exists a student who has not taken every core course but still meets the graduation
requirements.
c) For every core course, there is at least one student who has not taken it.
Q37
Let S(x) mean "x submitted a research paper," R(x,y) mean "Reviewer y read x's paper," and
A(x,y) mean "Reviewer y approved x's paper." The domain consists of all researchers and
reviewers.
Express the following statements using nested quantifiers:
a) Every researcher has at least one reviewer who has read and approved their paper.
b) There exists a reviewer who has read every paper but has not approved at least one of
them.
c) For every research paper, if it was read by a reviewer, then there exists another reviewer
who did not read it.
Let P(x,y )mean "Person x can work on a project with Person y," Q(x) means "Person x knows
Python," and R(x) means "Person x is a project manager." The domain consists of all people in
a software development team.
Express the following statements using quantifiers and logical connectives:
Q38 a) There exists a project manager who can work with everyone on the team who knows
Python.
b) For every person who knows Python, there is at least one other person they can work
with who is not a project manager.
c) For every person, if they are a project manager, there exists at least one person on the
team with whom they cannot work.
Let S(x) represent "x is skilled in software development," M(x) represent "x has managerial
experience," and Q(x,y) represent "Person x qualifies for Job y." The domain consists of all
applicants for the job, and there are multiple types of jobs.
Q39
a) Describe, using quantifiers, the condition where there exists a job such that only
applicants with both software skills and managerial experience qualify.
b) Write the condition, using quantifiers, for a job that requires at least one applicant
without software development skills but with managerial experience to qualify.
Let A(x) represent "x is an applicant," S(x) represent "x has strong academic scores," and E(x)
represent "x participates in extracurricular activities." The domain consists of all college
applicants.
Q40 a) Express with quantifiers the requirement that all applicants participate in extracurricular
activities only if they have strong academic scores, but there is at least one applicant
who has strong academic scores and does not participate in extracurricular activities.
b) Write the condition that for an applicant to be admitted, they must either have strong
academic scores or participate in extracurricular activities, but not necessarily both.