Its called formal verification. If you do try a refinement proof against a specification the proof architecture is just following the implementation's code and performing case anslysis for each branch possible.
Linting and static analysis all have imprecisions and overapproximations that limit the resolution on what semantic properties you can check.
If you're saying that we should utilize all the tools that we have at our disposal to write better code, then I agree. Every verification tool has its cons and not one single method can tick all the checkboxes.