一句话:提出树交集类型系统,精确刻画交互抽象机的空间消耗,并重新审视λ演算的合理空间猜想。
函数式程序的空间复杂度理解不足:传统实现偏重时间,节省空间常靠重计算并牺牲时间。Girard 的交互几何与交互抽象机(IAM)被视为空间高效方案,且猜想其为 λ 演算提供合理空间,但证明难以获得。本文引入新的交集类型系统,精确度量 IAM 在带类型项上的空间消耗。已有交集类型通过去掉幂等性、把交集变为多重集来度量时间;作者进一步将多重集改为树,得到树交集类型。该类型系统细化了若干已有空间复杂度结果,并表明通常的图灵机编码方式无法证明 IAM 的空间是合理代价模型。
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.