
CSE260
Solutions to Homework Set #3
23. Translate in two ways each of these statements into logical expressions using predicates,
quantifiers, and logical connectives. First, let the domain consist of the students in your class and
second, let it consist of all people.
Let C(x) be the propositional function “x is in your class”.
a) Someone in your class can speak Hindi.
xH(x) and x(C(x) /\ (H(x)), where H(x) is “x can speak Hindi”.
b) Everyone in your class is friendly.
F(x) and x(C(x) → F(x)), where F(x) is “x is friendly”.
c) There is a person in your class who was not born in California.
x¬B(x) and x(C(x) /\ ¬B(x)), where B(x) is “x was born in California”.
d) A student in your class has been in a movie.
xM(x) and x(C(x) /\ M(x)), where M(x) is “x has been in a movie”.
e) No student in your class has taken a course in logic programming.
x¬L(x) and x(C(x) → ¬L(x)), where L(x) is “x has taken a course in logic programming”.
41. Express each of these system specifications using predicates, quantifiers, and logical connectives.
a) At least one mail message, among the nonempty set of messages, can be saved if there is a disk with
more than 10 kilobytes of free space.
(xF(x, 10)) → xS(x), where F(x, y) is “Disk x has more than y kilobytes of free space”, and S(x) is
“mail message x can be saved”.
b) Whenever there is an active alert, all queued messages are transmitted.
xA(x) → x(Q(x) → T(x)), where A(x) is “Alert x is active”, Q(x) is “Message x is queued”, and
T(x) is “Message x is transmitted”.
c) The diagnostic monitor tracks the status of all systems except the main console.
x(x ≠ the main console) → T(x)), where T(x) is “The diagnostic monitor tracks the status of system
x”.
d) Each participant on the conference call whom the host of the call did not put on a special list was
billed.
x(¬L(x) → B(x)), where L(x) is “The host of the conference call put participant x on a special list”
and B(x) is “Participant x was billed”.
52. As mentioned in the text, the notation !xP(x) denotes “There exists a unique x such that P(x) isxP(x) denotes “There exists a unique x such that P(x) is
true”. If the domain consists of all integers, what are the truth values of these statements.
c) !xP(x) denotes “There exists a unique x such that P(x) isx(x + 3 = 2x)
True