So You Want to Build a Mainstream Formally Verifiable Language
In recent years, there has been a surge of mathematical discoveries aided by large language models. The impact of these advancements spans various fields, including programming languages. Some argue that we are now in the golden age of programming language research, and there is a growing demand for a formally-verifiable mainstream language.
To shed light on this topic, I have written this article to offer context and guide those interested in creating formal verification languages, especially individuals from a software engineering background who may not have a strong background in formal methods. Throughout the article, I will present open questions, which I qualify as open to me and relevant from my perspective, rather than offering prescriptive solutions.
The ultimate goal of formal methods is to transform informal processes or frameworks into rigorous ones. To achieve this, we require a precise, powerful, and rigorous foundation, primarily based on logic. Although logic is an unambiguous system within each of its varieties, there are numerous types of logic. When designing a new language for formal verification, several aspects must be considered.
One crucial point to keep in mind is that the specification of a program may not always be accurate, even in the realm of mathematical proofs. This highlights the importance of ensuring that a program adheres to the correct specification. Additionally, the distinction between object and meta languages is essential when dealing with formal verification.
The object language refers to the programming language being verified, while the meta language is the tool used to describe the object language. Often, the meta language is distinct from the object language, as seen in examples like TLA+ and Alloy, which are used to model code behavior. This distinction is particularly relevant when using formal verification to describe a programming language that is not inherently logical, such as C. By understanding these concepts and addressing the open questions, we can work towards creating a mainstream, formally-verifiable language that benefits various software engineering disciplines.
Rewritten by urgent.news; may contain errors — check the original.
Source: danilafe.com