Skip to main content
QUICK REVIEW

[论文解读] Propositional equality, identity types, and direct computational paths

Ruy J. G. B. de Queiroz, Anjolina Grisi de Oliveira|arXiv (Cornell University)|Jul 10, 2011
Logic, programming, and type systems被引用 14
一句话总结

本文通过将身份类型视为通过重写和替换序列形成的路径,而非依赖自反原始项,提出了类型理论中命题等价性的计算解释。它表明存在多个不同的规范证明,从而否定了身份证明唯一性原则(UIP),并通过对等价性证明建模为计算路径,与同伦类型理论保持一致。

ABSTRACT

In proof theory the notion of canonical proof is rather basic, and it is usually taken for granted that a canonical proof of a sentence must be unique up to certain minor syntactical details (such as, e.g., change of bound variables). When setting up a proof theory for equality one is faced with a rather unexpected situation where there may not be a unique canonical proof of an equality statement. Indeed, in a (1994--5) proposal for the formalisation of proofs of propositional equality in the Curry--Howard style, we have already uncovered such a peculiarity. Totally independently, and in a different setting, Hofmann & Streicher (1994) have shown how to build a model of Martin-Löf's Type Theory in which uniqueness of canonical proofs of identity types does not hold. The intention here is to show that, by considering as sequences of rewrites and substitution, it comes a rather natural fact that two (or more) distinct proofs may be yet canonical and are none to be preferred over one another. By looking at proofs of equality as rewriting (or computational) paths this approach will be in line with the recently proposed connections between type theory and homotopy theory via identity types, since elements of identity types will be, concretely, paths (or homotopies).

研究动机与目标

  • 解决类型理论中的基础性问题:由于缺乏显式的重写标识符,命题等价性缺乏规范证明结构。
  • 挑战身份类型规范证明唯一性的假设,该假设与霍夫曼和斯特赖彻的范畴模型相矛盾。
  • 重新表述身份类型,使其自然捕捉计算路径,与同伦类型理论将身份视为路径或同伦的观点保持一致。
  • 为等价性提供证明论基础,将重写和替换的序列作为对象语言中的一等实体处理。
  • 验证身份类型的范畴律,并表明该系统支持同一等式存在多个不同但规范的证明。

提出的方法

  • 引入身份类型引入规则的新形式,使用显式的重写标识符:$ \frac{a =_s b : A}{s(a,b) : \mathrm{Id}_A(a,b)} $,其中 $ s $ 表示重写和替换的序列。
  • 使用元级标识符($ \rho, \sigma, \tau $)定义一般等价规则(自反性、对称性、传递性),以表示计算路径。
  • 将等价性证明建模为项重写系统(TRS)中的项,具体为 $ LND_{EQ} $-TRS,以形式化等价性证明的计算行为。
  • 应用递归路径序(RPO)证明重写系统的终止性,确保所有证明都能归约到规范形式。
  • 使用Knuth–Bendix完成过程建立并行性,保证所有归约路径均导向唯一的规范形式。
  • 将递归路径序扩展至处理由子项导出的运算符(如 $ \mathrm{sub}_L, \mathrm{sub}_R $),以支持复杂的重写规则。

实验结果

研究问题

  • RQ1命题等价性在类型理论中能否被形式化,使得重写和替换的序列作为一等计算路径?
  • RQ2为何标准的身份类型表述无法解释同一等式存在多个规范证明?
  • RQ3如何构建一种等价性证明论,使得多个不同但规范的证明具有同等有效性,且无一被优先选择?
  • RQ4身份类型的范畴结构在多大程度上能通过计算重写路径自然捕捉?
  • RQ5存在多个规范证明是否与等价性重写系统的并行性或终止性相矛盾?

主要发现

  • 本文确立了同一等式陈述可以存在多个不同的规范证明,这直接与身份证明唯一性原则(UIP)相矛盾。
  • 使用递归路径序和Knuth–Bendix完成过程,证明了重写系统 $ LND_{EQ} $-TRS 既终止又并行。
  • 该系统成功将身份类型建模为计算路径,其中每条路径对应于一系列重写和替换。
  • 该表述通过引入重写序列的显式标识符,消解了类型理论中的虚假二分法,使等价性的计算本质更加清晰。
  • 该方法自然验证了霍夫曼与斯特赖彻模型所要求的身份类型范畴律,通过将身份证明视为路径实现。
  • 系统的并行性确保所有归约路径均导向唯一的规范形式,即使同一等式存在多个不同但规范的证明。

更好的研究,从现在开始

从阅读论文到最终审阅,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。