Because AI works best when you can:
and using a programming language is the best way to achieve both.
Consider what's happening in math, where AI's success is only possible thanks to Lean:
Without Lean, we would still be stuck trying to check slop proofs from months ago, and they'd probably be wrong anyways.
So all we need to write are specs now, and everything's solved after it's verified? The problem is, even if "it's verified", what is "it"? Unlike math, correctness is only part of the problem in software.2 Consider this recent controversy on a verified DB system. There the authors developed a formal semantics of SQL and set AI agents loose to maxx out TPC-H. The implementation is verified alright, but turned out it was cheating on the benchmark by reverse-engineering data generation. Their trouble is that the spec was incomplete: apart from a correct DB, they also want a fast DB that remains fast outside of the benchmarks, and there's just no obvious way to state that in Lean. Beyond performance, there are also many other aspects of software that's hard to formalize, like the usability of UIs. At the end of the day, if we constrain ourselves to only writing specs, it's rather difficult to know if we've really written down exactly what we want. It still happens all the time that I find issues in generated code, even though Claude techinically followed my instructions—turns out they were incomplete, but I wouldn't have caught that without reading the code.
A program is not just something to be compiled down to an executable; it's the medium through which programmers communicate with the machine, with each other, and now with AI agents. Software construction is an interative process, and code is the medium we iterate on. If we stop reading code, the process is reduced to single-shot vibe slopping at worst, and bug-driven development at best.
The more careful would also check the proof in different backends.↩︎
Of course correctness is also only part of math, where e.g. a simple proof is more insightful than a complex one.↩︎