Trying to understand how to simplify more complex formula's, for example
$ \lnot ([(\lnot𝑞 \lor 𝑟) \land (\lnot𝑝 \land 𝑞 \land 𝑟)] \lor \lnot𝑟)$
I've started with this:
$= ¬ [(¬𝑞 ∨ 𝑟) ∧ (¬𝑝 ∧ 𝑞 ∧ 𝑟)] ∧ ¬¬𝑟 $ (de Morgans Law)
$= ¬ [(¬𝑞 ∨ 𝑟) ∧ (¬𝑝 ∧ 𝑞 ∧ 𝑟)] ∧ 𝑟 $ (double negation)
$= (¬ (¬𝑞 ∨ 𝑟) ∨ ¬ (¬𝑝 ∧ 𝑞 ∧ 𝑟)) ∧ 𝑟$ (de Morgans law)
$= ((¬¬𝑞 ∧ ¬𝑟) ∨ (¬¬𝑝 ∨ ¬𝑞 ∨ ¬𝑟)) ∧ 𝑟 $ (de Morgans law)
$= ((𝑞 ∧ ¬𝑟) ∨ (𝑝 ∨ ¬𝑞 ∨ ¬𝑟)) ∧ 𝑟$ (double negation)
$= ((𝑞 ∧ ¬𝑟) ∧ 𝑟) ∨ ((𝑝 ∨ ¬𝑞 ∨ ¬𝑟) ∧ 𝑟 )$ (Distributive)
$= ((𝑞 ∧ ¬𝑟) ∧ 𝑟) ∨ (𝑝 ∧ 𝑟) ∨ (¬𝑞 ∧ 𝑟 ) ∨ (¬𝑟 ∧ 𝑟 ) $ (Distributive)
However I think I'm going down the wrong track and would appreciate some help. Thanks