NAND GateNAND Gate
Definition
The following Boolean function is called a NAND Gate or Negated Logical Product and is denoted as follows.
↑:{0,1}2→{0,1}
0↑0=1,0↑1=1,1↑0=1,1↑1=0
Description
It is a composition of the NOT Gate and AND Gate, and is named NAND by adopting N(OT) and AND.
↑=¬∘∧
a↑b=¬(a∧b)
It operates opposite to the AND Gate, outputting false only when all inputs are true. Additionally, {↑} is functionally complete, which is considered obvious due to (1).
부울 함수 | 기호 | 진리표 |
NAND |  | a | b | a↑b | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 |
|
Theorem
If the replication function is allowed, {↑} is functionally complete. In other words, ↑ is a universal gate.
Proof
Theorem
The set of NOT and AND Gates, {¬,∧}, is functionally complete.
According to the above theorem, it is sufficient to show that the NOT Gate and the AND Gate can be created solely using the replication function cl and ↑.
NOT Gate
¬=↑∘cl¬a=a↑a
holds.
↑∘cl(0)=0↑0=1=¬0↑∘cl(1)=1↑1=0=¬1
AND Gate
∧=↑∘cl∘↑a∧b=(a↑b)↑(a↑b)
holds.
(0↑0)↑(0↑0)=(1↑1)=0=0∧0(0↑1)↑(0↑1)=(0↑0)=0=0∧1(1↑0)↑(1↑0)=(0↑0)=0=1∧0(1↑1)↑(1↑1)=(1↑1)=1=1∧1
■