Abstract
This paper investigates some soundness conditions which have to be fulfilled in systems with coercions and generic operators. A result of Reynolds on unrestricted generic operators is extended to generic operators which obey certain constraints. We get natural conditions for such operators, which are expressed within the theoretic framework of category theory.
However, in the context of computer algebra, there arise examples of coercions and generic operators which do not fulfil these conditions. We describe a framework — relaxing the above conditions — that allows distinguishing between cases of ambiguities which can be resolved in a quite natural sense and those which cannot. An algorithm is presented that detects such unresolvable ambiguities in expressions.
Supported by the Swiss National Science Foundation.
Supported by the Deutsche Forschungsgemeinschaft, grant Lo 231/5-1.
Preview
Unable to display preview. Download preview PDF.
References
O. Abarth and M. J. Schaefer. Precise computation using range arithmetic, via C++. ACM Trans. Math. Software, 18:481–491, 1992.
A. V. Aho, R. Sethi, and J. D. Ullman. Compilers — Principles, Techniques and Tools. Addison-Wesley, Reading, MA, 1986.
H. Comon, D. Lugiez, and P. Schnoebelen. A rewrite-based type discipline for a subset of computer algebra. Journal of Symbolic Computation, 11:349–368, 1991.
P. Hudak, S. Peyton Jones, P. Wadler, et al. Report on the programming language Haskell — a non-strict, purely functional language, version 1.2. ACM SIGPLAN Notices, 27(5), May 1992.
R. D. Jenks and R. S. Sutor. AXIOM: The Scientific Computation System. Springer-Verlag, New York, 1992.
G. T. Leavens and D. Pigozzi. Typed homomorphic relations extended with subtypes. In S. Brookes, M. Main, A. Melton, M. Mislove, and D. Schmidt, editors, Mathematical Foundations of Programming Semantics — 7th International Conference, volume 598 of Lecture Notes in Computer Science, pages 144–167, Pittsburgh, PA, Mar. 1991. Springer-Verlag.
S. Mac Lane. Categories for the Working Mathematician, volume 5 of Graduate Texts in Mathematics. Springer-Verlag, New York, 1971.
B. C. Pierce. Basic Category Theory for Computer Scientists. The MIT Press, Cambridge, MA, 1991.
D. L. Rector. Semantics in algebraic computation. In E. Kaltofen and S. M. Watt, editors, Computers and Mathematics, pages 299–307, Massachusetts Institute of Technology, June 1989. Springer-Verlag.
J. C. Reynolds. Using category theory to design implicit conversions and generic operators. In N. D. Jones, editor, Semantics-Directed Compiler Generation, Workshop, volume 94 of Lecture Notes in Computer Science, pages 211–258, Aarhus, Denmark, Jan. 1980. Springer-Verlag.
B. Stroustrup. The C++ Programming Language. Addison-Wesley, Reading, MA, second edition, 1991.
A. Weber. A type-coercion problem in computer algebra. In J. Calmet and J. A. Campbell, editors, Artifical Intelligence and Symbolic Mathematical Computation — International Conference AISMC-1, volume 737 of Lecture Notes in Computer Science, pages 188–194, Karlsruhe, Germany, Aug. 1992. Springer-Verlag.
A. Weber. On coherence in computer algebra. In A. Miola, editor, Design and Implementation of Symbolic Computation Systems — International Symposium DISCO '93, volume 722 of Lecture Notes in Computer Science, pages 95–106, Gmunden, Austria, Sept. 1993. Springer-Verlag.
A. Weber. Type Systems for Computer Algebra. Dissertation, FakultÄt für Informatik, UniversitÄt Tübingen, July 1993.
A. Weber. Algorithms for type inference with coercions. In Proc. Symposium on Symbolic and Algebraic Computation (ISSAC '94), pages 324–329, Oxford, July 1994. Association for Computing Machinery.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1995 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Missura, S.A., Weber, A. (1995). Using commutativity properties for controlling coercions. In: Calmet, J., Campbell, J.A. (eds) Integrating Symbolic Mathematical Computation and Artificial Intelligence. AISMC 1994. Lecture Notes in Computer Science, vol 958. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60156-2_10
Download citation
DOI: https://doi.org/10.1007/3-540-60156-2_10
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-60156-2
Online ISBN: 978-3-540-49533-8
eBook Packages: Springer Book Archive