arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0911.2993cs.LOcs.PL
收藏

计算推理的两级逻辑方法

A two-level logic approach to reasoning about computations

Andrew Gacek, Dale Miller, Gopalan Nadathur

摘要:

关系描述已被用于形式化不同的计算概念,包括,例如,操作语义,类型,和接受非确定性机器。因此,我们提出了一个(限制)的逻辑理论的关系作为一种语言来指定这样的概念。我们的规范逻辑的进一步特点是能够显式地处理对象语言中的绑定。一旦这样的逻辑被固定,下一个自然的问题是我们如何证明关于用它写的规范的定理。我们建议使用第二种逻辑,称为推理逻辑,用于此目的。一个令人满意的推理逻辑应该能够完全编码规范逻辑。与规范逻辑相关的是各种绑定概念:公式中的量词,序列中的特征变量,以及术语中的抽象。为了提供这些方面的自然处理,推理逻辑必须编码绑定结构以及它们的范围,自由和绑定变量以及捕获避免替换的相关概念。此外,为了支持有关可证明性的论点,推理逻辑应该拥有通过归纳和协同归纳构建证明的强大机制。我们提供这些功能,在这里使用一个逻辑称为G表示的关系,通过原子判断的定义,包含推理规则的归纳和共归纳,并包括一个特殊的通用量词的条件。我们展示了如何证明在规范逻辑可以透明地编码在G。我们还描述了一个交互式定理证明称为阿贝拉,实现G和这种两级逻辑方法,我们提出了几个例子,证明阿贝拉在推理计算的功效。

英文摘要:

Relational descriptions have been used in formalizing diverse computational notions, including, for example, operational semantics, typing, and acceptance by non-deterministic machines. We therefore propose a (restricted) logical theory over relations as a language for specifying such notions. Our specification logic is further characterized by an ability to explicitly treat binding in object languages. Once such a logic is fixed, a natural next question is how we might prove theorems about specifications written in it. We propose to use a second logic, called a reasoning logic, for this purpose. A satisfactory reasoning logic should be able to completely encode the specification logic. Associated with the specification logic are various notions of binding: for quantifiers within formulas, for eigenvariables within sequents, and for abstractions within terms. To provide a natural treatment of these aspects, the reasoning logic must encode binding structures as well as their associated notions of scope, free and bound variables, and capture-avoiding substitution. Further, to support arguments about provability, the reasoning logic should possess strong mechanisms for constructing proofs by induction and co-induction. We provide these capabilities here by using a logic called G which represents relations over lambda-terms via definitions of atomic judgments, contains inference rules for induction and co-induction, and includes a special generic quantifier. We show how provability in the specification logic can be transparently encoded in G. We also describe an interactive theorem prover called Abella that implements G and this two-level logic approach and we present several examples that demonstrate the efficacy of Abella in reasoning about computations.

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

↑