Either he is both asleep and has his coat, or he has the leash, but not both.
l → c
Either he has the leash or, if he has his coat, he is not asleep.
w ↔ ¬(a ∨ ¬l ∨ ¬c)
With a truth table, it is easier to just analyze I, II, and III on the variables
a, c, and l -- we find that I ∧ II ∧ III are true if and only if
(¬a ∧ c ∧ l), which by IV (using DeMorgan) is equivalent to w.
Here is one way to do the deductive sequence proof:
((a and c) xor l) and (l --> c) AND (l or (c --> not a))
0 0 0 0 0 0 0 1 0 |0| 0 1 0 1 1 0
0 0 0 1 1 0 1 0 0 |0| 1 1 0 1 1 0
0 0 1 0 0 0 0 1 1 |0| 0 1 1 1 1 0
0 0 1 1 1 1 1 1 1 |1| 1 1 1 1 1 0
1 0 0 0 0 0 0 1 0 |0| 0 1 0 1 0 1
1 0 0 1 1 0 1 0 0 |0| 1 1 0 1 0 1
1 1 1 1 0 1 0 1 1 |0| 0 0 1 0 0 1
1 1 1 0 1 0 1 1 1 |0| 1 1 0 0 0 1
B(e) ∧ L(e) (You may supply any name for the constant "Ebony".)
There exists a dog that likes to swim and is not black.
"If a dog likes to swim, then it is a Labrador": ∀x: S(x) → L(x)
¬E(x,y) ↔ (B(x) ⊕ B(y))
Prove that E is an equivalence relation. (Use this definition only, not the statements from (a).)
Reflexive: E(x,x) is defined to be ¬(B(x) ⊕ B(x)) = ¬0 = 1.
Symmetric: E(x,y) ↔ ¬(B(x) ⊕ B(y)) ↔ ¬(B(y) ⊕
B(x)) ↔ E(y,x), using VIII and the fact that ⊕ is commutative (that
is, for any p and q, (p ⊕ q) ↔ (q ⊕ p)).
Transitive: Assume E(x,y) and E(y,z), so that (B(x) ⊕ B(y)) and
(B(y) ⊕ B(z)) are both false. This means that B(x) and B(y) have the
same value, and that B(y) and B(z) have the same value, so we see that B(x)
⊕ B(z) is false and so E(x,z) is true.
∀u:∃v: L(v) ∧ E(u,v)
(For full credit you must use the predicate calculus proof rules -- there will be partial credit for informal arguments.)
We can be sure that f is onto. The definition of onto is that ∀c:∃d: f(d) = c. Let c be an arbitrary element of C. If c = b, then we can let d be e (Ebony), and we know that f(e) = c because B(e) is true. If c = n, then we can let d be the dog whose existence is guaranteed by VI. Since we have ¬B(d) for this dog we know that f(d) = n. These are the only cases possible for c since C = {b, n}, so we have proved ∃d:f(d) = c for arbitrary c and have thus verified that f is onto.
We don't have enough information to determine whether f is one-to-one. We know that two different dogs exist: Ebony and the dog guaranteed to exist by VI. (They aren't the same dog because Ebony is black and the other dog isn't.) If a third dog exists, then f cannot be one-to-one because either Ebony or the second dog will have the same color as the third dog and thus the same value of f. But there is no reason why a third dog has to exist -- the axioms are all satisfied if Ebony (a black Labrador who might or might not swim) and the non-black, swimming Labrador from VI are the only two dogs in D. And in this case, f is one-to-one.
R(a,b) ↔ [(a ≤ b) ∧ (∃c: b - a = 2c)]
That is, R(a,b) means that b - a is an even natural.
Here are your questions:
Let a and b be arbitrary naturals and assume that R(a,b) and R(b,a) are both true. By left separation on the definition, we have that a ≤ b and b ≤ a are both true. By arithmetic, we have then than a = b. We have given a direct proof of the given implication for arbitary a and b, so we have proven that R is anti-symmetric.
R must be reflexive: ∀a:R(a,a). Let a be arbitrary. We know that
a ≤ a from arithmetic, and a - a = 0 is even (we can take c to be 0).
Since a was arbitrary, we have proved the reflexive property.
R must be transitive: ∀a:∀b:∀c:[R(a,b) ∧ R(b,c)]
→ R(a,c). Let a, b, and c be arbitrary and assume both R(a,b) and R(b,c).
We know that a ≤ b and that b ≤ c by separation on these assumptions,
so a ≤ c follows by the known transitivity of "≤". We know, also by
separation on the assumptions, that b - a and c - b are both even naturals.
Since c - a is the sum of b - a and c - b, it is also an even natural. We
have now verified the two conditions we need to conclude that R(a,c) is true.
We have thus completed a direct proof of (R(a,b) ∧ R(b,c)) → R(a,c).
Since a, b, and c were arbitrary, we have proved the transitive property
by Generalization. Since R is reflexive, antisymmetric, and transitive,
it is a partial order.
Last modified 27 February 2005