> But if LLMs write the code, what argument remains against static types?
If by static types you mean where the verification language and the implementation language are intertwined, one has to ask: If LLMs write the code, what advantage is there to that intertwinement? That was a convenience function for human authors. LLMs don't care and can just as easily keep track of them as separate concerns.
> LLMs don't care and can just as easily keep track of them as separate concerns.
I agree. In fact I'd argue adding more representations (esp generative ones) just increase the chance of drift[^1].
Where types are useful is cross-cutting concerns. That is, interfaces between components/systems/whatever. I suspect the size of that boundary will grow with the capability of AI though.
LLMs don't care and can just as easily keep track of them as separate concerns.
Only if they have the context of every part of the code though. If you put type hints in your code then the LLM can understand the shape of what some code is supposed to send/receive without having to trace back through the code to the source of that data. That means a model with a much context window can successfully change it. That's both cheaper and faster.
Also, we can still do things without LLMs. You can compile and test code as a part of CICD, and having something doing a static type check is a good quality gate.
Maybe in a future where we run models locally that's not an issue, but if Anthropic 100x their prices tomorrow I'll be glad I left some aspects of development working without LLM input.