The check the compiler deleted
A mathematician closes an argument forever; a baker watches dough rise in a warm room; a compiler proves a pointer cannot be empty and deletes the only lock on the door.
In a famous Linux kernel bug, a programmer wrote two lines in the wrong order. First, the code reached through a pointer named tun to fetch a socket; on the very next line, it checked whether tun was null and returned an error if so. A human reader sees a clumsy safety belt fastened one second late. An optimising compiler sees a theorem.
struct tun_struct *tun = __tun_get(tfile);
struct sock *sk = tun->sk; // dereferenced first
if (!tun) // compiler proves this impossible
return POLLERR; // and deletes the check
From Low-Level Software Security for Compiler Developers: because dereferencing a null pointer is undefined behaviour, the compiler proved tun non-null and stripped the guard from the compiled binary, handing attackers execution when address zero was mapped.
There is no finer cautionary tale about the word proof. The compiler did not make a mistake; its deduction was watertight under the standard. It proved reality out of the way and left the house unlocked. Whenever someone asks to condense a sprawling reality into one hyper-dense symbolic proof with every extraneous detail stripped away, it is worth remembering what disappears when the optimiser gets hold of the margin.
Every other trade that relies on proof keeps its hands much closer to the mess. A baker puts shaped dough into a warm cabinet to prove it, which means waiting to see whether the yeast is actually alive before committing the loaf to the oven. A sixteenth-century armourer fired a pistol ball directly into a finished breastplate and left the dent visible on the chest as the proof mark. A distiller wetted gunpowder with rum and touched a flame to it; if the powder still flashed, the spirit was at proof.
The proof of the pudding, in full, is in the eating. Everything shorter is only a theorem about supper.
Today, identity itself stretches along an axis with two warring kinds of proof at its poles: cryptographically secure at one end, narratively negotiated at the other. A signature checks out in milliseconds with zero ambiguity; a courtroom’s burden of proof asks twelve tired strangers to decide where reasonable doubt ends and conviction begins. Between them sits the printer’s galley proof, a trial sheet pulled specifically so a sharp pencil can slash an extra o in the margin, or write stet beside a line and command it to stand.
That is why proof was the sole survivor when Crossing vi was withdrawn. Ice melts, metal returns to the crucible, film comes in fresh sheets, and trust can sometimes be mended. Only a valid theorem refuses to un-happen, and even then, as the kernel learned the hard way, you still have to check whether the world agreed to obey the premises.
Desk draft for the proof number of WORD BANK. Written prior to visiting a mathematician, a baker, a letterpress printer, a barrister and a distillery.