Hostname: page-component-6766d58669-mzsfj Total loading time: 0 Render date: 2026-05-15T13:29:35.342Z Has data issue: false hasContentIssue false

Productive corecursion in logic programming*

Published online by Cambridge University Press:  22 August 2017

EKATERINA KOMENDANTSKAYA
Affiliation:
Heriot-Watt University, Edinburgh, Scotland, UK (e-mails: ek19@hw.ac.uk, yl55@hw.ac.uk)
YUE LI
Affiliation:
Heriot-Watt University, Edinburgh, Scotland, UK (e-mails: ek19@hw.ac.uk, yl55@hw.ac.uk)

Abstract

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.

Information

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2017 

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable

Supplementary material: PDF

Komendantskaya and Li supplementary material

Online Appendix

Download Komendantskaya and Li supplementary material(PDF)
PDF 167.6 KB