The class of Basic Feasible Functionals BFF$_2$ is the type-2 counterpart of the class FP of type-1 functions computable in polynomial time. Several characterizations have been suggested in the literature, but none of these present a programming language with a type system guaranteeing this complexity bound. We give a characterization of BFF$_2$ based on an imperative language with oracle calls using a tier-based type system whose inference is decidable. Such a characterization should make it possible to link higher-order complexity with programming theory. The low complexity (cubic in the size of the program) of the type inference algorithm contrasts with the intractability of the aforementioned methods and does not overly constrain the expressive power of the language.
翻译:基本可行功能类别 BFF$_2$是可计算在多元时间的FP类第1类函数类型FP的2类对应方。文献中曾提出若干特征描述,但其中没有任何一种特征描述提供了一种具有保证这一复杂性约束的系统类型的编程语言。我们根据一种使用基于层级的、可判断的、具有甲骨文呼声的、具有紧迫语言的BFF$2$2的描述,这种特征描述应使得有可能将更高层次的复杂性与编程理论联系起来。类型推算算算算法的低复杂性(在程序大小中存在)与上述方法的可耐性形成对比,并且不会过分限制语言的表达力。