Derive all four propositional logic operators from nand

Uvohtufo
Messages
23
Reaction score
0
So I recently learned that you can derive all four of the propositional logic operators (~, V, &, →) from Nand alone.

As I have understood it, so long as you have negation, and one of the other operators, you can derive the rest. Like P → Q can be defined as ~P V Q.

However, I learned that if you start with the Nand (Not and) operator, you can derive all four. I'll use ' N ' to designate Nand.

The truth table for Nand being
P Q | P N Q
T T | F
F T | T
T F | T
F F | T

~P := P N P
P & Q := (P N Q) N (P N Q)
P V Q := (P N P) N (Q N Q)
P -> Q := (P N Q) N (Q N Q)

Isn't that cool?
 
Physics news on Phys.org
Yes, it's cool.

I wonder if that explains why NAND gates are common electronic components. But perhaps NAND gates are common only because the circuit is simple to construct.
 
Stephen Tashi said:
Yes, it's cool.

I wonder if that explains why NAND gates are common electronic components. But perhaps NAND gates are common only because the circuit is simple to construct.

Yeah I am not sure.

I think its interesting how when symbolic logic was being invented, implication and negation were viewed as the basic components of logic. Today it seems like programmers view and or or and negation as basic parts.

Unlike philosophers or programmers, electronics people have a cost constraint. Nand is simpler, but is it cheapest?
 
You have also NOR.
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...

Similar threads

Back
Top