Proof by AI

Adrien Foucart, PhD in biomedical engineering.

This website is guaranteed 100% human-written, ad-free and tracker-free. Follow updates using the RSS Feed or by following me on Mastodon

If a mathematical proof is written and none can read it, does it prove anything?

It appears that this is no longer a theoretical question. “Theorem X has been solved by AI” has become a routine headline. The most recent — at the time of writing this post — example being Levent Alpöge’s Claude-written proof of the Riemann Hypothesis (Levent’s announcement). I am in no way capable of providing any insight on whether Claude’s proof is interesting or good or useful in any way to mathematicians. I feel that I am, however, in a position to critique the way that the proof is being evaluated. This is therefore not about maths, but about software and about evaluation methods, things which I do know a little bit about.

A not-insignificant amount of people are saying that we are now essentially certain that the Levent+Claude proof is correct. This blog post by Rain is a pretty good summary of the argument they make. The gist of that argument is that Lean4 (the programming language and proof assistant in which the proof has been written) provides a way to be certain that a proof is correct, even if we don’t understand it, if:

  • We can verify that it compiles without errors, using different implementations of the Lean kernel.
  • We can verify that it didn’t introduce any new axiom.

According to people who certainly know more about this than I do, both of those things are true for Levent’s solutions, therefore it is correct.

I have issues with that, which essentially boil down to: Lean, the kernels, the proof checkers, are all software. At some point, all of the formalism and mathematical abstraction becomes machine code processed by a computer. The idea that we have made such a complex thing as proof-checking guaranteed bug-free is, in my view, a much more extraordinary claim than proving the Riemann Hypothesis.

Proving the Riemann Hypothesis is, in a way, unsurprising. Not in the sense that it’s easy to find a proof, obviously, but in the sense that the expectation from every mathematician was that the Riemann Hypothesis was true. In fact, a pretty large portion of modern mathematics assumes that it’s true. So I’m perfectly willing to accept that there is a proof of the Riemann Hypothesis, and it is not unlikely that Levent’s proof, in the end, is correct. It is, however, completely absurd to me to claim that the Lean verification is sufficient to claim that the proof is correct.

Let me put it another way: if Levent had found, through the same process, a disproof of the Riemann Hypothesis, I am 100% convinced that the response would not have been “Lean said it, it must be true!”, but that we would be seeing right now a very large bug hunt to find out where Lean failed.

A few months ago, such a bug was found in a previous version of Lean, which un-disproved the Collatz conjecture. Because that would be such a surprising result, the most reasonable conclusion was that there was a bug in the proof-checker, and there was. Here, the Riemann proof is the expected result, so it is natural that the trust in the results is higher.

I’ve seen argued that, since the Collatz bug, a lot of work has been made by the Lean community to fix the issues and to get to something which, this time, is really trustworthy. I’m sorry, but that’s not how software works. Especially AI-written software, which Lean and all associated tools most definitely are. The number one contributor to the lean4 code repository is, of course, Claude.

So what we have here is a proof written by Claude using a programming language written by Claude, checked by software written by Claude.

I don’t know much about mathematical proofs, but I know a lot about software and about AI. The idea that this all process could be described as “certain” is an insane claim to make, which would require an extraordinary level of proof. Of the human kind. Because if there is a flaw in Lean which makes it easier to get the Riemann Hypothesis to compile while being incorrect than to correctly prove it, it is almost certain that an AI system will use the easier option. That’s what machine learning systems do: they learn the path of least resistance towards a goal. Claude’s goal is not understanding of maths, it’s to get the “proved” checkmark at the end. If there’s a way to get it without solving the problem, it’s likely to find it.

Is the Riemann Hypothesis true? Almost certainly.

Is Levent’s proof correct? Maybe.

Is it correct to say that Levent’s proof has been checked and validated? No. The only thing we can say is that it is valid if Lean is correct. Lean is, probably, incorrect in some ways. Maybe the way in which it is incorrect does not interfere with the soundness of the Riemann proof. Maybe it does.

Pretending that a Lean-verified proof is always correct implies that we have found a way to make software absolutely reliable. That would be a very important news indeed…