0% found this document useful (0 votes)
41 views2 pages

CSE191 Ps 3 Key

This document contains an answer key for Assignment 3 of CSE191. It provides answers to 5 problems involving translating logical statements into English and representing them using predicates, quantifiers and logical connectives. The problems involve statements about rabbits hopping, tools being in the correct place, and finding counterexamples to universally quantified statements over real numbers.

Uploaded by

TFFDiamond GT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

CSE191 Ps 3 Key

This document contains an answer key for Assignment 3 of CSE191. It provides answers to 5 problems involving translating logical statements into English and representing them using predicates, quantifiers and logical connectives. The problems involve statements about rabbits hopping, tools being in the correct place, and finding counterexamples to universally quantified statements over real numbers.

Uploaded by

TFFDiamond GT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CSE191 Assignment 3 Answer Key Fall 2013

1 Problem 1 (15 points)


Translate each of the following into English, where H(x) is the predicate that x hops, and R(x) is the
predicate that x is a rabbit.
(a) (∀x)(H(x) → R(x)) is "Every animal that hops is a rabbit."
(b) (∀x)(R(x) ∨ H(x)) is "Every animal hops or is a rabbit."
(c) (∃x)(H(x) → R(x)) is "There exists an animal such that, if it hops, then it is a rabbit".
(d) (∃x)(R(x) ∨ H(x)) is "There exists an animal that hops or is a rabbit."
(e) (∃xR(x)) ∨ (∃xH(x)) is There exists an animal that hops or there exists and animal that is a rabbit
Note also that /if/ we take it for granted as "background knowledge" that all rabbits hop, i.e. (∀x)(R(x) →
H(x)), then statements (b) and (d) are "redundant". But of course, there might be hopless rabbits out
there...

2 Problem 2 (9 points)
(e) ((∃x)H(x)) ∨ ((∃y)R(y))is that equivalent to (d)?
KWR note: I've renamed the second "x" to "y" here, as is AOK with a "dummy variable" as opposed to a
free variable.) This says, "Either there exists an animal that hops, or there is a rabbit." Is this equivalent
to (d) now? IMHO yes, it's pretty clear from the language. FYI, a "semantic" proof would go like this:
Mindful that there are two separate quantiers here, the truth of (e) means:

there exist objects a,b in the domain D such that a hops or b is a rabbit.

Whereas the truth of (d) is the seemingly more-demanding statement:

there exists an object a in the domain D such that a hops or a is a rabbit.

Well, for (a,b) given in (d), either a hops or b is a rabbit. If the former, then a witnesses the statement in
(d). If the latter, then taking a = b witnesses the statement in (d). Thus (e) =⇒ (d), and since (d) =⇒ (e)
is clear, they are equivalent.

3 Exercise 1.5.24 (12 points)


Translate in two ways each of these statements into logical expressions using predicates, quantiers, and
logical connectives. First, let the domain consist of the students in your class and second, let it consist of
all people. Let:

S(x) = x is a student in your class


C(x) = x has a cellular phone
F (x) = x has seen a foreign movie.
Sw(x) = x can swim
Q(x) = x can solve quadratic equations
R(x) = x desires to be rich.

(a) Everyone in your class has a cellular phone.

(∀x : student)C(x)
(∀x : people)(S(x) → C(x))
(b) Somebody in your class has seen a foreign movie.

(∃x : student)F (x)


(∃x : people)(S(x) ∧ F (x))

1
(c) There is a person in your class who cannot swim.

(∃x : student)¬Sw(x)
(∃x : people)(S(x) ∧ ¬Sw(x))
(d) All students in your class can solve quadratic equations.

(∀x : student)Q(x)
(∀x : people)(S(x) → Q(x))
(e) Some student in your class does not want to be rich.

(∃x : student)¬R(x)
(∃x : people)(S(x) ∧ ¬R(x))
same as( c)

4 Exercise 1.5.28 (b,c,d,e) (12 points)


Translate each of these statements into logical expressions using predicates, quantiers, and logical connec-
tives.
Let T (x) = x is a tool, C(x) = x is in the correct place, and E(x) = x is in excellent condition.

(b) All tools are in the correct place and are in excellent condition.

(∀x)(T (x) → (C(x) ∧ E(x)))


KWR note: This is where I hope my lecture ris about going vanilla help a bitit's contrary to
the meaning here to say you are using the domain of tools and just writing (∀x)(C(x) ∧ E(x)), The
dierence is shown by the next question.

(c) Everything is in the correct place and in excellent condition.

(∀x)(C(x) ∧ E(x))
(d) Nothing is in the correct place and is in excellent condition.

KWR note: This one was treated as being potentially ambiguous. The preferred reading is to insert
both after nothing is, and this gives:

(∀x)(¬(C(x) ∧ E(x)))
But it is also possible to read the speaker as intending to say nothing also before is in excellent
condition. This gives:

(∀x)(¬C(x) ∧ ¬E(x))

(e) One of your tools is not in the correct place, but it is in excellent condition.

(∃x)(T (x) ∧ ¬C(x) ∧ E(x))

5 Exercise 1.5.36 (12 points)


Find a counterexample, if possible, to these universally quantied statements, where the domain for all
variables consists of all real numbers.
Also say which of the false statements become(s) true when the domain is restricted to the nonnegative
integers, that is, to N
a) ∀x(x2 6= x) 0 or 1

b) ∀x(x2 6= 2) ± 2
c) ∀x(|x| > 0) 0
if the domain is restricted to the nonnegative integers, b) becomes true

You might also like