paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Tight typings and split bounds

紧致类型标注与分裂界
ICFP 2(ICFP)2018匹配度 1/10 · 论文属于纯 PL 理论中的类型系统与 λ 演算复杂度界研究,与用户关注的 PL↔AI/LLM、静态分析、浮点程序分析或贝叶斯程序分析均无直接交集。虽然涉及形式化方法,但未讨论 LLM/Agent、程序分析工具或工业落地。引用 22 inbox
Beniamino Accattoli, Stéphane Graham-Lengrand, Delia Kesner
crossref: 2026-09-10

AI 速览

一句话:提出带双计数器的 multi type 系统,为多种求值策略给出精确的求值步数与结果大小分裂界。

Multi types(非幂等交集类型)此前被用于给出高阶程序的定量界,可同时限制求值步数与结果大小,但所得界较松:结果大小可能比步数指数级更大。本文改进并推广 Bernadet 与 Graham-Lengrand 的技术,为最大求值策略给出精确界。类型判断携带两个计数器,分别度量求值长度与结果大小。作者在 λ 演算的 head、leftmost-outermost 与最大求值,以及线性替换演算的 linear head 求值这四种策略上给出精确界。工作统一了 de Carvalho 与 Bernadet & Graham-Lengrand 的结果,并新增最左策略的精确分裂界,同时指出 multi types 背后隐藏的计算装置是线性替换演算中的距离替换。

问题
现有 multi types 虽能给出高阶程序的定量界,但界往往较松,结果大小可能远大于求值步数,需要更精确的分裂式界。
方法
细化并推广已有技术,使用带求值长度与结果大小两个计数器的类型判断,对多种求值策略推导精确界。
评估
在 λ 演算的 head、leftmost-outermost、最大求值及线性替换演算的 linear head 求值四种策略上给出精确界,并统一文献结果、指出其背后的距离替换机制。
原文摘要(Abstract)

Multi types—aka non-idempotent intersection types—have been used to obtain quantitative bounds on higher-order programs, as pioneered by de Carvalho. Notably, they bound at the same time the number of evaluation steps and the size of the result. Recent results show that the number of steps can be taken as a reasonable time complexity measure. At the same time, however, these results suggest that multi types provide quite lax complexity bounds, because the size of the result can be exponentially bigger than the number of steps. Starting from this observation, we refine and generalise a technique introduced by Bernadet & Graham-Lengrand to provide exact bounds for the maximal strategy. Our typing judgements carry two counters, one measuring evaluation lengths and the other measuring result sizes. In order to emphasise the modularity of the approach, we provide exact bounds for four evaluation strategies, both in the λ-calculus (head, leftmost-outermost, and maximal evaluation) and in the linear substitution calculus (linear head evaluation). Our work aims at both capturing the results in the literature and extending them with new outcomes. Concerning the literature, it unifies de Carvalho and Bernadet & Graham-Lengrand via a uniform technique and a complexity-based perspective. The two main novelties are exact split bounds for the leftmost strategy—the only known strategy that evaluates terms to full normal forms and provides a reasonable complexity measure—and the observation that the computing device hidden behind multi types is the notion of substitution at a distance, as implemented by the linear substitution calculus.

链接与引用

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

BibTeX
@article{paperbot301,
  title = {Tight typings and split bounds},
  author = {Beniamino Accattoli and Stéphane Graham-Lengrand and Delia Kesner},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {2},
  number = {ICFP},
  year = {2018},
  doi = {10.1145/3236789}
}