Academia.eduAcademia.edu

Outline

Data Abstraction and General Recursion

1991

Abstract

Existing approaches to semantics of algebraically specified data types such as Initial Algebra Semantics and Final Algebra Semantics do not take into account the possibility of general recursion and hence nontermination in the ambient programming language. Any technical development of this problem needs to be in the setting of domain theory. In this paper we present extensions of initial and final algebra semantics to algebras with an underlying domain structure. Four possibilities for specification methodologies arise: two each in the Initial and Final algebra paradigms. We demonstrate that the initial/final objects (as appropriate) exist in all four situations. The final part of the paper attempts to explicate the notion of abstractness of ADT's by defining a notion of operational semantics for ADT's, and then studying the relationship between the various algebraic-semantics proposed and the operational semantics. Comments University of Pennsylvania Department of Computer ...

References (9)

  1. Bloom & Riecke 19891 B. Bloom and .J. Rieclie. L('F Should be Lifted. I11 Proceedings of Algebraic .llctliod.i nlid ,S'oftcrnrr Trrlir?ology. pageh 72-118, 1989. [Ehrig & Mahr 19851 H. Ehrig and B. hlahr. Fzrr111~n1piztrrl.s.. of -4lgcbrrric .Specificu,tion 1: equa- t i o n . ~ nnd initirtl scnzctritics . Springer-T-erlag. 1985. [Goguen et al., 19771
  2. J. A. Goguen. .J. TI7. Thatcher, and E. C: . TTiagner. Initial Algebra Se- mantics ant1 Continuou~ Algebra,. .Tour ,in1 of the AC,V, 24(1):68-95, January 1977. [Goguen et al., 19781 J. A. Goguen, J . TV. Thatcher. and E. C: . Tl'agner. An Initial Algebra Approach t o the Specification, C'orrectnebs. and Iinplenlentation of Ab- stract Data Types. In R.T. \-ell. editor. C'ul ~r z t Trends in Programming :lI~thodology. Prentice-I-Iall. 197s. [Gunter 19911
  3. C. A. Gunter. Structureh aild technique^ for the Semantics of Program- ing Languages. 1991. Lecture Notch.
  4. S. Iiamin. Final Data Types and their Specifications. ACM Transactions o n P ~O ~I C I I ) ? I I I ~I I ~ L ~I ~T ~~I ( I ~c . I crud ,S'y.\tcr)z.s. 5(1):97-123, January 1983.
  5. Mitchell & Plotkin 19851 J . C. hlitchell and C; . L). Plot1;in. Xbstiact Types have Existential Type. In Procet.clir~g.\ r,f the 12th Syr7lpo.hr cr ~I I ori Pl.frzcil~les of Programming Lcrr-2guogc.s. pages 37-.51, XC'lI. Jaliuarj 19S.5. [Mitchell 19851 J. C. hlitchell. Representation Indcpc.ndence and Data Abstraction. 1985. [Moss & Thatte 19911
  6. L. S. Llloss and S. R . 'l'llatte. hlodal Logic and Algebraic Specifications. Theoreticcrl Computer ,Scierlct. 199 1. To -Appear.
  7. G. D. Plotkin. LC'F Considered as a Progranlining Language. Theoretical Conzp~cter ,Sriellc~. 5(3):223-256, Decenll~er 197;.
  8. G. Plotkin. -4 ,Structurcrl ilpl~~.ocrrh to Operntiorinl ,Seii-~antics. Technical Report. Computer Science Department, -1arhus University, Denmark, 1981. [Sannella 19901 D. A. Sannella. Fornlal Progranl Developillent in Extended ML for the working Programmer. 111 Pro"~~(~cljnys of t h ~ .IT.(/ BC'SFACS Workshop on Rejizcnz~nt. .January 1990. [Stoy 19771
  9. J. E. Stog. Denotation~11 ,S'e~n[~rit~c.q: fhc , ~c o t t -, S t ~c h e y Approach to Progrcriiimz~ig Lnngzrcrgcs T1itot.y. MIT Pres5. 1977. [Subrahmanyam 19911 R. Subrahmanyanl. F11,nl A l p b1.n .S'cn~nr,i/r 7t1 Domcrziz Theory. Techni- cal Report Thl 11261-910724-1 7. -YPc!T Bell Laboratories, Murray Hill, 1991. [Wand 19791 M. Wand. Final Algebra Semantic> and Data Type Extensions. Journal of C'o~izpt~tc~. o12d ,S'y.~t~r7~ ,S'C/C 1/rc<. 19127-4 i . 1979.