Summary: Solutions for hw03, comp280 04spring.
Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
(2pts) Add yourself to the online grade-database. This part is due by Monday Feb.09, 17:00, so that we can return earlier homeworks to you in class on Tuesday 10th!
You can check your grades on-line . Check this regularly throughout the semester, and inform us right away if there is a discrepancy. The link is also available on the class homework page.
(3 pts.) Rosen, Section 1.3, pg.44, #58.
(4pts)
You come home one evening
to find your roommate exuberant because
they have managed to prove that there is an even prime numbers bigger than two.
More precisely, they have a correct proof of
(Extra Credit 2 pts)
For the sentence
(5pts)
Translate the following conversational English
statements
into first-order logic, using the suggested predicates,
or inventing appropriately-named ones if none provided.
(You may also freely use
(Extra Credit 2pts) Write a formula that is the conjunction of
The solution is
(Extra Credit 2pts)
For the four-part "Musketeer" formula from the preceding exercise,
find two (fundamentally different) interpretations
of
Depict each of these interpretations as a graph -- draw three circles (nodes) representing the three people, and an arrow (edge) from a person to each person they like. (You can glance at Rosen p.542 (Section 8.1), Figure 8 for one such example of a graph.)
For a domain of three people, it turns out there
are only two (non-isomorphic) interpretations.
Take the domain {
One possible interpretation:
both relations are "complete", that is involve all possible pairs:
If we voluntarily impose that
(7pts)
Translate the following statements into first-order logic.
The domain is to be natural numbers, and the binary relation
(7 pts) Alternation of quantifiers: Determine the truth of each of the following sentences in each of the indicated domains.
| \\ | D0 | D1 | D2 | D3 |
|---|---|---|---|---|
| S2 | ||||
| S3 | ||||
| S4 | ||||
| S5 |
| // | D0 | D1 | D2 | D3 |
|---|---|---|---|---|
| S2 | ||||
| S3 | ||||
| S4 | ||||
| S5 |
Here are English representations of these sentences.
(4pts)
In class, we characterized a prime number as
a number
| 1 | ||
| 2 | Complementation of |
|
| 3 | Complementation of |
|
| 4 | DeMorgan's Law (twice), expanding the ≠ (not-equals) shorthand | |
| 5 | Definition of → |
(5pts) Simplify the following formula, so that the body of each quantifier contains only a single atomic formula involving that quantified variable. (Recall, an atomic formula is one with no connectives.) Provide reasoning for each step of your simplification.
Basically, we just repeatedly apply distribution equivalences. In the following, there is some choices as to which formula to simplify next, but all choices lead to the same final answer.
| 1 | ||
| 2 | Distribution of |
|
| 3 | Distribution of |
|
| 4 | Distribution of |
|
| 5 | Distribution of |
|
| 6 | Distribution of |
One common mistake is as follows:
This step is not correct --
the rule for distributing
(4pts) Using the inference rules, formally prove problem (2e).
We show that
| 1 | premise | |||
| 2 | ||||
| 3 | premise | |||
| 4 | ||||
| 5 | premise | |||
| 6 | ||||
| 7 | subproof: | |||
| 7.a | premise | |||
| 7.b | ||||
| 7.c | ||||
| 7.d | Th'm: contrapositive (see below), line 4. | |||
| 7.e | ||||
| 8 | ||||
| 9 | ||||
Doing the above, we realized that we wanted to use the contrapositive
in line 7d.
We don't have
| 1 | premise | |||||
| 2 | subproof: | |||||
| 2.a | premise | |||||
| 2.b | subproof: | |||||
| 2.b.i | premise | |||||
| 2.b.ii | ||||||
| 2.b.iii | ||||||
| 2.c | RAA', line 2b. | |||||
| 3 | ||||||
(3pts)
What is wrong with the following "proof" of
| 1 | subproof: | |||
| 1.a | premise for subproof | |||
| 1.b | |
|||
| 2 | |
|||
In line 1b, we cannot use
First, to realize that this proof is indeed incorrect,
consider the interpretation
where the domain is integers, the
Until the final step,
Note that if we added one more
(6pts)
| 1 | premise | |
| 2 | |
|
| 3 | premise | |
| 4 | |
|
| 5 | |
|
| 6 | |
Note that in line 4, during