

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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. โ๐ฅโ๐ฆ๐(๐ฅ, ๐ฆ) โ๐ฅโ๐ฆ๐(๐ฆ, ๐ฅ) โ๐ฅโ๐ฆ ๐ ๐ฅ, ๐ฆ โ ๐(๐ฅ, ๐ฆ) โด โ๐ฅโ๐ฆ ๐ ๐ฆ, ๐ฅ โ ๐(๐ฅ, ๐ฆ)