Recursive Aggregates as Intensional Functions in Answer Set Programming: Semantics and Strong Equivalence
Jorge Fandinno, Zachary Hansen
TL;DR
This work develops a semantic foundation for recursively defined aggregates in Answer Set Programming by modeling aggregates as intensional set-valued functions within Here-and-There logic. It provides translations that map ASP programs with aggregates into three-sorted extended First-Order sentences, enabling equivalence and correctness results to be established via classical FO reasoning. The authors show equivalence between clingo and the FO-theoretic characterization, and between the various solver semantics, and they introduce a gamma transformation to reduce HT logic to classical logic for automated strong-equivalence checks. The framework bypasses grounding, supports automation, and yields a robust cross-solver understanding of aggregates, with potential applications in formal verification and tooling for ASP+aggregates.
Abstract
This paper shows that the semantics of programs with aggregates implemented by the solvers clingo and dlv can be characterized as extended First-Order formulas with intensional functions in the logic of Here-and-There. Furthermore, this characterization can be used to study the strong equivalence of programs with aggregates under either semantics. We also present a transformation that reduces the task of checking strong equivalence to reasoning in classical First-Order logic, which serves as a foundation for automating this procedure.
