Skip to main navigation Skip to search Skip to main content

Recursive rules with aggregation: a simple unified semantics

Research output: Contribution to journalArticlepeer-review

7 Scopus citations

Abstract

Complex reasoning problems are most clearly and easily specified using logical rules, but require recursive rules with aggregation such as count and sum for practical applications. Unfortunately, the meaning of such rules has been a significant challenge, leading to many disagreeing semantics. This paper describes a unified semantics for recursive rules with aggregation, extending the unified founded semantics and constraint semantics for recursive rules with negation. The key idea is to support simple expression of the different assumptions underlying different semantics, and orthogonally interpret aggregation operations using their simple usual meaning. We present a formal definition of the semantics, prove important properties of the semantics and compare with prior semantics. In particular, we present an efficient inference over aggregation that gives precise answers to all examples we have studied from the literature. We also apply our semantics to a wide range of challenging examples, and show that our semantics is simple and matches the desired results in all cases. Finally, we describe experiments on the most challenging examples, exhibiting unexpectedly superior performance over well-known systems when they can compute correct answers.

Original languageEnglish
Pages (from-to)1659-1693
Number of pages35
JournalJournal of Logic and Computation
Volume32
Issue number8
DOIs
StatePublished - Dec 1 2022

Fingerprint

Dive into the research topics of 'Recursive rules with aggregation: a simple unified semantics'. Together they form a unique fingerprint.

Cite this