依赖类型理论中的有界一等宇宙层级
Bounded First-Class Universe Levels in Dependent Type Theory
AI总结:
本文为依赖类型理论设计了一种以任意良基层级集合为参数的有界一等宇宙层级的显式语法,并在Lean中机械化证明了主题归约、类型安全性、一致性和规范性等元理论性质。
摘要:
在依赖类型理论中,能够将类型宇宙本身作为项来引用,会增强其表达能力,但需要相应的机制来防止在类型包含类型(type-in-type)的情况下,Girard悖论引入逻辑不一致性。最简单的机制是采用由层级序列(通常是自然数)索引的宇宙层级结构。为了提高定义的可重用性,可以使其具有层级多态性,即对层级变量进行抽象,并引入层级表达式的概念。为了获得更强的表达能力,层级表达式本身可以成为一等项,而层级多态性则被对层级进行量化的依赖函数所包含。此外,有界层级多态性通过能够显式地陈述对层级变量的约束,提供了更强的表达能力。尽管带有约束的一等层级的语义已知,但其语法和类型规则尚未被明确写出。然而,确定一个行为良好的语法并非易事;先前存在一些具有有界层级多态性的类型理论未能满足主题归约(subject reduction)性质。在这项工作中,我们为具有有界一等层级的类型理论设计了一种显式语法,该语法以任意良基层级集合为参数。我们证明了主题归约、类型安全性、一致性和规范性等元理论性质,并在Lean中从语法到语义完全机械化地完成了这些证明。
英文摘要:
In dependent type theory, being able to refer to a type universe as a term itself increases its expressive power, but requires mechanisms in place to prevent Girard's paradox from introducing logical inconsistency in the presence of type-in-type. The simplest mechanism is a hierarchy of universes indexed by a sequence of levels, typically the naturals. To improve reusability of definitions, they can be made level polymorphic, abstracting over level variables and adding a notion of level expressions. For even more expressive power, level expressions can be made first-class as terms themselves, and level polymorphism is subsumed by dependent functions quantifying over levels. Furthermore, bounded level polymorphism provides more expressivity by being able to explicitly state constraints on level variables. While semantics for first-class levels with constraints are known, syntax and typing rules have not been explicitly written down. Yet pinning down a well-behaved syntax is not trivial; there exist prior type theories with bounded level polymorphism that fail to satisfy subject reduction. In this work, we design an explicit syntax for a type theory with bounded first-class levels, parametrized over arbitrary well-founded sets of levels. We prove the metatheoretic properties of subject reduction, type safety, consistency, and canonicity, entirely mechanized from syntax to semantics in Lean.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。