I don't know the answer to my own question, but here's one assumption that might not hold anymore: that an attacker with unlimited time and resources will always find a way in.
In theory, code can be made perfect. So is this just a matter of time? Do defenders eventually work through the backlog of bad code until there's nothing left to exploit?
No, because they would have to stop adding new code. New code has a > 0 probability of introducing new vulnerabilities.