# Beyond NP: Quantifying over Answer Sets

arXiv: https://arxiv.org/abs/1907.09559 · HTML: https://mlsanity.com/paper/1907.09559/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 22 Jul 2019.

## Built on by (most cited first, 6 of 6)

- [Planning with Incomplete Information in Quantified Answer Set Programming](https://mlsanity.com/paper/2108.06405/) (2021)
- [An efficient solver for ASP(Q)](https://mlsanity.com/paper/2305.10021/) (2023)
- [Quantifying over Optimum Answer Sets](https://mlsanity.com/paper/2408.07697/) (2024)
- [The Stable Model Semantics for Higher-Order Logic Programming](https://mlsanity.com/paper/2408.10563/) (2024)
- [Using ASP(Q) to Handle Inconsistent Prioritized Data](https://mlsanity.com/paper/2604.21603/) (2026)
- [2-ASP(Q) programs with weak constraints: Complexity and efficient implementation](https://mlsanity.com/paper/2605.27338/) (2026)

## Abstract (arXiv)

Answer Set Programming (ASP) is a logic programming paradigm featuring a purely declarative language with comparatively high modeling capabilities. Indeed, ASP can model problems in NP in a compact and elegant way. However, modeling problems beyond NP with ASP is known to be complicated, on the one hand, and limited to problems in SigmaP2 on the other. Inspired by the way Quantified Boolean Formulas extend SAT formulas to model problems beyond NP, we propose an extension of ASP that introduces quantifiers over stable models of programs. We name the new language ASP with Quantifiers (ASP(Q)). In the paper we identify computational properties of ASP(Q); we highlight its modeling capabilities by reporting natural encodings of several complex problems with applications in artificial intelligence and number theory; and we compare ASP(Q) with related languages. Arguably, ASP(Q) allows one to model problems in the Polynomial Hierarchy in a direct way, providing an elegant expansion of ASP beyond the class NP. Under consideration for acceptance in TPLP.
