06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 106 — #114<br />

106<br />

Chapter 4<br />

Mathematical Data Types<br />

Problems <strong>for</strong> Section 4.1<br />

Practice Problems<br />

Problem 4.1.<br />

For any set A, let pow.A/ be its power set, the set of all its subsets; note that A is<br />

itself a member of pow.A/. Let ; denote the empty set.<br />

(a) The elements of pow.f1; 2g/ are:<br />

(b) The elements of pow.f;; f;gg/ are:<br />

(c) How many elements are there in pow.f1; 2; : : : ; 8g/?<br />

Problem 4.2.<br />

Express each of the following assertions about sets by a <strong>for</strong>mula of set theory. 7<br />

Expressions may use abbreviations introduced earlier (so it is now legal to use “D”<br />

because we just defined it).<br />

(a) x D ;.<br />

(b) x D fy; zg.<br />

(c) x y. (x is a subset of y that might equal y.)<br />

Now we can explain how to express “x is a proper subset of y” as a set theory<br />

<strong>for</strong>mula using things we already know how to express. Namely, letting “x ¤ y”<br />

abbreviate NOT.x D y/, the expression<br />

.x y AND x ¤ y/;<br />

describes a <strong>for</strong>mula of set theory that means x y.<br />

From here on, feel free to use any previously expressed property in describing<br />

<strong>for</strong>mulas <strong>for</strong> the following:<br />

(d) x D y [ z.<br />

(e) x D y z.<br />

(f) x D pow.y/.<br />

7 See Section 8.3.2.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!