Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

Problemset 1_ Propositional Logic Basics

The document is a practice sheet for a course on Discrete Mathematics, focusing on propositional logic. It includes various exercises that require expressing compound propositions in English, constructing truth tables, and demonstrating logical equivalences. Additionally, it covers quantifiers and logical expressions involving predicates.

Uploaded by

Musarrat Wahida
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Problemset 1_ Propositional Logic Basics

The document is a practice sheet for a course on Discrete Mathematics, focusing on propositional logic. It includes various exercises that require expressing compound propositions in English, constructing truth tables, and demonstrating logical equivalences. Additionally, it covers quantifiers and logical expressions involving predicates.

Uploaded by

Musarrat Wahida
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

CSE230: Discrete Mathematics

Practice Sheet 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)

Let p, q, r and s be the propositions


p: The student has submitted the research paper.
q: The student has attended all workshops.
r: The student has participated in group projects.
s: The student will receive a degree with honors.
Express each of these compound propositions as an English sentence.
Q2 a. p ∨ (q ∧ ¬ s)
b. ¬p ∨ (q ∧ r)
c. (p ∧ r) → s
d. (p ∧ q) ↔ r
e. (p → q) ∧ (r → s)
f. ¬(p ∧ s) ∨ (q ∧ r)

Let p and q be the propositions:


p: The weather is sunny.
q: We will go to the beach.

Write these propositions using p and q and logical connectives (including negations and
exclusive OR):

Q3 a) It is sunny and we go to the beach.


b) It is sunny but we do not go to the beach.
c) It is not sunny and we do not go to the beach.
d) Either it is sunny, or we go to the beach (or both).
e) If it is sunny, then we go to the beach.
f) Either it is sunny or we go to the beach, but not both, and if it is sunny, then we do not
go to the beach
g) That it is sunny is necessary and sufficient for going to the beach.

Q4
Let p, q, and r be the propositions:

p: The campground is open for visitors.

q: Campfires are allowed in the campground.

r: The river nearby is safe for swimming.

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.

Let p and q be the propositions:

p: The project is complete.

q: The team has been informed.

Express each of these compound propositions as an English sentence.


Q5 a) ¬p
b) p ∨q
c) ¬ p∧q
d) q→ p
e) ¬ q →¬ p
f) ¬ p → ¬q
g) p↔q
h) ¬ q ∨(¬ p ∧q)

Let p, q, and r be the propositions:

p: You solve the practice sheet.

q: You pass the test.

r: You get a good grade.


Q6 Express each of these compound propositions as an English sentence.

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):

a) If it rains tomorrow, the outdoor concert will be canceled.


b) An angle is a right angle only if it measures 90 degrees.
c) A polygon is a triangle only if it has three sides.
d) You are eligible for the scholarship if your CGPA is at least 3.7 and you have
completed 30 credits.
e) A figure is a square only if it has four equal sides and four right angles.
f) The machine will shut down if the temperature exceeds 100°C and the system pressure
drops below the minimum threshold.

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)

Construct truth tables for each of the following compound propositions:

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."

a) At least one family member is kind.


Q16
b) All of your family members are kind.
c) Not every family member is kind.
d) Everyone is either a family member or is kind.
e) Not everyone is a family member or there is someone who is not 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.

In a university, we define the following predicates:

S(x): x is a student.

P(x): x is a professor.

C(y): y is a course.

T(x,y): x takes course y.

Q19 E(x,y): x teaches course y.

Express each of these statements using quantifiers, logical connectives.

a) Every student takes at least one course.


b) For every professor, there exists a course that they teach.
c) There exists a student who takes every course.
d) For every course, there exists a student who is enrolled in that course.
e) Every professor teaches at least one student in their course.
f) For every student, there exists a professor who teaches at least one course they are
taking.

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.

Q21 Let p and q be the propositions:

p: The security system is activated.

q: The alarm will sound.


r: There is a breach.

Write these propositions using p, q, and logical connectives (including negations).

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.

Let r and s be the propositions:

r: I studied for the exam.

s: I passed the exam.


Q22 Express each of these propositions as an English sentence:

a) ¬r
b) r↔s
c) ¬r⊕s
d) (r ↔ s) ^ (¬ r ⊕ s)

Let p and q be the propositions

p: You drive over 65 miles per hour.

q : You get a speeding ticket.

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.

Q24 a) If it snows today, I will ski tomorrow.


b) I come to class whenever there is going to be a quiz.
c) A positive integer is a prime only if it has no divisors other than 1 and itself.

Q25
Show that ¬(p ∧ q) ≡ ¬p ∨ ¬q.
Q26 Show that the proposition is tautology p → (p ∧ (q → p))

Q27 Construct the truth table for (p → q) ↔ (¬q → ¬p)

Q28 Construct the truth table for (p ⊕ q) → (p ⊕ ¬q)

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.

Q31 a) ∀x(C(x) → F(x))


b) ∀x(C(x) ∧ F(x)
c) ∃x(C(x) → F(x)
d) ∃x(C(x) ∧ F(x)

Translate these statements into English, where

A(x): x teaches CSE230

T(x): x likes STA201

F(x): x has a Facebook page


Q32
C(x): x likes to cook

The domain consists of all faculties in a university.

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.

You might also like