Knaph

Proving Things About Every Formula8 of 243 min read

One Connective Is Enough

A chip maker wants to make a million chips. Each kind of gate costs money to design. Could a single kind of gate build all the others? Is one connective enough for everything?

A new connective: NAND

Write P ↑ Q, read "P nand Q". It means "not both P and Q". Its table is false only when both are true.

PQP ↑ Q
TTF
TFT
FTT
FFT

It is also called the Sheffer stroke, after Henry Sheffer, who showed in 1913 what it can do. Charles Peirce had seen it about 1880.

Building ¬ and ∧ from it

First ¬. Use P twice: P ↑ P. If P is true, then "not both P and P" is false. If P is false, it is true. So P ↑ P is the same as ¬P.

Two wiring drawings. On the left, one NAND box with both inputs coming from P, and the output labelled not P. On the right, two NAND boxes in a row, giving P and Q.

Now ∧. Take (P ↑ Q) ↑ (P ↑ Q). The inside P ↑ Q is "not both". Using it twice turns it into "not not both", which is "both". Check the four rows. TT: inside F, then F ↑ F is T. TF: inside T, then T ↑ T is F. FT: the same, F. FF: inside T, so F. That is the table of ∧.

So ¬ and ∧ come from ↑ alone. By the last lesson, ¬ and ∧ are enough for every table. So one connective is enough. Chips are built this way: whole computers can be made from NAND gates only.

Not every connective is enough

Can we use ∧ alone? No. Look at the row where every letter is true. A formula made only with letters and ∧ is true in that row: a letter is true, and (φ ∧ ψ) is true when both parts are. We can prove it by climbing the formula tree. But ¬P is false in that row. So no formula with only ∧ has the table of ¬P.

A small tree with four leaves, all P, joined by and, each node marked T. Beside it stands not P marked F, with a crossed arrow between them.

The same holds for ∨ alone. NAND is special because it can turn a true into a false.

Careful

A connective being enough is special. ∧ alone is not enough, because it can never turn all-true into false.

Try it at home

  1. Make the table of P ↑ P in your notebook. Is it the table of ¬P?
  2. Check (P ↑ P) ↑ (Q ↑ Q) in all four rows. Which connective is it?
  3. Draw gates as boxes with arrows, and wire three NAND boxes to make ∧.

Words to know

  • NAND - not both: P ↑ Q is false only when P and Q are both true
  • Sheffer stroke - the sign ↑ for NAND, after Henry Sheffer (1913)

Big idea

The single connective NAND can build ¬ and ∧, so it can build every truth table.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.