arXiv:2610.20842cs.CCOct 2026

Manuscript Offprint

arXiv:2610.20842

On Knowledge Compilation Languages for QBFs

Sravanthi Chede, Vaibhav Krishan, Anil Shukla

Abstract

In this work, we design knowledge compilation languages for quantified Boolean formulas (QBFs), with a particular focus on model counting. We introduce various languages in increasing order of their power of representation, starting from a simple tree-based structure, and extending it to DAGs for a more efficient representation. We study the power and limitations of each language. We also show that QBF queries such as model counting and MaxQBF are easy to handle in all these languages.

These languages naturally lead to various static proof systems for the #QBF problem, the model-counting version of the QBF problem. We compare these systems with one another and with a recently introduced line-based #QBF-system called Q-MICE (Chede, Chew, Krishan and Shukla, SAT '26). We show that a minor extension of the Q-MICE system efficiently simulates all these static proof systems, and is in fact exponentially stronger than each of them.

We also initiate the implementation of a solver based on these languages. The solver compiles a representation of an input QBF in the proposed tree-like language, which is subsequently used for model counting. This is the first knowledge compilation based solver for #QBF which can handle QBFs with doubly exponential model counts as well. Experimentally, we compare its performance with the state-of-the-art #QBF-solver d4-QBF which works well for QBFs with small model counts.

2012 ACM Subject Classification Theory of Computation → Proof Complexity

Keywords and phrases Knowledge compilation, QBF, MaxQBF, Quantified model counting

Supplementary Material Software (TQTSolver Repository): Github:vaibhkrishan/TQTSolver

Software and Dataset (TQTSolver and Benchmarks): doi:10.5281/zenodo.23276976

Funding Sravanthi Chede: Supported by the ANRF J C Bose fellowship no. JCB/2023/000006.

Acknowledgements We sincerely thank Swagato Sanyal for valuable discussions and support throughout this work. We are thankful for interesting discussions with Olaf Beyersdorff, Meena Mahajan, Lea Kasche and Satya Amar. We also thank the anonymous reviewers for useful suggestions.

1 Introduction

In logical theory, knowledge compilation is a useful technique for dealing with various computationally hard problems, such as validity, model counting, entailment, and equivalence [13]. In this technique, a given logical theory (such as a CNF) is transformed into a target language (such as a decomposable negation normal form, DNNF [12]) that can support efficient problem solving. Crucially, different languages allow to solve different problems efficiently, hence, the choice of a target language depends on the problems required to solve.

In this article, we study knowledge compilation for quantified Boolean formulas (QBFs). We focus on solving important intractable queries (problems) on QBFs, for example, QBF

∗^{*} A version of this paper is accepted to be published in proceedings of the 46th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS), 2026.

On Knowledge Compilation Languages for QBFs

model counting (#QBF) [19] and QBF MaxSAT (MaxQBF) [17]. Recently, there has been a great interest in the #QBF problem, both from the solving and the proof complexity perspectives. The #QBF solver d4-QBF [9] identifies different disconnected components in the QBF matrix, solves them separately and merges them at the end. It also uses several SAT solving techniques to compute the model count. The Q-MICE (Quantified Model-counting Induction by Claim Extension)[11] proof system, an extension of the #SAT proof system MICE [14], has been recently introduced. Q-MICE is a line-based proof system that computes and certifies the model count of the input QBF using sound inference rules.

Here, we propose a new target language for QBFs: Certified Truncated Quantified Tree (cert-TQT, Section 4). We show that it supports intractable queries such as #QBF and MaxQBF efficiently with respect to the size of the representation. For #QBF, we show that cert-TQT supports computation of the model count in number of arithmetic operations bounded polynomially in terms of the representation size. Note that the model count can be doubly exponential in the number of variables of the QBF; so any algorithm computing the model count explicitly must run in exponential time in the worst case. For MaxQBF, we show that the cert-TQT representation of a related QBF enables us to answer the MaxQBF query for the original QBF in time polynomial in the representation.

We also propose a DAG-like target language, called ‘Certified Truncated Quantified DAG’ (cert-TQD, Section 5), which generalizes cert-TQT. In addition to theoretical analysis of the proposed languages, we also provide a tool for compiling a TQT structure from a QBF (Section 7). We briefly list out our contributions below.

References (25)