In theory, an AI that wrote proofs for their code (ala coq) could be used to validate preconditions specified by the developer, right?
Conceptually, you tell the computer how to validate that the conditions you state are correct with your proof, and it checks that each step follows.
One just needs a language to write those conditions in.
One the one hand you have declarative languages, and on the other imperative languages.
Not sure where I'm going with this, but I think there's something there.
https://arxiv.org/abs/2303.11366
Essentially, AI’s output is fed into a checker, whose output is fed back into the AI for “reflexion”. Then the AI often corrects (leading to noticeable improvement in GPT-4 perf).