paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Type Theory in Type Theory using a Strictified Syntax

使用严格化语法的类型论中的类型论
ICFP 9(ICFP)2025匹配度 2/10 · 该论文属于类型论与形式化验证/证明工程,讨论 CwF、canonicity 与 Agda 形式化,与用户核心方向(LLM/Agent 与静态分析、浮点程序分析、贝叶斯程序分析及其交叉)几乎没有直接关联。虽然形式验证与 AI→PL 方向有弱关联,但论文不涉及 LLM/Agent,也不涉及程序分析或工业落地。引用 4 inbox
Ambrus Kaposi, Loïc Pujet
crossref: 2026-09-10

AI 速览

一句话:提出在内涵类型论中严格化 CwF 语法、避免 transport 的方法,并在 Agda 中形式化典范性证明。

依赖类型元理论近年因范畴胶合等语义方法而取得进展,但此类证明仍难以计算机形式化:以 CwF 为代表的语义呈现依赖精巧的索引归纳类型,容易陷入 transport hell,导致形式化仍停留在繁琐的句法证明。本文提出在内涵类型论中操作 CwF 的新技术,构造初始 CwF 的替代呈现,将代换编码为元理论函数,从而严格化代换演算中的等式,显著减少 transport 需求。作为应用,作者用该严格化初始 CwF 为带依赖积与含大消去的布尔类型的类型论给出简短优雅的典范性(canonicity)证明,并在 Agda 中完全形式化。

问题
如何在内含类型论中形式化依赖类型元理论,尤其是避免 CwF 等语义呈现中索引归纳类型带来的 transport hell。
方法
构造初始 CwF 的替代呈现,将代换表示为元理论函数以严格化代换演算等式,减少 transport,并用 Agda 实现。
评估
以带依赖积和布尔类型(含大消去)的类型论为例,用该框架形式化典范性证明,验证方法有效且证明简短。
原文摘要(Abstract)

The metatheory of dependent types has seen a lot of progress in recent years. In particular, the development of categorical gluing finally lets us work with semantic presentations of type theory (such as categories with families) to establish fundamental properties of type theory such as canonicity and normalisation. However, proofs by gluing have yet to reach the stage of computer formalisation: formal proofs for the metatheory of dependent types are still stuck in the age of tedious syntactic proofs. The main reason for this is that semantic presentations of type theory are defined using sophisticated indexed inductive types, which are prone to “transport hell”. In this paper, we introduce a new technique to work with CwFs in intensional type theory without getting stuck in transport hell. More specifically, we construct an alternative presentation of the initial CwF which encodes the substitutions as metatheoretical functions. This has the effect of strictifying all the equations that are involved in the substitution calculus, which greatly reduces the need for transports. As an application, we use our strictified initial CwF to give a short and elegant proof of canonicity for a type theory with dependent products and booleans with large elimination. The resulting proof is fully formalised in Agda.

链接与引用

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

BibTeX
@article{paperbot3050,
  title = {Type Theory in Type Theory using a Strictified Syntax},
  author = {Ambrus Kaposi and Loïc Pujet},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {ICFP},
  year = {2025},
  doi = {10.1145/3747535}
}