...
首页> 外文期刊>Formal Aspects of Computing >Constraint-based correctness proofs for logic program transformations
【24h】

Constraint-based correctness proofs for logic program transformations

机译:逻辑程序转换的基于约束的正确性证明

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Many approaches proposed in the literature for proving the correctness of unfold/fold transformations of logic programs make use of measures associated with program clauses. When from a program P_1 we derive a program P_2 by applying a sequence of transformations, suitable conditions on the measures of the clauses in P_2 guarantee that the transformation of P_1 into P_2 is correct, that is, P_1 and P_2 have the same least Herbrand model. In the approaches proposed so far, clause measures are fixed in advance, independently of the transformations to be proved correct. In this paper we propose a method for the automatic generation of clause measures which, instead, takes into account the particular program transformation at hand. During the application of a sequence of transformations we construct a system of linear equalities and inequalities over nonnegative integers whose unknowns are the clause measures to be found, and the correctness of the transformation is guaranteed by the satisfiability of that system. Through some examples we show that our method is more powerful and practical than other methods proposed in the literature. In particular, we are able to establish in a fully automatic way the correctness of program transformations which, by using other methods, are proved correct at the expense of fixing in advance sophisticated clause measures.
机译:文献中提出的许多证明逻辑程序的展开/折叠转换正确性的方法都使用了与程序子句相关的度量。当从程序P_1通过应用一系列转换而得出程序P_2时,P_2中子句的度量的合适条件可确保P_1到P_2的转换正确,即P_1和P_2具有相同的最小Herbrand模型。在到目前为止提出的方法中,子句度量是预先确定的,与要证明正确的转换无关。在本文中,我们提出了一种自动生成子句度量的方法,该方法考虑了手头特定的程序转换。在应用一系列变换的过程中,我们在非负整数上构造了一个线性等式和不等式的系统,该整数的未知数是要找到的从句量度,并且该系统的可满足性保证了变换的正确性。通过一些例子,我们证明了我们的方法比文献中提出的其他方法更强大和实用。尤其是,我们能够以全自动的方式确定程序转换的正确性,而使用其他方法证明了程序转换的正确性,而以预先确定复杂的子句度量为代价。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号