I have a question in my discrete math class that I was having some confusion with.
If:
N(x): x is a non-negative integer
E(x): x is even
O(x): x is odd
P(x): x is prime
Negate each sentence and translate into logical notation.
- There exists an even integer.
Would this be: There is an integer that is not even. $∀x $~$ E(x)$ Every integer is even or odd.
Would this be: There exists an integer that is not even or odd. $∃ x $~$ (E(x) $V$ O(x))$All prime integers are non-negative.
Would this be: There exists a prime that is not non-negative. $∃ x $~$ P(x) \Rightarrow N(x)$The only even prime is 2.
Would this be: The only even prime is not 2. $∀x $~$(P(x) \wedge E(x)) \Rightarrow 2$Not all integers are odd.
Would this be: All integers are odd. $∀xO(x)$
I was wondering if my logic in answering these questions was right.
(1.) and (2.) are correct. (3.) should be $\neg \forall x (P(x) \Rightarrow \neg N(x))$. This is equivalent to both $\exists x \neg(P(x)\Rightarrow N(x))$ and $\exists x (P(x) \land \neg N(x))$.
For (4.) you need the sentence "2 is not the only prime even number," which means either 2 is not a prime even number or there is another prime even number. It can be formalized as $\neg (P(2)\land E(2) \land \forall x ([P(x) \land E(x) ] \Rightarrow x=2)$.
(5.) is correct.