Productive corecursion in logic programming

被引:7
作者
Komendantskaya, Ekaterina [1 ]
Li, Yue [1 ]
机构
[1] Heriot Watt Univ, Edinburgh, Midlothian, Scotland
基金
英国工程与自然科学研究理事会;
关键词
Horn clauses; (co) recursion; (co) induction; infinite term trees; productivity; SEMANTICS;
D O I
10.1017/S147106841700028X
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:906 / 923
页数:18
相关论文
共 50 条
  • [21] Debate Games in Logic Programming
    Sakama, Chiaki
    DECLARATIVE PROGRAMMING AND KNOWLEDGE MANAGEMENT, 2014, 8439 : 185 - 201
  • [22] Argumentation in disjunctive logic programming
    王克文
    吴泉源
    陈火旺
    Science in China(Series E:Technological Sciences), 1998, (01) : 106 - 112
  • [23] Temporal disjunctive logic programming
    Gergatsoulis, M
    Rondogiannis, P
    Panayiotopoulos, T
    NEW GENERATION COMPUTING, 2001, 19 (01) : 87 - 100
  • [24] Temporal disjunctive logic programming
    Manolis Gergatsoulis
    Panos Rondogiannis
    Themis Panayiotopoulos
    New Generation Computing, 2001, 19 : 87 - 100
  • [25] Symmetric structure in logic programming
    Wu, JZ
    Fecher, H
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2004, 19 (06) : 803 - 811
  • [26] Logic programming: Laxness and saturation
    Komendantskaya, Ekaterina
    Power, John
    JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING, 2018, 101 : 1 - 21
  • [27] Symmetric structure in logic programming
    Jin-Zhao Wu
    Harald Fecher
    Journal of Computer Science and Technology, 2004, 19 : 803 - 811
  • [28] Argumentation in disjunctive logic programming
    Kewen Wang
    Quanyuan Wu
    Huowang Chen
    Science in China Series E: Technological Sciences, 1998, 41 : 106 - 112
  • [29] Constraint logic programming with a relational machine
    Arias, Emilio Jesus Gallego
    Lipton, James
    Marino, Julio
    FORMAL ASPECTS OF COMPUTING, 2017, 29 (01) : 97 - 124
  • [30] Modular Nonmonotonic Logic Programming Revisited
    Dao-Tran, Minh
    Eiter, Thomas
    Fink, Michael
    Krennwallner, Thomas
    LOGIC PROGRAMMING, 2009, 5649 : 145 - 159