Safe recursion with higher types and BCK-algebra

Abstract In previous work the author has introduced a lambda calculus SLR with modal and linear types which serves as an extension of Bellantoni–Cook's function algebra BC to higher types. It is a step towards a functional programming language in which all programs run in polynomial time. In this paper we develop a semantics of SLR using BCK-algebras consisting of certain polynomial-time algorithms. It will follow from this semantics that safe recursion with arbitrary result type built up from N and ⊸ as well as recursion over trees and other data structures remains within polynomial time. In its original formulation SLR supported only natural numbers and recursion on notation with first-order functional result type.

[1]  Vom Fachbereich Mathematik TYPE SYSTEMS FOR POLYNOMIAL-TIME COMPUTATION , 1999 .

[2]  Frank Pfenning,et al.  On a modal lambda calculus for S4 , 1995, MFPS.

[3]  Martin Hofmann,et al.  Syntax and semantics of dependent types , 1997 .

[4]  Richard Statman,et al.  Logical Relations and the Typed lambda-Calculus , 1985, Inf. Control..

[5]  Martin Hofmann,et al.  Extensional Constructs in Intensional Type Theory , 1997, CPHC/BCS Distinguished Dissertations.

[6]  Patrick Suppes,et al.  Logic, Methodology and Philosophy of Science , 1963 .

[7]  Stephen A. Cook,et al.  A new recursion-theoretic characterization of the polytime functions (extended abstract) , 1992, STOC '92.

[8]  Daniel Leivant,et al.  Ramified Recurrence and Computational Complexity II: Substitution and Poly-Space , 1994, CSL.

[9]  Martin Hofmann Semantics of Linear/Modal Lambda Calculus , 1999, J. Funct. Program..

[10]  Daniel Leivant,et al.  Predicative Functional Recurrence and Poly-space , 1997, TAPSOFT.

[11]  Martin Hofmann An application of category-theoretic semantics to the characterisation of complexity classes using higher-order function algebras , 1997, Bull. Symb. Log..

[12]  J. Lambek,et al.  Introduction to higher order categorical logic , 1986 .

[13]  Martin Hofmann,et al.  Linear types and non-size-increasing polynomial time computation , 1999, Proceedings. 14th Symposium on Logic in Computer Science (Cat. No. PR00158).

[14]  Helmut Schwichtenberg,et al.  Higher type recursion, ramification and polynomial time , 2000, Ann. Pure Appl. Log..

[15]  Daniel Leivant,et al.  Lambda Calculus Characterizations of Poly-Time , 1993, Fundam. Informaticae.

[16]  B. Day An embedding theorem for closed categories , 1974 .

[17]  S. Lane Categories for the Working Mathematician , 1971 .

[18]  Martin Hofmann,et al.  A Mixed Modal/Linear Lambda Calculus with Applications to Bellantoni-Cook Safe Recursion , 1997, CSL.

[19]  Yehoshua Bar-Hillel,et al.  The Intrinsic Computational Difficulty of Functions , 1969 .