I don’t think this really applies to real-world programs.
Basically, every program is written with some confidence that it should work correctly if written this way. This is generally true even for AI-generated code. And if there is such confidence, then the argument for its correctness should naturally follow from carefully spelling out the reasoning behind that confidence.
In practice, the correctness of almost every program we encounter in everyday life is actually very easy to argue for, compared to difficult mathematical problems. And when it isn’t, any decent programmer would leave a comment explaining why it works. Otherwise, I think most people would agree that the code should probably be rewritten.