The piece considers what it would take to build a mainstream programming language that supports formal verification, especially as LLMs raise expectations for software development. Its central caution is that proving a program meets a specification does not prove the specification captures what people actually want; that gap depends on how software interacts with the real world and cannot be solved by language design alone. It also urges designers to decide whether they are creating a language to be analyzed or a formal language for describing and proving properties of other languages. The logical foundations under consideration include temporal logic, separation logic, and higher-order dependently typed logic.
A verification-friendly language must define precisely what programs do, but mainstream languages often have vast, evolving specifications and behaviors that are unspecified or undefined, as in C and C++. The piece outlines operational semantics, which model execution as results or individual steps; denotational semantics, which map constructs to mathematical objects; and axiomatic semantics, which describe effects on program state. Simpler languages are easier to specify but harder to use, while richer languages can be more expressive. Syntactic sugar offers a possible compromise: complex features can be translated into a smaller core language, letting their behavior be defined through the core’s semantics. The design challenge is to balance rigor, usability, and the needs of human or AI developers.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.