Programming language elements for correctness proofs

  • Gergely Dévai

Abstract

Formal methods are not used widely in industrial software development, because the overhead of formally proving program properties is generally not acceptable. In this paper we present an ongoing research project to make the construction of such proofs easier by embedding the proof system into a compiler. Using the introduced new programming language, the programmer writes formal specification first. The specification is to be refined using stepwise refinement which results in a proof. The compiler checks this proof and generates the corresponding program in a traditional programming language. The resulting code automatically fulfills the requirements of the specification. In this paper we present language elements to build specification statements and proofs. We give a short overview on the metaprogramming techniques of the language that support the programmer's work. Using a formal model we give the semantics of specification statements and refinements. We also prove the soundness of the basic algorithms of the compiler.

Downloads

Download data is not yet available.
Published
2008-01-01
How to Cite
Dévai, G. (2008). Programming language elements for correctness proofs. Acta Cybernetica, 18(3), 403-425. Retrieved from https://cyber.bibl.u-szeged.hu/index.php/actcybern/article/view/3730
Section
Regular articles