I think that is a valid level to use formal verification but I would argue it is much more powerful to also have a formal model of code. For example, if I have:
my_value = run_some_function(some_arg_1, some_arg_2)
for some_value in my_value.some_list:
run_some_action(some_value)
Yes it is very helpful to know some properties about `run_some_function` (maybe it is commutative? idempotent?), but it is much more valuable to have a model which can translate what ultimately is being passed to `run_some_action` at the end and how that derives from the return of `run_some_function`, grounding the LLM's reasoning in something deterministic it can't break from.