De Morgan's Law - Propositional Calculus
Can someone tell me what's the correct way to solve this proposition with De Morgan's Law?
Proposition: $q \vee ¬[ (p \wedge q) \vee ¬q ]$
[Answers]
Option 1:
$q \vee ¬(p \wedge q) \wedge q$
Option 2:
$q \vee [¬(p \wedge q) \wedge q ]$
As you can see, the difference between both is that one of them don't have square brackets "[ ]". So, what's the correct one?
The second version is correct because you are just applying DeMorgan to the second part. You can simplify it further, but I don't see that as part of the question. If the first $q$ were $r$ throughout, it would matter how you grouped the three terms at the end.