上下文逻辑程序精化中的计算模块
Calculating modules in contextual logic program refinement
摘要:
逻辑程序的精化演算是从规范导出逻辑程序的框架。它基于一种可以表达规范和代码的广谱语言,以及一种对正确实现的概念进行建模的细化关系。在本文中,我们扩展和概括上下文细化的早期工作。上下文精化通过抽象地捕获程序的子组件的上下文来简化精化过程,该上下文通常包括关于自由变量的值的信息。本文还推广和推广了模加细。模块是对公共数据类型进行操作的过程的集合;规范模块A和实现模块C之间的模块细化允许对A的过程的调用被系统地替换为对C的相应过程的调用。基于模块细化的条件,我们提出了一种从规范模块计算实现模块的方法。上下文和模块细化内的细化演算已经从早期的工作和结果中概括了一个统一的框架。
英文摘要:
The refinement calculus for logic programs is a framework for deriving logic programs from specifications. It is based on a wide-spectrum language that can express both specifications and code, and a refinement relation that models the notion of correct implementation. In this paper we extend and generalise earlier work on contextual refinement. Contextual refinement simplifies the refinement process by abstractly capturing the context of a subcomponent of a program, which typically includes information about the values of the free variables. This paper also extends and generalises module refinement. A module is a collection of procedures that operate on a common data type; module refinement between a specification module A and an implementation module C allows calls to the procedures of A to be systematically replaced with calls to the corresponding procedures of C. Based on the conditions for module refinement, we present a method for calculating an implementation module from a specification module. Both contextual and module refinement within the refinement calculus have been generalised from earlier work and the results are presented in a unified framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。