Cargando…

An Abstract Contract Theory for Programs with Procedures

When developing complex software and systems, contracts provide a means for controlling the complexity by dividing the responsibilities among the components of the system in a hierarchical fashion. In specific application areas, dedicated contract theories formalise the notion of contract and the op...

Descripción completa

Detalles Bibliográficos
Autores principales: Lidström, Christian, Gurov, Dilian
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7978888/
http://dx.doi.org/10.1007/978-3-030-71500-7_8
_version_ 1783667232683851776
author Lidström, Christian
Gurov, Dilian
author_facet Lidström, Christian
Gurov, Dilian
author_sort Lidström, Christian
collection PubMed
description When developing complex software and systems, contracts provide a means for controlling the complexity by dividing the responsibilities among the components of the system in a hierarchical fashion. In specific application areas, dedicated contract theories formalise the notion of contract and the operations on contracts in a manner that supports best the development of systems in that area. At the other end, contract meta-theories attempt to provide a systematic view on the various contract theories by axiomatising their desired properties. However, there exists a noticeable gap between the most well-known contract meta-theory of Benveniste et al. [5], which focuses on the design of embedded and cyber-physical systems, and the established way of using contracts when developing general software, following Meyer’s design-by-contract methodology [18]. At the core of this gap appears to be the notion of procedure: while it is a central unit of composition in software development, the meta-theory does not suggest an obvious way of treating procedures as components. In this paper, we provide a first step towards a contract theory that takes procedures as the basic building block, and is at the same time an instantiation of the meta-theory. To this end, we propose an abstract contract theory for sequential programming languages with procedures, based on denotational semantics. We show that, on the one hand, the specification of contracts of procedures in Hoare logic, and their procedure-modular verification, can be cast naturally in the framework of our abstract contract theory. On the other hand, we also show our contract theory to fulfil the axioms of the meta-theory. In this way, we give further evidence for the utility of the meta-theory, and prepare the ground for combining our instantiation with other, already existing instantiations.
format Online
Article
Text
id pubmed-7978888
institution National Center for Biotechnology Information
language English
publishDate 2021
record_format MEDLINE/PubMed
spelling pubmed-79788882021-03-23 An Abstract Contract Theory for Programs with Procedures Lidström, Christian Gurov, Dilian Fundamental Approaches to Software Engineering Article When developing complex software and systems, contracts provide a means for controlling the complexity by dividing the responsibilities among the components of the system in a hierarchical fashion. In specific application areas, dedicated contract theories formalise the notion of contract and the operations on contracts in a manner that supports best the development of systems in that area. At the other end, contract meta-theories attempt to provide a systematic view on the various contract theories by axiomatising their desired properties. However, there exists a noticeable gap between the most well-known contract meta-theory of Benveniste et al. [5], which focuses on the design of embedded and cyber-physical systems, and the established way of using contracts when developing general software, following Meyer’s design-by-contract methodology [18]. At the core of this gap appears to be the notion of procedure: while it is a central unit of composition in software development, the meta-theory does not suggest an obvious way of treating procedures as components. In this paper, we provide a first step towards a contract theory that takes procedures as the basic building block, and is at the same time an instantiation of the meta-theory. To this end, we propose an abstract contract theory for sequential programming languages with procedures, based on denotational semantics. We show that, on the one hand, the specification of contracts of procedures in Hoare logic, and their procedure-modular verification, can be cast naturally in the framework of our abstract contract theory. On the other hand, we also show our contract theory to fulfil the axioms of the meta-theory. In this way, we give further evidence for the utility of the meta-theory, and prepare the ground for combining our instantiation with other, already existing instantiations. 2021-02-24 /pmc/articles/PMC7978888/ http://dx.doi.org/10.1007/978-3-030-71500-7_8 Text en © The Author(s) 2021 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Lidström, Christian
Gurov, Dilian
An Abstract Contract Theory for Programs with Procedures
title An Abstract Contract Theory for Programs with Procedures
title_full An Abstract Contract Theory for Programs with Procedures
title_fullStr An Abstract Contract Theory for Programs with Procedures
title_full_unstemmed An Abstract Contract Theory for Programs with Procedures
title_short An Abstract Contract Theory for Programs with Procedures
title_sort abstract contract theory for programs with procedures
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7978888/
http://dx.doi.org/10.1007/978-3-030-71500-7_8
work_keys_str_mv AT lidstromchristian anabstractcontracttheoryforprogramswithprocedures
AT gurovdilian anabstractcontracttheoryforprogramswithprocedures
AT lidstromchristian abstractcontracttheoryforprogramswithprocedures
AT gurovdilian abstractcontracttheoryforprogramswithprocedures