I have the following sentence:
"Everyone who has a tail is a dog"
and its translation to predicate logic is:
$$\neg\exists x \, ( \neg\text{dog}(x) \land \text{hasTail}(x))$$
I don't understand this? How did they get this answer? Can someone help me by explaining how the translation was made?
Thanks.
In words: "There is no one who is not a dog and has a tail".
The obvious translation is $\forall{x}:\text{hasTail}(x)\implies\text{dog}(x)$.
The translation was probably made as follows:
$[\text{hasTail}(x)\implies\text{dog}(x)]$
is equivalent to$[\neg\text{hasTail}(x)\vee\text{dog}(x)]$
is equivalent to$\neg[\text{hasTail}(x)\wedge\neg\text{dog}(x)]$
is equivalent to$\neg[\neg\text{dog}(x)\wedge\text{hasTail}(x)]$