Questions are in black, solutions in blue.
(a∨b)→¬c
If the pizza has broccoli and does not have calimari, then it has anchovies.
¬(c∧a) → b
There is exactly one possible solution, with anchovies and broccoli but not
calimari. Here is one of several possible propositional proofs:
This solution satisfies all three rules trivially, and the proof above
shows that no other solution is possible. A truth table would also work.
B is reflexive, because for all three possible values of x, B(x,x) is true.
B is antisymmetric, because there is no case where B(x,y) and B(y,x) are
both true and x ≠ y. (There are three possible choices of a set {x,y}
with x ≠ y, and in each of them one of B(x,y) and B(y,x) is false.)
B is not transitive -- we can show this with a single counterexample
to the transitivity rule: B(r,s) and B(s,p) are true but B(r,p) is false.
Since B does not satisfy all three properties, it is not a partial order.
Here are your questions:
A surjection is a function where every possible output value is the result of the function on some input value. The function f is a surjection because every natural n is equal to f(2n) and is thus a result. The function h is not a bijection because it never takes on an odd value. The function t is a bijection because any natural n is equal to t(n). The function s is not a surjection because it never takes on an odd value.
An injection is a function where any two different inputs have different outputs. The function f is not an injection because of the example given, where inputs 6 and 7 have the same output. The function h is an injection because if x ≠ y, then 2x ≠ 2y. The function t is an injection because t(n) = n for all n. The function s is not an injection because, for example, s(6) and s(7) are both equal to h(3), or 6.
A bijection is a function that is both a surjection and an injection -- it is also called a one-to-one correspondence because it assigns each input a unique output. Only t is a bijection -- each of the others fails to be one or the other (s is neither).
natural
.
The statement is true. Let n be an arbitrary natural. Then f(n) is some number k, where either n = 2k (if n is even) or n = 2k+1 (if n is odd). So s(n) = h(f(n)) = h(k) = 2k. Then f(s(n)) = k, and s(s(n)) = h(f(s(n)) = h(k) = 2k. Since s(n) and s(s(n)) are each equal to 2k, they are equal to each other.
¬∃a:∀b:P(a,b)
"There is a dog c such that for any two dogs d and e, if neither d nor e play nicely with c, then d plays nicely with c,", or equivalently "There is a dog such that any two dogs that don't play nicely with it play nicely with each other."
Last modified 25 February 2005