paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Denotational Semantics of Gradual Typing using Synthetic Guarded Domain Theory

使用合成守卫域理论的渐进类型指称语义
POPL 9(POPL)2025匹配度 2/10 · 该论文属于形式语义与定理证明领域,研究渐进类型的指称语义和守卫域理论,不涉及 LLM/Agent、静态分析工具、浮点程序分析或贝叶斯程序分析,与用户当前核心研究方向(PL 与 AI 交叉)几乎没有直接关联。引用 1 inbox
Eric Giovannini, Tingting Ding, Max S. New
crossref: 2026-09-10

AI 速览

一句话:提出基于合成守卫域理论的渐进类型指称语义,统一证明βη等式有效性与渐进性定理。

渐进类型允许静态与动态类型风格可靠混合,但其元理论验证困难:即使简单语言也含递归与错误,现实语言还有内存分配和动态类型标签,并需证明类型等式推理有效性与渐进性(graduality)。已有验证工作重复繁琐、可复用定理少。本文提出基于守卫域理论(guarded domain theory)的渐进类型指称语义,融合步进索引逻辑关系的通用性与指称语义的模块性、可复用性。作者在简单渐进类型λ演算上建模,证明βη等式有效性与渐进性定理,并在 Guarded Cubical Agda 中机器化验证大部分核心定理,为可复用的渐进类型程序语义数学理论奠定基础。

问题
如何为含递归、错误及现实语言中的内存分配与动态类型标签的渐进类型语言建立可复用的指称语义,并证明类型等式推理有效性与渐进性等元理论性质。
方法
采用守卫域理论(guarded domain theory)构造指称模型,融合步进索引逻辑关系的通用性与指称语义的模块性、可复用性;以一个简单渐进类型λ演算为实例。
评估
在 Guarded Cubical Agda 中机器化验证大部分核心定理,并证明该模型满足βη等式有效性与 graduality 定理。
原文摘要(Abstract)

Gradually typed programming languages, which allow for soundly mixing static and dynamically typed programming styles, present a strong challenge for metatheorists. Even the simplest sound gradually typed languages feature at least recursion and errors, with realistic languages featuring furthermore runtime allocation of memory locations and dynamic type tags. Further, the desired metatheoretic properties of gradually typed languages have become increasingly sophisticated: validity of type-based equational reasoning as well as the relational property known as graduality. Many recent works have tackled verifying these properties, but the resulting mathematical developments are highly repetitive and tedious, with few reusable theorems persisting across different developments. In this work, we present a new denotational semantics for gradual typing developed using guarded domain theory. Guarded domain theory combines the generality of step-indexed logical relations for modeling advanced programming features with the modularity and reusability of denotational semantics. We demonstrate the feasibility of this approach with a model of a simple gradually typed lambda calculus and prove the validity of beta-eta equality and the graduality theorem for the denotational model. This model should provide the basis for a reusable mathematical theory of gradually typed program semantics. Finally, we have mechanized most of the core theorems of our development in Guarded Cubical Agda, a recent extension of Agda with support for the guarded recursive constructions we use.

链接与引用

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

BibTeX
@article{paperbot3222,
  title = {Denotational Semantics of Gradual Typing using Synthetic Guarded Domain Theory},
  author = {Eric Giovannini and Tingting Ding and Max S. New},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {POPL},
  year = {2025},
  doi = {10.1145/3704863}
}