paperbot · PL 论文追踪

全部论文 待读 收藏

P2 What is decidable about gradual types?

渐进类型中哪些问题是可判定的?
POPL 4(POPL)2019匹配度 2/10 · 论文研究渐进类型迁移空间的可判定性,属于类型系统与形式化方法,但与用户核心关注的机器学习/Agentic 程序静态分析、LLM 与静态分析/形式化验证交叉、浮点程序分析或贝叶斯程序分析均无直接关联,仅同属 PL 背景,匹配度较低。引用 12 inbox
Zeina Migeed, Jens Palsberg
crossref: 2026-09-10

AI 速览

一句话:该论文研究渐进类型迁移空间的关键可判定性,给出三种算法并证明判定极大元存在性为 NP 难。

论文关注渐进类型迁移:程序员可通过更精确的类型标注改进程序可读性、效率与安全性,而迁移过程需要工具支持。作者为渐进类型迁移空间建立可判定性基础,提出三种算法,分别判定迁移空间是否有限、是否具有顶元素、是否为单元素集,并证明判定其是否具有极大元素是 NP 难的。作者实现了这些算法,并在微基准测试套件上验证其行为符合预期。这些结果有助于在迁移探索中提供更好的工具支持。

问题
研究问题:在渐进类型迁移空间中,哪些关键性质可判定,以及其复杂度如何。
方法
提出三种判定算法,分别处理迁移空间的有限性、顶元素存在性和单元素性,并给出判定极大元素存在性的 NP 难下界。
评估
作者实现了这些算法,并在微基准测试套件上评估,结果显示其行为符合预期。
原文摘要(Abstract)

Programmers can use gradual types to migrate programs to have more precise type annotations and thereby improve their readability, efficiency, and safety. Such migration requires an exploration of the migration space and can benefit from tool support, as shown in previous work. Our goal is to provide a foundation for better tool support by settling decidability questions about migration with gradual types. We present three algorithms and a hardness result for deciding key properties and we explain how they can be useful during an exploration. In particular, we show how to decide whether the migration space is finite, whether it has a top element, and whether it is a singleton. We also show that deciding whether it has a maximal element is NP-hard. Our implementation of our algorithms worked as expected on a suite of microbenchmarks.

链接与引用

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

BibTeX
@article{paperbot547,
  title = {What is decidable about gradual types?},
  author = {Zeina Migeed and Jens Palsberg},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {4},
  number = {POPL},
  year = {2019},
  doi = {10.1145/3371097}
}