arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.26362cs.LO
收藏

在模式化定义的上下文之间迁移 LF 中有关可类型化性的定理

Transporting Theorems about Typeability in LF Across Schematically Defined Contexts

University of Minnesota(明尼苏达大学)

Chase Johnson, Gopalan Nadathur

AI总结:

针对 LF 规范推理中定理需在不同上下文模式间迁移的问题,本文基于 $\mathcal{L}_{LF}$ 提出可靠的迁移证明规则,并通过类型从属关系定义上下文模式包含,且已集成于 Adelfa。

摘要:

依赖类型 λ 演算 LF 常被用作一种载体,以形式化对象系统的基于规则的描述。证明以这种方式编码的对象系统的性质,需要对关于 LF 类型判定的公式进行推理。LF 的一个重要特征是,它支持绑定结构的高阶抽象语法表示。使用这种编码时,类型判定包含为约束变量分配类型的上下文,因此公式必须允许对上下文进行量化。此类量词的可能实例化通常由模式化描述支配;为了使推理有效,这些描述也必须被显式给出。在实际推理任务中,经常需要把涉及对满足一种模式化描述的上下文进行全称量化的定理,迁移到满足另一种描述的上下文。我们在此为这种能力提供逻辑上的依据。为此,我们利用逻辑 $\mathcal{L}_{LF}$,该逻辑此前是为形式化 LF 规范的性质而设计的。我们开发了一条迁移证明规则,并证明它相对于 $\mathcal{L}_{LF}$ 的语义是可靠的。该证明规则的关键是上下文模式包含概念,它利用类型之间的从属关系,作为相对于各个 LF 类型判定确定上下文等价性的手段。我们讨论了将该规则纳入 Adelfa 证明助手,以及它在实际推理示例中的使用。

英文摘要:

The dependently-typed lambda calculus LF is often used as a vehicle for formalizing rule-based descriptions of object systems. Proving properties of object systems encoded in this fashion requires reasoning about formulas over LF typing judgements. An important characteristic of LF is that it supports a higher-order abstract syntax representation of binding structure. When such an encoding is used, the typing judgements include contexts that assign types to bound variables and formulas must therefore allow for quantification over contexts. The possible instantiations of such quantifiers are usually governed by schematic descriptions that must also be made explicit for effectiveness in reasoning. In practical reasoning tasks, it is often necessary to transport theorems involving universal quantification over contexts satisfying one schematic description to those satisfying another description. We provide here a logical justification for this ability. Towards this end, we utilize the logic $\mathcal{L}_{LF}$, which has previously been designed for formalizing properties of LF specifications. We develop a transportation proof rule and show it to be sound relative to the semantics of $\mathcal{L}_{LF}$. Key to this proof rule is a notion of context schema subsumption that uses the subordination relation between types as a means for determining the equivalence of contexts relative to individual LF typing judgements. We discuss the incorporation of this rule into the Adelfa proof assistant and its use in actual reasoning examples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑