paperbot · PL 论文追踪

全部论文 待读 收藏

P2 All Your Base Are Belong to Us: Sort Polymorphism for Proof Assistants

你们的所有基础都属于我们:证明助手中的 Sort 多态
POPL 9(POPL)2025匹配度 2/10 · 论文研究证明助手(Coq)中的 sort 多态及其元理论,属于依赖类型论与证明工程,与用户核心关注的 LLM/Agent 结合静态分析、浮点程序分析、贝叶斯程序分析等方向没有直接交叉;仅与形式化验证/证明助手领域存在较弱的领域邻近性。引用 6 inbox
Josselin Poiret, Gaëtan Gilbert, Kenji Maillard, Pierre-Marie Pédrot, Matthieu Sozeau, Nicolas Tabareau, Éric Tanter
crossref: 2026-09-10

AI 速览

一句话:为证明助手提出 sort 多态及其元理论,并在 Coq 中实现,解决跨种类定义复用与扩展问题。

基于依赖类型论的证明助手(如 Coq、Lean、Agda)用多个宇宙分类类型,包括可计算类型的预测式层级与证明无关命题的非预测式宇宙。每个宇宙由种类(Type、Prop 等)和层级刻画;近期研究引入更多种类以结构化处理不同逻辑/计算原则(如 univalence、异常、定义性证明无关)。但现有证明助手对种类间多态的支持是特设且受限的,导致定义难以复用和扩展。本文提出 sort polymorphism(种类多态)及其元理论,重点研究单态化、大消除与参数性;在 Coq 中实现该机制,并给出基于新种类多态 prelude 的基础定义与自动化示例。该方案有效克服当前局限,为未来多种类类型论奠定基础。

问题
依赖类型论证明助手用多种宇宙/种类分类类型,但现有种类间多态支持特设且受限,导致跨宇宙定义重复、复用与扩展困难。
方法
发展 sort polymorphism 的形式化与元理论,重点研究单态化、大消除和参数性;在 Coq 中实现该机制,并构建新的种类多态 prelude 与自动化。
评估
在 Coq 中实现 sort polymorphism,并通过新 prelude 的基础定义和自动化示例展示其可用性;元理论分析覆盖单态化、大消除与参数性。
原文摘要(Abstract)

Proof assistants based on dependent type theory, such as Coq, Lean and Agda, use different universes to classify types, typically combining a predicative hierarchy of universes for computationally-relevant types, and an impredicative universe of proof-irrelevant propositions. In general, a universe is characterized by its sort, such as Type or Prop, and its level, in the case of a predicative sort. Recent research has also highlighted the potential of introducing more sorts in the type theory of the proof assistant as a structuring means to address the coexistence of different logical or computational principles, such as univalence, exceptions, or definitional proof irrelevance. This diversity raises concrete and subtle issues from both theoretical and practical perspectives. In particular, in order to avoid duplicating definitions to inhabit all (combinations of) universes, some sort of polymorphism is needed. Universe level polymorphism is well-known and effective to deal with hierarchies, but the handling of polymorphism between sorts is currently ad hoc and limited in all major proof assistants, hampering reuse and extensibility. This work develops sort polymorphism and its metatheory, studying in particular monomorphization, large elimination, and parametricity. We implement sort polymorphism in Coq and present examples from a new sort-polymorphic prelude of basic definitions and automation. Sort polymorphism is a natural solution that effectively addresses the limitations of current approaches and prepares the ground for future multi-sorted type theories.

链接与引用

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

BibTeX
@article{paperbot3224,
  title = {All Your Base Are Belong to Us: Sort Polymorphism for Proof Assistants},
  author = {Josselin Poiret and Gaëtan Gilbert and Kenji Maillard and Pierre-Marie Pédrot and Matthieu Sozeau and Nicolas Tabareau and Éric Tanter},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {POPL},
  year = {2025},
  doi = {10.1145/3704912}
}