<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy" -->

---
title: The need for a formally verifiable mainstream...
description: Software engineering needs formal verification to survive LLM-driven code, and that requires a mainstream verifiable language engineers will actually adopt....
canonical: https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The need for a formally verifiable mainstream programming language | daily.dev
og:description: Software engineering needs formal verification to survive LLM-driven code, and that requires a mainstream verifiable language engineers will actually adopt....
og:url: https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy
og:image: https://api.daily.dev/og/posts/QEPKcxbhy.png
og:image:alt: The need for a formally verifiable mainstream programming language
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The need for a formally verifiable mainstream programming language

**[Hacker News](https://daily.dev/sources/hn)** · 5 min read · 0 upvotes · 0 comments

## Summary

Software engineering needs formal verification to survive LLM-driven code, and that requires a mainstream verifiable language engineers will actually adopt. Blaine Hansen argues that proof assistants and LLMs alone are not enough, because verification has to spread across industry, not stay with a small group of researchers. He revives Magmide as a simpler, pragmatic language that meets engineers where they are. It would start mainstream and add proving capabilities bottom up, the way Deno layers permission checks onto JavaScript. He says LLMs will help but should not be the whole bet.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blainehansen.me/post/mainstream-verifiable-language>

## Questions this post answers

### Why isn't pairing LLMs with proof assistants like Lean enough to make software safe?

Even if LLMs can write all the proofs, a proof only guarantees correctness against its theorem statement, and humans must still read those statements and confirm they capture the intended behavior. Verification also has to be adopted by industry engineers building real apps, not just a small group of formal methods researchers, so tooling must be usable.

_Developers weighing LLM-generated code risks can follow the verification debate on daily.dev._

### What is Magmide's revised approach to formal verification?

Magmide is now a simpler, pragmatic plan to build a verifiable language for practicing engineers, rather than a new proof assistant with an assembly-level base. It would start from a mainstream design and go bottom up, adding proving capabilities over time. The adoption analogue is Deno, which adds a runtime permissions layer to JavaScript and TypeScript.

_Engineers tracking language design trade-offs can keep up with such projects on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 170 comments across hackernews, lobsters (as of 2026-11-27).

**TL;DR:** Discussion is split between people who think formal verification is an overhyped non-solution to LLM-driven slop and others who see it (or existing tools like Ada/SPARK, Lean, TLA+, Verus) as genuinely useful but argue a brand-new mainstream language is unnecessary when mature alternatives already exist.

**Sentiment:** 20% positive · 45% mixed · 35% skeptical

**The case for**

- Some argue formal methods catch real bugs and add confidence beyond what tests alone provide.
- A few describe using formal/property-driven methods in production (e.g. deriving Lean specs before implementation) with good results.
- Several note existing verified systems like seL4 and Z3's bug-catching record in Windows 7 as proof the approach can work.
- Ada/SPARK advocates say its contracts and verification tooling already work well and integrate smoothly with LLMs.

**The pushback**

- Many argue formal correctness doesn't guarantee the program does what was actually wanted, since specs can be wrong even if proofs hold.
- Several say the real bottleneck is validation (building the right thing) rather than verification (building the thing right).
- Some think a new language is unnecessary given mature options like Ada/SPARK, Lean, F*, Verus, and Frama-C already exist.
- Skeptics argue formal verification is impractical for most real-world, stateful, IO-heavy systems and only shines in narrow domains.
- A few see the push for formal verification as hype or a 'red herring' rather than a solution to code quality problems, which they attribute more to organizational/aesthetic discipline.

**By community**

- hackernews (heated): Long, argumentative thread split between those dismissing formal verification as a silver-bullet myth and those defending its practical value, with many sub-debates about specific tools and whether a new language is even needed.
- lobsters (skeptical): Commenters mostly push back by pointing to existing mature verification ecosystems (Ada/SPARK, Lean, F*, Verus) as reasons a new language seems redundant.

**Hottest debate:** Whether formal verification meaningfully improves real-world software correctness or is an overhyped 'silver bullet' myth that ignores the harder problem of validating requirements.

**Open questions**

- Why invent a new language instead of improving existing ones like Lean or Ada/SPARK to reach mainstream adoption?
- How can formal methods address the gap between verifying a spec and ensuring the spec matches real-world intent?
- Can verification tooling scale to handle IO-heavy, stateful, real-world systems rather than just narrow or pure-functional domains?

**Highlights**

> "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
> — [hresvelgr on hackernews · 11 comments](https://news.ycombinator.com/item?id=50663245)

> 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.
> — [weinzierl on hackernews · 2 comments](https://news.ycombinator.com/item?id=50664143)

> This is exactly what I do in $dayjob. I call it Property Driven Development. 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.
> — [kbr- on hackernews · 3 comments](https://news.ycombinator.com/item?id=50664182)

> We don't really have a verification crisis, we have a validation crisis. Ever more cycles spent checking we're building the thing right doesn't address the issue of whether we're building the right thing. The debate has always been whether running cycles on "compile" which is checking against a largely fixed set of rules is better than "testing" which is checking against a largely dynamic set of rules. "Testing" tends to be able to do validation better than "compile". That's been the running debate between dynamic typed and static typed computer languages for the last half century or so. It swings backwards and forwards. Like centralised vs distributed I don't see there being "a" answer other than "it depends".
> — [neilwilson on hackernews](https://news.ycombinator.com/item?id=50665780)

> Formal verification is not a silver bullet! I am afraid AI has positioned it as the ultimate red herring (and nerd-snipe). 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.
> — [grohan on hackernews · 3 comments](https://news.ycombinator.com/item?id=50663653)

> There's an [Ada forum topic from yesterday](https://forum.ada-lang.io/t/spark-and-discussions-around-ai-and-formal-methods/4991/8) about why Ada's verifiable SPARK subset isn't being brought up in the same discussions as Lean and TLA+. I have no formal methods training and have written verified programs in Ada/SPARK. It doesn't have *true* liquid or refinement types, but subtype predicates are super easy to understand and use. Verification runs off open source tooling (GCC/GNAT/Why3) and it plays super nice with LLMs.
> — [pyj on lobsters · 8 points, 1 comments](https://lobste.rs/s/byfdgn/need_for_formally_verifiable_mainstream#c_dzlax8)

> I don’t disagree but at the same time, we have at minimum verus verification of rust; frama-c; and key for Java https://www.key-project.org/ Stepping slightly out of the mainstream, we’ve got lots of formal verification systems and dependently typed programming languages.  Nevertheless in this year of our lord 2026, people are still writing new software in golang, Ruby, typescript, and Python, none of which are particularly suited to formal verification (and tbh I’m not quite sure why there are so many attempts at formal verification for golang but nothing that becomes mature).  People are even writing C programs without formal verification. I suspect that [the children do not yearn for the formal verification](https://knowyourmeme.com/memes/the-children-yearn-for-the-mines) and that everything is wedged in its ecological niche until something comes along that is better in every single way, cf the growth of rust growing in the same niche as C++.
> — [Student on lobsters · 4 points, 1 comments](https://lobste.rs/s/byfdgn/need_for_formally_verifiable_mainstream#c_ci1xkv)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50663089) · 169 points · 159 comments
- [lobsters](https://lobste.rs/s/byfdgn/need_for_formally_verifiable_mainstream) · 13 points · 11 comments

## Similar posts on daily.dev

- [Prediction: AI will make formal verification go mainstream — Martin Kleppmann’s blog](https://daily.dev/posts/prediction-ai-will-make-formal-verification-go-mainstream-martin-kleppmann-s-blog-j1btzfnpe) · Lobsters · 2 upvotes · 0 comments
- [Worth Reading: LLM-Based Program Verification « ipSpace.net blog](https://daily.dev/posts/worth-reading-llm-based-program-verification-ipspace-net-blog-gxvrnvb8d) · ipSpace.net Blog · 1 upvotes · 0 comments
- [Programming Languages and Type Safety in the Era of LLMs](https://daily.dev/posts/programming-languages-and-type-safety-in-the-era-of-llms-4uc7pjbzi) · The Coded Message · 16 upvotes · 1 comments
- [Programming languages for AI](https://daily.dev/posts/programming-languages-for-ai-knuqwjcd2) · ploeh blog · 9 upvotes · 1 comments
- [LLMs could be, but shouldn't be compilers](https://daily.dev/posts/llms-could-be-but-shouldn-t-be-compilers-cwutlxyzi) · Hacker News · 1 upvotes · 1 comments

---

Tags: [#deno](https://daily.dev/tags/deno)

[View this post on daily.dev](https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The need for a formally verifiable mainstream programming language","url":"https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy"},"datePublished":"2026-11-27T08:25:55.788Z","dateModified":"2026-11-27T11:57:13.010Z","description":"Software engineering needs formal verification to survive LLM-driven code, and that requires a mainstream verifiable language engineers will actually adopt....","image":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","thumbnailUrl":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"deno","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"The need for a formally verifiable mainstream programming language"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-need-for-a-formally-verifiable-mainstream-programming-language-qepkcxbhy#faq","mainEntity":[{"@type":"Question","name":"Why isn't pairing LLMs with proof assistants like Lean enough to make software safe?","acceptedAnswer":{"@type":"Answer","text":"Even if LLMs can write all the proofs, a proof only guarantees correctness against its theorem statement, and humans must still read those statements and confirm they capture the intended behavior. Verification also has to be adopted by industry engineers building real apps, not just a small group of formal methods researchers, so tooling must be usable. Developers weighing LLM-generated code risks can follow the verification debate on daily.dev."}},{"@type":"Question","name":"What is Magmide's revised approach to formal verification?","acceptedAnswer":{"@type":"Answer","text":"Magmide is now a simpler, pragmatic plan to build a verifiable language for practicing engineers, rather than a new proof assistant with an assembly-level base. It would start from a mainstream design and go bottom up, adding proving capabilities over time. The adoption analogue is Deno, which adds a runtime permissions layer to JavaScript and TypeScript. Engineers tracking language design trade-offs can keep up with such projects on daily.dev."}}]}
```

