$29
Q.1 Use truth tables to decide whether or not the following two propositions are equivalent.
(a) p q and :p _ :q
(b) (:q ^ :(p ! q)) and :p
(c) (p _ q) ! r and (p ! r) ^ (q ! r)
(d) (p ! :q) $ (r ! (p _ :q)) and q _ (:p ^ :r)
Q.2 Use logical equivalences to prove the following statements.
(a) :(p ! q) ! p is a tautology.
(b) (p ^ :q) ! r and p ! (q _ r) are equivalent.
(c) :p ! (q ! r) and q ! (p _ r) are equivalent.
(d) :(p q) and p $ q are equivalent.
(e) (p ! q) ! ((r ! p) ! (r ! q)) is a tautology.
Q.3 Show that (p ! q) ^ (q ! r) ! (p ! r) is a tautology.
Q.4 Determine whether or not the following two are logically equivalent, and explain your answer.
(a) (p ! q) _ (p ! r) and p ! (q _ r)
(b) (p ! q) ! r and p ! (q ! r)
Q.5 Prove that if p ^ q, p ! :(q ^ r), s ! r, then :s.
Q.6 Let C(x) be the statement \x has a cat", let D(x) be the statement \x has a dog" and let F (x) be the statement \x has a ferret." Express each of these sentences in terms of C(x), D(x), F (x), quanti ers, and logical connectives. Let the domain consist of all students in your class.
1
(a) A student in your class has a cat, a dog, and a ferret.
(b) All students in your class have a cat, a dog, or a ferret.
(c) Some student in your class has a cat and a ferret, but not a dog.
(d) No student in your class has a cat, a dog, and a ferret.
(e) For each of the three animals, cats, dogs, and ferrets, there is a student in your class who has this animal as a pet.
Q.7 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 quanti ers to express each of these statement.
(a) Everybody loves Jerry.
(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 every body 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.
Q.8 Express the negations of each of these statements so that all negation symbols immediately precede predicates.
(a) 8x9y8zT (x; y; z)
(b) 8x9yP (x; y) _ 8x9yQ(x; y)
2
(c) 8x9y(P (x; y) ^ 9zR(x; y; z))
(d) 8x9y(P (x; y) ! Q(x; y))
Q.9
(a) Let P be a proposition in atomic propositions p and q. If P = :(p $
(q _ :p)), prove that P is equivalent to :p _ :q.
(b) If P is of any length, using any of the logical connectives :, ^, _, !, $, prove that P is logically equivalent to a proposition of the from
A B;
where is one of ^, _, $, and A and B are chosen from fp; :p; q; :qg.
Q.10 For each of these arguments, explain which rules of inference are used for each step.
(a) \Each of ve roommates, A, B, C, D, and E, has taken a course in discrete mathematics. Every student who has taken a course in dis-crete mathematics can take a course in algorithms. Therefore, all ve roommates can take a course in algorithms next year."
(b) \All movies produced by John Sayles are wonderful. John Sayles pro-duced a movie about coal miners. Therefore, there is a wonderful movie about coal miners."
Q.11 Prove or disprove that there is a rational number x and an irrational number y such that xy is irrational.
p
Q.12 Prove that 3 2 is irrational.
Q.13 Give a direct proof that: Let a and b be integers. If a2 + b2 is even, then a + b is even.
Q.14 Prove that between every two rational numbers there is an irrational number.
3