paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Type Universes as Kripke Worlds

类型宇宙作为 Kripke 世界
ICFP 9(ICFP)2025匹配度 2/10 · 该论文是纯 PL 类型论/形式语义工作,围绕可变引用的 Kripke 世界语义与类型宇宙分层,未涉及静态分析在 ML/Agentic 程序中的应用,也未与 LLM、浮点程序分析或贝叶斯程序分析交叉。仅作为形式化方法的基础理论,与用户核心方向关联很弱。引用 0 inbox
Paulette Koronkevich, William J. Bowman
crossref: 2026-09-10

AI 速览

一句话:论文拆分可变引用的设计空间,区分对过去/未来分配的依赖,并以类型宇宙层级对应 Kripke 世界构造语义,消除类型-世界循环。

可变高阶引用的语义设计长期存在“类型-世界循环”等难题,现有语义还混淆了引用依赖哪些分配。本文重新解构可变高阶引用的设计空间:除高阶引用与完全基引用之分外,引入分配依赖过去分配还是未来分配的区别。作者将只量化过去分配的引用称为直谓引用;在这类引用以及非高阶非直谓引用中,类型-世界循环消失。论文为设计空间中每个点给出语法与语义:语法借助依赖类型论风格的类型宇宙层级,为被分配项的类型分类并分层分配,每个类型宇宙对应一个语义 Kripke 世界,从而以轻量语法机制设计和限制堆形状。其语义与 region 研究相似,并讨论了宇宙系统与 region 之间的联系。

问题
现有可变引用语义混淆了引用依赖哪些分配,并在构造语义模型时面临类型-世界循环这一棘手问题。
方法
论文将引用设计空间按高阶/完全基以及依赖过去/未来分配进行拆分,使用依赖类型论风格的类型宇宙层级来分层分配,并令每个类型宇宙对应一个 Kripke 世界,为各设计点定义语法与语义。
评估
摘要未报告实现或实证评估;论文通过形式化定义、语义分析和与 region 机制的类比来论证新区分及语义设计的意义。
原文摘要(Abstract)

What are mutable references; what do they mean? The answers to these questions have spawned lots of important theoretical work and form the foundation of many impactful tools. However, existing semantics collapse a key distinction: which allocations does a reference depend on? In this paper, we deconstruct the space of mutable higher-order references. We formalize a novel distinction–splitting the design space of references not only into higher-order vs (full-)ground references, but also dependency of an allocation on past vs future allocations. This distinction is fundamental to a thorny issue that arises in constructing semantic models of mutable references–the type-world circularity. The issue disappears for what we call predicative references, those that only quantify over past, not future, allocations, and for non-higher-order impredicative references. We design a syntax and semantics for each point in our newly described space. The syntax relies on a type universe hierarchy, à la dependent type theory, to kind the types of allocated terms, and stratify allocations. Each type universe corresponds to a semantic Kripke world, giving a lightweight syntactic mechanism to design and restrict heap shapes. The semantics bear a resemblance to work on regions, and suggest some connection between universe systems and regions, which we describe in some detail.

链接与引用

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

BibTeX
@article{paperbot3047,
  title = {Type Universes as Kripke Worlds},
  author = {Paulette Koronkevich and William J. Bowman},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {ICFP},
  year = {2025},
  doi = {10.1145/3747532}
}