Blaine Hansen argues that as language models make it cheaper to write code, developers need better ways to check what it guarantees. Formal verification uses mathematical proofs to check specific claims about a program. Even when a model writes the proof, a developer still has to decide which claims are worth proving.
- Hansen wants proof tools that developers can use for everyday applications, from browsers to embedded systems.
- His proposed language, Magmide, would start with familiar programming tools and automatic checks for some properties. Support for writing deeper proofs in Lean, a proof assistant, would come later.
Magmide is a design proposal. The test for any tool like it is whether developers can specify and check a property that matters in the software they already ship.
The 188-comment thread on Hacker News takes up a practical question: how much of this can teams do with the languages they already use?
What the thread adds
- danabramov says they’re trying to verify JavaScript by having a model translate it to Lean, modeling its environment, and comparing the two versions’ behavior before proving properties of the Lean version.
- sarreph and thomasahle are building tools to work with existing code. One aims to let developers write Lean proofs for TypeScript alongside tests. The other reports partial support for importing code in four languages into Lean.
- Buttons840 makes one of Hansen’s proposed checks concrete: mark a function as unable to access disk, then have the compiler check whether anything it calls can do so.
- juanre built a Lean model of a system that distinguishes people from software agents. The proof covers every sequence of operations in the model, including delegation and revocation. “It found design flaws before any code existed,” juanre writes. They use the model to generate tests for the application, which is separate from proving the application itself.
- hresvelgr would start with stricter frameworks. They argue that limiting how generated code can be organized may help it do what teams want before they invest in proofs.
remywang challenges the example hresvelgr uses. ParticleDB advertised a proof in TLA+, a language for modeling systems. The Jepsen review says “no TLA+ specification was available” during its work. Readers cannot tell which properties the proof covered or whether it described the database that Jepsen tested.
A slice of the 188-comment thread, drawn from HN’s ranked comments. Handles are pseudonymous and HN publishes no per-comment scores.