Docsity

Fall 2009 CMSC 250 Homework 3 Solutions: Logic Problems - Prof. Donald R. Perlis, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Fall 2009
CMSC 250: Homework 3 Solutions
Perlis
Due at the start of discussion section Wednesday, September 23, 2009.
Please staple your homeworks together if you use more than one page.
Problem 1. (1 point) Print your name ,
section number , and your TAโ€™s name .
Problem 2. (1 point) When is the first exam? |
Problem 3. (20 points) For the following problems, the set of real numbers, โ„, is the domain
and ๐ด in parts (b) and (c) is a subset of โ„. Express the following predicates symbolically:
a. Density of the Reals: For every two real numbers ๐‘ฅ and ๐‘ฆ, if ๐‘ฅ โ‰  ๐‘ฆ then there is a
real number ๐‘ง between them.
โˆ€๐‘ฅ,๐‘ฆ โˆˆ โ„ โˆƒ๐‘ง โˆˆ โ„ ๐‘ฅ โ‰  ๐‘ฆ โ†’ ๐‘ฅ<๐‘ง<๐‘ฆ โˆจ ๐‘ฆ<๐‘ง<๐‘ฅ
b. The predicate ๐‘ˆ๐ด(๐‘ฅ): ๐‘ฅ is greater than every element of the set ๐ด.
๐‘ˆ๐ด ๐‘ฅ โˆถ โˆ€๐‘Ž โˆˆ ๐ด ๐‘ฅ>๐‘Ž
c. The predicate ๐‘†๐ด(๐‘ฅ): ๐‘ˆ๐ด ๐‘ฅ and there is no ๐‘ฆ less than ๐‘ฅ such that ๐‘ˆ๐ด(๐‘ฆ).
๐‘†๐ด ๐‘ฅ โˆถ ๐‘ˆ๐ด ๐‘ฅ โˆง~ โˆƒ๐‘ฆ ๐‘ฆ<๐‘ฅ โˆง ๐‘ˆ๐ด ๐‘ฆ
Problem 4. (10 points) Problem 6 on page 108 of Epp.
There are three colors of circles; so whatever color a given square x has, it cannot be the
same as all three circle colors, so at least one (in fact two) circles have colors different
from the color of x.
Problem 5. (10 points) Problem 8 on page 108 of Epp.
Triangle ๐‘–, is in the bottom row, while there are no circles in the bottom row. ๐‘– is a
triangle that is below all the circles.
Problem 6. (20 points) Let the domain of discourse be โ„ค. For what choices of ๐ด โŠ‚ โ„ค could the
following statements be true and false? Briefly explain your answer.
a. โˆ€๐‘ฅ โˆˆ ๐ด,๐‘ฅ โ‰  ๐‘ฅ
True if ๐ด=โˆ…, false otherwise. ๐‘ฅ โ‰  ๐‘ฅ can never be true, so the statement can only be
true if it is a vacuous truth.
b. โˆƒ๐‘ฅ โˆˆ ๐ด,๐‘ฅ โ‰  ๐‘ฅ
Always false. If ๐ด=โˆ…, there is no ๐‘ฅ to satisfy the requirement of existence. If
๐ด โ‰  โˆ…, then it only contains elements that do not satisfy ๐‘ฅ โ‰  ๐‘ฅ.
pf3

Partial preview of the text

Download Fall 2009 CMSC 250 Homework 3 Solutions: Logic Problems - Prof. Donald R. Perlis and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

Fall 2009 CMSC 250: Homework 3 Solutions Perlis

Due at the start of discussion section Wednesday, September 23, 2009.

Please staple your homeworks together if you use more than one page.

Problem 1. (1 point) Print your name , section number , and your TAโ€™s name.

Problem 2. (1 point) When is the first exam? |

Problem 3. (20 points) For the following problems, the set of real numbers, โ„, is the domain and ๐ด in parts (b) and (c) is a subset of โ„. Express the following predicates symbolically:

a. Density of the Reals: For every two real numbers ๐‘ฅ and ๐‘ฆ, if ๐‘ฅ โ‰  ๐‘ฆ then there is a real number ๐‘ง between them.

โˆ€๐‘ฅ, ๐‘ฆ โˆˆ โ„ โˆƒ๐‘ง โˆˆ โ„ ๐‘ฅ โ‰  ๐‘ฆ โ†’ ๐‘ฅ < ๐‘ง < ๐‘ฆ โˆจ ๐‘ฆ < ๐‘ง < ๐‘ฅ

b. The predicate ๐‘ˆ๐ด(๐‘ฅ): ๐‘ฅ is greater than every element of the set ๐ด.

๐‘ˆ๐ด ๐‘ฅ โˆถ โˆ€๐‘Ž โˆˆ ๐ด ๐‘ฅ > ๐‘Ž

c. The predicate ๐‘†๐ด(๐‘ฅ): ๐‘ˆ๐ด ๐‘ฅ and there is no ๐‘ฆ less than ๐‘ฅ such that ๐‘ˆ๐ด(๐‘ฆ).

๐‘†๐ด ๐‘ฅ โˆถ ๐‘ˆ๐ด ๐‘ฅ โˆง ~ โˆƒ๐‘ฆ ๐‘ฆ < ๐‘ฅ โˆง ๐‘ˆ๐ด ๐‘ฆ

Problem 4. (10 points) Problem 6 on page 108 of Epp.

There are three colors of circles; so whatever color a given square x has, it cannot be the same as all three circle colors, so at least one (in fact two) circles have colors different from the color of x.

Problem 5. (10 points) Problem 8 on page 108 of Epp.

Triangle ๐‘–, is in the bottom row, while there are no circles in the bottom row. ๐‘– is a triangle that is below all the circles.

Problem 6. (20 points) Let the domain of discourse be โ„ค. For what choices of ๐ด โŠ‚ โ„ค could the following statements be true and false? Briefly explain your answer.

a. โˆ€๐‘ฅ โˆˆ ๐ด, ๐‘ฅ โ‰  ๐‘ฅ

True if ๐ด = โˆ…, false otherwise. ๐‘ฅ โ‰  ๐‘ฅ can never be true, so the statement can only be true if it is a vacuous truth.

b. โˆƒ๐‘ฅ โˆˆ ๐ด, ๐‘ฅ โ‰  ๐‘ฅ

Always false. If ๐ด = โˆ…, there is no ๐‘ฅ to satisfy the requirement of existence. If ๐ด โ‰  โˆ…, then it only contains elements that do not satisfy ๐‘ฅ โ‰  ๐‘ฅ.

c. Let ๐‘ƒ ๐‘ฅ, ๐‘ฆ be ๐‘ฅ๐‘ฆ > 0 โˆ€๐‘ฅ โˆˆ ๐ด โˆƒ๐‘ฆ โˆˆ ๐ด ๐‘ƒ ๐‘ฅ, ๐‘ฆ โ†’ โˆƒ๐‘ฅ โˆˆ ๐ด โˆ€๐‘ฆ โˆˆ ๐ด ๐‘ƒ ๐‘ฅ, ๐‘ฆ

To make this implication false, the left side must be true and the right side must be false.

If ๐ด = โˆ…, then the implication is false. See parts (a) and (b).

Consider any set ๐ด which contains a positive element ๐‘ and a negative element ๐‘›, but does not 0. Note that 0 is not positive or negative. Every element in ๐ด can either be multiplied by ๐‘ or ๐‘› to form a positive product, so โˆ€๐‘ฅ โˆˆ ๐ด โˆƒ๐‘ฆ โˆˆ ๐ด ๐‘ƒ ๐‘ฅ is true. However, there is no single element ๐‘ง so that both with ๐‘ง๐‘ > 0 and ๐‘ง๐‘› > 0. One of those must be less than 0. So โˆƒ๐‘ฅ โˆˆ ๐ด โˆ€๐‘ฆ โˆˆ ๐ด ๐‘ƒ ๐‘ฅ, ๐‘ฆ is false, making the implication false.

For any other set ๐ด, the implication is true. If ๐ด โŠ‚ โ„ค+, then both the right and left sides are always true, making the implication true. If ๐ด โŠ‚ โ„คโˆ’, then both the right and left sides are always true, making the implication true. If 0 โˆˆ ๐ด, then both sides are false, making the implication true.

Problem 7. (18 points) Negate the following and then use DeMorganโ€™s Laws to re-express the result in a simpler form with any negation symbols pushed all the way next to predicate letters:

a. โˆƒ๐‘ฅ ๐‘ƒ ๐‘ฅ โ†’ โˆ€๐‘ฆ๐‘„ ๐‘ฆ

โˆ€๐‘ฅ โˆ€๐‘ฆ๐‘„ ๐‘ฆ โˆง ~๐‘ƒ(๐‘ฅ)

b. โˆ€๐‘ฅ ๐‘ƒ ๐‘ฅ โˆจ โˆƒ๐‘ฆ๐‘„ ๐‘ฆ

โˆƒ๐‘ฅ ~๐‘ƒ ๐‘ฅ โˆง โˆ€๐‘ฆ~๐‘„ ๐‘ฆ

c. โˆ€๐‘ฅ๐‘ƒ ๐‘ฅ โ†’ โˆƒ๐‘ฆ๐‘ƒ ๐‘ฆ

โˆƒ๐‘ฆ๐‘ƒ ๐‘ฆ โˆง โˆƒ๐‘ฅ~๐‘ƒ ๐‘ฅ

Problem 8. (20 points) Find an interpretation which gives a counterexample showing that the following arguments are invalid:

a. โˆƒ๐‘ฅโˆ€๐‘ฆ๐‘ƒ(๐‘ฅ, ๐‘ฆ) โˆ€๐‘ฅโˆƒ๐‘ฆ๐‘ƒ(๐‘ฅ, ๐‘ฆ) โˆด โˆ€๐‘ฅโˆ€๐‘ฆ๐‘ƒ(๐‘ฅ, ๐‘ฆ)

b. โˆ€๐‘ฅโˆƒ๐‘ฆ๐‘ƒ(๐‘ฅ, ๐‘ฆ) โˆ€๐‘ฅโˆƒ๐‘ฆ๐‘ƒ(๐‘ฆ, ๐‘ฅ) โˆ€๐‘ฅโˆ€๐‘ฆ ๐‘ƒ ๐‘ฅ, ๐‘ฆ โ†’ ๐‘„(๐‘ฅ, ๐‘ฆ) โˆด โˆ€๐‘ฅโˆ€๐‘ฆ ๐‘ƒ ๐‘ฆ, ๐‘ฅ โ†’ ๐‘„(๐‘ฅ, ๐‘ฆ)