← Sun, Nov 29 digest

So you want to build a mainstream formally verifiable language

read article ↗ hn thread ↗

Designing a mainstream formally verifiable programming language requires balancing semantic simplicity, expressiveness, and proof maintenance across software changes.

read it It maps out critical design trade-offs and open questions for anyone building or evaluating formal verification languages.

summary

The article outlines key architectural decisions and open questions for building a mainstream formally verifiable programming language. It examines foundational choices like logic families, the distinction between meta and object languages, and formal semantics. It also addresses practical hurdles like proof repair under changing codebases and the trade-offs between intrinsic and extrinsic verification.

key points

  1. Language designers must determine whether they are building an object language or a metalanguage.
  2. Proof repair remains a major bottleneck because software changes frequently, unlike static mathematical theorems.
  3. Intrinsic verification enforces correctness upfront via types, whereas extrinsic verification keeps proofs separate from the implementation.

who should read it

Language designers and systems programmers interested in formal methods and correctness-by-construction software.

discussion positive

consensus

Commenters generally agree that proof maintenance during code changes is the biggest practical hurdle for formal verification, with many debating whether Lean or existing tools are already sufficient.

pushback

A minority argue that the article gets bogged down in theoretical semantics without answering what practical properties everyday developers actually want to prove.

best comment by smj-edison ↗

I think there's a pretty big conceptual difference between programming and math, which is that in programming we think about building up something over time by applying successive steps. In math though we have to think about the whole thing simultaneously, forwards and backwards. So when we prove a program, we're actually proving it forwards and backwards, with all possible inputs and outputs, at the same time. And either it's all true, or it blows up in your face.

Another difficulty is with programming, we succeed by making abstractions that don't leak, where with math we're constantly …

It provides a sharp conceptual contrast between the iterative nature of programming and the global, white-box nature of mathematical proofs.

Generated by an LLM from the article and thread. Check the sources before relying on it.