paperbot · PL 论文追踪

全部论文 待读 收藏

P2 An extensible equality checking algorithm for dependent type theories

依赖类型理论的可扩展相等性检查算法
LMCS vol.Volume 18, Issue 12022匹配度 3/10 · 该论文属于依赖类型理论的相等性检查与证明助手实现,与形式化验证和类型系统相关,但未涉及 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析等用户核心研究方向。引用 7 inbox
Andrej Bauer, Anja Petković Komel
crossref: 2026-09-10

AI 速览

一句话:提出一种用户可扩展的相等性检查算法,适用于一大类依赖类型理论,并在 Andromeda 2 中实现。

本文面向依赖类型理论中相等性判定难以通用且难以由用户扩展的问题,提出一种通用、用户可扩展的相等性检查算法。算法由两个阶段组成:类型导向阶段应用外延性规则,规范化阶段应用计算规则;两类规则均用类型论中的 object-invertible 规则概念定义。作者给出识别此类规则的充分语法条件及简单的模式匹配算法,并引入主参数(principal arguments)概念以确定范式,通过改变主参数可得到弱头范式、强范式等已知概念。文章证明该算法是可靠的(sound),并在支持用户自定义类型理论的证明助手 Andromeda 2 中实现。用户只需提供相等性规则,算法会自动将其分类为计算规则或外延性规则,并选择合适的主参数。

问题
依赖类型理论种类繁多,现有相等性检查算法通常针对特定理论,难以让用户扩展新的计算规则与外延性规则。
方法
将用户规则统一为 object-invertible 规则,结合类型导向的外延性规则应用与基于计算规则的规范化,并用主参数确定范式;给出规则识别条件、模式匹配算法以及可靠性证明。
评估
在 Andromeda 2 证明助手中实现,用于支持用户自定义类型理论;用户提供相等性规则后,算法自动分类并选择主参数。
原文摘要(Abstract)

We present a general and user-extensible equality checking algorithm that is applicable to a large class of type theories. The algorithm has a type-directed phase for applying extensionality rules and a normalization phase based on computation rules, where both kinds of rules are defined using the type-theoretic concept of object-invertible rules. We also give sufficient syntactic criteria for recognizing such rules, as well as a simple pattern-matching algorithm for applying them. A third component of the algorithm is a suitable notion of principal arguments, which determines a notion of normal form. By varying these, we obtain known notions, such as weak head-normal and strong normal forms. We prove that our algorithm is sound. We implemented it in the Andromeda 2 proof assistant, which supports user-definable type theories. The user need only provide the equality rules they wish to use, which the algorithm automatically classifies as computation or extensionality rules, and select appropriate principal arguments.

链接与引用

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

BibTeX
@article{paperbot1743,
  title = {An extensible equality checking algorithm for dependent type theories},
  author = {Andrej Bauer and Anja Petković Komel},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 18, Issue 1},
  year = {2022},
  doi = {10.46298/lmcs-18(1:17)2022}
}