Skip to main content

The formal description of data types using sketches

  • Part VI New Directions
  • Conference paper
  • First Online:
Mathematical Foundations of Programming Language Semantics (MFPS 1987)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 298))

Abstract

This paper is an exposition of the basic ideas of the mathematical theory of sketches and a detailed description of some of the ways in which this theory can be used in theoretical computer science to specify datatypes. In particular, this theory provides a convenient way of introducing datatypes which have variants, for example in case of errors or nil pointers. The semantics is a generalization of initial algebra semantics which in some cases allows initial algebras depending on a parameter such as a bound for overflow.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

14. Bibliography

  • M. Barr, Models of sketches, Cahiers de Topologie et GĂ©ometrie DiffĂ©rentielle, 27 (1986), 93–107.

    Google Scholar 

  • M. Barr and C. Wells. Toposes, Triples and Theories. Springer-Verlag, 1985.

    Google Scholar 

  • M. Barr and C. Wells. Category Theory for Computer Scientists, in preparation.

    Google Scholar 

  • A. Bastiani C. Ehresmann, Categories of sketched structures. Cahiers de Topologie et GĂ©ometrie DiffĂ©rentielle 10 (1968), 104–213.

    Google Scholar 

  • R. M. Burstall, Electronic category theory, in Mathematical Foundations of Computer Science. Springer Lecture Notes in Computer Science 88 (1980).

    Google Scholar 

  • N. Chomsky, M. P. SchĂ¼tzenberger, The algebraic theory of context-free languages, in P. Braffort, D. Hirschberg, eds. Computer Programming and Formal Systems, North-Holland, 1963.

    Google Scholar 

  • Y. Diers, CatĂ©gories Localizables. Thèse de doctorat, UniversitĂ© de Paris, 1977.

    Google Scholar 

  • J. Donahue and A. Demers, Data types are values. To appear in ACM Transactions on Programming Languages and Systems.

    Google Scholar 

  • H. Ehrig, J. W. Thatcher, P. Lucas and S. N. Zilles, Denotational and initial algebra semantics of the algebraic specification language Look. Preprint: Technische Universität Berlin, 1982.

    Google Scholar 

  • H. Ehrig, H.-J. Kreowski, J. Thatcher, E. Wagner and J. Wright, Parameter passing in algebraic specification languages. Theoretical Computer Science 28 (1984), 45–81.

    Article  Google Scholar 

  • H. Ehrig and B. Mahr, Fundamentals of algebraic specifications I. Springer-Verlag, 1985.

    Google Scholar 

  • M. Fourman and S. Vickers, Theories as categories, in Category Theory and Computer Programming, Springer Lecture Notes in Computer Science 240, Springer-Verlag, 1986.

    Google Scholar 

  • J. A. Goguen, Abstract errors for abstract data types, In E. J. Neuhold, ed. Formal Description of Programming Concepts, North-Holland, 1978.

    Google Scholar 

  • J. A. Goguen and J. Meseguer, Eqlog: equality, types and generic modules for logic programming. To appear in DeGroot and Lindstrom, eds., Functional and Logic Programming, Prentice-Hall, 1985a.

    Google Scholar 

  • J. Goguen and J. Meseguer, Order sorted algebra I: partial and overloaded operators, errors and inheritance. Preprint, SRI International, Menlo Park, CA 94025, 1985b.

    Google Scholar 

  • J. Goguen, J. W. Thatcher, E. G. Wagner and J. B. Wright, Initial algebra semantics and continuous algebras. J. ACM, 24 (1977), 68–95.

    Article  Google Scholar 

  • J. Gray, Categorical aspects of parametric data types. Preprint: University of Illinois, 1985.

    Google Scholar 

  • R. Guitart, On the geometry of computations. Cahiers de Topologie et GĂ©omĂ©trie DiffĂ©rentielle CatĂ©goriques, 27 (1986), 107–136.

    Google Scholar 

  • R. Guitart and C. Lair, Calcul syntaxique des modèles et calcul des formules internes. Diagrammes, 4 (1980), 1–106.

    Google Scholar 

  • J. Lambek and P. Scott, Cartesian Closed Categories and λ-Calculus. Cambridge Studies in Advanced Mathematics 7. Cambridge University Press, 1986.

    Google Scholar 

  • S. Mac Lane, Categories for the Working Mathematician. Graduate Texts in Mathematics 5, Springer-Verlag, 1971.

    Google Scholar 

  • J. Makowsky, Why Horn formulas matter in computer science: initial structures and generic examples. Technical Report #329, Department of Computer Science, Technion, Haifa, Israel, 1984.

    Google Scholar 

  • P. Mateti and F. Hunt, Precision descriptions of software designs: an example. IEEE Compsac, 1985, 130–136.

    Google Scholar 

  • C. McLarty, Left exact logic. Journal of Pure and Applied Algebra, 41 (1986), 63–66.

    Article  Google Scholar 

  • J. Meseguer and J. Goguen, Initiality, induction and computability, in M. Nivat and J. C. Reynolds, eds., Algebraic Methods in Semantics, Cambridge University Press, 1985.

    Google Scholar 

  • D. E. Rydehead and R. M. Burstall, The unification of terms: a category-theoretic algorithm, in Category Theory and Computer Programming, Springer Lecture Notes in Computer Science 240. Springer-Verlag, 1986.

    Google Scholar 

  • J. W. Thatcher, E. G. Wagner and J. B. Wright, Specification of abstract data types using conditional axioms. (Extended abstract). IBM T. J. Watson Research Center Research Report RC 6214 (#26679), 1976.

    Google Scholar 

  • J. W. Thatcher, E. G. Wagner and J. B. Wright, Data type specification: parametrization and the power of specification techniques. ACM Transactions on Programming Languages and Systems, Vol. 4 no. 4, October, 1982.

    Google Scholar 

  • H. Volger, On theories which admit initial structures. Preprint: Universität TĂ¼bingen, 1985.

    Google Scholar 

  • E. Wagner, S. Bloom and J. W. Thatcher, Why algebraic theories? in M. Nivat and J. C. Reynolds, eds., Algebraic Methods in Semantics, Cambridge University Press, 1985.

    Google Scholar 

  • S. N. Zilles, P. Lucas and J. W. Thatcher, A look at algebraic specifications. IBM T. J. Watson Research Center Research Report RJ 3568 (#41985), 1982.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

M. Main A. Melton M. Mislove D. Schmidt

Rights and permissions

Reprints and permissions

Copyright information

© 1988 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Wells, C., Barr, M. (1988). The formal description of data types using sketches. In: Main, M., Melton, A., Mislove, M., Schmidt, D. (eds) Mathematical Foundations of Programming Language Semantics. MFPS 1987. Lecture Notes in Computer Science, vol 298. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-19020-1_27

Download citation

  • DOI: https://doi.org/10.1007/3-540-19020-1_27

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-19020-2

  • Online ISBN: 978-3-540-38920-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics