首页> 外文期刊>Journal of Automated Reasoning >A Definitional Two-Level Approach to Reasoning with Higher-Order Abstract Syntax
【24h】

A Definitional Two-Level Approach to Reasoning with Higher-Order Abstract Syntax

机译:高阶抽象句法的定义性两级推理方法

获取原文
       

摘要

Combining higher-order abstract syntax and (co)-induction in a logical framework is well known to be problematic. We describe the theory and the practice of a tool called Hybrid, within Isabelle/HOL and Coq, which aims to address many of these difficulties. It allows object logics to be represented using higher-order abstract syntax, and reasoned about using tactical theorem proving and principles of (co)induction. Moreover, it is definitional, which guarantees consistency within a classical type theory. The idea is to have a de Bruijn representation of X-terms providing a definitional layer that allows the user to represent object languages using higher-order abstract syntax, while offering tools for reasoning about them at the higher level. In this paper we describe how to use Hybrid in a multi-level reasoning fashion, similar in spirit to other systems such as Twelf and Abella. By explicitly referencing provability in a middle layer called a specification logic, we solve the problem of reasoning by (co)induction in the presence of non-stratifiable hypothetical judgments, which allow very elegant and succinct specifications of object logic inference rules. We first demonstrate the method on a simple example, formally proving type soundness (subject reduction) for a fragment of a pure functional language, using a minimal intuitionistic logic as the specification logic. We then prove an analogous result for a continuation-machine presentation of the operational semantics of the same language, encoded this time in an ordered linear logic that serves as the specification layer. This example demonstrates the ease with which we can incorporate new specification logics, and also illustrates a significantly more complex object logic whose encoding is elegantly expressed using features of the new specification logic.
机译:众所周知,在逻辑框架中结合高阶抽象语法和(共)归纳法是有问题的。我们在Isabelle / HOL和Coq中描述了称为Hybrid的工具的理论和实践,该工具旨在解决许多这些困难。它允许使用更高阶的抽象语法来表示对象逻辑,并使用战术定理证明和(共)归纳原理进行推理。而且,它是定义性的,它保证了经典类型理论中的一致性。这个想法是用X术语的de Bruijn表示法提供一个定义层,该层允许用户使用高阶抽象语法表示对象语言,同时提供用于在较高层次上进行推理的工具。在本文中,我们描述了如何以多层次推理方式使用Hybrid,其本质上与Twelf和Abella等其他系统类似。通过在称为规范逻辑的中间层中明确引用可证明性,我们解决了在存在不可分层的假设判断时通过(共)归纳法进行推理的问题,该假设允许对对象逻辑推理规则进行非常简洁明了的规范。我们首先在一个简单的示例上演示该方法,使用最小的直觉逻辑作为规范逻辑,正式证明纯函数语言片段的类型健全性(主题缩减)。然后,我们证明了相同语言的操作语义的连续机器表示的类似结果,这次是用作为规范层的有序线性逻辑进行编码的。此示例演示了我们可以轻松地合并新规范逻辑的过程,还演示了一个复杂得多的对象逻辑,该对象的逻辑使用新规范逻辑的功能优雅地表达。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号