具有多线程和副作用的多项式时间λ演算
A polynomial time λ-calculus with multithreading and side effects
摘要:
轻逻辑的框架已被广泛研究,以控制高阶函数程序的复杂性。我们提出了一个扩展的框架,多线程程序的副作用,专注于多项式时间的情况下。在引入一个具有并行复合和区域的模态λ演算后,我们证明了对于一类良构程序,一个现实的按值调用求值策略可以在多项式时间内计算出来.结果依赖于模拟调用的值由多项式浅优先的策略,保持评估顺序的副作用。然后,我们提供了一个多项式类型系统,保证良好类型的程序不会出错。最后,我们通过一个并发迭代在归纳数据结构上产生副作用的编程例子来说明类型系统的表达能力。
英文摘要:
The framework of Light Logics has been extensively studied to control the complexity of higher-order functional programs. We propose an extension of this framework to multithreaded programs with side effects, focusing on the case of polynomial time. After introducing a modal λ-calculus with parallel composition and regions, we prove that a realistic call-by-value evaluation strategy can be computed in polynomial time for a class of well-formed programs. The result relies on the simulation of call-by-value by a polynomial shallow-first strategy which preserves the evaluation order of side effects. Then, we provide a polynomial type system that guarantees that well-typed programs do not go wrong. Finally, we illustrate the expressivity of the type system by giving a programming example of concurrent iteration producing side effects over an inductive data structure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。