paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Implementing a modal dependent type theory

实现模态依赖类型论
ICFP 3(ICFP)2019匹配度 2/10 · 论文属于模态依赖类型论与证明助手实现,偏纯 PL/形式化验证基础设施;未涉及 LLM/Agent、静态分析在 ML 系统/Agentic 程序中的应用、浮点或贝叶斯程序分析,与画像核心交叉方向相距较远。引用 32 inbox
Daniel Gratzer, Jonathan Sterling, Lars Birkedal
crossref: 2026-09-10

AI 速览

一句话:提出并实现带 S4 必然模态的依赖类型论 MLTT🔒,给出基于 NBE 扩展的类型检查算法及其可靠性与完备性证明。

模态在编程与数学中广泛出现,但在核心依赖类型论中形式化模态仍存在显著技术挑战。本文提出 MLTT🔒,它在标准 Martin-Löf 类型论连接词的基础上加入 S4 风格的必然模态,支持模态类型与依赖类型之间的平滑交互,为编程与综合数学中的模态使用提供共同基础。作者设计并证明了 MLTT🔒 类型检查算法的可靠性与完备性,其核心是一种对归一化求值(normalization by evaluation)的新颖扩展。最后,他们在 MLTT🔒 的原型证明助手中实现了该算法,展示了相关技术的易用性。

问题
如何在核心依赖类型论中整合模态,并使其与依赖类型平滑交互,从而同时服务于编程与综合数学。
方法
提出带 S4 必然模态的依赖类型论 MLTT🔒,并基于归一化求值的新扩展设计类型检查算法,证明其可靠性与完备性。
评估
通过给出算法可靠性与完备性的元理论证明,并在 MLTT🔒 原型证明助手中实现该算法来展示技术可用性。
原文摘要(Abstract)

Modalities are everywhere in programming and mathematics! Despite this, however, there are still significant technical challenges in formulating a core dependent type theory with modalities. We present a dependent type theoryMLTT🔒supporting the connectives of standard Martin-Löf Type Theory as well as anS4-style necessity operator.MLTT🔒supports a smooth interaction between modal and dependent types and provides a common basis for the use of modalities in programming and in synthetic mathematics. We design and prove the soundness and completeness of a type checking algorithm forMLTT🔒, using a novel extension of normalization by evaluation. We have also implemented our algorithm in a prototype proof assistant forMLTT🔒, demonstrating the ease of applying our techniques.

链接与引用

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

BibTeX
@article{paperbot589,
  title = {Implementing a modal dependent type theory},
  author = {Daniel Gratzer and Jonathan Sterling and Lars Birkedal},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {3},
  number = {ICFP},
  year = {2019},
  doi = {10.1145/3341711}
}