"Beware of bugs in the above code; I have only proved it correct, not tried it." — Donald Knuth
Formal correctness does not guarantee desired function. People have written TLA+ specs for their software[1] and not have it materially improve the quality or reliability. You cannot just throw formal verification at a problem.
I am very much of the opinion that crap code is an issue of organisation and aesthetics, and that can be automated. This is something that is enforced by frameworks, and despite the popular consensus that LLMs are good at frameworks because of training data, I make another argument that LLMs are good at them because frameworks massively restrict the possibility space of code that can exist and enforce a consistent organisation and aesthetic. The solution as I see it is to make more restrictive frameworks that have a higher chance of producing desired functionality, then afterward we can worry about correctness.
> People have written TLA+ specs for their software[1] and not have it materially improve the quality or reliability
Given how vibe coded the rest of that whole DB appears to be, and the number of holes the Jepsen test found, I’m not terribly sure I’d trust, or use it as an example of “used formal methods”.
A better example would be the AWS S3 team who used TLA+ to formally verify their permissions model, especially around whether something was publicly accessible.
> People have written TLA+ specs for their software[1] and not have it materially improve the quality or reliability
That particleDB link is VERY unconvincing. All the folks I know who wrote a TLA+ spec have said that it helped them discover bugs. Just that it was a massive pain to keep maintaining code and spec independently.
However, I am confused on why new PL is needed. Why not just improve lean and its libraries so that it becomes a standard big-software language like Go/Java/Rust ?
> Formal correctness does not guarantee desired function
Rust doesn't guarantee desired function either. It doesn't mean that average rust program has the same probability to have segfault at runtime as a similar program written in C.
The flaw in people's thinking is "Formal verification means bug-free, and bug-free means it works correctly." ignoring the fact that most things that people call bugs are actually the code working correctly as it was written but it was written to do something that's either not what the requirement says or that the requirement doesn't actually say what the application should really do.
Requirements, code, verification, etc are a process to turn a human mental model of something into an process a computer can do. You can verify the computer's side of that all day long but if the human side is wrong no amount of verification is going to make your software do what you wanted it to do.
The same limitation is true of every other method of verifying and validating software too. You can have 100% unit test coverage and still have nothing work. It's another tool in the toolkit and a pretty powerful one
Quite ironically I see formal methods being extremely key to your central argument. That is, the design should be started by modelling with some formal language that then gets expanded into an implementation. I fully agree about massively restricting the possibility space of code as being why they work. I've found that to basically be the only thing that produces consistently good results in the face of all the non-determinism. The entire codebase doesn't fit into the context window though, but formal models of it can act as some form of lossy compression that helps it fit into the context window better. I think formal methods definitely have a role to play, as to do anything that restricts what the valid moves are like frameworks and fitness functions etc.
Then I state signatures and conjectures that the spec must have. Properties that the future implementation must hold. No implementation yet.
Only once all conjectures are there, we are ready to roll.
If I write in Lean, I can now fill in the signatures' implementations. Then prove theorems. Proof doesn't go through => bug. Fix, retry, repeat.
If I write in an inferior language, there is extra Intermediate step: translating the conjectures into property test in the language. Only once these are ready, I can write implementation.
You must not write implementation before having all conjectures stated -- otherwise the implementation will bias your thinking, and you will try to prove properties of your implementation instead of what you needed.
Interesting. I work in bog standard LOB SaaS type businesses my whole career, so zero practical experience with formal methods, but a growing interest in them due to how I see the industry trending towards them. Can I ask... in your case, what is $dayjob related to that you find yourself operating this way already? Finance? Aerospace? Just curious...
> You must not write implementation before having all conjectures stated -- otherwise the implementation will bias your thinking, and you will try to prove properties of your implementation instead of what you needed.
Most software engineers don't really have a background in it, and tbh I kinda don't know where to start, and have heard that right now if you're already experienced with formal methods then you can get great results out of approaches like this with LLMs, but if you just vibecode up the Lean or TLA+ etc then you're not going to get out of it what you were expecting. I suspect your statement here is exactly the kind of thing that makes all the difference, but I don't know how to know what the other things that make the difference are. Any other pointers?
Note that the above is based on using classical logic predicates to "steer" the program through its "state space". This is the more fundamental and "simpler" approach since it uses only First-Order Logic.
Another way is to use the Type System (constructive logic, dependent types in Lean4 etc.) to embed the above directly into the program types. This is harder since you need Typed Lambda Calculus, Higher-Order Logic and need to think quite differently. For this you can read Types and Programming Languages by Benjamin Pierce and/or any number of lambda calculus books. The Curry-Howard Correspondence helps you understand this if you have some idea of the above state space approach.
It is all overwhelming at first if you are completely new to it so use it as a roadmap. Survey all of the above to get a grip on the jargon, notation and application and then choose your approach/logic/tool based on your interests/needs.
> Quite ironically I see formal methods being extremely key to your central argument.
Formal verification is a useful tool, but I don't think it meaningfully combats "slop," which I argue is primarily disorganised, voluminous, and lacking in aesthetics.
> That is, the design should be started by modelling with some formal language
I would make sure what I am developing demonstrably works before formally verifying the characteristics of the system.
The question is, why do we care about slop in the first place?
If we ignore the ideological and emotional reasons, I think it boils down to three things:
1. The slop is incorrect
2. The slop is bloated
3. The slop is not human readable
Formal verification together with human validation is the answer to point 1. The second point needs additional measures to keep the artificial author in check which is in my experience quite easy to accomplish.
If these two are in place I found that human readability falls out mostly for free.
So, to summarize, in my opinion formal verification together with measures to keep the code minimal and concise is our best way to tackle slop.
Assuming a narrow definition of "incorrect", I would add:
4a. The slop has been generated with rules and processes, ones that needed actual decisions and approval which never happened.
4b. Nobody reading the slop can distinguish between deliberate things that were chosen and approved, versus accidental things which were blindly generated and kept.
Personally, I think the slop is very dangerous to a codebase both when humans produce (and they do!!!) and when AI produces it because the uncontrolled growth of entropy in a codebase has this funny way of just completely trashing your ability to get anything done in it. Like, now there's two ways to do the same thing, so.. which one do you pick? Pick at random, now there's 30% this way and 70% that way, so probably the 70% one will get picked, but there's this non-zero chance that now a third way is invented! When you think about next-token prediction, it's so heavily conditioned on the context, that crappy context equals crappy results, and uncontrolled growth of entropy results in crappy context.
TL;DR it impacts the trajectory of the LLM negatively in a massive way IMHO.
Our first year CS Pascal lecturer in '79 used to quip "I've compiled this but not run it" and I used to think this was savage but I now see he was simply repeating the mantra. The Fortran I did on cards in '76 they insisted we run, and learn the cost of sloppy code in the debug cycle through batch processing cycle costs.
As a “creative programmer” I resonate with this strongly. While I think things like Lean and Rust are valuable tools which should exist, they only represent added friction TO ME.
> ParticleDB’s home page advertised that ParticleDB was “formally proven” with a TLA+ proof. However, during our collaboration no TLA+ specification was available. It is unclear what properties might be proven, or whether they described ParticleDB as built.
That link is a pretty weak strawman. Also TLA+ is special in that it (usually) does not directly verify the implementation but a model of it.
You can instrument the code to capture production traces and then verify them against the TLA+ model though. I think a programming language with that baked in as a first class citizen would be compelling. That's sort of the direction this stuff is heading it feels like anyway. Model in a smaller language that's more precise, fits in the context window better, and can explore the state space much more quickly than reasoning token by token, then build the thing based off the model, then validate that the implementation conforms to the model.
Frameworks often lead to crap code because people don't recognise when they're doing something the framework isn't good at. Do we expect LLMs to be better? So far they're a lot worse and will happily churn out reams of code that would make even the worst programmer stop in their tracks questioning whether this is right.
> Formal correctness does not guarantee desired function. People have written TLA+ specs for their software[1] and not have it materially improve the quality or reliability.
Boris said they heavily use TLA+ for Claude Code and they've noticed an improvement. Comparing CC with 6 months ago, it has indeed improved in terms of reliability and screen flicker, etc.
Wow, I feel like Blaine is describe a language a lot like the one I'm working on now, Zena: https://zena-lang.dev/
I started Zena from wanting a TypeScript-like syntax that compiled to very efficient WebAssembly GC, and AssemblyScript had issues...
The motivation for targeting Wasm was as a good sandboxing and orchestration unit for AI-generated code. So, out of both general PL curiosity and enthusiasm, and an attempt to make a language that's good for AI generation, I started adding what I thought were the best features from other languages with a lot of focus on correctness, structure, and optimizability: pattern matching with exhaustiveness checking, ADTs and sum types via sealed classes, value types, async cancelation / structured concurrency, ownership and borrow checking for resources, unicode safe strings, and recently I added runtime contracts and I'll start on refinement types and some kind of proof system soon.
The idea is exactly to take a mainstream and familiar-looking language and add more cutting-edge and academic features that help with software correctness.
Code itself should be safe. Any product definition must be able to converge on the desired outcome, iteratively, so it is accepted code must be reformulated from time to time. Those are the two requirements. The absence of state and a single source of truth help a lot.
Dafny, SPARK Ada, Why3, Verus, Frama-C, TLA+, etc. are all sort of in this direction for different languages and styles of verification. It is nice to see them getting attention now that LLMs make them digestible for a broader set of programmers. I'm not sure one can start with a goal of creating a "mainstream" language that is verification-oriented. Mainstreamness comes from adoption. I'd look at those past languages (like the ones I listed), and ask "why did these not go mainstream" or "why did they not see broad adoption", and try some new ideas to address their gaps to see if a new one will catch on. But the "mainstream" part seems backwards as the goal - if it’s verifiable, ergonomic, flexible, and accessible, maybe it will go mainstream.
Rather than migrating all code to some new program language, I've been building ProgLib: https://github.com/thomasnormal/proglib which is like "MathLib for Programming".
It allows you to import code from any programming language (So far, Python, C++, Rust, and SystemVerilog are partially supported,) and prove stuff about it in Lean.
You don't need a "verifiable programming language". All you need is formalized semantics for the programming language you are already using.
30 years ago, my then boss, a PhD in industrial automation theory, told me formal verification of even simple systems is impossible due to the practically infinite number of states systems can occupy. I have been thinking about this a lot over the years, and I still think this is the case, even more so than before with the bloat that introduces insanely fuzzy edges to any state graph. I wonder if there is really any chance of this becoming a viable concept for systems more complex than a tic-tac-toe game.
I mean in most cases a mathematician is not going around and checking each and every case, why would software do that?
Formal verification a la cocq/Agda/lean works by constructive logic. (Disregard the middle paragraphs, I'm sure I'm not telling you anything new)
The type system is strong enough to encode various statements, even about variables (dependent type system, this is a valid type: a + b == b + a)
The only way to create an instance for this type is by proving the statement. The == type can only be created by trivially equal expressions, so it will accept a == a. So in the definition of the above you will go step by step, each step itself being accepted by the compiler, and at the end you get a proof and a compiling program, a bit similarly to how you would do it on paper.
So I guess it boils down to. Could a mathematician figure out some elegant proof for the system that somehow makes "checking each state" reduced to an easier statement? If yes, then formal verification can also do so. If no, then LLMs may be able to scale up what is feasibly provable, but there is no real alternative. Real world testing is just scratching the surface of the state space.
All in all, that's why it's paramount that systems are designed with complexity in mind. We can compose simple function into a simple function and have it explode in complexity, but it's also possible to choose good primitives that are easy to "mock out" (often both in practice and theory) and not significantly increase the whole system's complexity.
It's impossible to prove by brute-forcing the states of an arbitrary program, but it's possible on practice for programs that were built with verification in mind: pure functions wherever applicable, state invariants defined and verified for every stateful part. If you aren't able to prove a specific invariant at compile-time, you leave it as assertion which means you can still prove that either you get the correct output or an error, but never the wrong output or crash/vulnerability.
I think today it's actually more possible than ever. Writing programs in this way is hard and tedious but LLM can excel at that. I also think that a hybrid of Z3+LLM is orders of magnitude stronger than pure Z3. LLMs generated a formal proof of GRH, surely than can prove banking app correct.
The most vulnerable part that will remain will be the formalization of requirements. That's impossible to solve fully because you never know what the human had in mind exactly when he ordered the program to be written.
There is a "Correctness-by-Construction" approach to programming which allows one to severely restrict the state space of a program from the beginning such that every statement/block/function only operates on a much smaller "valid" set of program sub-states. This is using classical logic via predicates as explained by Hoare Triples, Dijkstra's wp-calculus, Morgan's refinement calculus and later Meyer's Design-by-Contract.
To do deductive verification statically, the basic idea is to group all computation paths (i.e. sequence of state transitions) over the entire program state space into a much smaller set of logical constraints (aka verification conditions) which is then handed off to a SAT/SMT solver to be proved/disproved.
An alternative is constructive logic using types and lambda calculus as pointed out by a sibling commentator.
There have been lots of systems which have been formally proved/verified to various extents/levels as can be seen in Industrial-Strength Formal Methods in Practice by Hinchey/Bowen and many other similar books.
How on earth they not help with real problems? Also, their very point is that most of the program is pure, but they most definitely have IO and other kind of side effects, it just lives at the very edge of the system.
Haskell has interesting uses in industry, but in general in the last decade or so the functional paradigm has become retrofitted to basically each mainstream language. Like java's streams/lambdas, algebraic data types in basically every modern language (rust), immutable by default, etc.
You've got to remember that the average developer is a Javascript or Python coder who lacks the mathematical ability to do even the most rudimentary abstract alegbra, and so cannot write or understand a production Haskell program, let alone understand how abstractions can eliminate whole classes of bugs.
Haha no. I am sorry but we still have issues with null pointers. So lets not get ahead of ourselves and try to model the real world. People thinking "woe is me the world is so complicated lets keep using C" is bizarre.
Hard disagree, you'll only end up with spec errors and the specs will need to become so detailed to be defined that you'll end up back to square one.
Lean works well for math because there are many orders of magnitude of difference between defining a spec (ex P=NP) and implementing the proof. I don't think this applies for conventional software eng
Isnt this exactly what Ada language was created for? Hence, the use by the military for avionics and critical systems.
"It also includes facilities to help program verification. For these reasons, Ada is sometimes used in critical systems, where any anomaly might lead to very serious consequences, e.g., accidental death, injury or severe financial loss. Examples of systems where Ada is used include avionics, air traffic control, railways, banking, military and space technology."
Ada's decline was not due to Ada's design, which IMO is one of the best Language designs out there. However in my opinion the decline of ada is due to its closed source compilers that are mainly used. Additionaly also just a lot of security critical code thats not open source.
Maybe, but now the situation is much different and we have full opensource Ada compiler in GCC as 1st tier language on par with c and c++. And you can use The open source tool SPARK to formally prove a subset of Ada. Any new program I write is now in Ada and no longer c or c++. No regrets!
Those closed source compilers keep 7 compiler vendors in business, most folks hardly pay for anything today, unless we place a Internal wall, or digital app store, in between.
I know nothing about the above project, and am not speaking on it, but you could probably walk into a room full of schizd out AI addicted VCs and say "Rust, verified, operating system and programming language" and walk out with $20 million.
I’ve been playing with Quint [1]. Compared to TLA+, it has been a lot more approachable and even enjoyable at times. With their Studio, even non-technical people have been able to try it out with agents.
If you want a language that is mainstream and applies formal verification and works everywhere you could use Frama-C. It formally verifies C code. C is as mainstream as things get. You can run C code in the browser via web assembly and C works everywhere else as well.
Sounds like you'd be interested in Qed! The web framework I'm building which compiles lean to native js for the frontend and rust for backend, using prorobuf for communication between the two.
I reimplemented the entirety of the css grammar and fully verified the data model, hydration/dehydration pipeline, and can even formally prove accessibility properties at compile time (e.g. contrast > 4.5).
I'm currently working on reimplementing the full sql grammar to allow you to formally verify your queries (and even row level security policies!) at compile time.
I’d be wary of saying “formally prove accessibility”. Leaving aside the problems of computing contrast over differing surfaces (e.g. a gradient, an image, or an animated surface) on a responsive site at build time, accessibility is a vastly bigger subject than just colour contrast and focusing purely on compliance to a set of rules isn’t going to get you very far.
Or rather, zero problem with accessibility linting, but don’t oversell it.
I have started my own PL project after going through Crafting Interpreters.
I know there is a ton of stuff I need and want to learn but no language has all the features I'd like.
Namely systems language "zero overhead" performance, modern ergonomics and compile-time guarantees like Rust, dependent types (I don't know much about type systems so maybe there is - and probably there is - some good alternative I am missing), powerful generics (the shit people do with C++ templates often leave me admiring the creativity and also wondering why it has to be so unreadable), reflection, and more stuff I currently have as ideas but not in a very solid form admittedly. And all those working synergistically and coherently.
I do have a good foundation in abstract math but there is lots to study for sure. And it has to be something that really offers some great combination of features otherwise it's not worth it for anything else than me learning how to write a proper compiler. There are too many languages already, but I am not sure whether this is because it is too hard of a problem or because of choices people made. I guess I am going to find out.
At least my motivation is in a relatively sufferable shape despite it having tendencies of going down the shitter with all this vibe-coding crap going on.
People pushing it beyond what it was originally designed for in C++98.
Most of the template meta-programming tricks are hardly needed since C++20, and improved yet again in C++23, with C++26 static reflection making them completly not worthwhile pursuing, assuming they sort out the whole ratification drama.
Yes, I am aware of those points. I follow the new C++ standards (haven't touched reflection though). The transformation of C++ since C++11 has been amazing and I think there is still no competitor for, say, numeric computation frameworks. But some stuff is still awkward to write and of course other features probably just can't make it to the language.
We do not need a full-on theorem prover for achieving this.
Something like ZFC axioms is good enough. External formal verification tools are not ideal either. Its better if the type system of the host language's got these essentials included, like having a model checker for its abstract machine or something. However, model checker for enforcing correctness(especially of the intent) will be much harder to implement in languages without a well defined, stable ABI and type system, which typically is the case with almost all mainstream languages. Even though operational semantics is the semantics of the hardware, most languages do not strictly adhere to it due to a lot of practical reasons.
Mainstream languages that become practical enough to be used by masses will usually be in a spot where it becomes very hard to formally define the language and when that happens, enforcing "correctness" becomes close to impossible. Stuff like this needs to be addressed since the start.
Selling to the entire industry the idea that "memory safety" is the only thing essential security requirement, while all else is a low priority, simply means that anyone who bought that ad either had surplus resources or was operating with inadequate requirements to justify doing so. Computer programming is about deductive reasoning of the programs and that means its much more than just writing code and handling resources properly.
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.
Axiom of Infinity - There exists an infinite set.
Axiom of Replacement - If a function is defined, then for any set, there exists a set of images under that function.
Since you called me out for nitpicking, go ahead and read the ZFC axioms as charitably as you like, and explain how they would be all you need to formally prove your code.
Formal correctness is mostly useless for mainstream software.
Models are strong enough that their bottom 10% of code is acceptable garbage, like in any human codebase.
Top 10% is excellent.
From my experience on vibed complex algorithms (like voxel terrain generation within 200km radius at sub second generation), formal software was usefull, if not necessary, prior to opus 5.5
Now it's plain useless unless you need an absolute guarantee of correctness. But that's niche, not mainstream.
So we don't need a mainstream programming language, we already have good options that are sufficient.
It still plugs in LLM as a module, and LLM can be misaligned, so there is no guarantee that the spec will be 100% reflecting the user's intent. (I do know how to solve this, and I will in the future.)
But even right now in practice, with Opus 5.5 or GPT 6.2 Sol (medium reasoning both) it works fantastic. I use daily at $dayjob and in personal projects.
I think it's simple to understand. Most code is now written by LLMs and the bottleneck is verification. If with a few more tokens thrown at TLA+, Lean, etc. we can achieve _guaranteed_ correctness, it's an amazing deal. I'm not saying it's possible or even that it works that way, but that's the dream.
I agree mostly, but not that verification being a bottleneck is the principal part. Isn't it rather that as we push ourselves to working at higher levels of abstraction, managing agents, we want to be sure we're not just letting them go off and do whatever, but keeping some reins on them? We might no longer be able to do what they do - I'm thinking RH in Lean - but if it's formally verifiable we can at least say a model output complies with a specification (unless the agent hacked the formal verification stage).
We want to be confident we're not being duped.
It's like we skipped over the Laws of Robotics, but we're writing some sort of Mosaic 'moral' code for generative models.
Obviously! That's what being a good engineer has always been about — automate away the mundane of your job, and think through what else could be automated next!
As for reviewing AI code, have you seen some of it? Nobody wants to review that!
Au contraire, it's both horrifying and impressive that so much of the software industry has grown for decades without formal verification. With the accelerated production ("productivity") of machine-generated code, we're at a threshold where it will become impossible to manage the complexity unless we change our ways.
- rust type system, without borrow checker difficulties
- formal verification
- ...and has few more like fast compile times, which is a must/underappriciated in agentic development (see below) etc.
As an example I attempted to rewrite MSSQL 3 times:
1. TS based on SQLite [1]
2. Rust based on DuckDB [2]
3. MoonBit [3]
MoonBit version materialized more than order of magnitude faster compared to Rust version, tasks that were taking weeks in Rust took hours in MoonBit (!) – not only that, instead of using multiple build machines including maxed 128 GB RAM Ryzen box eating hundreds of gigabytes of SSD to support Rust worktrees / parallel compilation, MoonBit was run on MacMini M1 with 16GB RAM and limited disk space – still destroying Rust version in terms of development speed going more than 10x faster.
Formal proofs is early stage support, you can see some of it here [4] if you're interested.
If you find it somehow interesting, feel free to have a look at bitSQL repo/website [3] (it's public domain like all my recent projects), especially the final artifact which is a marvel – ~30 MB (!) of hardened container image, drop it replacement for MSSQL container – tiny, performant (wins all benchmarks against MSSQL), passes 25k tests, low resource usage (MBs instead of GBs of RAM needed) – what a beauty. Great for ie. running CI tests on projects using MSSQL.
Following some of the same sentiment, let me offer my own thoughts on how hardware/software co-design also should change to enable both digital sovereignty and inherent defensibility. https://acje.github.io/systems/new_stack/
This is a new frontier, we do not need to be able to read the code so why do we even need a code editor, we need a completely new language that might use symbols, context, location, images and human langauge.
Again the OP makes the provably incorrect assumption that the current state of code generation and validation cannot meet quality standards.
I’ve been doing it with a custom engineering harness on top of Claude Code for a year.
I certainly see the desire for a validation framework in code generation, but until we invent that and migrate the entire world to it, let’s focus on discipline.
The reality the OP sees isn’t wrong. Most of what I see publicly is trash. Undisciplined vibe coders are in a death spiral of agentic madness.
But if you bring discipline to software construction, you can extract high-quality results.
We still need requirements. We still need invariants. We still need wireframes. We still need user experience design.
Then we reach into history and bring back Functional Design Specifications.
Add TDD, DDD, behavior testing, mutation verification. And finally people need to use it for the final validation.
Now you have a disciplined approach that works today.
I think it's more that many may argue we never really reached high enough quality standards, irrespective of vibe coding. I also think that with good usage, LLMs can produce good code, but if we could also raise the bar while we are at it, why not?
I feel many, if not most, of these arguments basically reduce to some variant of “use Haskell/OCaml with spec-style tests”.
Exhaustiveness guarantees, compiler verification and feedback, powerful language features to create high-level domain syntax and languages, pure functions commonly used, and specifications/tests that can be read aloud in English and understood by domain experts… they’re even token efficient.
The TL;DR is that proofs only show that the program matches a spec, not that the spec matches the world. The gap between "what you can model" and "the real world" is generally too large for formal methods to be useful (outside of narrow domains, where they are highly useful).
In other words, computing is closer to an empirical science than a formal one.
Frustrating. The repeated failure of developers trying to fix broken human behavior with a software solution.
LLMs are not the problem. Quality will degrade anyways because there is no reason why it shouldn’t degrade. There is no magic to any of this. It’s just economics. Quality will remain high provided there is an incentive to keep it high, but once other factors achieve a greater desired value those incentives collapse.
This is not a new problem and it has been solved countless times outside software. So long as software people continue to whine about the symptoms while intentionally ignoring the problem we should expect conditions to continue to degrade. A new programming language will not alter the trajectory or acceleration towards failure. Perverse desires always find a way.
The author’s proposal reminds me of the JavaScript framework craze. Industrial-scale formal verification does not require a new language unless your program involves exotic types and/or logic not supported by any of the mainstream languages. There is still lots of work to be done, of course, but projects like Rust’s Verus and Aeneas already provide a clean and modular interface to plug in a formal methods layer, like Lean, without needing to reinvent the wheel.
Seamless formal verification requires a native formal specification to verify against. In my view, focusing work on formally modelling existing languages (like Rust), or if intractable at least a fragment with Cartesian closed semantics, is far more encouraging to mainstream adoption of formal methods than trying to convince the industry to adopt a new language.
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.
This will never take off without the proper incentives to make companies actually care.
Management would rather have vibe coding as the next step, following on cheap offshoring, than anything else, and the recent meltdowns aren't going to deter them, without liability in place.
What are people doing that they are finding quality is nose diving? That’s completely the opposite of my experience. I’d like to know, but the link is broken
But of course software engineering has always had this problem, right? Oh! Another broken link.
Maybe we need to start closer to home when it comes to quality.
"i want to formally verify the program" should be met with the same reaction as "i want to prove that this is true", namely WHAT, what exactly do you want to prove
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.
But if AI is writing code for us now, do people need to learn programming? To me that's a chicken-egg dilemma. Some languages struggle getting new people to use them.
If you think you ever need anything more than rust, drink bleach. I mean if dealing with borrow checker is a hard pass for you maybe let's not talk about formal verification
1. When coding was done exclusively by humans we still had lots of bugs, inefficiencies, poorly written and poorly architected software.
2. While at start LLM output was not great, models are continuously improving and the quality of coding by frontier models is good. (Even weaker models like Deepseek Flash can output high quality software if driven carefully)
3. By analyzing the model output, having lots of gates, having good testing habits and by asking the models to manually test what they did, and constantly changing my workflow to improve the output, I am very happy with the results and probably my workflow using AI is of better quality than if I would do it by hand.
4. If the software isn't of worse quality than if done by human teams with realistic constrains (time, money etc.), then using AI is a net gain.
5. While striving for perfection is great, doing when to do compromises and trade-offs, is even greater.
1. When coding was done exclusively by humans we still had lots of bugs, inefficiencies, poorly written and poorly architected software.
2. While at start LLM output was not great, models are continuously improving and the quality of coding by frontier models is good. (Even weaker models like Deepseek Flash can output high quality software if driven carefully)
3. By analyzing the model output, having lots of gates, having good testing habits and by asking the models to manually test what they did, and constantly changing my workflow to improve the output, I am very happy with the results and probably my workflow using AI is of better quality than if I would do it by hand.
4. If the software isn't of worse quality than if done by human teams with realistic constrains (time, money etc.), then using AI is a net gain.
> The only way forward is to fully embrace formal verification, all the way down to the foundations ... But that's easier said than done. Existing formal verification tools suffer from massive usability and understandability problems, and have failed to make any kind of noticeable impact ...
This is sort of a counterpart to my own opinion of formal verification, since first learning about it 30 years ago.
Firstly, if there's no direct link between the written code (or perhaps even the program code post-compilation) and the verification algebra, what are you really verifying?
And secondly if we can 'get by' without it very well for the most part, then justifying the extra effort is very hard.
And I would argue in contrast to the author that we have achieved a hell of a lot without using it particularly widely. Much like that late-90s obsession, the semantic web, it illustrates a major disconnect between assumptions in the halls of academia about how the world should work, and real world industry practice.
So if there is value in formal verification then the author is right, if must be applicable directly to the program code under verification, and I would argue it must be low friction if it's going to get adoption. And I think LLMs can probably help us deliver that last part.
A programming language is more than compilation, which I feel the post misses.
I pick language because of its runtime properties and quality of life, I don’t want to reinvent every foundation in every project with a barebones language.
If Haskell would finally give up on the disaster that is laziness (and by extension GHC) and pivot to formal verification, this could be the killer app.
The issue with Haskell and other functional programming languages is that it doesn't reflect the hardware paradigm. Reasoning within a functional programming language is obviously simplified due to the statelessness, however you lose the benefits of memory hierarchies and other hardware improvements we have due to spatial and temporal locality. You might be able to fix this with a smart compiler, but then reasoning about the correctness will be another challenge.
If a language cannot balance tradeoffs between hardware and software, people will still use the most performant language, especially for resource-intensive tasks, so you end up with what we currently have. We need to rethink how we can design a language that is token-efficient, offers memory safety, is close to the metal, and lastly implements formal verification guarantees. The closest what we have to this is Rust and C++, but it's not good enough.
> however you lose the benefits of memory hierarchies and other hardware improvements we have due to spatial and temporal locality.
This is ironic considering the default GC strategy for GHC's RTS is a copying collector that puts values physically close if they are used together plus bump allocation. That has good cache side effects (heh).
Yet another article claiming software quality is "nose-diving" because of AI, while we're piling [insert anything]2root exploits based on decades of real human sloppiness. Meanwhile, in-house software keeps getting better.
> fully embrace formal verification, all the way down to the foundations of our civilizational software stack.
I am getting so tired of LLMs being used as leverage for people to basically thrust their random viewpoint and make it all philosophical.
"LLMs mean my thing is best and everyone needs to do it or become post-civilizational transhuman paperclips"
I almost wish the stupid AI safety sex cult could convince Sanders and Trump to nuke us back to the stone age if only to save us from the onslaught of low-quality bad faith takes.
Formal correctness does not guarantee desired function. People have written TLA+ specs for their software[1] and not have it materially improve the quality or reliability. You cannot just throw formal verification at a problem.
I am very much of the opinion that crap code is an issue of organisation and aesthetics, and that can be automated. This is something that is enforced by frameworks, and despite the popular consensus that LLMs are good at frameworks because of training data, I make another argument that LLMs are good at them because frameworks massively restrict the possibility space of code that can exist and enforce a consistent organisation and aesthetic. The solution as I see it is to make more restrictive frameworks that have a higher chance of producing desired functionality, then afterward we can worry about correctness.
[1] https://jepsen.io/analyses/particledb-1.1.4
Given how vibe coded the rest of that whole DB appears to be, and the number of holes the Jepsen test found, I’m not terribly sure I’d trust, or use it as an example of “used formal methods”.
A better example would be the AWS S3 team who used TLA+ to formally verify their permissions model, especially around whether something was publicly accessible.
The first paragraph is
> To save software engineering from LLMs, we need a mainstream verifiable language
Formal verification will not save us from LLMs, whatever it is we want to try and save (human civilization or programmers or users).
That particleDB link is VERY unconvincing. All the folks I know who wrote a TLA+ spec have said that it helped them discover bugs. Just that it was a massive pain to keep maintaining code and spec independently.
However, I am confused on why new PL is needed. Why not just improve lean and its libraries so that it becomes a standard big-software language like Go/Java/Rust ?
Lean wouldn't be able to match Rust in performance without a fundamental restructure of its core calculus.
Rust doesn't guarantee desired function either. It doesn't mean that average rust program has the same probability to have segfault at runtime as a similar program written in C.
"Formal correctness doesn't guarantee desired function, therefore we don't need it."
But in reality it will actually catch bugs, in addition to other verification methods, and give more confidence in software.
Requirements, code, verification, etc are a process to turn a human mental model of something into an process a computer can do. You can verify the computer's side of that all day long but if the human side is wrong no amount of verification is going to make your software do what you wanted it to do.
I start with prose requirements, then use Elenxis (https://github.com/kbr-/elenxis) to translate into formal Lean model.
Then I state signatures and conjectures that the spec must have. Properties that the future implementation must hold. No implementation yet.
Only once all conjectures are there, we are ready to roll.
If I write in Lean, I can now fill in the signatures' implementations. Then prove theorems. Proof doesn't go through => bug. Fix, retry, repeat.
If I write in an inferior language, there is extra Intermediate step: translating the conjectures into property test in the language. Only once these are ready, I can write implementation.
You must not write implementation before having all conjectures stated -- otherwise the implementation will bias your thinking, and you will try to prove properties of your implementation instead of what you needed.
All of the above applies equally to AI agents.
> You must not write implementation before having all conjectures stated -- otherwise the implementation will bias your thinking, and you will try to prove properties of your implementation instead of what you needed.
Most software engineers don't really have a background in it, and tbh I kinda don't know where to start, and have heard that right now if you're already experienced with formal methods then you can get great results out of approaches like this with LLMs, but if you just vibecode up the Lean or TLA+ etc then you're not going to get out of it what you were expecting. I suspect your statement here is exactly the kind of thing that makes all the difference, but I don't know how to know what the other things that make the difference are. Any other pointers?
On Formal Methods Thinking/Levels and (In)Formal Methods - https://news.ycombinator.com/item?id=50478624
On Design By Contract (DbC) - https://news.ycombinator.com/item?id=50108540
On Combining Tests and Proofs with Contracts - https://news.ycombinator.com/item?id=50108206
On Correctness-by-Construction - https://news.ycombinator.com/item?id=49613696
Note that the above is based on using classical logic predicates to "steer" the program through its "state space". This is the more fundamental and "simpler" approach since it uses only First-Order Logic.
Another way is to use the Type System (constructive logic, dependent types in Lean4 etc.) to embed the above directly into the program types. This is harder since you need Typed Lambda Calculus, Higher-Order Logic and need to think quite differently. For this you can read Types and Programming Languages by Benjamin Pierce and/or any number of lambda calculus books. The Curry-Howard Correspondence helps you understand this if you have some idea of the above state space approach.
Finally, if you want to know/study the whole of above you need to read Understanding Formal Methods by Jean-Francois Monin - https://news.ycombinator.com/item?id=50506655
It is all overwhelming at first if you are completely new to it so use it as a roadmap. Survey all of the above to get a grip on the jargon, notation and application and then choose your approach/logic/tool based on your interests/needs.
Formal verification is a useful tool, but I don't think it meaningfully combats "slop," which I argue is primarily disorganised, voluminous, and lacking in aesthetics.
> That is, the design should be started by modelling with some formal language
I would make sure what I am developing demonstrably works before formally verifying the characteristics of the system.
1. The slop is incorrect
2. The slop is bloated
3. The slop is not human readable
Formal verification together with human validation is the answer to point 1. The second point needs additional measures to keep the artificial author in check which is in my experience quite easy to accomplish.
If these two are in place I found that human readability falls out mostly for free.
So, to summarize, in my opinion formal verification together with measures to keep the code minimal and concise is our best way to tackle slop.
4a. The slop has been generated with rules and processes, ones that needed actual decisions and approval which never happened.
4b. Nobody reading the slop can distinguish between deliberate things that were chosen and approved, versus accidental things which were blindly generated and kept.
TL;DR it impacts the trajectory of the LLM negatively in a massive way IMHO.
That link is a pretty weak strawman. Also TLA+ is special in that it (usually) does not directly verify the implementation but a model of it.
Boris said they heavily use TLA+ for Claude Code and they've noticed an improvement. Comparing CC with 6 months ago, it has indeed improved in terms of reliability and screen flicker, etc.
I started Zena from wanting a TypeScript-like syntax that compiled to very efficient WebAssembly GC, and AssemblyScript had issues...
The motivation for targeting Wasm was as a good sandboxing and orchestration unit for AI-generated code. So, out of both general PL curiosity and enthusiasm, and an attempt to make a language that's good for AI generation, I started adding what I thought were the best features from other languages with a lot of focus on correctness, structure, and optimizability: pattern matching with exhaustiveness checking, ADTs and sum types via sealed classes, value types, async cancelation / structured concurrency, ownership and borrow checking for resources, unicode safe strings, and recently I added runtime contracts and I'll start on refinement types and some kind of proof system soon.
The idea is exactly to take a mainstream and familiar-looking language and add more cutting-edge and academic features that help with software correctness.
I wrote about some of this here, though not the formal methods parts: https://zena-lang.dev/blog/2026/09/languages-for-the-ai-era/
It allows you to import code from any programming language (So far, Python, C++, Rust, and SystemVerilog are partially supported,) and prove stuff about it in Lean.
You don't need a "verifiable programming language". All you need is formalized semantics for the programming language you are already using.
Formal verification a la cocq/Agda/lean works by constructive logic. (Disregard the middle paragraphs, I'm sure I'm not telling you anything new)
The type system is strong enough to encode various statements, even about variables (dependent type system, this is a valid type: a + b == b + a)
The only way to create an instance for this type is by proving the statement. The == type can only be created by trivially equal expressions, so it will accept a == a. So in the definition of the above you will go step by step, each step itself being accepted by the compiler, and at the end you get a proof and a compiling program, a bit similarly to how you would do it on paper.
So I guess it boils down to. Could a mathematician figure out some elegant proof for the system that somehow makes "checking each state" reduced to an easier statement? If yes, then formal verification can also do so. If no, then LLMs may be able to scale up what is feasibly provable, but there is no real alternative. Real world testing is just scratching the surface of the state space.
All in all, that's why it's paramount that systems are designed with complexity in mind. We can compose simple function into a simple function and have it explode in complexity, but it's also possible to choose good primitives that are easy to "mock out" (often both in practice and theory) and not significantly increase the whole system's complexity.
I think today it's actually more possible than ever. Writing programs in this way is hard and tedious but LLM can excel at that. I also think that a hybrid of Z3+LLM is orders of magnitude stronger than pure Z3. LLMs generated a formal proof of GRH, surely than can prove banking app correct.
The most vulnerable part that will remain will be the formalization of requirements. That's impossible to solve fully because you never know what the human had in mind exactly when he ordered the program to be written.
Formal verification of full behavior is impossible. But formal verification of important properties is within the reach of AI.
There is a "Correctness-by-Construction" approach to programming which allows one to severely restrict the state space of a program from the beginning such that every statement/block/function only operates on a much smaller "valid" set of program sub-states. This is using classical logic via predicates as explained by Hoare Triples, Dijkstra's wp-calculus, Morgan's refinement calculus and later Meyer's Design-by-Contract.
To do deductive verification statically, the basic idea is to group all computation paths (i.e. sequence of state transitions) over the entire program state space into a much smaller set of logical constraints (aka verification conditions) which is then handed off to a SAT/SMT solver to be proved/disproved.
An alternative is constructive logic using types and lambda calculus as pointed out by a sibling commentator.
There have been lots of systems which have been formally proved/verified to various extents/levels as can be seen in Industrial-Strength Formal Methods in Practice by Hinchey/Bowen and many other similar books.
Haskell has interesting uses in industry, but in general in the last decade or so the functional paradigm has become retrofitted to basically each mainstream language. Like java's streams/lambdas, algebraic data types in basically every modern language (rust), immutable by default, etc.
Lean works well for math because there are many orders of magnitude of difference between defining a spec (ex P=NP) and implementing the proof. I don't think this applies for conventional software eng
"It also includes facilities to help program verification. For these reasons, Ada is sometimes used in critical systems, where any anomaly might lead to very serious consequences, e.g., accidental death, injury or severe financial loss. Examples of systems where Ada is used include avionics, air traffic control, railways, banking, military and space technology."
All that was once old, is new again.
The lab I worked with for my thesis used Verus for our formally verified Operating System written in Rust. https://mars-research.github.io/doc/2023-kisv-atmo.pdf
[1]: https://quint.sh
I reimplemented the entirety of the css grammar and fully verified the data model, hydration/dehydration pipeline, and can even formally prove accessibility properties at compile time (e.g. contrast > 4.5).
I'm currently working on reimplementing the full sql grammar to allow you to formally verify your queries (and even row level security policies!) at compile time.
https://github.com/JacobAsmuth/qed
Or rather, zero problem with accessibility linting, but don’t oversell it.
I know there is a ton of stuff I need and want to learn but no language has all the features I'd like.
Namely systems language "zero overhead" performance, modern ergonomics and compile-time guarantees like Rust, dependent types (I don't know much about type systems so maybe there is - and probably there is - some good alternative I am missing), powerful generics (the shit people do with C++ templates often leave me admiring the creativity and also wondering why it has to be so unreadable), reflection, and more stuff I currently have as ideas but not in a very solid form admittedly. And all those working synergistically and coherently.
I do have a good foundation in abstract math but there is lots to study for sure. And it has to be something that really offers some great combination of features otherwise it's not worth it for anything else than me learning how to write a proper compiler. There are too many languages already, but I am not sure whether this is because it is too hard of a problem or because of choices people made. I guess I am going to find out.
At least my motivation is in a relatively sufferable shape despite it having tendencies of going down the shitter with all this vibe-coding crap going on.
People pushing it beyond what it was originally designed for in C++98.
Most of the template meta-programming tricks are hardly needed since C++20, and improved yet again in C++23, with C++26 static reflection making them completly not worthwhile pursuing, assuming they sort out the whole ratification drama.
The usual enum to string example, https://godbolt.org/z/aKc8Ebza4
Something like ZFC axioms is good enough. External formal verification tools are not ideal either. Its better if the type system of the host language's got these essentials included, like having a model checker for its abstract machine or something. However, model checker for enforcing correctness(especially of the intent) will be much harder to implement in languages without a well defined, stable ABI and type system, which typically is the case with almost all mainstream languages. Even though operational semantics is the semantics of the hardware, most languages do not strictly adhere to it due to a lot of practical reasons.
Mainstream languages that become practical enough to be used by masses will usually be in a spot where it becomes very hard to formally define the language and when that happens, enforcing "correctness" becomes close to impossible. Stuff like this needs to be addressed since the start.
Selling to the entire industry the idea that "memory safety" is the only thing essential security requirement, while all else is a low priority, simply means that anyone who bought that ad either had surplus resources or was operating with inadequate requirements to justify doing so. Computer programming is about deductive reasoning of the programs and that means its much more than just writing code and handling resources properly.
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.
Take what you need and leave what you don't, however you see fit for your requirement(s). One might not need all of the axioms.
From my experience on vibed complex algorithms (like voxel terrain generation within 200km radius at sub second generation), formal software was usefull, if not necessary, prior to opus 5.5
Now it's plain useless unless you need an absolute guarantee of correctness. But that's niche, not mainstream.
So we don't need a mainstream programming language, we already have good options that are sufficient.
It still plugs in LLM as a module, and LLM can be misaligned, so there is no guarantee that the spec will be 100% reflecting the user's intent. (I do know how to solve this, and I will in the future.)
But even right now in practice, with Opus 5.5 or GPT 6.2 Sol (medium reasoning both) it works fantastic. I use daily at $dayjob and in personal projects.
We want to be confident we're not being duped.
It's like we skipped over the Laws of Robotics, but we're writing some sort of Mosaic 'moral' code for generative models.
verification against whose spec?
As for reviewing AI code, have you seen some of it? Nobody wants to review that!
2. ????
3. Post Human Singularity or something
It already checks boxes listed in the article:
- wasm(-gc) target
- uses gc
- rust type system, without borrow checker difficulties
- formal verification
- ...and has few more like fast compile times, which is a must/underappriciated in agentic development (see below) etc.
As an example I attempted to rewrite MSSQL 3 times:
1. TS based on SQLite [1]
2. Rust based on DuckDB [2]
3. MoonBit [3]
MoonBit version materialized more than order of magnitude faster compared to Rust version, tasks that were taking weeks in Rust took hours in MoonBit (!) – not only that, instead of using multiple build machines including maxed 128 GB RAM Ryzen box eating hundreds of gigabytes of SSD to support Rust worktrees / parallel compilation, MoonBit was run on MacMini M1 with 16GB RAM and limited disk space – still destroying Rust version in terms of development speed going more than 10x faster.
Formal proofs is early stage support, you can see some of it here [4] if you're interested.
If you find it somehow interesting, feel free to have a look at bitSQL repo/website [3] (it's public domain like all my recent projects), especially the final artifact which is a marvel – ~30 MB (!) of hardened container image, drop it replacement for MSSQL container – tiny, performant (wins all benchmarks against MSSQL), passes 25k tests, low resource usage (MBs instead of GBs of RAM needed) – what a beauty. Great for ie. running CI tests on projects using MSSQL.
[0] https://www.moonbitlang.com
[1] https://github.com/mirek/mssqlite
[2] https://github.com/mirek/msduck
[3] https://github.com/mirek/bitsql
[4] https://github.com/mirek/bitsql/blob/main/docs/design/verifi...
https://zena-lang.dev/
> TScert: a sound core for TypeScript. An independent checker, whose soundness is proved in Lean
https://github.com/cristianoc/TScert
I’ve been doing it with a custom engineering harness on top of Claude Code for a year.
I certainly see the desire for a validation framework in code generation, but until we invent that and migrate the entire world to it, let’s focus on discipline.
The reality the OP sees isn’t wrong. Most of what I see publicly is trash. Undisciplined vibe coders are in a death spiral of agentic madness.
But if you bring discipline to software construction, you can extract high-quality results.
We still need requirements. We still need invariants. We still need wireframes. We still need user experience design.
Then we reach into history and bring back Functional Design Specifications.
Add TDD, DDD, behavior testing, mutation verification. And finally people need to use it for the final validation.
Now you have a disciplined approach that works today.
I think it's more that many may argue we never really reached high enough quality standards, irrespective of vibe coding. I also think that with good usage, LLMs can produce good code, but if we could also raise the bar while we are at it, why not?
Exhaustiveness guarantees, compiler verification and feedback, powerful language features to create high-level domain syntax and languages, pure functions commonly used, and specifications/tests that can be read aloud in English and understood by domain experts… they’re even token efficient.
I recommend reading Cantwell Smith's "The Limits of Correctness" https://dl.acm.org/doi/pdf/10.1145/379486.379512
The TL;DR is that proofs only show that the program matches a spec, not that the spec matches the world. The gap between "what you can model" and "the real world" is generally too large for formal methods to be useful (outside of narrow domains, where they are highly useful).
In other words, computing is closer to an empirical science than a formal one.
Of course you may have still written incorrect spec, and once you have IO you probably won't model the whole Linux kernel in the proof.
LLMs are not the problem. Quality will degrade anyways because there is no reason why it shouldn’t degrade. There is no magic to any of this. It’s just economics. Quality will remain high provided there is an incentive to keep it high, but once other factors achieve a greater desired value those incentives collapse.
This is not a new problem and it has been solved countless times outside software. So long as software people continue to whine about the symptoms while intentionally ignoring the problem we should expect conditions to continue to degrade. A new programming language will not alter the trajectory or acceleration towards failure. Perverse desires always find a way.
In this case, economics doesn't matter if quality is free. And users do care about quality a little bit at least.
Seamless formal verification requires a native formal specification to verify against. In my view, focusing work on formally modelling existing languages (like Rust), or if intractable at least a fragment with Cartesian closed semantics, is far more encouraging to mainstream adoption of formal methods than trying to convince the industry to adopt a new language.
Management would rather have vibe coding as the next step, following on cheap offshoring, than anything else, and the recent meltdowns aren't going to deter them, without liability in place.
What are people doing that they are finding quality is nose diving? That’s completely the opposite of my experience. I’d like to know, but the link is broken
But of course software engineering has always had this problem, right? Oh! Another broken link.
Maybe we need to start closer to home when it comes to quality.
You get to choose 2 out of 3
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.
2. While at start LLM output was not great, models are continuously improving and the quality of coding by frontier models is good. (Even weaker models like Deepseek Flash can output high quality software if driven carefully)
3. By analyzing the model output, having lots of gates, having good testing habits and by asking the models to manually test what they did, and constantly changing my workflow to improve the output, I am very happy with the results and probably my workflow using AI is of better quality than if I would do it by hand.
4. If the software isn't of worse quality than if done by human teams with realistic constrains (time, money etc.), then using AI is a net gain.
5. While striving for perfection is great, doing when to do compromises and trade-offs, is even greater.
2. While at start LLM output was not great, models are continuously improving and the quality of coding by frontier models is good. (Even weaker models like Deepseek Flash can output high quality software if driven carefully)
3. By analyzing the model output, having lots of gates, having good testing habits and by asking the models to manually test what they did, and constantly changing my workflow to improve the output, I am very happy with the results and probably my workflow using AI is of better quality than if I would do it by hand.
4. If the software isn't of worse quality than if done by human teams with realistic constrains (time, money etc.), then using AI is a net gain.
This is sort of a counterpart to my own opinion of formal verification, since first learning about it 30 years ago.
Firstly, if there's no direct link between the written code (or perhaps even the program code post-compilation) and the verification algebra, what are you really verifying? And secondly if we can 'get by' without it very well for the most part, then justifying the extra effort is very hard.
And I would argue in contrast to the author that we have achieved a hell of a lot without using it particularly widely. Much like that late-90s obsession, the semantic web, it illustrates a major disconnect between assumptions in the halls of academia about how the world should work, and real world industry practice.
So if there is value in formal verification then the author is right, if must be applicable directly to the program code under verification, and I would argue it must be low friction if it's going to get adoption. And I think LLMs can probably help us deliver that last part.
Much of what the author wants already exists!
If a language cannot balance tradeoffs between hardware and software, people will still use the most performant language, especially for resource-intensive tasks, so you end up with what we currently have. We need to rethink how we can design a language that is token-efficient, offers memory safety, is close to the metal, and lastly implements formal verification guarantees. The closest what we have to this is Rust and C++, but it's not good enough.
This is ironic considering the default GC strategy for GHC's RTS is a copying collector that puts values physically close if they are used together plus bump allocation. That has good cache side effects (heh).
If it's truly needed, it will appear (or has appeared already) in one form or another.
I am getting so tired of LLMs being used as leverage for people to basically thrust their random viewpoint and make it all philosophical.
"LLMs mean my thing is best and everyone needs to do it or become post-civilizational transhuman paperclips"
I almost wish the stupid AI safety sex cult could convince Sanders and Trump to nuke us back to the stone age if only to save us from the onslaught of low-quality bad faith takes.