2024-11-25
History-based reasoning about behavioral subtyping
Publication
Publication
We introduce a new history-based proof-theory for reasoning about behavioral subtyping in class and interface hierarchies. Our approach is based on a semantic definition of types in terms of sets of sequences of method calls and returns, so-called histories.Behavioral subtyping is then naturally defined semantically as a set-theoretic subset relation between sets of histories, modulo a projection relation that captures the syntactic subtype relation. The main contribution is a Hoare-style proof theory for the specification and verification of the behavioral subtyping relation in terms of histories, abstracting from the underlying implementation.Through the use of a banking example we show the practical applicability of our approach. Open Science. Includes a source code artifact [8].
Additional Metadata | |
---|---|
, , , | |
doi.org/10.1007/978-3-031-77019-7_19 | |
Lecture Notes in Computer Science/Lecture Notes in Artificial Intelligence | |
International Colloquium on Theoretical Aspects of Computing (ICTAC 2024) | |
Organisation | Centrum Wiskunde & Informatica, Amsterdam (CWI), The Netherlands |
Bian, J., Hiep, H.-D., & de Boer, F. (2024). History-based reasoning about behavioral subtyping. In Proceedings of the International Colloquium on Theoretical Aspects of Computing (pp. 331–349). doi:10.1007/978-3-031-77019-7_19 |