Solving Quantified Boolean Formulas with Few Existential Variables

Leif Eriksson, Victor Lagerkvist, Sebastian Ordyniak, George Osipov, Fahad Panolan, Mateusz Rychlicki

Abstract

The quantified Boolean formula (QBF) problem is an important decision problem generally viewed as the archetype for PSPACE-completeness. Many problems of central interest in AI are in general not included in NP, e.g., planning, model checking, and non-monotonic reasoning, and for such problems QBF has successfully been used as a modelling tool. However, solvers for QBF are not as advanced as state of the art SAT solvers, which has prevented QBF from becoming a universal modelling language for PSPACE-complete problems. A theoretical explanation is that QBF (as well as many other PSPACE-complete problems) lacks natural parameters guaranteeing fixed-parameter tractability (FPT). In this paper we tackle this problem and consider a simple but overlooked parameter: the number of existentially quantified variables. This natural parameter is virtually unexplored in the literature which one might find surprising given the general scarcity of FPT algorithms for QBF. Via this parameterization we then develop a novel FPT algorithm applicable to QBF instances in conjunctive normal form (CNF) of bounded clause length. We complement this by a W[1]-hardness result for QBF in CNF of unbounded clause length as well as sharper lower bounds for the bounded arity case under the (strong) exponential-time hypothesis.

Introduction

In computational logic, the Satisfiability (SAT) problem is the foundational NP-complete challenge. Quantified Boolean Formulas (QBF) represent a significant escalation in complexity, introducing universal ($\forall$) and existential ($\exists$) quantifiers. While SAT asks if a satisfying assignment exists, QBF asks questions like: "For all possible values of $x$, does there exist a value for $y$ such that the formula holds?" This jump in expressive power makes QBF PSPACE-complete, a class of problems significantly harder than those in NP.

Despite their utility in modeling complex AI tasks like planning and non-monotonic reasoning, QBF solvers have historically lagged behind their SAT counterparts. A primary reason is the lack of "structural handles"—parameters that allow for efficient solving of otherwise hard instances. This research explores a simple yet powerful parameter: the number of existential variables ($k$).

Methodology: From Logic to Combinatorics

The authors bridge the gap between QBF and tractability through a series of sophisticated reductions and combinatorial techniques.

1. Quantifier Elimination and OR-CNF TAUTOLOGY

The process begins by reducing a QBF instance in Conjunctive Normal Form (CNF) to a problem termed OR-CNF TAUTOLOGY. This step focuses on determining if a disjunction of several CNF formulas is a tautology, effectively isolating the impact of existential variables.

2. Graph Transformation

The problem is then mapped onto a graph-theoretic framework called CLAUSE-GRAPH INDEPENDENT SET. Here, vertices represent clauses, and edges denote "clashes"—situations where one clause requires a variable to be true while another requires it to be false.

Figure 1: A graph construction illustrating the mapping of logical clauses to a structured graph, used to identify independent sets and conflicts.

3. The Sunflower Lemma and Kernelization

To handle the potentially massive number of universal variables, the authors employ the Sunflower Lemma. This combinatorial tool identifies redundant structures within the formula. By pruning these "petals" of the sunflower, the authors can reduce the original problem to a "kernel"—a much smaller, equivalent version of the problem whose size depends only on the parameters $k$ (existential variables) and $d$ (maximum clause length).

4. The FPT Algorithm

The resulting Fixed-Parameter Tractable (FPT) algorithm runs in time $(2kd)^{O(2kd)} \cdot |\phi|$, where $|\phi|$ is the total formula size. Crucially, the exponential part of the complexity is decoupled from the number of universal variables.

Complexity Results and Lower Bounds

The paper establishes both the possibilities and the fundamental limits of this approach:

  • Bounded Arity is Essential: The FPT result holds only when clause length ($d$) is bounded. If clauses are allowed to be infinitely long, the problem becomes W[1]-hard, suggesting that no such efficient parameterized algorithm exists for the general case.
  • SETH Lower Bounds: Under the Strong Exponential Time Hypothesis (SETH), the authors show that for 3-QBFSAT, no algorithm can achieve $2^{O(k)}$ time. This suggests that the "double-exponential" nature of their algorithm's dependency on $k$ may be unavoidable.
  • Extension to QCSP: The findings extend to Quantified Constraint Satisfaction Problems (QCSP), broadening the impact to more general AI modeling frameworks.

Conclusion

By identifying the number of existential variables as a key parameter, this work provides a new theoretical foundation for QBF solving. While the current algorithm's complexity is high, it marks the first FPT result for this natural parameterization. Future work aims to close the gap between current upper and lower bounds and extend these techniques to Dependency QBF (DQBF), potentially unlocking new efficiencies in automated reasoning and planning.

Summary updated

BibTeX
@inproceedings{eriksson2024solving,
  author = {Leif Eriksson and Victor Lagerkvist and Sebastian Ordyniak and George Osipov and Fahad Panolan and Mateusz Rychlicki},
  title = {{Solving Quantified Boolean Formulas with Few Existential Variables}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=LkOHaELwkX},
}
Figure