Sei sulla pagina 1di 39

Indian Institute of Information Technology

Design and Manufacturing, Kancheepuram Instructor


Chennai 600 127, India N.Sadagopan
An Autonomous Institute under MHRD, Govt of India Scribe:
An Institute of National Importance S.Dhanalakshmi
www.iiitdm.ac.in P.Renjith
COM205T Discrete Structures for Computing

Assignment 2 - Predicate Logic

Source: Discrete Mathematics and its applications, Sixth Edition - Kenneth H.Rosen
Chapter 1, Pages 58-62

Question 1 Translate these statements into English, where the domain for each variable con-
sists of all real numbers.

a. ∀x∃y(x < y).


b. ∀x∀y(((x ≥ 0) ∧ (y ≥ 0)) → (xy ≥ 0)).
c. ∀x∀y∃z(xy = z).

Solution:

a. For every real number x there exists a real number y such that x is less than y.

b. For every real number x and real number y, if x and y are both non-negative then, there
product is non-negative.

c. For every real number x and real number y there exists a real number z such that xy = z.

Question 2 Translate these statements into English, where the domain for each variable con-
sists of all real numbers.

a. ∃x ∀y (xy = y)

b. ∀x ∀y (((x ≥ 0) ∧ (y < 0)) → (x − y > 0))

c. ∀x ∀ y ∃z (x = y + z)

Solution:

a. There exist a real number x such that for every real number y, xy = y

b. For every real number x and real number y, if x is nonnegative and y is negative, then the
difference x − y is positive.

c. For every real numbers x, y, there exist a real number z such that x = y + z
Question 3 Let Q(x, y) be the statement “x has sent an e-mail message to y,”where the domain
for both x and y consists of all students in your class. Express each of these quantifications in
English.

a. ∃x∃yQ(x, y).
b. ∃x∀yQ(x, y).
c. ∀x∃yQ(x, y).

d. ∃y∀xQ(x, y).
e. ∀y∃xQ(x, y).
f. ∀x∀yQ(x, y).

Solution:

a. There is some student in your class who has sent a message to some student in your class.

b. There is some student in your class who has sent a message to every student in your class.

c. Every student in your class has sent a message to at least one student in your class.

d. There is a student in your class who has been sent a message by every student in your class.

e. Every student in your class has been sent a message from at least one student in your class.

f. Every student in the class has sent a message to every student in the class.

Question 4 Let P(x, y) be the statement "student x has taken class y:’ where the domain for x
consists of all students in your class and for y consists of all computer science courses at your
school. Express each of these quantifications in English.

a. ∃x ∃y P (x, y)

b. ∃x ∀y P (x, y)

c. ∀x ∃y P (x, y)

d. ∃y ∀x P (x, y)

e. ∀y ∃x P (x, y)

f. ∀x ∀y P (x, y)

Solution:

a. At least one student has taken class y

2
b. At least one student has taken all classes

c. Every student has taken at least one class

d. At least one class has all students

e. Every class has at least one student

f. All students are taking all classes.

Question 5 Let W (x, y) mean that student x has visited website y, where the domain for x
consists of all students in your school and the domain for y consists of all websites. Express each
of these statements by a simple English sentence.

a. W (Sarah Smith, www.att.com).


b. ∃xW (x, www.imdb.com).

c. ∃yW (Jose Orez, y).

d. ∃y (W (Ashok Puri, y) ∧ W (Cindy yoon, y).

e. ∃y∀z (y 6= (David Belcher) ∧ (W (David Belcher, z) → W (y, z))).

f. ∃x∃y∀z((x 6= y) ∧ (W (x, z) ↔ W (y, z))).

Solution:

a. Sarah Smith has visited www.att.com.

b. At least one person has visited www.imdb.com.

c. Jose Orez has visited at least one website.

d. There is a website that both Ashok Puri and Cindy yoon has visited.

e. There is a person besides David Belcher who has visited all the websites that David Belcher
has visited.

f. There are two different people who have visited exactly the same websites.

Question 6 Let C(x, y) mean that student x is enrolled in class y, where the domain for x
consists of all students in your school and the domain for y consists of all classes being given at
your school. Express each of these statements by a simple English sentence.

a. C(Randy Goldberg,CS 252)

3
b. ∃x C(x, Math 695)

c. ∃y C(Carol Sitea, y)

d. ∃x (C(x, Math 222) ∧ C(x, CS 252))

e. ∃x ∃y ∀z ((x 6= y) ∧ (C(x, z) → C(y, z)))

f. ∃x ∃y ∀z ((x 6= y) ∧ (C(x, z) ↔ C(y, z)))

Solution:

a. Randy Goldberg is enrolled in CS 252

b. At least one student enrolled in Math 695

c. Carol Sitea is enrolled in at least one class

d. At least one student enrolled in both Math 222 and CS 252

e. There exist at least two students such that if one is enrolled in every courses, then the other

f. There exist at least two students such that one is enrolled in every courses, if and only if the
other

Question 7 Let T (x, y) mean that student x likes cuisine y, where the domain for x consists of
all students at your school and the domain for y consists of all cuisines. Express each of these
statements by a simple English sentence.

a. ¬T (Abdallah Hussein, Japanese).

b. ∃xT (x, Korean) ∧∀xT (x, Mexican).

c. ∃yT (Monique Arsenault, y) ∧ T (Jay Johnson, y)

d. ∀x∀z∃y((x 6= z) → ¬(T (x, y) ∧ T (z, y)))

e. ∃x∃z∀y(T (x, y) ↔ T (z, y))

f. ∀x∀z∃y(T (x, y) ↔ T (z, y))

Solution:

a. Abdallah Hussein does not like Japanese cuisine.

4
b. Some student at your school likes Korean cuisine, and everyone at your school likes Mexican
cuisine.

c. There is some cuisine that either Monique Arsenault or Jay Johnson likes.

d. For every pair of distinct students at your school, there is some cuisine that at least one of
them does not like.

e. There are two students at your school who like exactly the same set of cuisine.

f. For every pair of students at your school, there is some cuisine about which they have the
same opinion (either they both like it or they both do not like it).

Question 8 Let Q(x, y) be the statement "student x has been a contestant on quiz show y."
Express each of these sentences in terms of Q(x , y), quantifiers, and logical connectives, where
the domain for x consists of all students at your school and for y consists of all quiz shows on
television.

a. There is a student at your school who has been a contestant on a television quiz show.

b. No student at your school has ever been a contestant on a television quiz show.

c. There is a student at your school who has been a contestant on Jeopardy and on Wheel of
Fortune.

d. Every television quiz show has had a student from your school as a contestant.

e. At least two students from your school have been contestants on Jeopardy.

Solution:

a. ∃x ∃y Q(x, y)

b. ¬∃x ∃y Q(x, y)

c. ∃x (Q(x, Jeopardy) ∧ Q(x, W heelof F ortune))

d. ∀y ∃x Q(x, y)

e. ∃x ∃y ((x 6= y) ∧ Q(x, Jeopardy) ∧ Q(y, Jeopardy))

Question 9 Let L(x, y) be the statement “x loves y,”where the domain for both x and y consists
of all people in the world. Use quantifiers to express each of these statements.

a. Everybody loves Jerry.

5
b. Everybody loves somebody.

c. There is somebody whom everybody loves.

d. Nobody loves everybody.

e. There is somebody whom Lydia does not love.

f. There is somebody whom no one loves.

g. There is exactly one person whom everybody loves.

h. There are exactly two people whom Lynn loves.

i. Everyone loves himself or herself.

j. There is someone who loves no one besides himself or herself.

Solution:

a. ∀x L(x, Jerry)

b. ∀x∃yL(x, y)

c. ∃y∀xL(x, y)

d. ∀x∃y¬L(x, y)

e. ∃x¬L(Lydia, x)

f. ∃x∀y¬L(y, x)

g. ∃x(∀yL(y, x) ∧ ∀z((∀wL(w, z)) → z = x))

h. ∃x∃y(x 6= y ∧ L(Lynn, x) ∧L(Lynn, y) ∧∀z(L(Lynn, z) → (z = x ∨ z = y)))

i. ∀xL(x, x)

j. ∃x∀y(L(x, y) ↔ x = y)

Question 10 Let F(x, y) be the statement "x can fool y," where the domain consists of all people
in the world. Use quantifiers to express each of these statements.

a. Everybody can fool Fred.

b. Evelyn can fool everybody.

6
c. Everybody can fool somebody.

d. There is no one who can fool everybody.

e. Everyone can be fooled by somebody.

f. No one can fool both Fred and Jerry.

g. Nancy can fool exactly two people.

h. There is exactly one person whom everybody can fool.

i. No one can fool himself or herself.

j. There is someone who can fool exactly one person besides himself or herself.

Solution:

a. ∀x F (x, F red)

b. ∀y F (Evelyn, y)

c. ∀x ∃y F (x, y)

d. ¬∃x ∀y F (x, y)

e. ∀y ∃x F (x, y)

f. ¬∃x (F (x, F red) ∧ F (x, Jerry))

g. ∃x ∃y ((x 6= y) ∧ F (N ancy, x) ∧ F (N ancy, y)) ∧ ∀z [((z 6= y) ∧ (z 6= x)) → ¬F (N ancy, z)]

h. ∀x ∃!y F (x, y)

i. ¬∃x F (x, x)

j. ∃x ∃!y (F (x, x) ∧ F (x, y))

Question 11 Let S(x) be the predicate “x is a student,”F (x) the predicate “x is a faculty mem-
ber,”and A(x, y) the predicate “x has asked y a question,”where the domain consists of all people
associated with your school. Use quantifiers to express each of these statements.

a. Lois has asked Professor Michaels a question.

b. Every student has asked Professor Gross a question.

7
c. Every faculty member has either asked Professor Miller a question or been asked a question
by Professor Miller.

d. Some student has not asked any faculty member a question.

e. There is a faculty member who has never been asked a question by a student.

f. Some student has asked every faculty member a question.

g. There is a faculty member who has asked every other faculty member a question.

h. Some student has never been asked a question by a faculty member.

Solution:

a. A(Lois, Professor Michael)

b. ∀x(S(x) → A(x, Professor Gross))

c. ∀x(F (x) → (A(x, Professor Miller) ∨ A(Professor Miller, x)))

d. ∃x(S(x) ∧ ∀y(F (y) → ¬A(x, y)))

e. ∃x(F (x) ∧ ∀y(S(y) → ¬A(y, x)))

f. ∀y(F (y) → ∃x(S(x) ∨ A(x, y)))

g. ∃x(F (x) ∧ ∀y((F (y) ∧ (y 6= x)) → A(x, y)))

h. ∃x(S(x) ∧ ∀y(F (y) → ¬A(y, x)))

Question 12 Let I (x) be the statement "x has an Internet connection" and C(x, y) be the
statement "x and y have chatted over the Internet," where the domain for the variables x and y
consists of all students in your class. Use quantifiers to express each of these statements.

a. Jerry does not have an Internet connection.

b. Rachel has not chatted over the Internet with Chelsea.

c. Jan and Sharon have never chatted over the Internet.

d. No one in the class has chatted with Bob.

e. Sanjay has chatted with everyone except Joseph.

f. Someone in your class does not have an Internet connection.

8
g. Not everyone in your class has an Internet connection.

h. Exactly one student in your class has an Internet connection.

i. Everyone except one student in your class has an Internet connection.

j. Everyone in your class with an Internet connection has chatted over the Internet with at
least one other student in your class.

k. Someone in your class has an Internet connection but has not chatted with anyone else in
your class.

l. There are two students in your class who have not chatted with each other over the Internet.

m. There is a student in your class who has chatted with everyone in your class over the Internet.

n. There are at least two students in your class who have not chatted with the same person in
your class.

o. There are two students in the class who between them have chatted with everyone else in
the class.

Solution:

a. ¬I(Jerry)

b. ¬C(Rachel, Chelsea)

c. ¬C(Jan, Sharon)

d. ¬∃x C(x, Bob)

e. ∀x ((x 6= Joseph) ↔ C(Sanjay, x))

f. ∃x ¬I(x)

g. ¬∀x I(x)

h. ∃!x I(x)

i. ∀x ∃!y ((x 6= y) ∧ I(x))

j. ∀x (I(x) → ∃y C(x, y))

k. ∃x (I(x) ∧ ∀y ¬C(x, y))

l. ∃x ∃y ((x 6= y) ∧ ¬C(x, y))

9
m. ∃x ∀y C(x, y)

n. ∃x ∃y [(x 6= y) ∧ ∀z ((z 6= x) ∧ (z 6= y) ∧ ¬C(x, z) ∧ ¬C(y, z))]

o. ∃x ∃y [(x 6= y) ∧ ∀z ((z 6= x) ∧ (z 6= y) ∧ C(x, z) ∧ C(y, z))]

Question 13 Let M (x, y) be “x has sent y an e-mail message”and T (x, y) be “x has telephoned
y,”where the domain consists of all students in your class. Use quantifiers to express each of
these statements. (Assume that all e-mail messages that were sent are received, which is not the
way things often work.)

a. Chou has never sent an e-mail message to Koko.

b. Arlene has never sent an e-mail message to or telephoned Sarah.

c. Jose has never received an e-mail message from Deborah.

d. Every student in your class has sent an e-mail message to Ken.

e. No one in your class has telephoned Nina.

f. Everyone in your class has either telephoned Avi or sent him an e-mail message.

g. There is a student in your class who has sent everyone else in your class an e-mail message.

h. There is someone in your class who has either sent an e-mail message or telephoned everyone
else in your class.

i. There are two different students in your class who have sent each other e-mail messages.

j. There is a student who has sent himself or herself an e-mail message.

k. There is a student in your class who has not received an e-mail message from anyone else in
the class and who has not been called by any other student in the class.

l. Every student in the class has either received an e-mail message or received a telephone call
from another student in the class.

m. There are at least two students in your class such that one student has sent the other e-mail
and the second student has telephoned the first student.

n. There are two different students in your class who between them have sent an e-mail message
to or telephoned everyone else in the class.

Solution:

a. ¬M ( Chou, Koko)

10
b. ¬M ( Arlene, Sarah) ∨¬T (Arlene, Sarah)

c. ¬M (Deborah, Jose)

d. ∀xM (x, Ken)

e. ∀x¬T (x, Nina)

f. ∀x(T (x,Avi) ∨M (x,Avi))

g. ∃x∀y(y 6= x → M (x, y))

h. ∃x∀y(y 6= x → (M (x, y) ∨ T (x, y)))

i. ∃x∃y(x 6= y ∧ M (x, y) ∧ M (y, x))

j. ∃xM (x, x)

k. ∃x∀y(x 6= y → (¬M (x, y) ∧ ¬T (y, x)))

l. ∀x(∃y(x 6= y ∧ (M (y, x) ∨ T (y, x))))

m. ∃x∃y(x 6= y ∧ M (x, y) ∧ T (y, x))

n. ∃x∃y(x 6= y ∧ ∀z((z 6= x) ∧ (z 6= y) → (M (x, z) ∨ M (y, z) ∨ T (x, z) ∨ T (y, z))))

Question 14 Use quantifiers and predicates with more than one variable to express these state-
ments.

a. There is a student in this class who can speak Hindi

b. Every student in this class plays some sport.

c. Some student in this class has visited Alaska but has not visited Hawaii.

d. All students in this class have learned at least one programming language.

e. There is a student in this class who has taken every course offered by one of the departments
in this school.

f. Some student in this class grew up in the same town as exactly one other student in this class.

g. Every student in this class has chatted with at least one other student in at least one chat
group.

Solution:

a. ∃x speak(x, hindi) UOD(x): Students speak(x,y): x speaks y

11
b. ∀x ∃s P laying(x, s) UOD(x): Students, UOD(s): Sports Playing(x,s): x plays s

c. ∃x [V isited(x, Alaska) ∧ ¬V isited(x, Hawaii)] Visited(x,y): x visited y

d. ∀x ∃p Learned(x, p) UOD(p): Prog. Lang. Learned(x,p): x learned prog. lang. p

e. ∃x ∃z [∀y (Of f er(y, z) → C(x, y))] UOD(x): students, UOD(z): dept, UOD(y): courses,
Offer(y,z): course z offered by dept z, C(x,y): student x takes course y

f. ∃x ∃!y [(x 6= y) ∧ ∃t (G(x, t) ∧ G(y, t))] UOD(x,y): Students, UOD(t): town, G(x,t): x is
grown up in town t

g. ∀x ∃y ∃z (chatgroup(y) ∧ stud(z) ∧ stud(x) ∧ (x 6= z) ∧ participatechat(z, y) ∧ c(x, y))


stud(x): x is a student, chatgroup(y): y is a chatgroup, participatechat(z,y): student z is in
chatgroup y, c(x,y): student x is chatting with student y.

Question 15 Use quantifiers and predicates with more than one variable to express these state-
ments.

a. Every computer science student needs a course in discrete mathematics.

b. There is a student in this class who owns a personal computer.

c. Every student in this class has taken at least one computer science course.

d. There is a student in this class who has taken at least one course in computer science.

e. Every student in this class has been in every building on campus.

f. There is a student in this class who has been in every room of at least one building on campus.

g. Every student in this class has been in at least one room of every building on campus.

Solution:

a. ∀xP (x), where P (x) is “x needs a course in discrete mathematics”and the domain for x con-
sists of all computer science students.

b. ∃xP (x), where P (x) is “x owns a personal computer”and the domain for x consists of all
students in this class.

c. ∀x∃yP (x, y), where P (x, y) is “x has taken y”and the domain for x consists of all students
in this class and the domain for y consists of all computer science classes.

d. ∃x∃yP (x, y), where P (x, y) is “x has taken y”and the domain for x consists of all students
in this class and the domain for y consists of all computer science classes.

12
e. ∀x∀yP (x, y), where P (x, y) is “x has been in y”and the domain for x consists of all students
in this class and the domain for y consists of all buildings on campus.

f. ∃x∃y∀z(P (z, y) → Q(x, z)), where P (z, y) is “z is in y”and Q(x, z) is “x has been in z”; the
domain for x consists of all students in this class, the domain for y consists of all buildings
on campus and the domain for z consists of all rooms.

g. ∀x∀y∃z(P (z, y) ∧ Q(x, z)), where P (z, y) is “z is in y”and Q(x, z) is “x has been in z”; the
domain for x consists of all students in this class, the domain for y consists of all buildings
on campus and the domain for z consists of all rooms.

Question 16 A discrete mathematics class contains 1 mathematics major who is a freshman,


12 mathematics majors who are sophomores, 15 computer science majors who are sophomores, 2
mathematics majors who are juniors, 2 computer science majors who are juniors, and 1 computer
science major who is a senior. Express each of these statements in terms of quantifiers and then
determine its truth value.

a. There is a student in the class who is a junior.

b. Every student in the class is a computer science major.

c. There is a student in the class who is neither a mathematics major nor a junior.

d. Every student in the class is either a sophomore or a computer science major.

e. There is a major such that there is a student in the class in every year of study with that
major.

Solution:
Freshman: First year graduate school.
Sophomore: Second year graduate school.
Junior: Third year graduate school.
Senior: Fourth year graduate school.
Study(a,b,c): Student a who is in year b is majoring in c, Year(a,b): Student a is in year b,
Major(a,c): Student a majors in c

a. ∃x Y ear(x, junior) . True

b. ∀x M ajor(x, computer science). False

c. ∃x [¬M ajor(x, M athematics) ∧ ¬Y ear(x, junior)] True

d. ∀x [Y ear(x, sophomore) ∨ M ajor(x, computer science)] False

e. ∃m ∀y ∃x Study(x, y, m) False

13
Question 17 Express each of these system specifications using predicates, quantifiers, and log-
ical connectives, if necessary.

a. Every user has access to exactly one mailbox.

b. There is a process that continues to run during all error conditions only if the kernel is work-
ing correctly.

c. All users on the campus network can access all websites whose url has a.edu extension.

d. There are exactly two systems that monitor every remote server.

Solution:

a. ∀u∃m(A(u, m) ∧ ∀n(n 6= m → ¬A(u, n))), where A(u, m) means that user u has access to
mailbox m.

b. ∃p∀e(H(e) ∧ S(p, running)) → S(kernel, working Correctly), where H(e) means that error
condition e is in effect and S(x, y) means that the status of x is y.

c. ∀u∀s(E(s, .edu) → A(u, s)), where E(s, x) means that website s has extension x, and A(u, s)
means that user u can access website s.

d. ∃x∃y(x 6= y ∧ ∀z((∀sM (z, s)) ↔ (z = x ∨ z = y))), where M (a, b) means that system a
monitors remote server b

Question 18 Express each of these system specifications using predicates, quantifiers, and log-
ical connectives, if necessary.
a. At least one console must be accessible during every fault condition.

b. The e-mail address of every user can be retrieved whenever the archive contains at least one
message sent by every user on the system.

c. For every security breach there is at least one mechanism that can detect that breach if and
only if there is a process that has not been compromised.

d. There are at least two paths connecting every two distinct endpoints on the network.

e. No one knows the password of every user on the system except for the system administrator,
who knows all passwords.

Solution:

a. ∃c ∀f Access(c, f ) UOD(c): console, UOD(f): faults, Access(c,f): console c must be accessible


during fault f

14
b. ∃m ∀u (Archive(m, u) → retemailid(u)) UOD(m): message, UOD(u): user Archive(m,u):
Archive contains message m sent by user u

c. ∀x S(x) → [∃y (M (y) ∧ D(x, y)) ↔ ∃z (P (z) ∧ ¬C(y, z))] S(x): x is a Security breach, M(y):
y is a mechanism, D(x,y): x detects y, C(y,z): process z compromise y

d. ∀u ∀v [((u 6= v) ∧ node(u) ∧ node(v)) → ∃p1 ∃p2 ((p1 = 6 p2 ) ∧ path(p1 ) ∧ path(p2 )) ∧


connect(p1 , u, v) ∧ connect(p2 , u, v)]
node(u): u is a node, path(p): p is a path, connect(p,u,v): p is a path from u to v

e. ∃!x ∀y ((x = sysadmin) ↔ know(x, y)) UOD(x,y): users, know(x,y): x knows password of y

Question 19 Express each of these statements using mathematical and logical operators, pred-
icates, and quantifiers, where the domain consists of all integers.

a. The sum of two negative integers is negative.

b. The difference of two positive integers is not necessarily positive.

c. The sum of the squares of two integers is greater than or equal to the square of their sum.

d. The absolute value of the product of two integers is the product of their absolute values.

Solution:

a. ∀x∀y((x < 0) ∧ (y < 0) → (x + y < 0))

b. ¬∀x∀y((x > 0) ∧ (y > 0) → (x − y > 0))

c. ∀x∀y((x2 + y 2 ) ≥ (x + y)2 )

d. ∀x∀y(| xy |=| x || y |)

Question 20 Express each of these statements using predicates, quantifiers, logical connectives,
and mathematical operators where the domain consists of all integers.

a. The product of two negative integers is positive.

b. The average of two positive integers is positive.

c. The difference of two negative integers is not necessarily negative.

d. The absolute value of the sum of two integers does not exceed the sum of the absolute values
of these integers.

15
Solution:

a. ∀x ∀y ((x < 0) ∧ (y < 0)) → (xy > 0)

b. ∀x ∀y ((x > 0) ∧ (y > 0)) → (xy/2 > 0)

c. ∀x ∀y ((x > 0) ∧ (y > 0)) → ((x − y < 0) ∨ (x − y ≥ 0))

d. ∀x ∀y abs(x + y) ≤ abs(x) + abs(y)

Question 21 Use predicates, quantifiers, logical connectives, and mathematical operators to ex-
press the statement that every positive integer is the sum of the squares of four integers.

Solution:
∀x∃a∃b∃c∃d((x > 0) → x = a2 + b2 + c2 + d2 ), where the domain consists of all integers.
(OR)
∀x((x > 0) → ∃a∃b∃c∃d(x = a2 + b2 + c2 + d2 ))

Question 22 Use predicates, quantifiers, logicalconnectives, and mathematical operators to ex-


press the statement that there is a positive integer that is not the sum of three squares.
Solution:
∃x [posint(x) ∧ ∀u ∀v ∀w (int(u) ∧ int(v) ∧ int(w) ∧ x 6= u2 + v 2 + w2 )]
UOD(x,u,v,w): real, posint(x): x is positive integer, int (x): x is integer

Question 23 Express each of these mathematical statements using predicates, quantifiers, logi-
cal connectives, and mathematical operators.

a. The product of two negative real numbers is positive.

b. The difference of a real number and itself is zero.

c. Every positive real number has exactly two square roots.

d. A negative real number does not have a square root that is a real number.

Solution:

a. ∀x∀y((x < 0) ∧ (y < 0) → (xy > 0)).

b. ∀x(x − x = 0).

c. ∀x∃a∃b((a 6= b) ∧ ∀c(c2 = x ↔ (c = a ∨ c = b))).

d. ∀x((x < 0) → ¬∃y(x = y 2 )).

16
Question 24 Translate each of these nested quantifications into an English statement that ex-
presses a mathematical fact. The domain in each case consists of all real numbers.

a. ∃x ∀y (x + y = y)

b. ∀x ∀y (((x ≥ 0) ∧ (y < 0)) → (x − y > 0))

c. ∃x ∃y (((x ≤ 0) ∧ (y ≤ 0)) ∧ (x − y > 0))

d. ∀x ∀y ((x 6= 0) ∧ (y 6= 0) ↔ (xy 6= 0))

Solution:

a. There exists a real number x that when added to every number y will sum to y.

b. Subtracting a negative number from positive number results in a positive number

c. There exist at least two non positive numbers when subtracted gives a positive number

d. Product of two numbers are non zero if and only if both are non zero.

Question 25 Translate each of these nested quantifications into an English statement that ex-
presses a mathematical fact. The domain in each case consists of all real numbers.

a. ∃x∀y(xy = y).

b. ∀x∀y((x < 0) ∧ (y < 0) → (xy > 0)).

c. ∃x∃y((x2 > y) ∧ (x < y)).

d. ∀x∀y∃z(x + y = z).

Solution:

a. There is a multiplicative identity for real numbers.

b. The product of two negative real numbers is always a positive real number.

c. There exists real numbers x and y such that x2 exceeds y but x is less than y.

d. The real numbers are closed under the operation of addition.

17
Question 26 Let Q(x, y) be the statement "x + y = x − y". If the domain for both variables
consists of all integers, what are the truth values?

a. Q(1, 1)

b. Q(2, 0)

c. ∀y Q(1, y)

d. ∃x Q(x, 2)

e. ∃x ∃y Q(x, y)

f. ∀x ∃y Q(x, y)

g. ∃y ∀x Q(x, y)

h. ∀y ∃x Q(x, y)

i. ∀x ∀y Q(x, y)

Solution:

a. False

b. True

c. False

d. False

e. True

f. True

g. True

h. False

i. False

Question 27 Determine the truth value of each of these statements if the domain for all vari-
ables consists of all integers.

a. ∀n∃m(n2 < m).

18
b. ∃n∀m(n < m2 ).

c. ∀n∃m(n + m = 0).

d. ∃n∀m(nm = m).

e. ∃n∃m(n2 + m2 = 5).

f. ∃n∃m(n2 + m2 = 6).

g. ∃n∃m(n + m = 4 ∧ n − m = 1).

h. ∃n∃m(n + m = 4 ∧ n − m = 2).

i. ∀n∀m∃p(p = (m + n)/2).

Solution:

a. TRUE.

b. TRUE.

c. TRUE.

d. TRUE.

e. TRUE.

f. FALSE.

g. FALSE.

h. TRUE.

i. FALSE.

Question 28 Determine the truth value of each of these statements if the domain of each vari-
able consists of all real numbers.

a. ∀x ∃y (x2 = y)

b. ∀x ∃y (x = y 2 )

c. ∃x ∃y (xy = 0)

d. ∃x ∃y(x + y 6= y + x)

e. ∀x (x 6= 0 → ∃y (xy = 1))

19
f. ∃x ∀y (y 6= 0 → xy = 1)

g. ∀x ∃y (x + y = 1)
h. ∃x ∃y (x + 2y = 2 ∧ 2x + 4y = 5)

i. ∀x ∃y (x + y = 2 ∧ 2x − y = 1)

j. ∀x ∀y ∃z (z = (x + y)/2)

Solution:

a. True

b. False

c. True

d. False

e. True

f. False

g. True

h. False

i. False

j. True

Question 29 Suppose the domain of the propositional function P (x, y) consists of pairs x and
y, where x is 1, 2, or 3 and y is 1,2, or 3. Write out these propositions using disjunctions and
conjunctions.

a. ∀x∀yP (x, y).

b. ∃x∃yP (x, y).

c. ∃x∀yP (x, y).

d. ∀y∃xP (x, y).

Solution:

20
a. P (1, 1) ∧ P (1, 2) ∧ P (1, 3) ∧ P (2, 1) ∧ P (2, 2) ∧ P (2, 3) ∧ P (3, 1) ∧ P (3, 2) ∧ P (3, 3).

b. P (1, 1) ∨ P (1, 2) ∨ P (1, 3) ∨ P (2, 1) ∨ P (2, 2) ∨ P (2, 3) ∨ P (3, 1) ∨ P (3, 2) ∨ P (3, 3).

c. (P (1, 1) ∧ P (1, 2) ∧ P (1, 3)) ∨ (P (2, 1) ∧ P (2, 2) ∧ P (2, 3)) ∨ (P (3, 1) ∧ P (3, 2) ∧ P (3, 3)).

d. (P (1, 1) ∨ P (1, 2) ∨ P (1, 3)) ∧ (P (2, 1) ∨ P (2, 2) ∨ P (2, 3)) ∧ (P (3, 1) ∨ P (3, 2) ∨ P (3, 3)).

Question 30 Rewrite each of these statements so that negations appear only within predicates
(that is, so that no negation is outside a quantifier or an expression involving logical connectives).

a. ¬∃y ∃x P (x, y)
b. ¬∀x ∃y P (x, y)

c. ¬∃y (Q(y) ∧ ∀x ¬R(x, y))

d. ¬∃y (∃x R(x, y) ∨ ∀x S(x, y))

e. ¬∃y (∀x ∃z T (x, y, z) ∨ ∃x ∀z U (x, y, z))

Solution:

a. ∀y ∀x ¬P (x, y)
b. ∃x ∀y ¬P (x, y)

c. ∀y (¬Q(y) ∨ ∃x R(x, y))

d. ∀y (∀x ¬R(x, y) ∧ ∃x ¬S(x, y))

e. ∀y (∃x ∀z ¬T (x, y, z) ∧ ∀x ∃z ¬U (x, y, z))

Question 31 Express the negations of each of these statements so that all negation symbols
immediately precede predicates.

a. ∀x∃y∀zT (x, y, z).

b. ∀x∃yP (x, y) ∨ ∀x∃yQ(x, y).

c. ∀x∃y(P (x, y) ∧ ∃zR(x, y, z)).

d. ∀x∃y(P (x, y) → Q(x, y)).

Solution:

a. ∃x∀y∃z¬T (x, y, z).

21
b. ∃x∀y¬P (x, y) ∧ ∃x∀y¬Q(x, y).

c. ∃x∀y(¬P (x, y) ∨ ∀z¬R(x, y, z)).

d. ∃x∀y(P (x, y) ∧ ¬Q(x, y)).

Question 32 Express the negations of each of these statements so that all negation symbols
immediately precede predicates.

a. ∃z ∀y ∀x T (x, y, z)

b. ∃x ∃y P (x, y) ∧ ∀x ∃y Q(x, y)

c. ∃x ∃y (Q(x, y) ↔ Q(y, x))

d. ∀y ∃x ∃z (T (x, y, z) ∨ Q(x, y))

Solution:

a. ∀z ∃y ∃x ¬T (x, y, z)

b. ∀x ∀y ¬P (x, y) ∨ ∃x ∃y ¬Q(x, y)

c. ∀x ∀y (¬Q(x, y) ↔ Q(y, x)) or


∀x ∀y (Q(x, y) ↔ ¬Q(y, x))

d. ∃y ∀x ∀z (¬T (x, y, z) ∧ ¬Q(x, y))

Question 33 Rewrite each of these statements so that negations appear only within predicates
(that is, so that no negation is outside a quantifier or an expression involving logical connectives).

a. ¬∀x∀yP (x, y).

b. ¬∀y∃xP (x, y).

c. ¬∀y∀x(P (x, y) ∨ Q(x, y)).

d. ¬(∃x∃y¬P (x, y) ∧ ∀x∀yQ(x, y)).

e. ¬∀x(∃y∀zP (x, y, z) ∧ ∃z∀yP (x, y, z).

Solution:

a. ∃x∃y¬P (x, y).

22
b. ∃y∀x¬P (x, y).

c. ∃y∃x(¬P (x, y) ∧ ¬Q(x, y)).

d. (∀x∀yP (x, y) ∨ ∃x∃y¬Q(x, y)).

e. ∃x(∀y∃z¬P (x, y, z) ∨ ∀z∃y¬P (x, y, z).

Question 34 Find a common domain for the variables x, y, and z for which the statement
∀x ∀y ((x 6= y) → ∀z ((z = x) ∨ (z = y))) is true and another domain for which it is false.
Solution:
If UOD(x, y, z) is a set of prime numbers less than 5, then the statement is True, UOD contains
two elements {2, 3}.
If UOD(x, y, z) is a set of prime numbers less than or equals 5, then the statement is False,
UOD contains at least three elements {2, 3, 5, . . .}

Question 35 Find a common domain for the variables x, y, z, and w for which the statement
∀x∀y∀z∃w((w 6= x) ∧ (w 6= y) ∧ (w 6= z)) is true and another common domain for these variables
for which it is false.

Solution:
Any domain with four or more members makes the statement TRUE; any domain with three or
fewer members makes the statement FALSE.

Question 36 Express each of these statements using quantifiers. Then form the negation of the
statement so that no negation is to the left of a quantifier. Next, express the negation in simple
English. (Do not simply use the words "It is not the case that.")

a. No one has lost more than one thousand dollars playing the lottery.

b. There is a student in this class who has chatted with exactly one other student.

c. No student in this class has sent e-mail to exactly two other students in this class.

d. Some student has solved every exercise in this book.

e. No student has solved at least one exercise in every section of this book.

Solution:

a. Let L(x, y) mean that person x has lost y dollars playing the lottery. The original statement
is then ¬∃x∃y(y > 1000 ∧ L(x, y)). Its negation of course is ∃x∃y(y > 1000 ∧ L(x, y)); some-
one has lost more than 1000 dollars playing the lottery.

23
b. Let C(x, y) mean that person x has chatted with person y. The given statement is ∃x∃y(y 6=
x ∧ ∀z(z 6= x → (z = y ↔ C(x, z)))). The negation is therefore ∀x∀y(y 6= x → ∃z(z 6=
x ∧ ¬(z = y ↔ C(x, z)))). In English, everybody in this class has either chatted with no one
else or has chatted with two or more others.

c. Let E(x, y) mean that person x has sent e-mail to person y. The given statement is ¬∃x∃y∃z(y 6=
z ∧ x 6= y ∧ x 6= z ∧ ∀w(w 6= x → (E(x, w) ↔ (w = y ∨ w = z)))). The negation is obviously
∃x∃y∃z(y 6= z ∧ x 6= y ∧ x 6= z ∧ ∀w(w 6= x → (E(x, w) ↔ (w = y ∨ w = z)))). In English,
some student in this class has sent e-mail to exactly two other students in this class.

d. Let S(x, y) mean that student x has solved exercise y. The statement is ∃x∀yS(x, y). The
negation is ∀x∃y¬S(x, y). In English, for every student in this class, there is some exercise
that he or she has not solved.

e. Let S(x, y) mean that student x has solved exercise y, and let B(y, z) mean that exercise y
is in section z of the book. The statement is ¬∃x∀z∃y(B(y, z) ∧ S(x, y)). The negation is of
course ∃x∀z∃y(B(y, z) ∧ S(x, y)). In English, some student has solved at least one exercise
in every section of this book.

Question 37 Express each of these statements using quantifiers. Then form the negation of the
statement so that no negation is to the left of a quantifier. Next, express the negation in simple
English. (Do not simply use the words "It is not the case that.")

a. Every student in this class has taken exactly two mathematics classes at this school.

b. Someone has visited every country in the world except Libya.

c. No one has climbed every mountain in the Himalayas.

d. Every movie actor has either been in a movie with Kevin Bacon or has been in a movie with
someone who has been in a movie with Kevin Bacon.

Solution:

a. ∀x(countM ath(x) = 2). Its negation is ∃x(countM ath(x) 6= 2). Alternatively, There is some-
one in this class such that for every two different math courses, these are not the two and
only two math courses this person has taken.

b. ∃x∀y(V isited(x, y) ↔ y 6= libya). Its negation is ∀x∃y(V isited(x, y) ↔ y = libya). Alterna-


tively, Every person has either visited Libya or has not visited a country other than Libya.

c. ¬∃x∀y(climb(x, y)) . Its negation is ∃x∀y(climb(x, y)). Someone has climbed every moun-
tain in the Himalayas.

d. ∀x(actedW ith(x, KevinBacon) ∨ ∃y(actedW ith(x, y) ∧ actedW ith(y, KevinBacon)) . Its


negation is ∃x¬(actedW ith(x, KevinBacon)∧∀y(¬actedW ith(x, y)∨¬actedW ith(y, KevinBacon))
There is someone who has neither been in a movie with Kevin Bacon nor has been in a movie
with someone who has been in a movie with Kevin Bacon.

24
Question 38 Express the negations of these propositions using quantifiers, and in English.

a. Every student in this class likes mathematics.

b. There is a student in this class who has never seen a computer.

c. There is a student in this class who has taken every mathematics course offered at this school.

d. There is a student in this class who has been in at least one room of every building on campus.

Solution:

a. ∀x(Likes(x, mathematics). Its negation: ∃x(¬Likes(x, mathematics)). i.e., Some student in


this class do not like mathematics.

b. ∃x(N otseen(x, computer)). Negation: ∀x¬(N otseen(x, computer)). i.e., Every student in
this class has seen a computer.

c. ∃x∀y(taken(x, y)). Negation: ∀x∃y¬(taken(x, y)). i.e., Every student in this class has not
taken a mathematics course offered at this school.

d. ∃x∀y∃z(within(z, y)∧attended(x, z)). Negation: ∀x∃y∀z¬(within(z, y)∧attended(x, z)). i.e.,


Every students in this class has not been in all the rooms of a building on campus.

Question 39 Find a counter example, if possible, to these universally quantified statements,


where the domain for all variables consists of all integers.

a. ∀x∀y(x2 = y 2 → x = y).

b. ∀x∃y(y 2 = x).

c. ∀x∀y(xy ≥ x).

Solution:

a. x = 2, y = −2.

b. x = −4.

c. x = 17, y = −1.

Question 40 Find a counterexample, if possible, to these universally quantified statements,


where the domain for all variables consists of all integers.

25
a. ∀x ∃y (x = 1/y)

b. ∀x ∃y (y 2 − x < 100)

c. ∀x ∀y (x2 6= y 3 )

Solution:

a. if x 6= 1 or x 6= −1, then y does not exist.

b. If x < −100, then y does not exist

c. Statement is not true for x = 8, y = 4

Question 41 Use quantifiers to express the associative law for multiplication of real numbers.

Solution:
∀x∀y∀z((x · y) · z = x · (y · z))

Question 42 Use quantifiers to express the distributive laws of multiplication over addition for
real numbers.
Solution:
∀x ∀y ∀z (x ∧ (y ∨ z)) ↔ ∀x ∀y ∀z ((x ∧ y) ∨ (x ∧ z))

Question 43 Use quantifiers and logical connectives to express the fact that every linear poly-
nomial (that is, polynomial of degree 1) with real coefficients and where the coefficient of x is
nonzero, has exactly one real root.

Solution:
∀m∀b(m 6= 0 → ∃x(mx + b = 0 ∧ ∀w(mw + b = 0 → w = x)))

Question 44 Use quantifiers and logical connectives to express the fact that a quadratic poly-
nomial with real number coefficients has at most two real roots.
Solution:
∀a ∀b ∀c((a 6= 0) → ∀x1 ∀x2 ∀x3 (ax21 + bx1 + c = 0) ∧ (ax22 + bx2 + c = 0) ∧ (ax23 + bx3 + c =
0) → (x1 = x2 ∨ x2 = x3 ∨ x1 = x3 ))

Question 45 Determine the truth value of the statement ∀x∃y(xy = 1) if the domain for the
variables consists of

a. the non-zero real numbers.

b. the non-zero integers.

26
c. the positive real numbers.

Solution:

a. TRUE.
b. FALSE.
c. TRUE.

Question 46 Determine the truth value of the statement ∃x ∀y (x ≤ y 2 ) if the domain for the
variables consists of

a. the positive real numbers.

b. the integers.

c. the nonzero real numbers.

Solution:

a. False

b. True

c. True

Question 47 Show that the two statements ¬∃x∀yP (x, y) and ∀x∃y¬P (x, y), where both quan-
tifiers over the first variable in P (x, y) have the same domain, and both quantifiers over the
second variable in P (x, y) have the same domain, are logically equivalent.

Solution:
¬(∃x∀yP (x, y)) ↔ ∀x(¬∀yP (x, y)) ↔ (∀x∃y¬P (x, y)).

SECTION B (Pg. 72 - 74)

Question 48 (Q: 01, pg: 72) Find the argument form for the following argument and determine
whether it is valid. Can we conclude that the conclusion is true if the premises are true?
If Socrates is human, then Socrates is mortal.
Socrates is human.
∴ Socrates is mortal

Solution:
Conclusion is True and it follows by applying modus ponens to the premise.

Question 49 (Q: 02, pg: 72) Find the argument form for the following argument and determine
whether it is valid. Can we conclude that the conclusion is true if the premises are true?

27
If George does not have eight legs, then he is not an insect.
George is an insect.
∴ George has eight legs.
Solution:
This is modus tollens. The first statement is p → q , where p is “George does not have eight
legs”and q is “George is not an insect”. The second statement is ¬q . The third is ¬p. Modus
tollens is valid. We can therefore conclude that the conclusion of the argument (third statement)
is true, given that the hypothesis (the first two statements) are true.

Question 50 (Q: 03, pg: 72) What rule of inference is used in each of these arguments?

a. Alice is a mathematics major. Therefore, Alice is either a mathematics major or a computer


science major.

b. Jerry is a mathematics major and a computer science major. Therefore, Jerry is a mathe-
matics major.

c. If it is rainy, then the pool will be closed. It is rainy. Therefore, the pool is closed.

d. If it snows today, the university will close. The university is not closed today. Therefore, it
did not snow today.

e. If I go swimming, then I will stay in the sun too long. If I stay in the sun too long, then I
will sunburn. Therefore, if I go swimming, then I will sunburn.

Solution:

a. Addition

b. Simplification

c. Modus ponens

d. Modus tollens

e. Hypothetical syllogism

Question 51 (Q: 04, pg: 72) What rule of inference is used in each of these arguments?

a. Kangaroos live in Australia and are marsupials. Therefore, kangaroos are marsupials.

b. It is either hotter than 100 degrees today or the pollution is dangerous. It is less than 100
degrees outside today. Therefore, the pollution is dangerous.

c. Linda is an excellent swimmer. If Linda is an excellent swimmer, then she can work as a
lifeguard. Therefore, Linda can work as a lifeguard.

28
d. Steve will work at a computer company this summer. Therefore, this summer Steve will work
at a computer company or he will be a beach bum.

e. If I work all night on this homework, then I can answer all the exercises. If I answer all the
exercises, I will understand the material. Therefore, if I work all night on this homework,
then I will understand the material.

Solution:

a. Given the conjunction of two propositions and asserted one of them. This is simplification
((P ∧ Q) → P ).

b. Given the disjunction of two propositions and the negation of one of them, and asserted the
other. This is disjunctive syllogism ((¬P ∧ (P ∨ Q)) → Q).

c. Modus ponens: (P ∧ (P → Q)) → Q.

d. Addition: P → (P ∨ Q).

e. Hypothetical syllogism: ((P → Q) ∧ (Q → R)) → (P → R).

Question 52 (Q: 05, pg: 72) Use rules of inference to show that the hypotheses "Randy works
hard," "If Randy works hard, then he is a dull boy," and "If Randy is a dull boy, then he will
not get the job" imply the conclusion "Randy will not get the job."
Solution:
p: Randy works hard.
q: Randy is a dull boy.
r: Randy will get the job.
p
p→q
q → ¬r
∴ ¬r
i.e., Randy will not get the job.

Question 53 (Q: 06, pg: 72) Use rules of inference to show that the hypotheses “If it does not
rain or if it is not foggy, then the sailing race will be held and the life saving demonstration
will go on,”“If the sailing race is held, then the trophy will be awarded,”and “The trophy was not
awarded”imply the conclusion “It rained.”

Solution:
Let r be the proposition “It rains,”let f be the proposition “It is foggy,”let s be the proposition
“The sailing race will be held,”let l be the proposition “The life saving demonstration will go
on,”and let t be the proposition “The trophy will be awarded.”We are given premises (¬r ∨¬f ) →
(s ∧ l), s → t, and ¬t. We want to conclude r. Let us prove this by logical implications.

Question 54 (Q: 07, pg: 72) What rules of inference are used in this famous argument? "All
men are mortal. Socrates is a man. Therefore, Socrates is mortal"

29
Step Reasons
1. ¬t Hypothesis
2. s → t Hypothesis
3. ¬s Modus tollens using (1) and (2)
4. (¬r ∨ ¬f ) → (s ∧ l) Hypothesis
5. (¬(s ∧ l)) → ¬(¬r ∨ ¬f ) Contrapositive of (4)
6. (¬s ∨ ¬l) → (r ∧ f ) De Morgan’s law and double negative
7. ¬s ∨ ¬l Addition, using (3)
8. r ∧ f Modus ponens using (6) and (7)
9. r Simplification using (8)
Solution:
Universal instantiation is used to conclude that "If Socrates is a man, then Socrates is mortal."
Modus ponens is then used to conclude that Socrates is mortal.

Question 55 (Q: 08, pg: 72) What rules of inference are used in this argument? “No man is
an island. Manhattan is an island. Therefore, Manhattan is not a man.”

Solution:
First we use universal instantiation to conclude from “For all x, if x is a man, then x is not an
island”. The special case of interest, “If Manhattan is a man, then Manhattan is not an island”.
Then we form the contrapositive (using also double negative): “If Manhattan is an island, then
Manhattan is not a man.”Finally, we use modus ponens to conclude that Manhattan is not a
man.

Question 56 (Q: 09, pg: 72) For each of these sets of premises, what relevant conclusion or
conclusions can be drawn? Explain the rules of inference used to obtain each conclusion from the
premises.

a. "If I take the day off, it either rains or snows." "I took Tuesday off or I took Thursday off."
"It was sunny on Tuesday." "It did not snow on Thursday."

b. "If I eat spicy foods, then I have strange dreams." "I have strange dreams if there is thunder
while I sleep." "I did not have strange dreams."

c. "I am either clever or lucky." "I am not lucky." "If I am lucky, then I will win the lottery."

d. "Every computer science major has a personal computer." "Ralph does not have a personal
computer." "Ann has a personal computer."

e. "What is good for corporations is good for the United States." "What is good for the United
States is good for you." "What is good for corporations is for you to buy lots of stuff."

f. "All rodents gnaw their food." "Mice are rodents." "Rabbits do not gnaw their food." "Bats
are not rodents."

Solution:

a. I took off on Thursday and thursday it rained

30
b. I did not eat spicy foods and it did not thunder

c. I am clever

d. Ralph is not a CS major

e. Buy lots of stuff is good for the United States. Buy lots of stuff is good for you

f. Mice gnaw their food and Rabbits are not rodents

Question 57 (Q: 10, pg: 72) For each of these sets of premises, what relevant conclusion or
conclusions can be drawn? Explain the rules of inference used to obtain each conclusion from the
premises.

a. "In play hockey, then I am sore the next day." "I use the whirlpool if I am sore." "I did not
use the whirlpool."

b. "In work, it is either sunny or partly sunny." "I worked last Monday or I worked last Friday."
"It was not sunny on Tuesday." "It was not partly sunny on Friday."

c. "All insects have six legs." "Dragonflies are insects." "Spiders do not have six legs." "Spiders
eat dragonflies."

d. "Every student has an Internet account." "Homer does not have an Internet account." "Mag-
gie has an Internet account."

e. "All foods that are healthy to eat do not taste good." "Tofu is healthy to eat." "You only eat
what tastes good." "You do not eat tofu." "Cheeseburgers are not healthy to eat."

f. "I am either dreaming or hallucinating." "I am not dreaming." "If I am hallucinating, I see
elephants running down the road."

Solution:

a. If we use modus tollens on the last two premises, then we conclude that I am not sore.
Another application of modus tollens then tells us that I did not play hockey.

b. We really can’t conclude anything specific here.

c. By universal instantiation, we conclude from the first conditional statement by modus ponens
that dragonflies have six legs, and we conclude by modus tollens that spiders are not insects.
We could say using existential generalization that, for example, there exists a non-six-leg
creature that eats six-leg creature, and that there exists a non-insect that eats an insect.

d. We can apply universal instantiation to the conditional statement and conclude that if Homer
(respectively, Maggie) is a student, then he (she) has an Internet account. Now modus tollens
tells us that Homer is not a student. No conclusion can be drawn about Maggie.

31
e. The first conditional statement is that if x is healthy to eat, then x does not taste good.
Universal instantiation and modus ponens therefore tell us that tofu does not taste good.
The third sentence says that if you eat x, then x tastes good. Therefore the fourth hypothesis
already follows (by modus tollens) from the first three. No conclusions can be drawn about
cheeseburgers from these statements.

f. By disjunctive syllogism, the first two hypotheses allow us to conclude that I am hallucinat-
ing. Therefore by modus ponens we know that I see elephants running down the road.

Question 58 (Q: 11, pg: 72) Show that the argument form with premises P1 , P2 , . . . , Pn and
conclusion q → r is valid if the argument form with premises P1 , P2 , . . . , Pn , q, and conclusion
r is valid.
Solution:
Suppose that p1 , p2 , . . . , pn are true. We want to establish that q → r is true. If q is false, then
we are done, vacuously. Otherwise, q is true, so by the validity of the given argument form (that
whenever p1 , p2 , . . . , pn , q are true, then r must be true), we know that r is true.

Question 59 (Q.12, pg.72) Show that the argument form with premises (p ∧ t) → (r ∨ s), q →
(u ∧ t), u → p, and ¬s and conclusion q → r is valid by first using Exercise 11 and then using
rules of inference from Table 1.

Solution:
Applying Exercise 11, we want to show that the conclusion r follows from the five premises
(p ∧ t) → (r ∨ s), q → (u ∧ t), u → p, ¬s and q. From q and q → (u ∧ t) we get u ∧ t by modus
ponens. From there we get both u and t by simplification (and the commutative law). From u
and u → p we get p by modus ponens. From p and t we get p ∧ t by conjunction. From that and
(p ∧ t) → (r ∨ s) we get r ∨ s by modus ponens. From that and ¬s we finally get r by disjunctive
syllogism.

Question 60 (Q: 13, pg: 72) For each of these arguments, explain which rules of inference are
used for each step.

a. "Doug, a student in this class, knows how to write programs in JAVA. Everyone who knows
how to write programs in JAVA can get a high-paying job. Therefore, someone in this class
can get a high-paying job."

b. "Somebody in this class enjoys whale watching. Every person who enjoys whale watching
cares about ocean pollution. Therefore, there is a person in this class who cares about ocean
pollution."

c. "Each of the 93 students in this class owns a personal computer. Everyone who owns a per-
sonal computer can use a word processing program. Therefore, Zeke, a student in this class,
can use a word processing program."

d. "Everyone in New Jersey lives within 50 miles of the ocean. Someone in New Jersey has
never seen the ocean. Therefore, someone who lives within 50 miles of the ocean has never
seen the ocean."

32
Solution:

a. Universal instantiation, Modus ponens and Existential generalisation

b. Existential Instantiation, Simplification, Universal instantiation, Modus Ponens, Conjunc-


tion, Existential generalization.

c. Universal instantiation, Modus Ponens, Universal instantiation, Modus Ponens.

d. Existential Instantiation, Simplification, Universal instantiation, Modus Ponens, Simplifica-


tion, Existential generalization.

Question 61 (Q.14, pg:72) For each of these arguments, explain which rules of inference are
used for each step.

a. "Linda, a student in this class, owns a red convertible. Everyone who owns a red convertible
has gotten at least one speeding ticket. Therefore, someone in this class has gotten a speeding
ticket."

b. "Each of five roommates, Melissa, Aaron, Ralph, Veneesha, and Keeshawn, has taken a course
in discrete mathematics. Every student who has taken a course in discrete mathematics can
take a course in algorithms. Therefore, all five roommates can take a course in algorithms
next year."

c. "All movies produced by John Sayles are wonderful. John Sayles produced a movie about coal
miners. Therefore, there is a wonderful movie about coal miners."

d. "There is someone in this class who has been to France. Everyone who goes to France visits
the Louvre. Therefore, someone in this class has visited the Louvre."

Solution:

a. Let c(x) be “x is in this class,” let r(x) be “x owns a red convertible,” and let t(x) be “x has
gotten a speeding ticket.” We are given premises c(Linda), r(Linda), ∀x(r(x) → t(x)), and
we want to conclude ∃x(c(x) ∧ t(x)).
1. ∀x(r(x) → t(x)) Hypothesis
2. r(Linda) → t(Linda) Universal instantiation using (1)
3. r(Linda) Hypothesis
4. t(Linda) Modus ponens using (2) and (3)
5. c(Linda) Hypothesis
6. c(Linda) ∧ t(Linda) Conjunction using (4) and (5)
7. ∃x(c(x) ∧ t(x)) Existential generalization using (6)

b. Let r(x) be “r is one of the five room mates listed,” let d(x) be “x has taken a course in
discrete mathematics,” and let a(x) be “x can take a course in algorithms.” We are given
premises ∀x(r(x) → d(x)) and ∀x(d(x) → a(x)), and we want to conclude ∀x(r(x) → a(x)).
In what follows y represents an arbitrary person.

33
1. ∀x(r(x) → d(x)) Hypothesis
2. r(y) → d(y) Universal instantiation using (1)
3. ∀x(d(x) → a(x)) Hypothesis
4. d(y) → a(y) Universal instantiation using (3)
5. r(y) → a(y) Hypothetical syllogism using (2) and (4)
6. ∀x(r(x) → a(x)) Universal generalization using (5)
c. Let s(x) be “x is a movie produced by Sayles,” let c(x) be “x is a movie about coal miners,”
and let w(x) be “movie x is wonderful.” We are given premises ∀x(s(x) → w(x)) and ∃x(s(x)∧
c(x)), and we want to conclude ∃x(c(x) ∧ w(x)). In our proof, y represents an unspecified
particular movie.
1. ∃x(s(x) ∧ c(x)) Hypothesis
2. s(y) ∧ c(y) Existential instantiation using (1)
3. s(y) Simplification using (2)
4. ∀x(s(x) → w(x)) Hypothesis
5. s(y) → w(y) Universal instantiation using (4)
6. w(y) Modus ponens using (3) and (5)
7. c(y) Simplification using (2)
8. w(y) ∧ c(y) Conjunction using (6) and (7)
9. ∃x(c(x) ∧ w(x)) Existential generalization using (8)

d. Let c(x) be “x is in this class,” let f (x) be “x has been to France,” and let l(x) be “x has
visited the Louvre.” We are given premises ∃x(c(x) ∧ f (x)), ∀x(f (x) → l(x)), and we want
to conclude ∃x(c(x) ∧ l(x)). In our proof, y represents an unspecified particular person.
1. ∃x(c(x) ∧ f (x)) Hypothesis
2. c(y) ∧ f (y) Existential instantiation using (1)
3. f (y) Simplification using (2)
4. c(y) Simplification using (2)
5. ∀x(f (x) → l(x)) Hypothesis
6. f (y) → l(y) Universal instantiation using (5)
7. l(y) Modus ponens using (3) and (6)
8. c(y) ∧ l(y) Conjunction using (4) and (7)
9. ∃x(c(x) ∧ l(x)) Existential generalization using (8)

Question 62 (Q: 15, pg: 72) For each of these arguments determine whether the argument is
correct or incorrect and explain why.

a. All students in this class understand logic. Xavier is a student in this class. Therefore, Xavier
understands logic.

b. Every computer science major takes discrete mathematics. Natasha is taking discrete math-
ematics. Therefore, Natasha is a computer science major.

c. All parrots like fruit. My pet bird is not a parrot. Therefore, my pet bird does not like fruit.

d. Everyone who eats granola every day is healthy. Linda is not healthy. Therefore, Linda does
not eat granola every day.

Solution:

34
a. Correct using Universal instantiation and Modus Ponens

b. Invalid. fallacy of affirming the conclusion.

c. Invalid. fallacy of denying the hypothesis.

d. Correct using Universal instantiation and Modus Tollens

Question 63 (Q.16, pg:72) For each of these arguments determine whether the argument is
correct or incorrect and explain why.

a. Everyone enrolled in the university has lived in a dormitory. Mia has never lived in a dor-
mitory. Therefore, Mia is not enrolled in the university.

b. A convertible car is fun to drive. Isaac’s car is not a convertible. Therefore, Isaac’s car is
not fun to drive.

c. Quincy likes all action movies. Quincy likes the movie Eight Men Out. Therefore, Eight Men
Out is an action movie.

d. All lobstermen set at least a dozen traps. Hamilton is a lobsterman. Therefore, Hamilton sets
at least a dozen traps.

Solution:

a. This is correct, using universal instantiation and modus tollens.

b. This is not correct. After applying universal instantiation, it contains the fallacy of denying
the hypothesis.

c. This is not correct. After applying universal instantiation, it contains the fallacy of affirming
the conclusion.

d. This is correct, using universal instantiation and modus ponens.

Question 64 (Q: 17, pg: 72) What is wrong with this argument? Let H(x) be "x is happy."
Given the premise ∃x H(x), we conclude that H(Lola). Therefore, Lola is happy.

Solution:
x is some x and need not be Lola.

Question 65 (Q.18, pg:72) What is wrong with this argument? Let S(x, y) be “x is shorter than
y.”Given the premise ∃sS(s, M ax), it follows that S(M ax, M ax). Then by existential general-
ization it follows that ∃xS(x, x), so that someone is shorter than himself.

35
Solution:
We know that some s exists that makes S(s, M ax) true, but we cannot conclude that Max is
one such s. Therefore this first step is invalid.

Question 66 (Q: 19, pg: 72) Determine whether each of these arguments is valid. If an argu-
ment is correct, what rule of inference is being used? If it is not, what logical error occurs?

a. If n is a real number such that n > 1, then n2 > 1. Suppose that n2 > 1. Then n > 1.

b. If n is a real number with n > 3, then n2 > 9. Suppose that n2 ≤ 9. Then n ≤ 3.

c. If n is a real number with n > 2, then n2 > 4. Suppose that n ≤ 2. Then n2 ≤ 4.

Solution:

a. Conclusion is False. Given statement is implication and not bi-implication

b. True using Modus tollens.

c. Conclusion is False. Given statement is implication p → q and ¬p which can not be concluded
as ¬q.

Question 67 (Q.20, pg:72) Determine whether these are valid arguments.

a. If x is a positive real number, then x2 is a positive real number. Therefore, if a2 is positive,


where a is a real number, then a is a positive real number.

b. If x2 6= 0, where x is a real number, then x 6= 0. Let a be a real number with a2 6= 0; then


a 6= 0.

Solution:

a. This is invalid. It is the fallacy of affirming the conclusion. Letting a = −2 provides a coun-
terexample.

b. This is valid; it is modus ponens.

Question 68 (Q: 21, pg: 72) Which rules of inference are used to establish the conclusion of
Lewis Carroll’s argument described in Example 26 o f Section 1.3?
Solution:
p: All lions are fierce.
q: Some lions do not drink coffee.
∴ Some fierce creatures do not drink coffee.
By the second premise, there is some lion that does not drink coffee. Let Leo be such a creature.

36
By simplification we know that Leo is a lion. By modus ponens we know from the first premise
that Leo is fierce. Hence, Leo is fierce and does not drink coffee. By the definition of the existential
quantifier, there exist fierce creatures that do not drink coffee, that is, some fierce creatures do
not drink coffee.

Question 69 (Q.22, pg:72) Which rules of inference are used to establish the conclusion of
Lewis Carroll’s argument described in Example 27 of Section 1.3?

Solution:
We will give an argument establishing the conclusion. We want to show that all hummingbirds
are small. Let Tweety be an arbitrary hummingbird. We must show that Tweety is small. The
first premise implies that if Tweety is a hummingbird, then Tweety is richly colored. Therefore
by (universal) modus ponens we can conclude that Tweety is richly colored. The third premise
implies that if Tweety does not live on honey, then Tweety is not richly colored. Therefore by
(universal) modus tollens we can now conclude that Tweety does live on honey. Finally, the
second premise implies that if Tweety is a large bird, then Tweety does not live on honey.
Therefore again by (universal) modus tollens we can now conclude that Tweety is not a large
bird, i.e., that Tweety is small, as desired. Notice that we invoke universal generalization as the
last step.

Question 70 (Q: 23, pg: 72) Identify the error or errors in this argument that supposedly shows
that if ∃xP (x) ∧ ∃xQ(x) is true then ∃x(P (x) ∧ Q(x)) is true.

1 ∃x P (x) ∧ ∃xQ(x) . . . P remise


2 ∃x P (x) . . . Simplif ication f rom (1)
3 P (c) . . . Existential instantiation f rom (2)
4 ∃x Q(x) . . . Simplif ication f rom (1)
5 Q(c) . . . Existential instantiation f rom (4)
6 P (c) ∧ Q(c) . . . Conjunction f rom(3) and (5)
7 ∃x (P (x) ∧ Q(x)) . . . Existential Generalisation

Solution:
The error occurs in step (5), because we cannot assume, as is being done here, that the c that
makes P true is the same as the c that makes Q true.

Question 71 (Q.24, pg:72) Identify the error or errors in this argument that supposedly shows
that if ∀x(P (x) ∨ Q(x)) is true then ∀xP (x) ∨ ∀xQ(x) is true.
1. ∀x(P (x) ∨ Q(x)) Premise
2. P (c) ∨ Q(c) Universal instantiation from (1)
3. P (c) Simplification from (2)
4. ∀xP (x) Universal generalization from (3)
5. Q(c) Simplification from (2)
6. ∀xQ(x) Universal generalization from (5)
7. ∀x(P (x) ∨ ∀xQ(x)) Conjunction from (4) and (6)

Solution:
Steps 3 and 5 are incorrect; simplification applies to conjunctions, not disjunctions.

Question 72 (Q: 25, pg: 72) Justify the rule of universal modus tollens by showing that the
premises ∀x (P (x) → Q(x)) and ¬Q(a) for a particular element a in the domain, imply ¬P (a).

37
Solution:
We are given the premises ∀x(P (x) → Q(x)) and ¬Q(a). We want to show ¬P (a). Suppose, to
the contrary, that ¬P (a) is not true. Then P (a) is true. Therefore, by universal modus ponens,
we have Q(a). But this contradicts the given premise ¬Q(a). Therefore our supposition must
have been wrong and so ¬P (a) is true, as desired.

Question 73 (Q:26, pg.72) Justify the rule of universal transitivity, which states that if ∀x(P (x) →
Q(x)) and ∀x(Q(x) → R(x)) are true, then ∀x(P (x) → R(x)) is true, where the domains of all
quantifiers are the same.

Solution:
We want to show that the conditional statement P (a) → R(a) is true for all a in the domain; the
desired conclusion then follows by universal generalization. Thus we want to show that if P (a)
is true for a particular a, then R(a) is also true. For such an a, by universal modus ponens from
the first premise we have Q(a), and then by universal modus ponens from the second premise
we have R(a), as desired.

Question 74 (Q: 27, pg: 72) Use rules of inference to show that if ∀x (P (x) → (Q(x) ∧ S(x)))
and ∀x (P (x) ∧ R(x)) are true, then ∀x (R(x) ∧ S(x)) is true.
Solution:

1 ∀x P (x) ∧ R(x) . . . P remise


2 P (a) ∧ R(a) . . . U niversal instantiation f rom (1)
3 P (a) . . . Simplif ication f rom (2)
4 ∀x (P (x) → (Q(x) ∧ R(x))) . . . P remise
5 Q(a) ∧ S(a) . . . U niversal instantiation f rom (4)and M odus P onens (3), (4)
6 S(a) . . . Simplif ication f rom (5)
7 R(a) . . . Simplif ication f rom (2)
8 R(a) ∧ S(a) . . . Conjunction f rom (7), (6)
9 ∀x (R(x) ∧ S(x)) . . . U niversal Generalisation f rom (8)

Question 75 (Q.28, pg:72) Use rules of inference to show that if ∀x(P (x)∨Q(x) and ∀x((¬P (x)∧
Q(x)) → R(x) are true, then ∀x(¬R(x) → P (x)) is also true, where the domains of all quanti-
fiers are the same.

Solution:
We want to show that the conditional statement ¬R(a) → P (a) is true for all a in the domain;
the desired conclusion then follows by universal generalization. Thus we want to show that if
¬R(a) is true for a particular a, then P (a) is also true. For such an a, universal modus tollens
applied to the second premise gives us ¬(¬P (a) ∧ Q(a)). By rules from propositional logic, this
gives us P (a) ∨ ¬Q(a). By universal generalization from the first premise, we have P (a) ∧ Q(a).
Now by resolution we can conclude P (a) ∧ P (a), which is logically equivalent to P (a), as desired.

Question 76 (Q: 29, pg: 72) Use rules of inference to show that if ∀x (P (x)∨Q(x)), ∀x (¬Q(x)∨
S(x)), ∀x (R(x) → ¬S(x)), and ∃x ¬P (x) are true, then ∃x ¬R(x) is true.
Solution:

38
1 ∃x ¬P (x) . . . P remise
2 ¬P (c) . . . Existential instantiation f rom (1)
3 ∀x (P (x) ∨ Q(x)) . . . P remise
4 P (c) ∨ Q(c) . . . U niversal instantiation f rom (3)
5 Q(c) . . . Disjunctive Syllogism f rom (2), (4)
6 ∀x (¬Q(x) ∨ S(x)) . . . P remise
7 ¬Q(c) ∨ S(c) . . . U niversal instantiation f rom (6)
8 S(c) . . . Disjunctive Syllogism f rom (5), (7)
9 ∀x (R(x) → ¬S(x)) . . . P remise
10 R(c) → ¬S(c) . . . U niversal instantiation f rom (9)
11 ¬R(c) . . . M odus tollens f rom (9)
12 ∃x ¬R(x) . . . Existential Generalisation f rom (11)

39

Potrebbero piacerti anche