类型理论格中的扩展内化
Internalizing Extensions in Lattices of Type Theories
AI总结:
针对证明助手现有扩展跟踪机制外在于类型系统导致无法精确指定依赖的问题,本文探讨利用 DCOI 依赖类型系统将扩展内化为依赖级别,通过格结构精确描述扩展间的交互。
摘要:
许多证明助手允许使用增加其表达能力的特性和公理。然而,这些扩展必须谨慎使用,因为已知某些组合会导致逻辑不一致。因此,证明助手包含跟踪证明开发或模块中使用哪些扩展的机制,确保不兼容的扩展不会被同时使用。\n不幸的是,现有的扩展跟踪机制是外在于类型系统的。这意味着我们无法精确指定一个定义依赖于哪些扩展。能够编写更精确的规范意味着我们不是在选取所需扩展的过近似,这防止了在不兼容扩展存在时重用定义。此外,即使定义从不以不一致的方式使用不兼容扩展,我们也无法引用这些使用不兼容扩展的定义。因此,一个扩展的推理原则不能用作推理不兼容扩展性质的元理论。\n在本报告中,我探讨了将 Liu 等人提出的 Dependent Calculus of Indistinguishability (DCOI) 用于扩展跟踪。DCOI 是一个具有依赖跟踪的依赖类型系统,其中项和变量在它们的类型旁边被分配依赖级别。这些依赖级别形成一个格,描述允许哪些级别访问什么。为了转而跟踪扩展,每组扩展将对应一个依赖级别,而格将描述允许扩展如何交互。
英文摘要:
Many proof assistants allow the use of features and axioms that increase their expressive power. However, these extensions must be used with care, as some combinations are known to lead to logical inconsistencies. Therefore, proof assistants include mechanisms that track which extensions are used in a proof development or module, ensuring that incompatible extensions are not used simultaneously. Unfortunately, existing extension tracking mechanisms are external to the type system. This means that we cannot specify precisely which extensions a definition depends on. Having the ability to write more precise specifications means we are not picking an overapproximation of the extensions needed, which prevents reusing definitions in the presence of incompatible extensions. Furthermore, we cannot refer to definitions that use incompatible extensions even if they are never used in inconsistent ways. The reasoning principles of one extension therefore cannot be used as a metatheory to reason about the properties of an incompatible extension. In this report, I explore the use of the Dependent Calculus of Indistinguishability (DCOI) by Liu et al. for extension tracking. DCOI is a dependent type system with dependency tracking, where terms and variables are assigned dependency levels alongside their types. These dependency levels form a lattice that describes which levels are permitted to access what. To instead track extensions, each set of extensions would correspond to a dependency level, and the lattice would describe how extensions are permitted to interact.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。