paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Parametric quantifiers for dependent type theory

依赖类型理论中的参数化量词
ICFP 1(ICFP)2017匹配度 2/10 · 论文属于依赖类型论与参数化形式化验证,与用户核心关注的PL与AI/LLM交叉(如Agentic程序静态分析、LLM改进形式化验证)无直接关联,也未涉及浮点或贝叶斯程序分析。虽然兼具理论形式化与工程实现,但主题偏离主要研究方向。引用 57 inbox
Andreas Nuyts, Andrea Vezzosi, Dominique Devriese
dblp: 2026-09-10crossref: 2026-09-10

AI 速览

一句话:为 MLTT 引入参数化量词 ∀ 与 ∃,使参数化定理可在类型系统内部证明,并在 Agda 中实现。

多态类型系统(如 System F)具有参数化性质,但该性质不易迁移到依赖类型理论:MLTT 用单一的 Π 同时泛化参数化量词 ∀ 与非参数化的函数类型 →,导致关键的 identity extension 引理仅对小类型成立,无法推广到 universe。本文为 MLTT 引入参数化量词 ∀ 与 ∃,与既有的 Π、Σ 并存,并提供关系类型构造子以在系统内部证明参数化定理;同时借助 Church 编码与 sized types 内部证明索引函子的初始代数与终余代数。作者通过扩展现有的迭代自反图(cubical set)模型证明该系统可靠,其中区分表示对象相关性的 bridges 与表示相等的 paths,参数化函数即把 bridge 映为 path 的函数。最后在 Agda 证明助手中实现该扩展以检查证明。

问题
在依赖类型理论(MLTT)中参数化性质难以延续:identity extension 引理只对小类型成立,无法涵盖 universe,因为 Π 同时承担参数化 ∀ 与非参数化 → 两种职责。
方法
在 MLTT 中新增参数化量词 ∀、∃ 及关系类型构造子,用区分 bridge 与 path 的迭代自反图(cubical set)模型证明可靠性,并以 Church 编码和 sized types 构造初始代数与终余代数。
评估
在 Agda 证明助手中实现该类型系统扩展,用其机器检查参数化定理及相关构造的证明。
原文摘要(Abstract)

Polymorphic type systems such as System F enjoy the parametricity property: polymorphic functions cannot inspect their type argument and will therefore apply the same algorithm to any type they are instantiated on. This idea is formalized mathematically in Reynolds's theory of relational parametricity, which allows the metatheoretical derivation of parametricity theorems about all values of a given type. Although predicative System F embeds into dependent type systems such as Martin-Löf Type Theory (MLTT), parametricity does not carry over as easily. The identity extension lemma, which is crucial if we want to prove theorems involving equality, has only been shown to hold for small types, excluding the universe. We attribute this to the fact that MLTT uses a single type former Π to generalize both the parametric quantifier ∀ and the type former → which is non-parametric in the sense that its elements may use their argument as a value. We equip MLTT with parametric quantifiers ∀ and ∃ alongside the existing Π and Σ, and provide relation type formers for proving parametricity theorems internally. We show internally the existence of initial algebras and final co-algebras of indexed functors both by Church encoding and, for a large class of functors, by using sized types. We prove soundness of our type system by enhancing existing iterated reflexive graph (cubical set) models of dependently typed parametricity by distinguishing between edges that express relatedness of objects (bridges) and edges that express equality (paths). The parametric functions are those that map bridges to paths. We implement an extension to the Agda proof assistant that type-checks proofs in our type system.

链接与引用

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

BibTeX
@article{NuytsVD17,
  title = {Parametric quantifiers for dependent type theory},
  author = {Andreas Nuyts and Andrea Vezzosi and Dominique Devriese},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {1},
  number = {ICFP},
  year = {2017},
  doi = {10.1145/3110276}
}