I am reading the book How to prove it, and doing some of the exercise.
In section 2.2, it asked us to negate the statement: Everyone has a roommate who dislike everyone. And then reexpress the results as equivalent positive statements.
My trial: Let $R(x,y)$ means $x$ is a roommate of $y$. And L(x,y) means $x$ likes $y$.
$$\forall x \exists y (R(x,y) \to \forall z(\neg L(y,z)))$$ negate this and get $$\neg \forall x \exists y (R(x,y) \to \forall z(\neg L(y,z))$$ The answer is $$\exists x \forall y(R(x,y) \land \exists z (L(y,z)))$$
The answer is very similar to the correct answer, $\exists x \forall y (R(x,y) \to \exists z(L(y,z)))$
After some investigation, I found that if I set the first equation to be $$\forall x \exists y (R(x,y) \land \forall z(\neg L(y,z)))$$ then I will get the correct answer.
So, my question is what is the difference between the equation that used "if" and the one used "and".
I am confused because in another question: Everyone who is majoring in math has a friend who needs help with his homework. I wrote the logical form as $$\forall x (M(x) \to \exists y(F(x,y) \land H(y)))$$. where $M(x)$ means $x$ is a math major, $F(x,y)$ means $x$ is a friend of $y$ and $H(y)$ means $y$ needs help on homework.
Can I write it as $$\forall x (M(x) \land \exists y(F(x,y) \land H(y)))$$.