Discrete math · Boolean algebra and logic circuits

De Morgan and NAND

Negation interacts with AND and OR in a simple way, and one kind of gate is enough to build all the others.