Abstract
We consider the compilation of different reasoning tasks into the evaluation problem of quantified boolean formulas (QBFs) as an approach to develop prototype reasoning systems useful for, e.g., experimental purposes. Such a method is a natural generalization of a similar technique applied to NP-problems and has been recently proposed by other researchers. More specifically, we present translations of several well-known reasoning tasks from the area of nonmonotonic reasoning into QBFs, and compare their implementation in the prototype system QUIP with established NMRprovers. The results show reasonable performance, and document that the QBF approach is an attractive tool for rapid prototyping of experimental knowledge-representation systems.
Introduction
In the 1990s, researchers achieved significant success by reducing NP-complete problems, such as planning, to the Boolean satisfiability problem (SAT). However, many critical knowledge representation (KR) tasks—including nonmonotonic reasoning (NMR) formalisms like abduction and default logic—are inherently "harder" than NP, often falling into PSPACE or higher levels of the polynomial hierarchy.
Developing highly optimized, custom solvers for every new reasoning formalism is a massive engineering undertaking. This research addresses the challenge by proposing Quantified Boolean Formulas (QBFs)—the prototypical PSPACE problem—as a universal target language for these advanced tasks. By treating QBF as a common "assembly language" for reasoning, researchers can rapidly prototype new systems by simply defining a translation to QBF.
The QUIP System Architecture
The authors implemented this approach in a prototype system called QUIP. The system follows a modular "compilation" pipeline designed to handle complex reasoning tasks efficiently.
The pipeline consists of three primary components:
- Translation (
filter): This stage provides formal, polynomial-time mappings for major NMR formalisms into QBFs. Supported tasks include abduction, autoepistemic logic, default logic, and disjunctive logic programming. - Evaluation (
boole): The translated QBF is passed to an underlying evaluator. Unlike many solvers that require formulas in a strict "prenex clausal normal form"—which can lead to an exponential explosion in formula size—theboolesolver utilizes Binary Decision Diagrams (BDDs) to process arbitrary formula structures. - Interpretation (
int): This final component maps the QBF solver's output back into the conceptual framework of the original problem, such as identifying stable models or explanations.
Experimental Evaluation and Insights
QUIP was evaluated using benchmarks from TheoryBase, focusing on graph-based problems (e.g., maximal independent sets, graph coloring), and a classic hardware troubleshooting problem: n-bit Full Adder Diagnosis.
A key insight from the experiments is that the structure of the QBF encoding is as critical as its size. For instance, in Default Logic, a more elaborate translation ($T_{dl}$) frequently outperformed a more succinct one ($T_{fs}$). Furthermore, by avoiding the requirement for Prenex Normal Form through BDD-based evaluation, QUIP successfully mitigated the "variable explosion" that often hampers performance in other QBF systems.
Key Results
The experimental results demonstrate that QUIP's general-purpose approach is surprisingly competitive with specialized tools. In the n-bit full adder diagnosis task, QUIP outperformed specialized provers like Theorist and the diagnosis front-end of dlv.
As shown in the table above, for a 5-bit adder, QUIP found minimal explanations in just 18 seconds, whereas specialized tools like dlv (min) took significantly longer (787 seconds), and Theorist struggled even with smaller instances. While highly optimized "specialist" solvers still maintain an edge in their specific domains (like logic programming), QUIP remains within a reasonable performance range, proving that QBF-based rapid prototyping is a viable strategy for building experimental KR systems.
Conclusion and Future Work
This work establishes that "ad hoc" translations to QBF are an effective way to quickly develop experimental reasoning systems without sacrificing significant performance. Future research directions include exploring parallel QBF evaluation to further boost speed and extending the framework to handle modal logics (e.g., K, T, or S4) and more complex, function-free languages through intelligent grounding techniques.
Summary updated