Journal · 4 min read
A proof assistant doesn’t answer Wittgenstein
Machine-checked proofs are now routine in parts of mathematics. Some people think this settles the rule-following problem. I think it relocates it.
At a seminar in Kraków last month, a visiting computer scientist said, half joking, that proof assistants had finally solved Wittgenstein's rule-following problem. If you want to know whether a step follows the rules, he said, you don't need a community or a form of life. You need a type checker. The room laughed, and I laughed too, but the remark has stayed with me. I think it is wrong in an instructive way.
The +2 pupil
Recall the problem. In the Philosophical Investigations, Wittgenstein imagines a pupil who has been taught to continue the series "add 2". He writes 2, 4, 6 correctly up to 1000. Then he writes 1004, 1008, 1012. Told he is wrong, he insists he is going on in the same way. Perhaps, Wittgenstein suggests, he understood the instruction as "add 2 up to 1000, 4 up to 2000" and so on.
The point is not that the pupil is stupid. It is that nothing in the finite set of examples and explanations he was given fixes the correct continuation by itself. Every finite sequence is consistent with infinitely many rules. A little later comes the famous paradox: no course of action could be determined by a rule, because any course of action can be made out to accord with it. Wittgenstein's response is that following a rule is a practice. There is a way of grasping a rule which is not an interpretation, and which shows itself in what we call obeying it and going against it in actual cases.
Saul Kripke's 1982 book turned this into a sharp sceptical argument about meaning, with his example of "quus", a function that agrees with addition for small numbers and diverges after. Whether Kripke's reading is faithful to Wittgenstein is still argued over. I won't settle that here.
What the kernel actually does
Systems like Lean, Isabelle and Coq (recently renamed Rocq) let mathematicians write proofs in a formal language and have them checked mechanically. The checking is done by a small trusted program called the kernel, which verifies that each step is a legal application of the rules of the underlying logic. The idea, often credited to N. G. de Bruijn, is that you only have to trust the kernel, which is small enough to inspect.
The achievements are real. A formal proof of the Kepler conjecture was completed in 2014 after years of work. The four colour theorem was formalised in Coq in 2005. In 2022, a team verified a difficult result of Peter Scholze's in Lean, at his own invitation, because he was not fully confident in it himself.
So doesn't this show that rule-following can be fully mechanical? The kernel doesn't need a community; it just applies the rules.
Agreement in judgments
Here is why I don't think so.
First, the kernel is a program, which means it is itself a rule-following procedure implemented in a physical machine. Its "correct" behaviour is defined by the specification of the logic it implements. When we say it applied the rules correctly, we are comparing its behaviour with our understanding of those rules. If the machine started outputting the equivalent of 1004 after 1000, we would call it a bug. That judgment is not made by the machine.
Second, there is the question of what the formal statement means. A formal proof establishes that a certain string follows from certain axioms. Whether that string says what the mathematician meant by "Kepler's conjecture" is a question about translation, and it is checked by people reading definitions. Errors here are not hypothetical; formalisers spend a large part of their time arguing about whether a definition captures the intended concept.
Third, and most importantly for Wittgenstein, the whole enterprise rests on what he called agreement not only in definitions but in judgments. We all, mathematicians and engineers alike, react to the kernel's output in the same way. We accept a green tick. We agree on what counts as a bug. That agreement is not produced by the proof assistant; the proof assistant presupposes it.
So what does it settle?
None of this is a criticism of formal proof. I use these tools and think they are among the most important developments in mathematics in my lifetime. They massively reduce the space in which human error can hide.
What they do, philosophically, is relocate the rule-following question rather than dissolve it. The question used to be whether this mathematician correctly followed the rules of inference. Now it is whether this kernel correctly implements the logic, whether these definitions say what we meant, and whether the hardware did what we think it did. Each of those questions is easier to answer than the old one. None of them can be answered by a further machine without the regress starting again.
A proof assistant is an extremely good pupil who never writes 1004. We are still the ones who decide that 1004 would be wrong.
That is the sentence I should have said at the seminar instead of laughing. I am not sure the visiting speaker would have disagreed. I think he would have said it doesn't matter in practice. He might be right. But it matters for understanding what certainty in mathematics consists in, which is the question Wittgenstein was asking.
Add your reply
Join free to reply Sign in