This commit is contained in:
2023-10-05 11:23:03 -07:00
parent 18a6856380
commit dfadd23e63
5 changed files with 23 additions and 32 deletions

View File

@ -38,20 +38,20 @@ Write functions $\text{AND}$, $\text{OR}$, and $\text{XOR}$ that satisfy the fol
\end{center}
\begin{solution}
There's more than one way to do this, of course, but make sure the kids understand how the solutions below work.
There's more than one way to do this, of course.
\begin{align*}
\text{AND} &= \lm ab . (a~b~F) = \lm ab . aba \\
\text{OR} &= \lm ab . (a~T~b) = \lm ab . aab \\
\text{XOR} &= \lm ab . (a~ (\text{NOT}~b) ~b)
\end{align*}
It may be worth mentioning that OR $= \lm ab.(M~a~b)$ is also a solution.
Another clever solution is $\text{OR} = \lm ab.(M~a~b)$
\end{solution}
\vfill
\problem{}
To complete our boolean algebra, write the boolean equality check EQ. \par
To complete our boolean algebra, construct the boolean equality check EQ. \par
What inputs should it take? What outputs should it produce?
\begin{solution}