Abstract
In this paper we present a formalism for finitely representing infinite sets of terms. This formalism, called ω-terms, enables us to reason finitely about certain recursive types. We present an extension of Horn logic programs, called ω-Prolog, which allows a finite schematization of infinitely many clauses via predicates with ω-terms as arguments. We show that for every ω-Prolog program there is an equivalent Horn logic program. That is, incorporating ω-terms into first order logic programming does not change its denotational semantics. Computationally, however, ω-Prolog has the advantages of (1) representing infinitely many answers finitely, (2) avoiding repetition in computation and thus achieving better efficiency, (3) allowing infinite queries, and (4) avoiding certain non-termination of Prolog programs. The ω-terms play a similar role as regular-trees [MR85] and sort-expressions [Com90] in explicitly defining abstract data types. It differs from the others in that it allows us to define certain non-regular-tree languages such as {(a n, b n, c n) : n ε N}. We present a finite and complete algorithm for unification between ω-terms, with which we can also compute the intersection of the languages defined by ω-terms.
This work was partially supported by NSF grants INT-8715231, CCR-8805734, and CCR-8901322
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
M. Bruynooghe and G. Janssens. An Instance of Abstract Interpretation Integrating Type and Mode Inference. In Proc. 5th Int. Conf. on Logic Programming, pages 669–683, K.A. Bowen and R.A. Kowalski(eds), MIT Press, Aug. 1988.
A. Chandra and D. Harel. Horn Clause Queries and Generalizations. J. Logic Programming, 2(1):1–16, April 1985.
Hong Chen and Jieh Hsiang. Logic Programming with Recurrence Domains. Technical Report 49, Department of Computer Science, SUNY at Stony Brook, Oct 1990.
J. Chomicki and T. Imielinski. Relational Specification of Infinite Query Answers. In Proc. of the 1989 ACM SIGMOD Int. Conf. on the Management of Data, pages 174–183, Portland, Oregon, June 1989. Vol. 18, No. 2.
A. Colmerauer. Prolog and Infinite Trees. In Logic Programming, Academic Press, 1982.
Hubert Comon. Inductive Proofs by Specifications Transformation. In Proc. Rewriting Techniques and Applications, pages 76–91, Springer Verlag, 4 1989. LNCS 355.
Hubert Comon. Equational Formulas in Order-Sorted Algebras. In ICALP 90, pages 674–688, July 1990.
J.A. Goguen and J. Meseguer. Equalities, Types Modules and Generics for Logic Programming. Journal of Logic Programming, 1, 1984.
J.A. Goguen and J. Meseguer. Order-Sorted Algebra I, Partial and Overloaded Operators, Error and Inheritance. Technical Report 000, SRI, 1985.
N. Heintze and J. Jaffar. A Finite Presentation Theorem for Approximating Logic Programs. In POPL-90, pages 197–209, Feb. 1990.
J. Jaffar and J.L. Lassez. Constraint Logic Programming. In Proceedings of 14th ACM Symposium on Principles of Programming languages, pages 111–119, 1987.
P. Mishra and U. Reddy. Declaration-Free Type Checking. In ACM Sym. on Principles of Programming Languages, pages 7–21, ACM, 1985.
C. G. Nelson and D.C. Oppen. Fast Decision Algorithms based on Congruence Closure. Journal of the ACM, 27(2), 1980.
M. Schmidt-Schaub. Computational Aspects of an Order-Sorted Logic with Term Declarations. Springer-Verlag, 1989. Lecture Notes in Artificial Intelligence, 395.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1991 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Chen, H., Hsiang, J. (1991). Logic programming with recurrence domains. In: Albert, J.L., Monien, B., Artalejo, M.R. (eds) Automata, Languages and Programming. ICALP 1991. Lecture Notes in Computer Science, vol 510. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-54233-7_122
Download citation
DOI: https://doi.org/10.1007/3-540-54233-7_122
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-54233-9
Online ISBN: 978-3-540-47516-3
eBook Packages: Springer Book Archive