The Complexity of Principal Inhabitation

It is shown that in the simply typed λ-calculus the following decision problem of principal inhabitation is Pspace-complete: Given a simple type τ , is there a λ-term N in β-normal form such that τ is the principal type of N? While a Ben-Yelles style algorithm was presented by Broda and Damas in 1999 to count normal principal inhabitants (thereby answering a question posed by Hindley), it does not induce a polynomial space upper bound for principal inhabitation. Further, the standard construction of the polynomial space lower bound for simple type inhabitation does not carry over immediately. We present a polynomial space bounded decision procedure based on a characterization of principal inhabitation using path derivation systems over subformulae of the input type, which does not require candidate inhabitants to be constructed explicitly. The lower bound is shown by reducing a restriction of simple type inhabitation to principal inhabitation. 1998 ACM Subject Classification F.4.1 Mathematical Logic

[1]  Richard Statman,et al.  Intuitionistic Propositional Logic is Polynomial-Space Complete , 1979, Theor. Comput. Sci..

[2]  Pawel Urzyczyn,et al.  Inhabitation in Typed Lambda-Calculi (A Syntactic Approach) , 1997, TLCA.

[3]  Sabine Broda,et al.  Counting a Type's (Principal) Inhabitants , 1999, Fundam. Informaticae.

[4]  Richard Statman,et al.  Lambda Calculus with Types , 2013, Perspectives in logic.

[5]  Jakob Rehof,et al.  Towards Combinatory Logic Synthesis , 2013 .

[6]  Jakob Rehof,et al.  Staged Composition Synthesis , 2014, Software Engineering & Management.

[7]  Andrej Dudenhefner,et al.  Combinatory Logic Synthesizer , 2014, ISoLA.

[8]  Sylvain Schmitz Implicational Relevance Logic is 2-EXPTIME-Complete , 2016, J. Symb. Log..

[9]  Andrej Dudenhefner,et al.  Typability in bounded dimension , 2017, 2017 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS).

[10]  Sabine Broda,et al.  On Long Normal Inhabitants of a Type , 2005, J. Log. Comput..