Is this correct? thank you for your help.
I don't see that you negated the original formula. What I see is that you listed equivalents of the original formula.
The negation of a formula F is the formula ~F.
So the negation of
Ex(xPx & ~xQx & Ay(xQy & ~yPy & ~yQx))
~Ex(xPx & ~xQx & Ay(xQy & ~yPy & ~yQx))
As to parentheses, I just took the informality of eliminating a lot unnecessary parentheses.
But there's a technical point (pedantic but nevertheless it is best to be precise) (and it might be a problem with the wording of the problem itself): The negation of a formula F is ~F. So when asked to negate a formula, we don't have to go on also to mention other equivalents derived by such things as DeMorgan's laws and quantifier exchange. In fact, those extra equivalents are NOT the negation of your original formula. They are EQUIVALENTS of the negation but are not themselves the negation.
That is to say, if I answered that question on a test, I would just put the negation sign on the outside of the formula and move on to the next question. If the professor said that I'm wrong because I didn't transform further, then I'd tell him that he's wrong. The negation of a formula F is ~F period, and any other transformation gives an EQUIVALENT of the negation but not the negation ITSELF. If asked to negate F, the correct answer is to write ~F.
That is misstated. If that is what your professor said, then he is using sloppy terminology. First, you negated, then you didn't continue to negate, rather you showed (through various laws such as DeMorgan's and quantifier exchange) successive formulas equivalent to the negated formula.in class we were taught to negate further until we cant negate anymore.
If the problem is to negate the formula and then show an equivalent formula that has the negation sign only in front of atomic formulas, then the last line in your list is the answer. But the problem was just to negate the formula, so the first formula in your list is the answer.
As far as intellectual integrity is concerned, you should answer the question correctly. If the lecturer has misstated the problem, then you should tell him that. As for getting a good grade in the class, though, probably you should answer as your lecturer would want you to.I guess I should answer the lecturers way. Thanks you anyway for helping out and explaining
So, if this is just another class to get a grade in, then it doesn't much matter that the lecturer has presented the problem incorrectly. But if you are seriously interested in the subject of logic, then you should be clear that the negation of a formula F is simply ~F, and that further equivalents of ~F are not negations of ~F nor are they negations of F. Rather they are EQUIVALENTS of the negation of F. There is only ONE formula that is the negation of F and that is ~F, period.
It's not a matter of what according to me is okay. It's a matter of what is correct. It simply is incorrect to say that anything other than ~F is the negation of F (where '~' is whatever negation sign is in the language; or it could be ~(F) if the formation rules of the system dictate parentheses in that manner).I know according to you its OK