cs.AIMay 26, 2026

2-ASP(Q) programs with weak constraints: Complexity and efficient implementation

Authors: Andrea CuteriGiuseppe MazzottaFrancesco Ricca

Organizations: University of Calabria, Rende, Italy

Abstract

ASP(Q) extends Answer Set Programming (ASP) with Quantifiers over answer sets. In this paper we focus on the class of ASP(Q) programs with two quantifiers and weak constraints, denoted as 2-ASP(Q)^w. 2-ASP(Q)^w is a practically relevant fragment of ASP(Q) that is expressive enough to capture optimization problems up to the class Delta_3^P. On the theoretical side, we provide a complete complexity characterization of the main computational tasks for 2-ASP(Q)^w programs, including tight completeness results and the analysis of nontrivial cases that have not been addressed in previous works. On the practical side, we introduce novel strategies for computing (optimal) quantified answer sets in the Casper system, that rely on a Counterexample-Guided Abstraction Refinement (CEGAR) technique tailored to ASP(Q). An experimental evaluation on hard benchmarks from different application domains shows that the proposed techniques are effective in practice.

Explore similar work

CardsList
  1. Using ASP(Q) to Handle Inconsistent Prioritized Data

    Apr 23, 2026Meghyn Bienvenu, Camille Bourgaux, Robin Jean +1Answer Set ProgrammingPrioritization

  2. Distilling Answer Set Programming Theories from Large Language Models

    Jul 30, 2026Nelson Higuera Ruiz, Markus Hofmarcher, Claudiu Leoveanu-CondreiAnswer Set ProgrammingNeuro-Symbolic Framework

  3. Streamliners for Answer Set Programming

    Apr 21, 2026Florentina Voboril, Martin Gebser, Stefan Szeider +1Answer Set ProgrammingStructural Constraints