I need to find disjunctive and conjunctive normal forms equivalent to $$\phi = \lnot (\lnot(p \land r) ∨ (q \land (r \lor s)))$$ and state which logical equivalences are used for each step.
Here is what I tried to do:
- $\neg \neg(p \land r) \land \neg (q \land (r \lor s)))$ -De Morgan's law
- $(p \land r) \land \neg(q \land (r \lor s))$ -Double negation law
- $(p \land r) \land \neg((q \land r) \lor (q \land s))$ -Distributive law
- $(p \land r) \land \neg(q \land r) \land \neg(q \land s))$ -De Morgan's law
I'm not really sure where to go from here or if I did a misstep. Any help would be much appreciated.
$1. ¬ ¬(p ∧ r) ∧ ¬ (q ∧ (r ∨ s))$ -De Morgan's law
$2. (p ∧ r) ∧ ¬(q ∧ (r ∨ s))$ -Double negation law
$3. (p ∧ r) ∧ ¬((q ∧ r) ∨ (q ∧ s))$ -Distributive law
$4. (p ∧ r) ∧ ¬(q ∧ r) ∧ ¬(q ∧ s))$ -De Morgan's law
Two more applications of DeMorgans' law:
$(p\land r)\land (\lnot q \lor \lnot r)\land (\lnot q \lor \lnot s).$
$(p)\land (r) \land (\lnot q \lor \lnot r) \land (\lnot q \lor \lnot s)$ by associativity of $\land$.
EDIT:
Now, we'll look at $$r \land(\lnot q \lor \lnot r) \equiv (r\land \lnot q) \lor (r \land \lnot r)$$
$$\equiv (r\land \lnot q) \lor F \equiv (r\land \lnot q)$$
We now we have $p\land r \land \lnot q \tag 7$.
We can drop the final clause in $(6)$, which is $ (\lnot q \lor s)$, since we have already established that $\lnot q$ holds (see 7), we know that $\lnot q \lor s$ is true, without having any knowledge of $s$.
(7) This is the most reduced form of the original statement as expressed in CNF