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

重写的高阶实现

A Higher-Order Implementation of Rewriting

Lawrence C. Paulson

摘要:

许多自动定理证明依赖重写。使用定理作为重写规则有助于简化证明过程中出现的子目标。LCF是一个交互式定理证明器,用于计算推理。详细介绍了其重写的实现。LCF提供了一系列重写函数,以及组合它们的操作符。一系列的功能进行了描述,从模式匹配原语的重写工具,执行大多数推论在LCF证明。设计是高度模块化的。每个函数都执行一个基本的特定任务,例如识别某种形式的重言式。每个操作符实现一种从更简单的方法构建重写函数的方法。这些片段可以通过多种方式组合在一起,从而产生各种重写策略。该方法涉及使用高阶函数进行编程。重写函数是由其他重写函数的计算产生的数据值。该代码在剑桥的日常使用中,展示了函数式编程的实际用途。

英文摘要:

Many automatic theorem-provers rely on rewriting. Using theorems as rewrite rules helps to simplify the subgoals that arise during a proof. LCF is an interactive theorem-prover intended for reasoning about computation. Its implementation of rewriting is presented in detail. LCF provides a family of rewriting functions, and operators to combine them. A succession of functions is described, from pattern matching primitives to the rewriting tool that performs most inferences in LCF proofs. The design is highly modular. Each function performs a basic, specific task, such as recognizing a certain form of tautology. Each operator implements one method of building a rewriting function from simpler ones. These pieces can be put together in numerous ways, yielding a variety of rewrit- ing strategies. The approach involves programming with higher-order functions. Rewriting functions are data values, produced by computation on other rewriting functions. The code is in daily use at Cambridge, demonstrating the practical use of functional programming.

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

↑