Skip to main content

A type system for computer algebra

  • Conference paper
  • First Online:
Design and Implementation of Symbolic Computation Systems (DISCO 1993)

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

  • 220 Accesses

Abstract

We examine type systems for support of subtypes and categories in computer algebra systems. By modelling representation of instances in terms of existential types instead of recursive types, we obtain not only a simplified model, but we build a basis for defining subtyping among algebraic domains. The introduction of metaclasses, facilitates the task, by allowing the inference of type classes. By means of type classes and existential types we construct subtype relations without involving coercions.

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.

References

  1. K. Bruce, J. Mitchell. PER models of subtyping, recursive types and higher order poly morphism. 19th ACM Symposium on Principles of Programming Languages. New Mexico, Jan.1992.

    Google Scholar 

  2. L. Cardelli. Structural Subtyping and the notion of Power Type. 15th ACM Sumposium POPL. CA, Jan. 1988.

    Google Scholar 

  3. L. Cardelli. Typed Foundations for object-oriented programming. Tutorial at POPL, Jan. 1992.

    Google Scholar 

  4. L. Cardelli, P. Wegner. On understanding types, data abstraction, and polymorphism. Computing Surveys. 17(4). 1985.

    Google Scholar 

  5. W. Cook, W. Hill, P. Canning. Inheritance is not Subtyping. 17thPOPL, ACM Press, Jan 1990.

    Google Scholar 

  6. G. Ghelli. Modelling features of object-oriented languages in second order functional languages with subtypes. in Foundations of OOP. Lecture Notes in Computer Science (489). Springer Verlag, 1991.

    Google Scholar 

  7. A. Goldberg. Smalltalk-80. second edition, Addison-Wesley, 1989.

    Google Scholar 

  8. P. Grogono. The Dee Report. Technical Report. CS, Concordia U. Montreal, Canada. Jan. 1991.

    Google Scholar 

  9. P. Grogono, P.S. Santas. On Equality and Abstractions. To be published at JOOP.

    Google Scholar 

  10. R.D. Jenks, R.S. Sutor. Axiom: The Scientific Computation System. NAG. Springer Ve rlag. 1992.

    Google Scholar 

  11. R.D. Jenks, B. Trager, S. M. Watt, R S. Sutor. Scratchpad II Programming Language Manual, IBM, 1985.

    Google Scholar 

  12. B. Meyer. Eiffel: The language. Prentice Hall. 1991.

    Google Scholar 

  13. J. Mitchell. Polymorphic type Inference and containement. Information and Computation (76). 1988.

    Google Scholar 

  14. J. Mitchell, S. Meldal, N. Madhav. An extension of SML modules with subtyping and inheritance. 18th Sumposium POPL, FL, Jan. 1991.

    Google Scholar 

  15. J. Mitchell, G. Plotkin. Abstract Types have Existential Type. ACM Transactions on Programming Languages and Systems. 10(3), 1988.

    Google Scholar 

  16. B. Pierce. Programming with Intersection Types and Bounded Polymorphism. PhD thesis, CMU. Dec 1991.

    Google Scholar 

  17. B. Pierce, D. Turner. Type Theoretic Foundations for OOP. Report. Dept of CS, U. of Edinbourgh. 1992.

    Google Scholar 

  18. P.S. Santas. Classes and Metaclasses. tech. report, Dept. of CS, ETH Zurich. 1993.

    Google Scholar 

  19. P.S. Santas. Multiple Subclassing and Subtyping for Symbolic Computation. Proc. of Workshop on Multiple Inheritance and Multiple Subtyping. ECOOP 92. Utrecht, Netherlands. June 1992.

    Google Scholar 

  20. R.S. Sutor, R.D.Jenks. The Type Inference and Coercion facilities of the Scratchpad II Interpreter. IBM Tech. Report. March 1987.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Alfonso Miola

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Santas, P.S. (1993). A type system for computer algebra. In: Miola, A. (eds) Design and Implementation of Symbolic Computation Systems. DISCO 1993. Lecture Notes in Computer Science, vol 722. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0013177

Download citation

  • DOI: https://doi.org/10.1007/BFb0013177

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-57235-0

  • Online ISBN: 978-3-540-47985-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics