Abstract
This paper shows that type-checking and type-inference problems are equivalent in domain-free lambda calculi with existential types, that is, type-checking problem is Turing reducible to type-inference problem and vice versa. In this paper, the equivalence is proved for two variants of domain-free lambda calculi with existential types: one is an implication and existence fragment, and the other is a negation, conjunction and existence fragment. This result gives another proof of undecidability of type inference in the domain-free calculi with existence.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Barthe, G., Sørensen, M.H.: Domain-free pure type systems. Journal of Functional Programming 10, 412–452 (2000)
Danvy, O., Fillinski, A.: Representing Control: a Study of the CPS Translation. Mathematical Structures in Computer Science 2(4), 361–391 (1992)
Fujita, K.: Explicitly typed λμ-calculus for polymorphism and call-by-value. In: Girard, J.-Y. (ed.) TLCA 1999. LNCS, vol. 1581, pp. 162–177. Springer, Heidelberg (1999)
Fujita, K., Schubert, A.: Partially Typed Terms between Church-Style and Curry-Style. In: Watanabe, O., Hagiya, M., Ito, T., van Leeuwen, J., Mosses, P.D. (eds.) TCS 2000. LNCS, vol. 1872, pp. 505–520. Springer, Heidelberg (2000)
Fujita, K.: Galois embedding from polymorphic types in to existential types. In: Urzyczyn, P. (ed.) TLCA 2005. LNCS, vol. 3461, pp. 194–208. Springer, Heidelberg (2005)
Fujita, K., Schubert, A.: Existential Type Systems with No Types in Terms. In: Curien, P.-L. (ed.) Typed Lambda Calculi and Applications. LNCS, vol. 5608, pp. 112–126. Springer, Heidelberg (2009)
Harper, R., Lillibridge, M.: Polymorphic Type Assignment and CPS Conversion. Lisp and Symbolic Computation 6, 361–380 (1993)
Hasegawa, M.: Relational parametricity and control. Logical Methods in Computer Science 2(3:3), 1–22 (2006)
Hasegawa, M.: (2007) (unpublished manuscript)
Kfoury, A.J., Tiuryn, J., Urzyczyn, P.: The Undecidability of the Semi-unification Problem. Information and Computation 102, 83–101 (1993)
Mitchell, J.C., Plotkin, G.D.: Abstract types have existential type. ACM Transactions on Programming Languages and Systems 10(3), 470–502 (1988)
Nakazawa, K., Tatsuta, M., Kameyama, Y., Nakano, H.: Undecidability of Type-Checking in Domain-Free Typed Lambda-Calculi with Existence. In: Kaminski, M., Martini, S. (eds.) CSL 2008. LNCS, vol. 5213, pp. 478–492. Springer, Heidelberg (2008)
Nakazawa, K., Tatsuta, M.: Type Checking and Inference for Polymorphic and Existential Types. In: 15th Computing: the Australasian Theory Symposium (CATS 2009), Conferences in Research and Practice in Information Technology (CRPIT), vol. 94 (2009)
Parigot, M.: λμ-calculus: an algorithmic interpretation of classical natural deduction. In: Voronkov, A. (ed.) LPAR 1992. LNCS, vol. 624, pp. 190–201. Springer, Heidelberg (1992)
Schubert, A.: Second-order unification and type inference for Church-style polymorphism. In: 25th Annual ACM Symposium on Principles of Programming Languages (POPL 1998), pp. 279–288 (1998)
Tatsuta, M.: Simple saturated sets for disjunction and second-order existential quantification. In: Della Rocca, S.R. (ed.) TLCA 2007. LNCS, vol. 4583, pp. 366–380. Springer, Heidelberg (2007)
Tatsuta, M., Fujita, K., Hasegawa, R., Nakano, H.: Inhabitance of Existential Types is Decidable in Negation-Product Fragment. In: Proceedings of 2nd International Workshop on Classical Logic and Computation, CLC 2008 (2008)
Thielecke, H.: Categorical Structure of Continuation Passing Style. Ph.D. Thesis, University of Edinburgh (1997)
Wells, J.B.: Typability and type checking in the second-order λ-calculus are equivalent and undecidable. In: Proceedings of 9th Symposium on Logic in Computer Science (LICS 1994), pp. 176–185 (1994)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2010 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kato, Y., Nakazawa, K. (2010). Type Checking and Inference Are Equivalent in Lambda Calculi with Existential Types. In: Escobar, S. (eds) Functional and Constraint Logic Programming. WFLP 2009. Lecture Notes in Computer Science, vol 5979. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-11999-6_7
Download citation
DOI: https://doi.org/10.1007/978-3-642-11999-6_7
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-11998-9
Online ISBN: 978-3-642-11999-6
eBook Packages: Computer ScienceComputer Science (R0)