# Software engineering is in crisis because of LLMs, and only formal verification can save it

Original title: The need for a formally verifiable mainstream programming language

> Hacker News story 50663089 · language: en · submitted 2026-11-27
> Web version: https://zeli.app/story/50663089
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 185 · by [todsacerdoti](<https://news.ycombinator.com/user?id=todsacerdoti>) · 💬 170
[original](<https://blainehansen.me/post/mainstream-verifiable-language/>) · [HN discussion](<https://news.ycombinator.com/item?id=50663089>)

## Summary

LLMs are accelerating sloppy software practices to machine speed, and quality is collapsing. The author argues that the only real defense is formal verification adopted by ordinary industry engineers, not a small priestly class of researchers. He outlines a revised, pragmatic vision for his project Magmide: a verifiable language compiling to WebAssembly with GC, a Rust-inspired type system minus the borrow checker, and SMT-powered Liquid Types and Flow Effects, with Lean added later as the proof layer.

## Key quote

> Proof assistants guarantee that proofs are correct, but correctness alone is not enough. Someone has to read the theorem statements and confirm they capture the intended mathematics. This is the human contract that no amount of automation can eliminate.

## HN discussion (170 comments)

### [hresvelgr](<https://news.ycombinator.com/item?id=50663245>)

> "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.
>
> [1] https://jepsen.io/analyses/particledb-1.1.4

### [spankalee](<https://news.ycombinator.com/item?id=50663784>)

> 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.
>
> 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/

### [nylonstrung](<https://news.ycombinator.com/item?id=50665620>)

> I firmly believe that Lean is already the language OP wants
>
> There's lots of progress being made towards compilation to WASM and LLVM, as well as interop with Rust and other languages

### [thomasahle](<https://news.ycombinator.com/item?id=50665228>)

> 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.

### [porcoda](<https://news.ycombinator.com/item?id=50663609>)

> 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.

### [aenis](<https://news.ycombinator.com/item?id=50663661>)

> 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.

### [jupake](<https://news.ycombinator.com/item?id=50663903>)

> 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."
>
> All that was once old, is new again.

### [hedonhermdev](<https://news.ycombinator.com/item?id=50663494>)

> https://github.com/verus-lang/verus
>
> 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

---

## Cite

- Page: https://zeli.app/story/50663089
- Date: 2026-11-27
- Source: blainehansen.me (https://blainehansen.me/post/mainstream-verifiable-language/)
- Hacker News: https://news.ycombinator.com/item?id=50663089

## Other languages

- zh: https://zeli.app/zh/story/50663089 · markdown: https://zeli.app/zh/story/50663089.md
- ja: https://zeli.app/ja/story/50663089 · markdown: https://zeli.app/ja/story/50663089.md
- ko: https://zeli.app/ko/story/50663089 · markdown: https://zeli.app/ko/story/50663089.md
- de: https://zeli.app/de/story/50663089 · markdown: https://zeli.app/de/story/50663089.md
- es: https://zeli.app/es/story/50663089 · markdown: https://zeli.app/es/story/50663089.md
- ru: https://zeli.app/ru/story/50663089 · markdown: https://zeli.app/ru/story/50663089.md
