Abstract
We propose an algebra F as a framework to talk about polymorphic types. This framework may be useful for studying various type reconstruction problems that arise in type disciplines which employ polymorphic types. We prove that the problem of equational satisfiability in F is NP-complete. As an illustration of how this framework may work we show how to set up equational constraints in F for the problem of type reconstruction for the system of P. Giannini and S. Ronchi Delia Rocca which was introduced in 1991. This gives another, purely algebraic, proof of their decidability result with a clear upper bound for the complexity of this problem.
This work was partly supported by NSF grant CCR-9002253 and by Polish KBN grant No. 2 1192 91 01.
Preview
Unable to display preview. Download preview PDF.
References
C. Dwork, P. Kanellakis, and J.C. Mitchell. On the sequential nature of unification. Journal of Logic Programming, 1:35–50, 1984.
P. Giannini and S. Ronchi Delia Rocca. Characterization of typings in polymorphic type discipline. In Proceedings of IEEE 3rd Annual Symposium on Logic in Computer Science, pages 61–71, 1988.
P. Giannini and S. Ronchi Delia Rocca. Type inference in polymorphic type discipline. In T. Ito and A.R. Meyer, editors, Proceedings of the International Conference on Theoretical Aspects of Computer Software, Tohoku University, Sendai, Japan, pages 18–37, LNCS 526, Springer Verlag, 1991.
J.-Y. Girard. Une extension de l'interprétation de Gödel à l'analyse et son application à l'elimination des coupures dans l'analyse et la théorie des types. In Fenstad, editor, Proceedings of the 2nd Scandinavian Logic Symposium, pages 63–92, North Holland, 1971.
F. Henglein. Type inference and semi-unification. In ACM Conference on Lisp and Functional Programming, pages 184–197, July 1988.
J.R. Hindley. The principal type-scheme of an object in combinatory logic. Transactions of the American Mathematical Society, 146:29–60, 1969.
A.J. Kfoury, J. Tiuryn, and P. Urzyczyn. An analysis of ML typability. In Arnold, editor, 15th Colloquium on Trees in Algebra and Programming, CAAP 90, LNCS 431, pages 206–220, Springer Verlag, 1990.
A.J. Kfoury, J. Tiuryn, and P. Urzyczyn. Computational consequences and partial solutions of a generalized unification problem. In Proceedings of IEEE 4th Annual Symposium on Logic in Computer Science, pages 98–105, 1989.
A.J. Kfoury, J. Tiuryn, and P. Urzyczyn. The undecidability of the semi-unification problem. In Proceedings of the 22nd Annual ACM Symposium on Theory of Computing, Baltimore, pages 468–476, 1990.
H.G. Mairson. Deciding ml typability is complete for deterministic exponential time. In Proceedings of 17th ACM Symposium on Principles of Programming Languages, pages 382–401, 1990.
J. Reynolds. Towards a theory of type structure. In Robinet, editor, Programming Symposium, LNCS 19, pages 408–425, Springer Verlag, 1974.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1992 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Tiuryn, J. (1992). Solving equational constraints in polymorphic types. In: Nerode, A., Taitslin, M. (eds) Logical Foundations of Computer Science — Tver '92. LFCS 1992. Lecture Notes in Computer Science, vol 620. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0023900
Download citation
DOI: https://doi.org/10.1007/BFb0023900
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-55707-4
Online ISBN: 978-3-540-47276-6
eBook Packages: Springer Book Archive