The Space of Interaction
Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni
Abstract
The space complexity of functional programs is not well understood. In particular, traditional implementation techniques are tailored to time efficiency, and space efficiency induces time inefficiencies, as it prefers re-computing to saving. Girard's geometry of interaction underlies an alternative approach based on the interaction abstract machine (IAM), claimed as space efficient in the literature. It has also been conjectured to provide a reasonable notion of space for the λ-calculus, but such an important result seems to be elusive.
In this paper we introduce a new intersection type system precisely measuring the space consumption of the IAM on the typed term. Intersection types have been repeatedly used to measure time, which they achieve by dropping idempotency, turning intersections into multisets. Here we show that the space consumption of the IAM is connected to a further structural modification, turning multisets into trees. Tree intersection types lead to a finer understanding of some space complexity results from the literature. They also shed new light on the conjecture about reasonable space: we show that the usual way of encoding Turing machines into the λ-calculus cannot be used to prove that the space of the IAM is a reasonable cost model.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 10dc0943-f9a3-47f7-8b09-e9d504cf325fCited by top-tier papers2
- Reasonable Space for the λ-Calculus, LogarithmicallyBeniamino Accattoli, Ugo Dal Lago, Gabriele VanoniLICS 2022 · 8 citations
- Higher Order Bayesian Networks, ExactlyClaudia Faggian, Daniele Pautasso, Gabriele VanoniPOPL 2024 · 4 citations
Builds on4
- Intersection types and (positive) almost-sure terminationUgo Dal Lago, Claudia Faggian, Simona Ronchi Della RoccaPOPL 2021 · 21 citations
- The (In)Efficiency of interactionBeniamino Accattoli, Ugo Dal Lago, Gabriele VanoniPOPL 2021 · 13 citations
- Consuming and Persistent Types for Classical LogicDelia Kesner, Pierre VialLICS 2020 · 11 citations
- The weak call-by-value λ-calculus is reasonable for both time and spaceYannick Forster, Fabian Kunze, Marc RothPOPL 2020 · 1 citation
Related papers
- Interaction EquivalenceBeniamino Accattoli, Adrienne Lancelot, Giulio Manzonetto, Gabriele VanoniPOPL 2025 · 2 citations
- A Machine-Independent, Log-Sensitive Space-Cost Measure for the Weak Lambda-CalculusThibaut BalabonskiLICS 2026 · 1 citation
- A Compositional Cost Model for the λ-calculusJames LairdLICS 2021
- Quantitative Inhabitation for Different Lambda Calculi in a Unifying FrameworkVictor Arrial, Giulio Guerrieri, Delia KesnerPOPL 2023 · 5 citations
- Why Are Proofs Relevant in Proof-Relevant Models?Axel Kerinec, Giulio Manzonetto, Federico OlimpieriPOPL 2023 · 6 citations
