Thesis. On \(n\) inputs, the Boolean functions are combinations of the \(2^n\) point indicators. These are orthogonal idempotents summing to \(1\), so every function is a sum of cuts, its disjunctive normal form.
Bases. A gate set \(G\) generates a clone \(\langle G\rangle \), the functions obtained by composing gates and projections. NAND, NOR, \(\{\neg ,\wedge \}\) and many other sets generate everything. Which complete basis is used is a choice of presentation, made in practice by circuit cost.
Post’s criterion. A set is complete exactly when it is contained in none of five maximal clones. These are the functions that preserve one of the floor structures:
the sharp value \(0\);
the sharp value \(1\);
the order of the cone;
the additive group \((\mathbb F_2,\oplus )\);
the involution \(\neg \).
Completeness is the ability to break each of them.
Point indicators. For \(a\in \{0,1\}^n\) let \(\Pi _a(x)=\prod _ix_i^{a_i}\), with \(x^1=x\) and \(x^0=\neg x\). Then
Disjunctive normal form. Every \(f\) is the sum of the cuts on which it is \(1\):
Algebraic normal form. Over \(\mathbb F_2\) the same function has a unique expansion in monomials,
NAND.
NOR.
Each yields \(\{\neg ,\wedge \}\), hence everything. NAND and NOR are exchanged by the involution: \(\neg (x\uparrow y)=\neg x\downarrow \neg y\).
| Clone | Condition on \(f\) | Preserves | Primitive |
| \(P_0\) | \(f(0,\ldots ,0)=0\) | the value \(0\) | sharp value |
| \(P_1\) | \(f(1,\ldots ,1)=1\) | the value \(1\) | sharp value |
| \(M\) | \(x\le y\Rightarrow f(x)\le f(y)\) | the order | cone |
| \(L\) | \(f=c_0\oplus \bigoplus _ic_ix_i\) | \((\mathbb F_2,\oplus )\) | additive structure |
| \(D\) | \(f(\neg x)=\neg f(x)\) | the involution | \(\neg \) |
Each is closed under composition: preserving a structure is preserved by composing. Self-duality says that \(f\) commutes with the involution; \(\neg \) itself is self-dual, since \(\neg (\neg x)=\neg (\neg x)\).
Incomplete sets.
| Gate set | Clone |
| \(\{\wedge \}\) | conjunctions of variables, \(\subseteq P_0\cap P_1\cap M\) |
| \(\{\vee \}\) | disjunctions of variables, \(\subseteq P_0\cap P_1\cap M\) |
| \(\{\oplus \}\) | \(\bigoplus _ic_ix_i\) with no constant term, \(=L\cap P_0\) |
| \(\{\neg \}\) | \(x_i\) and \(\neg x_i\), \(\subseteq L\cap D\) |
| \(\{\wedge ,\vee ,0,1\}\) | monotone functions, \(=M\) |
\(\{\oplus \}\) cannot produce \(\wedge \): every function it generates is affine, while \(xy\) has degree \(2\) in the algebraic normal form. Here \(x\oplus x=0\) gives the constant \(0\) but never \(1\), so the clone is \(L\cap P_0\).
Checking NAND. \(x\uparrow y=1\oplus xy\), and:
\(0\uparrow 0=1\), so NAND is not in \(P_0\);
\(1\uparrow 1=0\), so NAND is not in \(P_1\);
\(0\uparrow 0>1\uparrow 1\), so NAND is not monotone;
NAND has degree \(2\), so it is not affine;
\(\neg x\uparrow \neg y=x\vee y\neq x\wedge y=\neg (x\uparrow y)\), so NAND is not self-dual.
NAND lies in none of the five clones, and the same check works for NOR.
Statement.
Necessity. Each of the five is a clone, and none contains all functions; so if \(G\) lies in one, so does \(\langle G\rangle \).
Sufficiency. Pick \(f_0\notin P_0\), \(f_1\notin P_1\), \(f_M\notin M\), \(f_L\notin L\) and \(f_D\notin D\) in \(G\). The construction reaches \(\{\neg ,\wedge \}\) in four steps.
With \(\{\neg ,\wedge \}\), the disjunctive normal form gives every function. \(\square \)
Consequences. A single binary gate is complete iff it is NAND or NOR, since these are the only binary functions outside all five clones. The lattice of all clones (Post’s lattice) is countable.
All complete bases agree. All complete bases generate the same set of functions; they differ in circuit size and depth by constant factors. NAND dominates CMOS design because a NAND gate needs four transistors and parallel pull-ups are fast, a property of the device, not of the logic.
Quantum analogue. For quantum circuits, a set such as \(\{H,T,\mathrm {CNOT}\}\) is universal in a weaker sense: it generates a dense subgroup of the unitaries, and any target is approximated to accuracy \(\varepsilon \) with \(O(\log ^c(1/\varepsilon ))\) gates (Solovay–Kitaev). Classical completeness is exact because the function space is finite.
| Statement | Form | From |
| point indicators | \(\Pi _a\Pi _b=\delta _{ab}\Pi _a\), \(\sum \Pi _a=1\) | idempotents |
| DNF | \(f=\sum _{f(a)=1}\Pi _a\) | sum of cuts |
| \(\{\neg ,\wedge \}\) complete | DNF, De Morgan | involution |
| ANF | \(\bigoplus c_S\prod _Sx_i\) | Möbius transform |
| NAND, NOR | each yields \(\neg ,\wedge \) | composition |
| \(P_0\), \(P_1\) | preserve \(0\), \(1\) | sharp values |
| \(M\) | preserves \(\le \) | cone |
| \(L\) | affine over \(\mathbb F_2\) | additive structure |
| \(D\) | commutes with \(\neg \) | involution |
| \(\langle \oplus \rangle \) | \(L\cap P_0\) | no degree \(2\) |
| Post’s criterion | complete iff in none of five | four-step construction |
| single complete gates | NAND, NOR only | five checks |
| choice of basis | cost, not logic | devices |