制表,理性术语和共归纳终于在一起了!
Tabling, Rational Terms, and Coinduction Finally Together!
摘要:
逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)列表是逻辑编程中常用的技术,用于避免逻辑程序的循环行为并实现更多的声明性程序定义。此外,制表通常可以提高计算性能。有理项是指具有一个或多个无穷子项但具有有限表示的项。在Prolog中,当统一两个术语时,可以通过省略发生检查来生成有理术语。有理项的应用包括确定子句文法、约束处理系统和共归纳。在本文中,我们报告我们的扩展YAP的Prolog制表机制,以支持合理的条款。我们描述了表空间中有理项的内部表示,并证明了它的正确性。然后,我们使用这个扩展来实现一个基于表格的方法coinduction。我们比较我们的方法与当前的共归纳变换,并描述了实现。此外,我们提出了一个算法,确保一个规范的表示为合理的条款。
英文摘要:
To appear in Theory and Practice of Logic Programming (TPLP). Tabling is a commonly used technique in logic programming for avoiding cyclic behavior of logic programs and enabling more declarative program definitions. Furthermore, tabling often improves computational performance. Rational term are terms with one or more infinite sub-terms but with a finite representation. Rational terms can be generated in Prolog by omitting the occurs check when unifying two terms. Applications of rational terms include definite clause grammars, constraint handling systems, and coinduction. In this paper, we report our extension of YAP's Prolog tabling mechanism to support rational terms. We describe the internal representation of rational terms within the table space and prove its correctness. We then use this extension to implement a tabling based approach to coinduction. We compare our approach with current coinductive transformations and describe the implementation. In addition, we present an algorithm that ensures a canonical representation for rational terms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。