How can I express $(\bar{x})y + \bar{z}$ using only NAND?
I know the solution is $((x↑x)↑y)↑z$, but I don't understand how to get to there without expanding into an extremely long answer?
The brute force technique given to me was:
- eliminate addition (using $\bar{a+b} = \bar{a}\bar{b}$)
- eliminate multiplication (using $ab = (a↑b)↑(a↑b)$)
- eliminate complement (using $\bar{a} = a↑a$)
Will show my previous work if needed.
And the fully simplified solution should be:
$$(\overline{x}↑y)↑z$$
Basicly, first try to express the statement in form of $\overline{p}+\overline{q}$, to get this we need De Morgan's law:
Boolean algebra notation:
\begin{align} \overline{x}y+\overline{z}\tag*{$\text{De Morgan's law}$} &\equiv\overline{\overline{\overline{x}}+\overline{y}}+\overline{z}\\ &\equiv\overline{\overline{x}↑y}+\overline{z}\\ &\equiv(\overline{x}↑y)↑z\\ \end{align}
PL notation:
\begin{align} (\neg x\land y) \lor \neg z\tag*{$\text{De Morgan's law}$} &\equiv\neg(\neg\neg x\lor \neg y)\lor\neg z\\ &\equiv\neg(\neg x↑y)\lor \neg z\\ &\equiv(\neg x↑y)↑z\\ \end{align}
First use De Morgan's law backward, so the statement is in form of $\overline{p}+\overline{q},$
and the last two line is just substitute the definition.
Therefore we simplified it with Nand.