I'm new to discrete mathematics and I have the following assignment prompt.
This week's proof will be in two parts. First, you will prove that the set of logical operators {AND, OR, NOT} is functionally complete.
That is, you'll prove that ALL 16 binary logical operators can be written in terms of only these three. Secondly, you'll prove that each of AND, OR, NOT can be written in terms of NAND.
Conclude by explaining why this shows that NAND is functionally complete. Good luck!!!
I've been able to do most of this just fine but two operators in particular are tripping me up; ~P and ~Q.
The examples given lead me to believe the instructor wants us to express ¬ in terms of ∨ and ∧.
What the above statement is saying is that ANY logical operator can be expressed using only the functionally complete operator. Some examples will be helpful here. Let's say that you wanted to express the AND and IMPLICATION operators in terms of only OR and NOT
P AND Q = ~(~P OR ~Q)
P -> Q = ~P OR Q
Since the truth tables for ∨ and ∧ guarantee that when P and Q are both True they will evaluate to True I'm not sure what I can do to show ~P. It seems silly to write ~P = ~P or ~Q = ~Q so I figure I must be misinterpreting something. Could someone please point out where I am mistaken?
I'm showing the 16 operators from the table here.
P.S. I can easily show ∨ and ∧ using DeMorgan's Law, but I don't know how I could express ~P without using ~.