arXiv · 1209.5851
A polynomial time λ-calculus with multithreading and side effects
Abstract
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.
Explore related subjects
Keep this discovery
Antoine Madet. 2012-09-26. A polynomial time λ-calculus with multithreading and side effects. https://arxiv.org/abs/1209.5851
Cite the original work for its findings. Save a collection to share your selection of sources.