And by that I do not mean the exact, whole theory of ZFC itself but a trimmed down or a bloated version instead. The point is to have the appropriate and intuitive axiomatic semantics that cover the core constructs of the language, at least.
I also think formalizing existing languages and framework will become more and more valuable. It took over a decade to somewhat come to a consensus on how C's pointer provenance model should like, and even then using it to prove compiler transformations is still being worked on.
In my experience theres a huge difference between proving existing code and proving code that was written with ease of reasonin in mind.
Maybe if we humans dont bother with proofs at all this will become irrelevant, but my speculation is that programmers familiar with formal verification may become more valuable in the sense they can write verification friendly code better.
I'm not sure if you could say pure lean is expressive, especially if you restrict to portions you can actually verify/reason about. Because functions without proof of termination cannot be used in propositions and you're forced to define a measure if your recursive function doesn't have a syntactically decreasing argument.
Unless you're talking about reasoning about other languages deeply embedded in Lean, at that point we're not talking about Lean itself but about the model of that language stated in Lean.
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.
reply