Coalgebras have been proposed as formal basis for the semantics of objects in the sense of object-oriented programming. This paper shows that this semantics provides a smooth interpretation for subtyping, a central notion in object-oriented programming. We show that different characterisations of behavioural subtyping found in the literature can conveniently be expressed in coalgebraic terms. We also investigate the subtle difference between behavioural subtyping and refinement.
@article{ITA_2001__35_1_61_0, author = {Poll, Erik}, title = {A coalgebraic semantics of subtyping}, journal = {RAIRO - Theoretical Informatics and Applications - Informatique Th\'eorique et Applications}, pages = {61--81}, publisher = {EDP-Sciences}, volume = {35}, number = {1}, year = {2001}, mrnumber = {1845875}, zbl = {0990.18004}, language = {en}, url = {http://archive.numdam.org/item/ITA_2001__35_1_61_0/} }
TY - JOUR AU - Poll, Erik TI - A coalgebraic semantics of subtyping JO - RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications PY - 2001 SP - 61 EP - 81 VL - 35 IS - 1 PB - EDP-Sciences UR - http://archive.numdam.org/item/ITA_2001__35_1_61_0/ LA - en ID - ITA_2001__35_1_61_0 ER -
Poll, Erik. A coalgebraic semantics of subtyping. RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications, Tome 35 (2001) no. 1, pp. 61-81. http://archive.numdam.org/item/ITA_2001__35_1_61_0/
[1] A Theory of Objects. Springer, Monogr. Comput. Sci. (1996). | MR | Zbl
and ,[2] Inheritance and Subtyping in a Parallel Object-Oriented Language, in ECOOP'87, edited by J. Bezivin et al.. Springer, Lecture Notes in Comput. Sci. 276 (1987) 232-242.
,[3] Designing an Object-Oriented Languages with Behavioural Subtyping, in Foundations of Object Oriented Languages, edited by J.W. de Bakker et al.. Springer, Lecture Notes in Comput. Sci. 489 (1991) 60-90.
,[4] On Behavioural Subtyping in LOTOS, in FMOODS'97, Second IFIP International Conference on Formal Methods for Open Object-based Distributed Systems, edited by H. Bowman and J. Derrick. Chapman and Hall (1997) 335-351.
, , and ,[5] The Hopkins Objects Group (J. Eifrig, S. Smith, V. Trifonov), in On Binary Methods, edited by G.T. Leavens and B.C. Pierce. Theory and Practice of Object Systems 1 (1996) 221-242.
, and ,[6] On understanding types, data abstraction and polymorphism. Computing Surveys 17 (1985) 471-522.
and ,[7] A semantic foundation for specification matching, in Foundations of Component-Based Systems, edited by G.T. Leavens and M. Sitaraman. Cambridge University Press (2000) Chap. 5, 91-109.
and ,[8] Inheritance is not subtyping, in Principles of Programming Languages (POPL). ACM (1990) 125-135.
, and ,[9] Forcing behavioral subtyping through specification inheritance, in Proc. 18th International Conference on Software Engineering, Berlin, Germany. IEEE (1996) 258-267.
and ,[10] Theoretical Aspects of Object-Oriented Programming: Types, Semantics, and Language Design. The MIT Press (1994). | Zbl
and ,[11] Reasoning about classes in object-oriented languages: Logical models and tools, in European Symposium on Programming (ESOP), edited by Ch. Hankin. Springer, Lecture Notes in Comput. Sci. 1381 (1998) 105-121. | MR
, , and ,[12] Proof of Correctness of Data Representations. Acta Informatica 1 (1972) 271-281. | Zbl
,[13] A unifying type-theoretic framework for objects. J. Funct. Programming 5 (1995) 593-635. | MR
and ,[14] Invariants, bisimulations and the correctness of coalgebraic refinements, in Algebraic Methodology and Software Technology (AMAST'97), edited by M. Johnson. Springer, Lecture Notes in Comput. Sci. (1997) 276-291.
,[15] A tutorial on (co)algebras and (co)induction. EATCS Bull. 62 (1997) 222-259. | Zbl
and ,[16] A complete algebraic characterization of behavioral subtyping. Acta Informatica 36 (2000) 617-663. | MR | Zbl
and ,[17] Specification and verification of object-oriented programs using supertype abstraction. Acta Informatica 32 (1995) 705-778. | MR | Zbl
and ,[18] Data abstraction and hierarchy. SIGPLAN Notices 23 (1988).
,[19] A behavioral notion of subtyping. TOPLAS 16 (1994) 1811-1841.
and ,[20] On simulation, subtyping and substitutability in sequential object systems. Formal Aspects of Computing 7 (1995) 620-651. | Zbl
,[21] Object-Oriented Software Construction1997). | Zbl
,[22] Toward a typed foundation for method specialization and inheritance, in Principles of Programming Languages (POPL). ACM (1990) 109-124. | Zbl
,[23] Simple type-theoretic foundations for object-oriented programming. J. Funct. Programming 4 (1994) 207-247. | Zbl
and ,[24] Subtyping and Inheritance for Categorical Datatypes, in Theories of Types and Proofs (TTP-Kyoto). Kyoto University Research Insitute for Mathematical Sciences, RIMS Lecture Notes 1023 (1997) 112-125. | MR | Zbl
,[25] Behavioural subtyping for a type-theoretic model of objects, in Foundations of Object-Oriented Languages (FOOL5) (1998).
,[26] An approach to object semantics based on terminal co-algebras. Math. Structures Comput. Sci. 5 (1995) 129-152. | MR | Zbl
,[27] Universal co-algebra: A theory of systems, CWI Report 9652. CWI (1996). | Zbl
,[28] Essential concepts of algebraic specification and program development. Formal Aspects of Computing 9 (1997) 229-269. | Zbl
and ,[29] Encapsulation and inheritance in object-oriented programming languages. ACM SIGPLAN 21 (1986) 38-45. OOPSLA '86 Conference Proceedings, edited by N. Meyrowitz. Portland, Oregon (1986).
,