06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“mcs” — 2017/3/3 — 11:21 — page 86 — #94<br />

86<br />

Chapter 3<br />

Logical Formulas<br />

(e) An elegant, slightly trickier way to define NO-1S.x/ is:<br />

Explain why (*) is true only when x is a string of 0’s.<br />

PREFIX.x; 0x/: (*)<br />

Problem 3.31.<br />

For each of the logical <strong>for</strong>mulas, indicate whether or not it is true when the domain<br />

of discourse is N, (the nonnegative integers 0, 1, 2, . . . ), Z (the integers), Q<br />

(the rationals), R (the real numbers), and C (the complex numbers). Add a brief<br />

explanation to the few cases that merit one.<br />

9x: x 2 D 2<br />

8x:9y: x 2 D y<br />

8y:9x: x 2 D y<br />

8x ¤ 0:9y: xy D 1<br />

9x:9y: x C 2y D 2 AND 2x C 4y D 5<br />

Problem 3.32.<br />

Show that<br />

.8x9y: P.x; y// ! 8z: P.z; z/<br />

is not valid by describing a counter-model.<br />

Homework Problems<br />

Problem 3.33.<br />

Express each of the following predicates and propositions in <strong>for</strong>mal logic notation.<br />

The domain of discourse is the nonnegative integers, N. Moreover, in addition to<br />

the propositional operators, variables and quantifiers, you may define predicates<br />

using addition, multiplication, and equality symbols, and nonnegative integer constants<br />

(0, 1,. . . ), but no exponentiation (like x y ). For example, the predicate “n is<br />

an even number” could be defined by either of the following <strong>for</strong>mulas:<br />

(a) m is a divisor of n.<br />

9m: .2m D n/; 9m: .m C m D n/:

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

Saved successfully!

Ooh no, something went wrong!