See some sample problems.
Although you are welcome to typeset your work nicely (using Microsoft Word or LaTeX or whatever to get nice logic symbols), it's probably much easier to write formulas by hand.
Remember that to prove a ∀ requires showing that something holds for all possible value. Disproving a ∀ is easier; you simply show one counterexample. Conversely, to disprove a &exists; requires showing that something never holds, and proving an ∃ is easier; you simply show a witness making the statement true.
closed under multiplication(that is: the product of two rational numbers is rational).
An if and only if
requires two parts;
we're sure to clearly bullet each part,
to make the outline of our proof evident.
Part I, if
:
We show that if a<(a+b)/2, then a<b:
a<(a+b)/2
≡ 2a<(a+b) (multiply each side by 2)
≡ a<b (subtract a from each side)
Part II, only if
:
We show that if a<b, then a<(a+b)/2.
(Since each step of part I is reversible, we can actually just
take those same steps in reverse:)
a<b
≡ 2a<(a+b) (add a to each side)
≡ a<(a+b)/2 (divide each side by 2)
dense: that is, between any two (different) rational numbers there exists another rational number.
stringLength
: Σ* → N
…
stringLength
as L. In each case, prove your answer (whether
yesor
no). (You'll of course need to use the exact definition of one-to-one and onto from the book.)
If you see a few other problems in Rosen which catch your eye, and you'd like to do them for extra credit, you are welcome to (though you can ask me for how much; extra-credit is harder to earn point-per-point than regular credit).
If you write your own html, you might be interested in this page of useful html math (and other) entities