So You Want to Build a Mainstream Formally Verifiable Language
A formally verifiable language aims to let programmers state precise claims about software and prove that programs satisfy them. This matters because formal methods turn an informal process into something rigorous, using logic as a precise foundation. The goal is not merely to write code, but to make its required behavior explicit and checkable. For example, a specification can state a condition a program must meet; verification then establishes that the code behaves according to that condition. The article points to Lean and Agda as dependently typed theorem provers, and to TLA and Alloy as tools leveraging temporal logic. They illustrate different logical foundations a new language might use. But a proof only connects code to its specification. If that specification is mistaken, verification can faithfully establish the wrong target. The author therefore offers context and open questions for would-be language creators, especially software engineers without much formal-methods background, while treating specification fidelity as a separate challenge.
What does it mean for a programming language to be formally verifiable?
A formally verifiable language aims to let programmers state precise claims about software and prove that programs satisfy them. This matters because formal methods turn an informal process into something rigorous, using logic as a precise foundation. The goal is not merely to write code, but to make its required behavior explicit and checkable.
For example, a specification can state a condition a program must meet; verification then establishes that the code behaves according to that condition. The article points to Lean and Agda as dependently typed theorem provers, and to TLA and Alloy as tools leveraging temporal logic. They illustrate different logical foundations a new language might use.
But a proof only connects code to its specification. If that specification is mistaken, verification can faithfully establish the wrong target. The author therefore offers context and open questions for would-be language creators, especially software engineers without much formal-methods background, while treating specification fidelity as a separate challenge.
How many broad families of logic does the article identify as useful for programming language verification?
The article identifies three broad families of logic as useful when thinking about programming languages and verification. Naming the families matters because a language’s logical foundation shapes how people describe software and reason about its behavior.
The three are temporal logic, separation logic, and higher-order dependently typed logic. The article connects temporal logic with TLA and Alloy, separation logic with Software Foundations and the Iris Project, and higher-order dependently typed logic with Lean, Agda, and other theorem provers. These examples show that the author is grouping existing approaches, not proposing three new systems.
The article does not rank the families or recommend one as the best choice. It presents them as starting points for people considering a new formal-verification language. The broader point is that logic has many varieties, and each offers a different way to describe the world. The author’s questions are exploratory rather than prescriptive.
What can a proof guarantee about a program, and what can it not guarantee about the specification?
A formal proof can establish that a program behaves according to a particular specification. That is valuable because it gives a rigorous link between what the program does and what its requirements state. But the proof is only as relevant as the requirement it checks.
For example, code may be shown to match a specification, while the specification fails to capture what people actually wanted. The article compares this concern with questions about whether a large mathematical proof established what its authors claimed. In software, the parallel question is whether the code matches the intended spec. The proof mechanism checks the relationship between code and spec, not whether the spec is well chosen.
The author calls this the specification gap. They argue that specification fidelity is separate from a program’s adherence to that specification. Since fidelity often depends on interaction with an external, real world, the author says it is harder to address through a technical solution such as a programming language.
Why might a program that matches its specification still fail to do what people actually need?
A program can meet every requirement written in its specification and still disappoint people if those requirements do not describe their real needs. This matters because verification checks a defined target; it does not automatically decide whether that target is useful or appropriate.
Imagine a team writes a specification that captures the wrong behavior. A proof could still show that the program follows that specification exactly. The article puts the issue plainly: code may match the spec, but is it the spec people wanted? It argues that a specification’s fidelity to its purpose is distinct from a program’s adherence to it.
The author says that, in most existing software, fidelity is grounded somehow in interaction with an external or “real” world. That makes it less directly technical and harder to solve with a programming language alone. The article presents this as a caveat to remember when judging what formal verification can deliver, not as a problem that a proof by itself can settle.
What is the difference between an object language and a metalanguage?
An object language is the language being examined or described. A metalanguage is the language used to make statements about that object language. The distinction matters when a phrase can refer to language itself in one place and function as ordinary language in another.
The article’s example is the sentence “your sentence is missing a ’the’ before the noun.” The word “the” appears twice, but the first mention refers to the word as an object, while the second is just part of the sentence. The same distinction can arise in formal verification, the author notes, and there may be several levels of language involved.
The article’s discussion is cut off just as it begins to say what happens “most often,” so it does not provide the promised fuller account. In standard usage, however, the distinction helps keep statements about a formal system separate from expressions inside that system. That separation can matter when defining or reasoning about a programming language.
How do temporal logic, separation logic, and dependent type logic support different kinds of reasoning?
The article names three foundations but does not explain their detailed mechanics. In standard usage, temporal logic describes claims about how systems behave over time. Separation logic helps reason about programs that manipulate distinct parts of memory or resources. Dependent type logic lets types express richer claims, with proofs connected to those claims.
For example, temporal reasoning can express that a condition should eventually hold as a system runs. Separation logic can help state that an operation changes one part of memory without affecting a separate part. In dependent type systems, a function’s type can encode a requirement, and showing that a value has that type can establish the requirement. These are general explanations, not examples supplied in the article.
The source links temporal logic to TLA and Alloy, separation logic to Software Foundations and the Iris Project, and dependent type logic to Lean and Agda. It presents the three as relevant options for language designers, without saying one is superior or prescribing when to choose each.
Why is logic a useful foundation for describing and proving how software behaves?
Logic is useful because it gives people a precise way to name objects, express relationships, and make claims that can be assessed as true or false. That precision matters in formal methods, whose purpose is to make an informal process or framework rigorous.
The article contrasts logic with human language, which can admit several interpretations. For instance, a formal statement can make a requirement explicit rather than leaving readers to infer what it means. Once the claim is precise, a proof can reason about whether a program meets it. The proof still depends on the claim being the right one, so precision does not remove the specification gap.
The author notes that logic is not one single system: there are many varieties, described as different ways to play a “game of symbols.” They name temporal logic, separation logic, and higher-order dependently typed logic as broadly relevant to programming languages. A language designer must therefore consider which logical foundation suits the reasoning they want to support.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web