|
ABSTRACT
Common aggregation predicates have natural definitions in logic, either as first order sentences (min, max, etc.), or with elementary induction over a data structure that represents the relation (sum, count, etc.). The well-founded semantics for logic programs provides an interpretation of such definitions. The interpretation of first-order aggregates seems to be quite natural and intuitively satisfying, even in the presence of recursion through aggregation. Care is needed to get useful results on inductive aggregates, however. A basic building block is the “subset” predicate, which states that a data structure represents a subset of an IDB predicate, and which is definable in the well-founded semantics. The analogous “superset” is also definable, and their combination yields a “generic” form of findall. Surprisingly, findall must be used negatively to obtain useful approximations when the exact relation is not yet known.
Extensions to the semantics, restrictions on the input, and other supplementary requirements proposed in earlier studies appear to be unnecessary for the purpose of attaching a meaning to a program that involves recursion through aggregation. For example, any reasonable definition of “shortest paths” tolerates negative weight edges, correctly computes shortest paths that exist, and leave tuples undefined where negative-weight cycles cause the shortest path not to exist. Other examples exhibit similarly robust behavior, when defined carefully. Connections with the generic model of computation are discussed briefly.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
 |
AV91
|
|
 |
BRSS92
|
Catriel Beeri , Raghu Ramakrishnan , Divesh Srivastava , S. Sudarshan, The valid model semantics for logic programs, Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.91-104, June 02-05, 1992, San Diego, California, United States
[doi> 10.1145/137097.137115]
|
| |
CM90
|
|
 |
GGZ91
|
Sumit Ganguly , Sergio Greco , Carlo Zaniolo, Minimum and maximum predicates in logic programming, Proceedings of the tenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.154-163, May 29-31, 1991, Denver, Colorado, United States
[doi> 10.1145/113413.113427]
|
| |
GS86
|
Y. Gure vich and S. Shelah. Fixed-point extensions of first order logic. Annals of Pure and Applied Logic, 32:265-280, 1986.
|
| |
Imm86
|
|
 |
KKR90
|
Paris C. Kanellakis , Gabriel M. Kuper , Peter Z. Revesz, Constraint query languages (preliminary report), Proceedings of the ninth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.299-313, April 02-04, 1990, Nashville, Tennessee, United States
[doi> 10.1145/298514.298582]
|
| |
KS91
|
D.B. Ke mp and P. J. Stuckey. Semantics of logic programs with aggregates. In International Logic Programming Symposium, pages 387-401, 1991.
|
| |
Kun88
|
K. Kunen. Some remarks on the completed database. Technical Report 775, Univ. of Wisconsin, Madison, WI 53706, 1988. (Abstract appeared in 5th Int'l Conf. Syrup. on Logic Programming, Seattle, Aug. 1988).
|
| |
LT84
|
J.W. Lloyd and R. W. Topor. Making Prolog more expressive. Journal of Logic Programming, 1(3):225-240, 1984.
|
| |
Mos74
|
|
| |
MPR90
|
|
 |
RS92
|
|
| |
SR91
|
|
| |
VG92
|
|
 |
VGRS91
|
|
CITED BY 11
|
|
Catriel Beeri , Raghu Ramakrishnan , Divesh Srivastava , S. Sudarshan, The valid model semantics for logic programs, Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.91-104, June 02-05, 1992, San Diego, California, United States
|
|
|
|
|
|
J. Chomicki , D. Q. Goldin , G. M. Kuper, Variable independence and aggregation closure, Proceedings of the fifteenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.40-48, June 04-06, 1996, Montreal, Quebec, Canada
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Francesco Calimeri , Wolfgang Fabery , Nicola Leone , Simona Perri, Declarative and computational properties of logic programs with aggregates, Proceedings of the 19th international joint conference on Artificial intelligence, p.406-411, July 30-August 05, 2005, Edinburgh, Scotland
|
|