Order-Sorted Algebra Solves the Constructor-Selector, Multiple Representation, and Coercion Problems
Structured data are generally composed from constituent parts by constructors and decomposed by selectors. We show that the usual many-sorted algebra approach to abstract data types cannot capture this simple intuition in a satisfactory way. We also show that order-sorted algebra does solve this pro...
Gespeichert in:
Veröffentlicht in: | Information and computation 1993-03, Vol.103 (1), p.114-158 |
---|---|
Hauptverfasser: | , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Structured data are generally composed from constituent parts by
constructors and decomposed by
selectors. We show that the usual many-sorted algebra approach to abstract data types
cannot capture this simple intuition in a satisfactory way. We also show that order-sorted algebra
does solve this problem, and many others concerning partially defined, ill-defined, and erroneous expressions, in a simple and natural way. In particular, we show how order-sorted algebra supports and elegant solution to the problems of multiple representations and coercions. The essence of order-sorted algebra is that sorts have
subsorts, whose semantic interpretation is the subset relation on the carriers of algebras. |
---|---|
ISSN: | 0890-5401 1090-2651 |
DOI: | 10.1006/inco.1993.1016 |