Docsity

Logic Homework: CS1050 HW 2 - Logical Equivalences and Quantifiers, Assignments of Computer Science

Toggle sidebar
bg1
CS1050 HW 2
Sec. 1.2
In the following problems, use logical equivalences.
10. Show that each implication is a tautology.
a) [ÿpŸ (p ⁄ q)] Æ q
b) [(p Æ q) Ÿ (q Æ r)] Æ (p Æ r)
12. Determine whether (ÿp Ÿ (p Æ q)) Æ ÿq is a tautology
16. Show that p Æ q and ÿq Æ ÿp are logically equivalent.
Sec. 1.3
12. Let F(x,y) be the statement “x can fool y,” where the universe of discourse is the
set of all people in the world. Use quantifiers to express each of the following statements:
c) Everybody can fool somebody.
d) There is no one who can fool everybody.
22. Determine the truth value of each of the following statements if the universe of
discourse of each variable is the set of real numbers.
a) $x(x2 = 2)
b) $x(x2 = -1)
c) "x$y(x2 = y)
d) "x$y(x = y2)
e) $x"y(xy = 0)
f) $x$y(x + y ≠ y + x)
g) "x≠0$y(xy = 1)
h) $x"y≠0(xy = 1)
i) "x$y(x + y =1)
j) $x$y[(x + 2y = 2) Ÿ (2x + 4y = 5)]
k) "x$y[(x + y = 2) Ÿ (2x – y = 1)]
l) "x"y$z(z = (x + y)/2)
24. Rewrite each of the following statements so that negations appear only within
predicates (that is, so that no negation is outside a quantifier or an expression involving
logical connectives). Use the transformations shown in Table 2. In other words, push all
of the negation symbols inside the quantifiers, changing the sense of the quantifiers
because of the equivalences in Table 2. You may also need to use DeMorgan's laws and
double negation.
a) ÿ$x$yP(x,y)
pf2

Partial preview of the text

Download Logic Homework: CS1050 HW 2 - Logical Equivalences and Quantifiers and more Assignments Computer Science in PDF only on Docsity!

CS1050 HW 2

Sec. 1. In the following problems, use logical equivalences.

10. Show that each implication is a tautology. a) [ ÿ p Ÿ (p ⁄ q)] Æ q b) [(p Æ q) Ÿ (q Æ r)] Æ (p Æ r) 12. Determine whether ( ÿ p Ÿ (p Æ q)) Æ ÿ q is a tautology 16. Show that p Æ q and ÿ q Æ ÿ p are logically equivalent. Sec. 1. 12. Let F(x,y) be the statement “x can fool y,” where the universe of discourse is the set of all people in the world. Use quantifiers to express each of the following statements: c) Everybody can fool somebody. d) There is no one who can fool everybody. 22. Determine the truth value of each of the following statements if the universe of discourse of each variable is the set of real numbers. a) $x(x^2 = 2) b) $x(x^2 = -1) c) "x$y(x 2 = y) d) "x$y(x = y 2 ) e) $x"y(xy = 0) f) $x$y(x + y ≠ y + x) g) "x≠ 0 $y(xy = 1) h) $x"y≠0(xy = 1) i) "x$y(x + y =1) j) $x$y[(x + 2y = 2) Ÿ (2x + 4y = 5)] k) "x$y[(x + y = 2) Ÿ (2x – y = 1)] l) "x"y$z(z = (x + y)/2) 24. Rewrite each of the following statements so that negations appear only within predicates (that is, so that no negation is outside a quantifier or an expression involving logical connectives). Use the transformations shown in Table 2. In other words, push all of the negation symbols inside the quantifiers, changing the sense of the quantifiers because of the equivalences in Table 2. You may also need to use DeMorgan's laws and double negation. a) ÿ$x$yP(x,y)

b) ÿ"x$yP(x,y) c) ÿ$y(Q(y) Ÿ "xÿR(x,y)) d) ÿ$y($xR(x,y) ⁄ "xS(x,y)) e) ÿ$y("x$zT(x,y,z) ⁄ $x"zU(x,y,z))