The complexity of type inference for higherorder typed lambda calculf

16Citations
Citations of this article
12Readers
Mendeley users who have this article in their library.

Abstract

We analyse the computational complexity of type inference for untyped A,-terms in the second-order polymorphic typed X-calculus (F2) invented by Girard and Reynolds, as well as higherorder extensions F3,F4, F. proposed by Girard. We prove that recognising the Fctypable terms requires exponential time, and for 7^ the problem is non-elementary. We show as well a sequence of lower bounds on recognising the 7^-typable terms, where the bound for Fk+1is exponentially larger than that for Fk. The lower bounds are based on generic simulation of Turing Machines, where computation is simulated at the expression and type level simultaneously. Non-accepting computations are mapped to non-normalising reduction sequences, and hence non-typable terms. The accepting computations are mapped to typable terms, where higher-order types encode reduction sequences, and first-order types encode the entire computation as a circuit, based on a unification simulation of Boolean logic. A primary technical tool in this reduction is the composition of polymorphic functions having different domains and ranges. These results are the first nontrivial lower bounds on type inference for the Girard/Reynolds system as well as its higher-order extensions. We hope that the analysis provides important combinatorial insights which will prove useful in the ultimate resolution of the complexity of the type inference problem. © 1994, Cambridge University Press. All rights reserved.

Cite

CITATION STYLE

APA

Hengleini, F., & Mairson, H. G. (1994). The complexity of type inference for higherorder typed lambda calculf. Journal of Functional Programming, 4(4), 435–477. https://doi.org/10.1017/S0956796800001143

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free