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 281 — #289<br />

8.4. Does All This Really Work? 281<br />

need a way to represent the ordered pair .a; b/ as a set. One way that will work 11<br />

is to represent .a; b/ as<br />

pair.a; b/ WWD fa; fa; bgg:<br />

(b) Explain how to write a <strong>for</strong>mula Pair.p; a; b/, of set theory 12 that means p D<br />

pair.a; b/.<br />

Hint: Now it’s OK to use sub<strong>for</strong>mulas of the <strong>for</strong>m “Members.p; a; b/.”<br />

(c) Explain how to write a <strong>for</strong>mula Second.p; b/, of set theory that means p is a<br />

pair whose second item is b.<br />

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

Homework Problems<br />

Problem 8.34.<br />

In this problem, structural induction and the Foundation Axiom of set theory provide<br />

simple proofs about some utterly infinite objects.<br />

Definition. The class of ‘recursive-set-like” objects, Recs, is defined recursively as<br />

follows:<br />

Base case: The empty set ; is a Recs.<br />

Constructor step: If P is a property of Recs’s that is not identically false, then<br />

is a Recs.<br />

fs 2 Recs j P.s/g<br />

(a) Prove that Recs satisfies the Foundation Axiom: there is no infinite sequence<br />

of Recs, r o ; r 1 ; : : : ; r n 1 ; r n ; : : : such that<br />

Hint: Structural induction.<br />

(b) Prove that every set is a Recs. 13<br />

Hint: Use the Foundation axiom.<br />

: : : r n 2 r n 1 2 : : : r 1 2 r 0 : (8.13)<br />

11 Some similar ways that don’t work are described in problem 8.29.<br />

12 See Section 8.3.2.<br />

13 Remember that in the context of set theory, every mathematical datum is a set. For example,<br />

we think of the nonnegative integers, 0,1,2,. . . , as a basic mathematical data type, but this data type<br />

could be understood as just referring to the sets ;; f;g; ff;gg; : : : .

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

Saved successfully!

Ooh no, something went wrong!