U = Z N(x): x is a non-negative integer E(x): x is even O(x): x is odd P(x): x is prime Translate into logical notation. 1. There exists an even integer. 2. Every integer is even or odd. 3. All prime integers are non-negative. 4. The only even prime is 2. 5. Not all integers are odd. 6. Not all primes are odd. 7. If an integer is not odd, then it is even. solve any 1 or 2 parts in detail just to give me a headstart ......
2. \[\forall U \in (E(x) \nu O(x))\] is this correct?
1. $$ \Large (\exists x \in \mathbb{Z}) ~~\mathbb{E}(x) $$ if you can assume the universe is Z then $$ \Large \exists x ~\mathbb{E}(x) $$ 2. $$ \Large (\forall x \in \mathbb{Z} ) ~ ( \mathbb{E}(x) \lor \mathbb {O}(x)) $$
2. if we assume U = Z integers then we have $$ \Large \forall x ~ ( \mathbb{E}(x) \lor \mathbb {O}(x)) $$
oh kky 3. \[(\forall x \in Z ) (\forall P(x) \in N(x))\]
3. $$ \Large \forall x ~( \mathbb{P}(x) \to \mathbb{N}(x)) $$
where P(x) means x is prime, as you defined in your directions
and you defined the universe as Z, so we can assume that is the domain of discourse
\[what does this " \rightarrow " stands for?\]
"if P then Q " $$ P \to Q $$
do you use a different symbol for 'if then' ?
no have read it in proposition logic only, didn't used it in predicate yet
predicate logic includes propositional logic. predicate logic is an extension of propositional logic
logical 'or' $$ \huge \lor $$ also comes from propositional logic
\[\leftarrow \rightarrow \] will be used for only then ? in 4.
the five propositional operations , 4 binary, 1 unary operator $$ \Large ~\lor ~\land~ \to ~ \leftrightarrow ~ \neg $$
yes i can recall them now , ty
will 4 be something like this? or am i wrong again :/ ?(\[( E(2) \leftarrow \rightarrow P(x) )\]
almost
4. $$ \Large \forall x ~ [(P(x) \land E(x)) \Rightarrow (x=2)] $$
according to this there is a difference $$ \Large \Rightarrow \\\rightarrow $$ http://en.wikipedia.org/wiki/Material_conditional
but we will use it as the simple propositional logic operator , logical conditional
just plain arrow
is it allowed to use propositional operator wit ha quantifier for e.g \[\Gamma \forall \]
we are only allowed to use the 5 simple operators as u listed
and $$ \Large \forall ~~ \exists $$ quantifiers
and set membership
yes exactly xD
$$ \Large x \in y $$ is acceptable . But the way your homework is set up, we won't need to use set membership. we will need to use equal sign though. Your teacher defined E(x) as meaning $$ \Large x \in \mathbb{E} $$
5. \[\forall x (\Gamma x \in O(x) )\]
i hope i got it right this time .
$$ \Large \mathbb{E}(x) \\ \large \text{has the same meaning as} \\ \Large x \in \mathbb{E} $$
oh kky didn't know that
5. not all integers are odd. means ' it is false that all integers are odd'
or better ' it is not the case that all integers are odd' this is easiest to symbolize logically $$ \Large \neg (\forall x ~\mathbb{O}(x)) $$
this is harder then i expected
$$ \Large \neg (\forall x ~\mathbb{O}(x))\\ \Large \equiv \exists x ~\neg \mathbb{O}(x)\\ \Large \equiv \exists x ~~\mathbb{E}(x) $$
\[\Gamma (\forall P(x) \rightarrow O(x))\]
$$ \huge \equiv \\ \text{means logically equivalent, this is for the reader} $$
it means just different ways of representing the same problem ? i can writer either one of the 3 and the answer will eb the same
right,
is the 6th one right ?
yes :)
your negation sign is a bit odd, capital gamma?
\neg is negation
yes xD couldn't find the negation sign so using gamma :p
7. \[\forall x \space (\neg (O(x)) \rightarrow E(x) )\]
$$ \Large \neg ~[~\forall x ~(\mathbb{P}(x)\to \mathbb{O}(x))]\\ \Large \equiv \exists x~\neg [~\mathbb{P}(x)\to \mathbb{O}(x)] \\ \Large \equiv \exists x~ (\mathbb{P}(x) \land \neg ~\mathbb{O}(x)) \\ $$
here i am using the rule $$ \Large \neg (p \to q) \equiv p \land \neg~q $$
useful to remember $$ \Large p \to q \equiv \neg p \lor q\\ \Large \neg (p \to q) \equiv p \land \neg~q $$
derived from implication definition then demorgan's law application right ?
right :)
is my 7 one right ?
yes just take out the parentheses around O(x)
$$ \large \forall x \space (\neg O(x) \rightarrow E(x) ) $$
oh kky thankyou very very much for your help :)
this is just for reading, you did it correct
good job
thankyou :)
Join our real-time social learning platform and learn together with your friends!