skip to main content
10.1145/190347.190434acmconferencesArticle/Chapter ViewAbstractPublication PagesissacConference Proceedingsconference-collections
Article
Free Access

Algorithms for type inference with coercions

Authors Info & Claims
Published:01 August 1994Publication History

ABSTRACT

This paper presents algorithms that perform a type inference for a type system occurring in the context of computer algebra. The type system permits various classes of coercions between types and the algorithms are complete for the precisely defined system, which can be seen as a formal description of an important subset of the type system supported by the computer algebra program AXIOM.

Previously only algorithms for much more restricted cases of coercions have been described or the frameworks used have been so general that the corresponding type inference problems were known to be undecidable.

References

  1. 1.CARDELLI, L. A semantics of multiple inheritance. Information and Computation 76 (1988), 138-164. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2.COMON, H., LUGIEZ, D., AND SCHNOEBELEN, P. A rewritebased type discipline for a subset of computer algebra. Journal of Symbolic Computation 11 (1991), 349-368. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3.DALMAS, S. A polymorphic functional language applied to symbolic computation. In Proc. Symposium on Symbolic and Algebraic Computation (ISSA C '92) (Berkeley, CA, July 1992), P. S. Wang, Ed., Association for Computing Machinery, pp. 369-375. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4.FORTENBACHER, A. Efficient type inference and coercion in computer algebra. In Design and Implementation of Symbolic Computation Systems (DISCO '90) (Capri, Italy, Apr. 1990), A. Miola, Ed., vol. 429 of Lecture Notes in Computer Science, Springer-Verlag, pp. 56-60. rage Google ScholarGoogle ScholarCross RefCross Ref
  5. 5.FUH, Y.-C., AND MISHRA, P. Type inference with subtypes. Theoretical Computer Science 73 (1990), 155-175. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6.HEARN, A. C., AND SCHR(3FER, E. An order-sorted approach to algebraic computation. In Miola { 12}, pp. 134--144. Google ScholarGoogle Scholar
  7. 7.JENKS, R. D., AND SUTOR, R. S. AXIOM: The Scientific Computation System. Springer-Verlag, New York, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8.KAES, S. Type inference in the presence of overloading, subtyping, and recursive types. In Proceedings of the 1992 A CM Conference on Lisp and Functional Programming (San Francisco, CA, June 1992), Association for Computing Machinery, pp. 193-205. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9.LANG, S. Algebra. Addison-Wesley, Reading, MA, 1971.Google ScholarGoogle Scholar
  10. 10.LINCOLN, P., AND MITCHEL, J. C. Algorithmic aspects of type inference with subtypes, in Conference Record of the Nineteenth Annual A CM Symposium on Principles of Programming Languages (Albuquerque, New Mexico, Jan. 1992), Association for Computing Machinery, pp. 293-304. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. 11.MARZINKEWITSCH, R. Operating computer algebra systems by handprinted input. In Proc. Symposium on Symbolic and Algebraic Computation (ISSAC '91) (Bonn, Germany, July 1991), S. M. Watt, Ed., Association for Computing Machinery, pp. 411--413. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. 12.MIOLA, A., Ed. Design and implementation of Symbolic Computation Systems ~ International Symposium DISCO '93 (Gmunden, Austria, Sept. 1993), vol. 722 of Lecture Notes in Computer Science, Springer-Verlag. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. 13.MISSURA, S. A. Extending AlgBench with a type system. In Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. 14.MITCHELL, J. C. Type inference with simple subtypes. Journal of Functional Programming 1, 3 (July 1991), 245-285.Google ScholarGoogle ScholarCross RefCross Ref
  15. 15.MONAGAN, M. B. Gauss: a parameterized domain of computation system with support for signature functions. In Miola {12}, pp. 81-94. Google ScholarGoogle Scholar
  16. 16.RECTOR, D. L. Semantics in algebraic computation. In Computers and Mathematics (Massachusetts Institute of Technology, June 1989), E. Kaltofen and S. M. Watt, Eds., Springer- Verlag, pp. 299-307. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. 17.ShNTAS, P. S. A type system for computer algebra. In Miola {12}, pp. 177-191. Google ScholarGoogle Scholar
  18. 18.SCHONERT, M., BESCHE, H. U., BREUER, T., CELLER, F., MNICH, J., PFEIFFER, G., POLLS, U., AND NIEMEYER, A. GAP- Groups Algorithm, and Programming. Lehrstuhl D ftir Mathematik, RWTH Aachen, Apr. 1992. Available via anonymous ftp at samson.math, rwth-aachen, de in pub/gap.Google ScholarGoogle Scholar
  19. 19.SMOLKA, G., Ntn'r, W., GOGUEN, J. A., AND MESEGUER, J. Order-sorted equational computation. In Resolution of Equations in Algebraic Structures, Volume 2, H. Ait-Kaci and M. Nivat, Eds. Academic Press, 1989, chapter 10, pp. 297- 367.Google ScholarGoogle Scholar
  20. 20.SUTOR, R. S., AND JENKS, R. D. The type inference and coercion facilities in the Scratchpad Ii interpreter. ACM SIGPLAN Notices 22, 7 (1987), 56-63. SIGPLAN '87 Symposium on Interpreters and interpretive Techniques. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. 21.WEBER, A. A type-coercion problem in computer algebra. In Artifical Intelligence and Symbolic Mathematical Computation -- International Conference AISMC-1 (Karlsruhe, Germany, Aug. 1992), J. Calmet and J. A. Campbell, Eds., vol. 737 of Lecture Notes in Computer Science, Springer- Verlag, pp. 188-194. Google ScholarGoogle Scholar
  22. 22.WEBER, A. On coherence in computer algebra. In Miola { 12}, pp. 95-106. Google ScholarGoogle Scholar
  23. 23.WEBER, A. Type Systems for Computer Algebra. Dissertation, Fakult~it ftlr Informatik, Universit~it Ttibingen, July 1993.Google ScholarGoogle Scholar
  24. 24.ZIPPEL, R. The Weyl computer algebra substrate. In Miola {12}, pp. 303-318. Google ScholarGoogle Scholar

Index Terms

  1. Algorithms for type inference with coercions

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Conferences
          ISSAC '94: Proceedings of the international symposium on Symbolic and algebraic computation
          August 1994
          359 pages
          ISBN:0897916387
          DOI:10.1145/190347

          Copyright © 1994 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 August 1994

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • Article

          Acceptance Rates

          Overall Acceptance Rate395of838submissions,47%

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader