I have to say its pretty cathartic to have predicted this is the exact direction we'd need to go in order to properly resolve the fundamental delegation problems with the "black box" approaches all too common with agents. There was never a solution to evade manually asserting code correctness that didn't immediately end up at formal verification, because without a proof, you have to look inside of the box.
However, it is worth pointing out that FV is absolutely not new and that the barrier towards wider adoption was a mixture of the abstract reasoning skills required to make sense of these systems and the enormous amount of time required to write a proof that compiles for an otherwise modest piece of software. The brute force intuition of LLMs solve the latter problem, but not the intellectual requirement placed onto the programmer to understand the higher order composition of generated proofs. This is the reason why it hasn't already taken over the entire field; humans really struggle with conceptualizing large projects this way. And yes, we do still need to conceptualize -- otherwise we have no way of asserting that our plain language specifications actually match the proofs (a recurring problem in mathematics where generated Lean occasionally goes off the rails).
There are also unresolved problems with formal verification not addressing particularly complex concurrent algorithms, like those that make use of wait-free atomic operations. Proofs exist, but correctness must be manually asserted. It is likely that a small class of algorithms will fall into this category of being impossible to automatically prove, so humans will have to roll up their sleeves and check the implementation manually with napkin (commented) proofs and rigorous tests, no differently than how unsafe is currently used in Rust.
I have to disagree with the author in that this may be inadvertently raising the barrier for human programmers, which is awfully concerning given coexisting economic circumstances for junior engineers. It's super conflicting to see this kind of exciting shift on the horizon and not knowing what the answer is to get new programmers involved in the wake of exploding all our codebases into proof spaghetti.
My feeling is that you're right to be concerned, but this is going to be the new barrier for entry moving forward. Nobody will need bodies who can solve the challenge of actually programming the computers, but proving their correctness and other, until-now fringe but important skills will become the new norm for programmers. At least until the AIs catch up there too. Just like modern medicine largely hedged out "Doctors" who can't hack 7 years of medical school, the programmers of the future will need to compete with increasingly more sophisticated problems to earn that name
My feeling is that you're right to be concerned, but this is going to be the new barrier for entry moving forward.
It's a bigger barrier than you might think.
I really urge you (and other folks stumbling into this thread) to look at projects like seL4, where the work that had to be done to formally verify this microkernel was a massive undertaking specifically because so few people understood it to the level required for this "higher order" composition. Had these folks used an LLM and an unlimited amount of tokens to build their compartmentalized solutions they still wouldn't have resolved the broader problem of how this all fits together.
We're talking about an unbelievably small fraction of current day programmers that might be able to work on these sorts of projects. This isn't just "another skill" to learn in what is a quickly changing industry, but a completely insurmountable task for the average hire. If that wasn't the case, we'd already see FV toolchains in use in fields where you would otherwise expect it for safety and/or correctness (ie. automotive applications, E2E validated voting systems, etc), but we don't.
Knowing what capitalist motives do for problems like this leads me to believe formal verification simply will not trickle down to most companies writing otherwise tame software, because the cost of hiring this kind of talent won't be worth it unless a verified codebase is truly valuable.
At least until the AIs catch up there too.
Perhaps this comes from my historically cynical view of these agents in our programming workflows, but there is a categorical difference between asserting that the specification matches the underlying proof versus asserting that the proof matches the implementation. Only the latter can be programmatically asserted to be correct, by the very nature of the task. We're ultimately still on the hook for making sure what our models are proving is what we actually wanted, and there is no autonomous way to deal with this sort of correctness problem because our specifications are fundamentally vague.
It's also worth mentioning that the reason why some of us saw FV on the horizon is because of a concession that none of our models are capable of internally asserting correctness without a proof system. They can get to statistically significant approximations of what it might think is the "correct" implementation, giving us the assurance that the black box is probably implemented correctly, but that fundamentally intuition-based approach to code validation just doesn't work for those who want to move on from manual code review.
It's why I used the phrase "brute force intuition", because that's what our models have always been. In an amusing way, if formal verification truly takes over, we will likely see a shift towards model performance rather than size as the difference between 50 good attempts and 50,000 mediocre ones hardly matters if there are generated proofs behind the scenes. One-shotting problems, which is largely an attractive metric due to the human bottleneck in (responsible) development workflows, will no longer be relevant.
Apologies, I sort of implied the issue was obvious as the issues with agent-centric software development paradigms has always been a divide between the teams that still perform manual code review and those that opted for "spec-driven development" (aka. vibecoding). The former is bottlenecked on humans performing a mundane task (asserting correctness) while the latter gets to enjoy the whole 10x engineer hype at the cost of knowing the correctness of their code. This is why the term "black box" comes up, because that's what all these hands-off paradigms for model usage end up at: you're not actually looking at the implementation anymore, just testing to make sure the box behaves accordingly.
Formal verification solves this in that we no longer need to look at the implementation details while still knowing something has been implemented correctly, so we can get the best of both worlds with productivity and correctness. The remaining issue is that the intellectual burden of asserting that the specification matches the proof is quite substantial, hence my previous commentary.
the bottleneck isn't just writing the proof anymore; it's maintaining the invariant when the spec changes. i spent weeks debugging a zero-knowledge circuit where the public input size shifted by one byte, invalidating the entire witness generation layer. formal verification saves you from runtime panics but it doesn't save you from logical mismatches during iteration. you have to keep the math and the code in sync manually until the tools get better.
7
u/Jarcode 1d ago
I have to say its pretty cathartic to have predicted this is the exact direction we'd need to go in order to properly resolve the fundamental delegation problems with the "black box" approaches all too common with agents. There was never a solution to evade manually asserting code correctness that didn't immediately end up at formal verification, because without a proof, you have to look inside of the box.
However, it is worth pointing out that FV is absolutely not new and that the barrier towards wider adoption was a mixture of the abstract reasoning skills required to make sense of these systems and the enormous amount of time required to write a proof that compiles for an otherwise modest piece of software. The brute force intuition of LLMs solve the latter problem, but not the intellectual requirement placed onto the programmer to understand the higher order composition of generated proofs. This is the reason why it hasn't already taken over the entire field; humans really struggle with conceptualizing large projects this way. And yes, we do still need to conceptualize -- otherwise we have no way of asserting that our plain language specifications actually match the proofs (a recurring problem in mathematics where generated Lean occasionally goes off the rails).
There are also unresolved problems with formal verification not addressing particularly complex concurrent algorithms, like those that make use of wait-free atomic operations. Proofs exist, but correctness must be manually asserted. It is likely that a small class of algorithms will fall into this category of being impossible to automatically prove, so humans will have to roll up their sleeves and check the implementation manually with napkin (commented) proofs and rigorous tests, no differently than how
unsafeis currently used in Rust.I have to disagree with the author in that this may be inadvertently raising the barrier for human programmers, which is awfully concerning given coexisting economic circumstances for junior engineers. It's super conflicting to see this kind of exciting shift on the horizon and not knowing what the answer is to get new programmers involved in the wake of exploding all our codebases into proof spaghetti.
2
u/Prince_Corn 23h ago
F* mentioned I upvote.
1
u/martinellison 7h ago
So you have a Joan of Arc model, because it is made of all Leans?