<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css">

Traits: Correctness-by-Construction for Free

Loading...
Thumbnail Image

Date

2022-06-12

Authors

Runge, Tobias

Potanin, Alex

Thüm, Thomas

Schaefer, Ina

Journal Title

Journal ISSN

Volume Title

Document version

acceptedVersion

Distributor

Universität Ulm

Published in

Formal Techniques for Distributed Objects, Components, and Systems : 42nd IFIP WG 6. 1 International Conference, FORTE 2022, Held As Part of the 17th International Federated Conference on Distributed Computing Techniques, DisCoTec 2022, Lucca, Italy, June 13-17, 2022, Proceedings, 2022

Abstract

We demonstrate that traits are a natural way to support correctness-by-construction (CbC) in an existing programming language in the presence of traditional post-hoc verification (PhV). With Correctness-by-Construction, programs are constructed incrementally along with a specification that is inherently guaranteed to be satisfied. CbC is complex to use without specialized tool support, since it needs a set of refinement rules of fixed granularity which are additional rules on top of the programming language. In this work, we propose TraitCbC, an incremental program construction procedure that implements correctness-by-construction on the basis of PhV by using traits. TraitCbC enables program construction by trait composition instead of refinement rules. It provides a programming guideline, which similar to CbC should lead to well-structured programs, and allows flexible reuse of verified program building blocks. We introduce TraitCbC formally and prove the soundness of our verification strategy. Additionally, we implement TraitCbC as a proof of concept.

Description

Faculties

Fakultät für Ingenieurwissenschaften, Informatik und Psychologie

DFG Project uulm

EU Project uulm

Other projects uulm

Citation

Is version of

Has version

Supplement to

Supplemented by

Has erratum

Erratum to

Has Part

Part of

DOI external

DOI external

https://doi.org/10.1007/978-3-031-08679-3

Institutions

Periodical

Degree Program

DFG Project THU

EU Project THU

Other projects THU

Series

Collections

Endorsement

Review

Supplemented By

Referenced By

Zeitraum:

Creative Commons license

Except where otherwised noted, this item's license is described as Lizenz A