逻辑程序设计中的产生式协递归
Productive Corecursion in Logic Programming
摘要:
逻辑程序设计是一种图灵完备语言。因此,设计算法,决定终止和非终止的程序或决定归纳/共归纳的公式是一个具有挑战性的任务。例如,现有的最先进的算法只能半判定查询的共归纳可靠性的逻辑程序设计的正则公式。另一个不太出名但同样基本和重要的不可决定的财产是生产力。如果一个推导是无限的并且是共归纳的,我们可以问它确定的计算答案是否实际上计算了一个无限公式。如果是这样的话,那么无限计算就是有生产力的。这种直觉在80年代首次以无穷大计算的名义表达出来。在互联网和流处理的现代,它的重要性在于连接到无限的数据结构处理。最近,提出了一种半判定逻辑程序的一个较弱性质--生产率的算法。如果一个逻辑程序能产生生产性的推导,那么它就是生产性的。在本文中,我们加强这些最近的结果。我们提出了一种方法,半决定生产力的个别导子的正规公式。最后给出了逻辑程序设计中导子生产力概念的算法对应。这是该问题自30多年前提出以来的第一个算法解决方案。我们还提出了一个实现该算法。
英文摘要:
Logic Programming is a Turing complete language. As a consequence, designing algorithms that decide termination and non-termination of programs or decide inductive/coinductive soundness of formulae is a challenging task. For example, the existing state-of-the-art algorithms can only semi-decide coinductive soundness of queries in logic programming for regular formulae. Another, less famous, but equally fundamental and important undecidable property is productivity. If a derivation is infinite and coinductively sound, we may ask whether the computed answer it determines actually computes an infinite formula. If it does, the infinite computation is productive. This intuition was first expressed under the name of computations at infinity in the 80s. In modern days of the Internet and stream processing, its importance lies in connection to infinite data structure processing. Recently, an algorithm was presented that semi-decides a weaker property -- of productivity of logic programs. A logic program is productive if it can give rise to productive derivations. In this paper we strengthen these recent results. We propose a method that semi-decides productivity of individual derivations for regular formulae. Thus we at last give an algorithmic counterpart to the notion of productivity of derivations in logic programming. This is the first algorithmic solution to the problem since it was raised more than 30 years ago. We also present an implementation of this algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。