paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Internalizing Indistinguishability with Dependent Types

用依赖类型内化不可区分性
POPL 8(POPL)2024匹配度 2/10 · 该论文属于依赖类型与信息流安全的理论类型系统研究,提出 DCOI 将不可区分性内化为类型检查器相等性,虽涉及形式化验证与静态分析基础,但与用户核心关注的 LLM/Agent 同静态分析、浮点程序分析、贝叶斯程序分析的交叉方向没有直接关系。引用 3 inbox
Yiyun Liu, Jonathan Chan, Jessica Shi, Stephanie Weirich
crossref: 2026-09-10

AI 速览

一句话:提出依赖不可区分性演算 DCOI,把不可区分性内化为类型检查器相等性与观察者索引命题相等类型。

在带依赖跟踪的类型系统中,程序员可为计算标注层级以阻止信息从高层流向低层,其核心是不可区分性:一种考虑观察者可依赖程序哪些部分的程序等价。本文研究依赖类型语言中的依赖跟踪,提出依赖不可区分性演算 DCOI。DCOI 将不可区分性作为类型检查器使用的相等性定义,并把它内化为观察者索引的命题相等类型,使程序员能在语言内推理不可区分性。该设计推广并扩展了先前结合依赖跟踪与依赖类型的系统,首次支持任意观察者层级上的转换(conversion)和命题相等。作者证明了 DCOI 的类型可靠性与非干涉定理,并实现了类型检查器原型。

问题
如何将依赖跟踪与不可区分性扩展到依赖类型语言,并支持任意观察者层级上的转换与命题相等。
方法
提出 DCOI,采用不可区分性作为类型检查器的相等性定义,并将其内化为观察者索引的命题相等类型。
评估
证明了 DCOI 的类型可靠性与非干涉定理,并开发了类型检查器原型实现。
原文摘要(Abstract)

In type systems with dependency tracking, programmers can assign an ordered set of levels to computations and prevent information flow from high-level computations to the low-level ones. The key notion in such systems is indistinguishability : a definition of program equivalence that takes into account the parts of the program that an observer may depend on. In this paper, we investigate the use of dependency tracking in the context of dependently-typed languages. We present the Dependent Calculus of Indistinguishability (DCOI), a system that adopts indistinguishability as the definition of equality used by the type checker. DCOI also internalizes that relation as an observer-indexed propositional equality type, so that programmers may reason about indistinguishability within the language. Our design generalizes and extends prior systems that combine dependency tracking with dependent types and is the first to support conversion and propositional equality at arbitrary observer levels. We have proven type soundness and noninterference theorems for DCOI and have developed a prototype implementation of its type checker.

链接与引用

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

BibTeX
@article{paperbot2628,
  title = {Internalizing Indistinguishability with Dependent Types},
  author = {Yiyun Liu and Jonathan Chan and Jessica Shi and Stephanie Weirich},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {POPL},
  year = {2024},
  doi = {10.1145/3632886}
}