DocumentCode :
2195021
Title :
Semantic subtyping
Author :
Frisch, Alain ; Castagna, Giuseppe ; Benzaken, Véronique
Author_Institution :
Departement d´´Informatique, Ecole Normale Superieure, Paris, France
fYear :
2002
fDate :
2002
Firstpage :
137
Lastpage :
146
Abstract :
Usually subtyping relations are defined either syntactically by a formal system or semantically by an interpretation of types in an untyped denotational model. In this paper we show how to define a subtyping relation semantically, for a language whose operational semantics is driven by types; we consider a rich type algebra, with product, arrow, recursive, intersection, union and complement types. Our approach is to "bootstrap" the subtyping relation through a notion of set-theoretic model of the type algebra. The advantages of the semantic approach are manifold. Foremost we get "for free" many properties (e.g., the transitivity of subtyping) that, with axiomatized subtyping, would require tedious and error prone proofs. Equally important is that the semantic approach allows one to derive complete algorithms for the subtyping relation or the propagation of types through patterns. As the subtyping relation has a natural (inasmuch as semantic) interpretation, the type system can give informative error messages when static type-checking fails. Last but not least the approach has an immediate impact in the definition and the implementation of languages manipulating XML documents, as this was our original motivation.
Keywords :
programming language semantics; type theory; XML documents; axiomatized subtyping; error prone proofs; formal system; operational semantics; semantic subtyping; set-theoretic model; subtyping relations; type algebra; untyped denotational model; Algebra; Databases; Programming profession; XML;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Logic in Computer Science, 2002. Proceedings. 17th Annual IEEE Symposium on
ISSN :
1043-6871
Print_ISBN :
0-7695-1483-9
Type :
conf
DOI :
10.1109/LICS.2002.1029823
Filename :
1029823
Link To Document :
بازگشت