逻辑框架的精化类型及其作为证明无关性的解释
Refinement Types for Logical Frameworks and Their Interpretation as Proof Irrelevance
摘要:
精化类型通过提供更精确地对良好类型的术语进行分类的表达方式来锐化简单类型和依赖类型的系统。我们提出了一个系统的LF精炼类型在最近的配方的风格,只有规范形式是良好的类型。通常的LF规则和类型细化的规则都是双向的,从而直接证明了类型检查的可判定性,即使存在交集类型。因为我们坚持标准形式,子类型的结构规则现在可以被导出,而不是被假定为原始的。我们用例子说明了我们的系统的表达能力,并通过展示与传统的子类型表示的精确对应来验证其设计。证明不相关性提供了一种机制,用于选择性地隐藏类型论中术语的同一性。我们发现,LF细化类型可以被解释为谓词使用证明不相关性,建立一个统一的关系之前研究的概念之间的类型论。解释和它的正确性证明是令人惊讶的复杂,支持精化类型是一个基本的构造,而不仅仅是一个方便的表面语法,用于证明无关性的某些用途。
英文摘要:
Refinement types sharpen systems of simple and dependent types by offering expressive means to more precisely classify well-typed terms. We present a system of refinement types for LF in the style of recent formulations where only canonical forms are well-typed. Both the usual LF rules and the rules for type refinements are bidirectional, leading to a straightforward proof of decidability of typechecking even in the presence of intersection types. Because we insist on canonical forms, structural rules for subtyping can now be derived rather than being assumed as primitive. We illustrate the expressive power of our system with examples and validate its design by demonstrating a precise correspondence with traditional presentations of subtyping. Proof irrelevance provides a mechanism for selectively hiding the identities of terms in type theories. We show that LF refinement types can be interpreted as predicates using proof irrelevance, establishing a uniform relationship between two previously studied concepts in type theory. The interpretation and its correctness proof are surprisingly complex, lending support to the claim that refinement types are a fundamental construct rather than just a convenient surface syntax for certain uses of proof irrelevance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。