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

逻辑程序的正确性和完整性

Correctness and completeness of logic programs

Włodzimierz Drabent

摘要:

讨论了定子句逻辑程序的正确性和完备性的证明。我们提出了一种方法来证明完整性,而证明正确性,我们采用了一种方法,应该是众所周知的,但往往被忽视。此外,我们展示了如何证明的完整性和正确性的存在SLD树修剪,并指出,近似规范简化规范和证明。我们比较证明方法声明式诊断(算法调试),表明近似规范消除了后者的一个主要缺点。我们认为,我们的证明方法反映了程序的自然声明性思维,它们可以正式或非正式地用于日常编程。

英文摘要:

We discuss proving correctness and completeness of definite clause logic programs. We propose a method for proving completeness, while for proving correctness we employ a method which should be well known but is often neglected. Also, we show how to prove completeness and correctness in the presence of SLD-tree pruning, and point out that approximate specifications simplify specifications and proofs. We compare the proof methods to declarative diagnosis (algorithmic debugging), showing that approximate specifications eliminate a major drawback of the latter. We argue that our proof methods reflect natural declarative thinking about programs, and that they can be used, formally or informally, in every-day programming.

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

↑