I'm studying for my upcoming discrete math test and I'm having trouble understanding some equivalences I found in a book on the subject. I guess I'm not really familiar with these rules and I would like someone to walk me through the steps if they don't mind.
I know the elementary laws, De-Morgan's, absorption, distribution, associativity, symmetry, and idempotent laws. But I don't recognize how this person transforms the predicates. Could someone point out the name of the law I need to study?
The transformations are as follows:
$$(not\ P\ and\ not\ Q)\ or\ (not\ Q\ and\ not\ R)$$ $$\Leftarrow\Rightarrow (not\ P\ or\ (not\ Q\ or\ not\ R))\ and\ (not\ Q\ or\ (not\ Q\ or\ not\ R))$$ $$\Leftarrow\Rightarrow (not\ P\ or\ not\ Q\ or\ not\ R)\ and\ (not\ Q\ or\ not\ Q\ or\ not\ R)$$ $$\Leftarrow\Rightarrow (not\ P\ or\ not\ Q\ or\ not\ R)\ and\ (not\ Q\ or\ not\ R)$$
Edit:
So I looked back at the book and the typo is in the book itself.
Corrected. (Thanks to B Bentzen for pointing out that I failed to notice the typo in the question.
The only step that should cause any trouble is the first, the equivalence of
$$(\neg P\land\neg Q)\lor(\neg Q\land\neg R)$$
with
$$\big(\neg P\lor(\neg Q\lor\neg R)\big)\land\big(\neg Q\lor(\neg Q\lor\neg R)\big)\;;$$
from that to
$$(\neg P\lor\neg Q\lor\neg R)\land(\neg Q\lor\neg Q\lor\neg R)$$
is just removing redundant parentheses, and from that to
$$(\neg P\lor\neg Q\lor\neg R)\land(\neg Q\lor\neg R)$$
just uses the fact that $X\lor X$ is equivalent to $X$.
The first step is actually impossible as it stands: if $Q$ is false and $P$ and $R$ are true, the second line is true, but the first is false. It appears from the bulk of the problem that the first line was supposed to read
$$(\neg P\land\neg Q)\lor(\neg Q\lor\neg R)\;;$$
if that is indeed the case, the first step is just an application of distributivity of $\lor$ over $\land$, i.e., of the equivalence of $(X\land Y)\lor Z$ with $(X\lor Z)\land(Y\lor Z)$; $\neg P$ is the $X$, $\neg Q$ is the $Y$, and $(\neg Q\lor\neg R)$ is the $Z$.