De Morgan’s law is a proposition used in set theory and Boolean algebra. We have a few different equivalent representations that we might see. This is used in programming and hardware design to simplify complicated conditional statements or logic functions.
In Boolean algebra form:
Helpfully, by De Morgan’s laws, NAND(A, B) is equivalent to NOT A & NOT B. This lets us re-express many logic circuits in terms of NAND.
In set notation:
This generalises for more sets. Let be a set, and be a collection of subsets of . If denotes all intersections of the subsets and of a set , then we say: