paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Inlining as a Space Optimization: A Simple Time- and Space-Invariant Implementation of the Weak Lambda-Calculus

将内联作为空间优化:弱 λ-演算的一个简单时间与空间不变实现
ICFP 10(ICFP)2026匹配度 2/10 · 该论文属于纯PL理论与编译实现,研究弱λ演算在按名/按值策略下的时间与空间复杂度不变性,与用户关注的静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析均无直接关联。仅在PL基础与实现层面有微弱联系,不涉及AI或Agentic程序。引用 1 inbox
Thibaut Balabonski
crossref: 2026-09-10

AI 速览

一句话:提出弱 λ-演算的实现模型,在按名与按值策略下同时保持时间与空间复杂度不变。

论文关注 λ-演算实现中长期存在的时间不变性与空间不变性难以兼得的问题。作者为弱 λ-演算提出一种实现模型,同时覆盖 call-by-name 与 call-by-value 归约策略,并通过将内联(inlining)视为空间优化来控制中间项膨胀。该模型能够模拟任意弱按名或按值归约序列:其时间复杂度为所模拟 β-步数的多项式,空间复杂度为最大中间项大小的线性。由此,论文以简洁方式解决了 λ-演算实现中时间与空间复杂度无法同时保持不变的经典张力。

问题
如何在实现弱 λ-演算时,同时保证时间复杂度和空间复杂度相对于归约过程不变,而不牺牲按名或按值求值策略。
方法
提出一种基于内联作为空间优化的实现模型,为弱 CBN/CBV λ-演算提供时间与空间不变的模拟。
评估
通过复杂度分析证明:模拟任意弱归约序列的时间是 β-步数的多项式,空间是最大中间项大小的线性。
原文摘要(Abstract)

We propose an implementation model for the evaluation of the weak λ-calculus, which is invariant for both time and space complexity, in both call-by-name and call-by-value strategies. In other words, this model provides an implementation of any weak call-by-name or weak call-by-value λ-calculus reduction sequence, whose time complexity is polynomial in the number of simulated β-steps, and whose space complexity is linear in the size of the largest intermediate term. This solves in an elegant way the well-known tension between time-invariance and space-invariance in the implementation of the λ-calculus.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{Balabonski26,
  title = {Inlining as a Space Optimization: A Simple Time- and Space-Invariant Implementation of the Weak Lambda-Calculus},
  author = {Thibaut Balabonski},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {ICFP},
  year = {2026},
  doi = {10.1145/3828705}
}