On the Undecidability of Partial Polymorphic Type Reconstruction

We prove that partial type reconstruction for the pure polymorphic lambda-calculus is undecidable by a reduction from the second-order unification problem, extending a previous result by H.-J. Boehm. We show further that partial type reconstruction remains undecidable even in a very small predicative fragment of the polymorphic lambda-calculus, which implies undecidability of partial type reconstruction for lambda^ML as introduced by Harper, Mitchell, and Moggi.

[1]  Daniel Leivant,et al.  Finitely Stratified Polymorphism , 1991, Inf. Comput..

[2]  J. Y. Girard,et al.  Interpretation fonctionelle et elimination des coupures dans l'aritmetique d'ordre superieur , 1972 .

[3]  Peter Lee,et al.  LEAP: A Language with Eval And Polymorphism , 1989, TAPSOFT, Vol.2.

[4]  Dale Miller,et al.  Unification Under a Mixed Prefix , 1992, J. Symb. Comput..

[5]  Frank Pfenning,et al.  Partial polymorphic type inference and higher-order unification , 1988, LISP and Functional Programming.

[6]  R. Hindley The Principal Type-Scheme of an Object in Combinatory Logic , 1969 .

[7]  Frank Pfenning,et al.  A language with eval and polymorphism , 1989 .

[8]  Warren D. Goldfarb,et al.  The Undecidability of the Second-Order Unification Problem , 1981, Theor. Comput. Sci..

[9]  Nancy McCracken,et al.  The Typechecking of Programs with Implicit Type Structure , 1984, Semantics of Data Types.

[10]  Paola Giannini,et al.  Type Inference in Polymorphic Type Discipline , 1991, TACS.

[11]  John C. Mitchell,et al.  Higher-order modules and the phase distinction , 1989, POPL '90.

[12]  Hans-Juergen Boehm Type inference in the presence of type abstraction , 1989, PLDI '89.

[13]  David K. Gifford,et al.  Type reconstruction with first-class polymorphic values , 1989, PLDI '89.

[14]  J. Girard Une Extension De ĽInterpretation De Gödel a ĽAnalyse, Et Son Application a ĽElimination Des Coupures Dans ĽAnalyse Et La Theorie Des Types , 1971 .

[15]  John C. Reynolds,et al.  Towards a theory of type structure , 1974, Symposium on Programming.

[16]  Robin Milner,et al.  A Theory of Type Polymorphism in Programming , 1978, J. Comput. Syst. Sci..

[17]  J. Girard,et al.  Proofs and types , 1989 .

[18]  Hans-Juergen Boehm Partial Polymorphic Type Inference Is Undecidable , 1985, FOCS.

[19]  Robin Milner,et al.  Principal type-schemes for functional programs , 1982, POPL '82.

[20]  John C. Mitchell,et al.  The essence of ML , 1988, POPL '88.