HOME

TheInfoList



OR:

In
computational complexity theory In theoretical computer science and mathematics, computational complexity theory focuses on classifying computational problems according to their resource usage, and relating these classes to each other. A computational problem is a task solved by ...
, the language TQBF is a
formal language In logic, mathematics, computer science, and linguistics, a formal language consists of words whose letters are taken from an alphabet and are well-formed according to a specific set of rules. The alphabet of a formal language consists of symb ...
consisting of the true quantified Boolean formulas. A (fully) quantified Boolean formula is a formula in quantified
propositional logic Propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. It deals with propositions (which can be true or false) and relations b ...
where every variable is quantified (or
bound Bound or bounds may refer to: Mathematics * Bound variable * Upper and lower bounds, observed limits of mathematical functions Physics * Bound state, a particle that has a tendency to remain localized in one or more regions of space Geography *B ...
), using either
existential Existentialism ( ) is a form of philosophical inquiry that explores the problem of human existence and centers on human thinking, feeling, and acting. Existentialist thinkers frequently explore issues related to the meaning, purpose, and value ...
or
universal Universal is the adjective for universe. Universal may also refer to: Companies * NBCUniversal, a media and entertainment company ** Universal Animation Studios, an American Animation studio, and a subsidiary of NBCUniversal ** Universal TV, a ...
quantifiers, at the beginning of the sentence. Such a formula is equivalent to either true or false (since there are no
free variable In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a free variable is a notation (symbol) that specifies places in an expression where substitution may take place and is not ...
s). If such a formula evaluates to true, then that formula is in the language TQBF. It is also known as QSAT (Quantified
SAT The SAT ( ) is a standardized test widely used for college admissions in the United States. Since its debut in 1926, its name and scoring have changed several times; originally called the Scholastic Aptitude Test, it was later called the Schol ...
).


Overview

In computational complexity theory, the quantified Boolean formula problem (QBF) is a generalization of the
Boolean satisfiability problem In logic and computer science, the Boolean satisfiability problem (sometimes called propositional satisfiability problem and abbreviated SATISFIABILITY, SAT or B-SAT) is the problem of determining if there exists an interpretation that satisfie ...
in which both existential quantifiers and universal quantifiers can be applied to each variable. Put another way, it asks whether a quantified sentential form over a set of Boolean variables is true or false. For example, the following is an instance of QBF: : \forall x\ \exists y\ \exists z\ ((x \lor z) \land y) QBF is the canonical
complete problem In computational complexity theory, a computational problem is complete for a complexity class if it is, in a technical sense, among the "hardest" (or "most expressive") problems in the complexity class. More formally, a problem ''p'' is called h ...
for
PSPACE In computational complexity theory, PSPACE is the set of all decision problems that can be solved by a Turing machine using a polynomial amount of space. Formal definition If we denote by SPACE(''t''(''n'')), the set of all problems that can b ...
, the class of problems solvable by a deterministic or nondeterministic
Turing machine A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algori ...
in polynomial space and unlimited time. Given the formula in the form of an
abstract syntax tree In computer science, an abstract syntax tree (AST), or just syntax tree, is a tree representation of the abstract syntactic structure of text (often source code) written in a formal language. Each node of the tree denotes a construct occurring ...
, the problem can be solved easily by a set of mutually recursive procedures which evaluate the formula. Such an algorithm uses space proportional to the height of the tree, which is linear in the worst case, but uses time exponential in the number of quantifiers. Provided that MA ⊊ PSPACE, which is widely believed, QBF cannot be solved, nor can a given solution even be verified, in either deterministic or
probabilistic Probability is the branch of mathematics concerning numerical descriptions of how likely an Event (probability theory), event is to occur, or how likely it is that a proposition is true. The probability of an event is a number between 0 and ...
polynomial time (in fact, unlike the satisfiability problem, there's no known way to specify a solution succinctly). It can be solved using an
alternating Turing machine In computational complexity theory, an alternating Turing machine (ATM) is a non-deterministic Turing machine (NTM) with a rule for accepting computations that generalizes the rules used in the definition of the complexity classes NP and co-NP. ...
in linear time, since AP = PSPACE, where AP is the class of problems alternating machines can solve in polynomial time. When the seminal result IP = PSPACE was shown (see
interactive proof system In computational complexity theory, an interactive proof system is an abstract machine that models computation as the exchange of messages between two parties: a ''prover'' and a ''verifier''. The parties interact by exchanging messages in order t ...
), it was done by exhibiting an interactive proof system that could solve QBF by solving a particular arithmetization of the problem. QBF formulas have a number of useful canonical forms. For example, it can be shown that there is a
polynomial-time many-one reduction In computational complexity theory, a polynomial-time reduction is a method for solving one problem using another. One shows that if a hypothetical subroutine solving the second problem exists, then the first problem can be solved by transforming ...
that will move all quantifiers to the front of the formula and make them alternate between universal and existential quantifiers. There is another reduction that proved useful in the IP = PSPACE proof where no more than one universal quantifier is placed between each variable's use and the quantifier binding that variable. This was critical in limiting the number of products in certain subexpressions of the arithmetization.


Prenex normal form

A fully quantified Boolean formula can be assumed to have a very specific form, called
prenex normal form A formula of the predicate calculus is in prenex normal form (PNF) if it is written as a string of quantifiers and bound variables, called the prefix, followed by a quantifier-free part, called the matrix. Together with the normal forms in propos ...
. It has two basic parts: a portion containing only quantifiers and a portion containing an unquantified Boolean formula usually denoted as \displaystyle \phi. If there are \displaystyle n Boolean variables, the entire formula can be written as :\displaystyle \exists x_1 \forall x_2 \exists x_3 \cdots Q_n x_n \phi(x_1, x_2, x_3, \dots, x_n) where every variable falls within the
scope Scope or scopes may refer to: People with the surname * Jamie Scope (born 1986), English footballer * John T. Scopes (1900–1970), central figure in the Scopes Trial regarding the teaching of evolution Arts, media, and entertainment * Cinem ...
of some quantifier. By introducing dummy variables, any formula in prenex normal form can be converted into a sentence where existential and universal quantifiers alternate. Using the dummy variable \displaystyle y_1, :\displaystyle \exists x_1 \exists x_2 \phi(x_1, x_2) \quad \mapsto \quad \exists x_1 \forall y_1 \exists x_2 \phi(x_1, x_2) The second sentence has the same
truth value In logic and mathematics, a truth value, sometimes called a logical value, is a value indicating the relation of a proposition to truth, which in classical logic has only two possible values (''true'' or '' false''). Computing In some progr ...
but follows the restricted syntax. Assuming fully quantified Boolean formulas to be in prenex normal form is a frequent feature of proofs.


QBF solvers


Naïve

There is a simple recursive algorithm for determining whether a QBF is in TQBF (i.e. is true). Given some QBF :Q_1 x_1 Q_2 x_2 \cdots Q_n x_n \phi(x_1, x_2, \dots, x_n). If the formula contains no quantifiers, we can just return the formula. Otherwise, we take off the first quantifier and check both possible values for the first variable: :A = Q_2 x_2 \cdots Q_n x_n \phi(0, x_2, \dots, x_n), :B = Q_2 x_2 \cdots Q_n x_n \phi(1, x_2, \dots, x_n). If Q_1 = \exists, then return A \lor B. If Q_1 = \forall, then return A \land B. How fast does this algorithm run? For every quantifier in the initial QBF, the algorithm makes two recursive calls on only a linearly smaller subproblem. This gives the algorithm an exponential runtime O(2''n''). How much space does this algorithm use? Within each invocation of the algorithm, it needs to store the intermediate results of computing A and B. Every recursive call takes off one quantifier, so the total recursive depth is linear in the number of quantifiers. Formulas that lack quantifiers can be evaluated in space logarithmic in the number of variables. The initial QBF was fully quantified, so there are at least as many quantifiers as variables. Thus, this algorithm uses ''O''(''n'' + log ''n'') = ''O''(''n'') space. This makes the TQBF language part of the
PSPACE In computational complexity theory, PSPACE is the set of all decision problems that can be solved by a Turing machine using a polynomial amount of space. Formal definition If we denote by SPACE(''t''(''n'')), the set of all problems that can b ...
complexity class In computational complexity theory, a complexity class is a set of computational problems of related resource-based complexity. The two most commonly analyzed resources are time and memory. In general, a complexity class is defined in terms of ...
.


State of the art

Despite the PSPACE-completeness of QBF, many solvers have been developed to solve these instances. (This is analogous to the situation with
SAT The SAT ( ) is a standardized test widely used for college admissions in the United States. Since its debut in 1926, its name and scoring have changed several times; originally called the Scholastic Aptitude Test, it was later called the Schol ...
, the single existential quantifier version; even though it is
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by tryi ...
, it is still possible to solve many SAT instances heuristically.) The case where there are only 2 quantifiers, known as 2QBF, has received special attention. The QBF solver competition QBFEVAL has been running more-or-less annually since 2004; solvers are required to read instances in QDIMACS format and either the QCIR or QAIGER formats. High-performing QBF solvers generally use QDPLL (a generalization of DPLL) or CEGAR. Research into QBF solving began with the development of backtracking DPLL for QBF in 1998, followed by the introduction of clause learning and variable elimination in 2002; thus, as compared to SAT solving, which has been under development since the 1960s, QBF is a relatively young field of research as of 2017. Some prominent QBF solvers include: * CADET, which solves quantified Boolean formulas restricted to one quantifier alternation (with the ability to compute Skolem functions), based on ''incremental determinization'' and with the ability to prove its answers. * CAQE - a CEGAR-based solver for quantified Boolean formulas; winner of the recent editions of QBFEVAL. * DepQBF - a search-based solver for quantified Boolean formulas *sKizzo - the first solver ever to use symbolic skolemization, extract certificates of satisfiability, use a hybrid inference engine, implement abstract branching, deal with limited quantifiers, and enumerate valid assignments, and winner of QBFEVAL 2005, 2006, and 2007.


Applications

QBF solvers can be applied to planning (in artificial intelligence), including safe planning; the latter is critical in applications of robotics. QBF solvers can also be applied to bounded model checking as they provide a shorter encoding than would be needed for a SAT-based solver. The evaluation of a QBF can be seen as a
two-player game A two-player game is a multiplayer game that is played by precisely two players. This is distinct from a solitaire game, which is played by only one player. Examples The following are some examples of two-player games. This list is not intended t ...
between a player who controls existentially quantified variables and a player who controls universally quantified variables. This makes QBFs suitable for encoding
reactive synthesis Reactive synthesis (or temporal synthesis) is the field of computer science that studies automatic generation of state machines (e.g. Moore machines) from high-level specifications (e.g. formulas in linear temporal logic). "Reactivity" highlights t ...
problems. Similarly, QBF solvers can be used to model adversarial games in
game theory Game theory is the study of mathematical models of strategic interactions among rational agents. Myerson, Roger B. (1991). ''Game Theory: Analysis of Conflict,'' Harvard University Press, p.&nbs1 Chapter-preview links, ppvii–xi It has appli ...
. For example, QBF solvers can be used to find winning strategies for games of
geography Geography (from Greek: , ''geographia''. Combination of Greek words ‘Geo’ (The Earth) and ‘Graphien’ (to describe), literally "earth description") is a field of science devoted to the study of the lands, features, inhabitants, and ...
, which can then be automatically played interactively. QBF solvers can be used for
formal equivalence checking Formal equivalence checking process is a part of electronic design automation (EDA), commonly used during the development of digital integrated circuits, to formally prove that two representations of a circuit design exhibit exactly the same behav ...
, and can also be used to synthesize Boolean functions. Other types of problems that can be encoded as QBFs include: * Detecting whether a clause in an unsatisfiable formula in
conjunctive normal form In Boolean logic, a formula is in conjunctive normal form (CNF) or clausal normal form if it is a conjunction of one or more clauses, where a clause is a disjunction of literals; otherwise put, it is a product of sums or an AND of ORs. As a can ...
belongs to some minimally unsatisfiable subset and whether a clause in a satisfiable formula belongs to a maximally satisfiable subset * Encodings of conformant planning * ASP-related problems * Abstract argumentation *
Linear temporal logic In logic, linear temporal logic or linear-time temporal logic (LTL) is a modal temporal logic with modalities referring to time. In LTL, one can encode formulae about the future of paths, e.g., a condition will eventually be true, a condition will ...
model checking *
Nondeterministic finite automaton In automata theory, a finite-state machine is called a deterministic finite automaton (DFA), if * each of its transitions is ''uniquely'' determined by its source state and input symbol, and * reading an input symbol is required for each state tr ...
language inclusion * Synthesis and reliability of distributed systems


Extensions

In QBFEVAL 2020, a "DQBF Track" was introduced where instances were allowed to have
Henkin quantifier In logic a branching quantifier, also called a Henkin quantifier, finite partially ordered quantifier or even nonlinear quantifier, is a partial ordering :\langle Qx_1\dots Qx_n\rangle of quantifiers for ''Q'' ∈ . It is a special case ...
s (expressed in DQDIMACS format).


PSPACE-completeness

The TQBF language serves in complexity theory as the canonical
PSPACE-complete In computational complexity theory, a decision problem is PSPACE-complete if it can be solved using an amount of memory that is polynomial in the input length (polynomial space) and if every other problem that can be solved in polynomial space can b ...
problem. Being PSPACE-complete means that a language is in PSPACE and that the language is also
PSPACE-hard In computational complexity theory, PSPACE is the set of all decision problems that can be solved by a Turing machine using a polynomial amount of space. Formal definition If we denote by SPACE(''t''(''n'')), the set of all problems that can b ...
. The algorithm above shows that TQBF is in PSPACE. Showing that TQBF is PSPACE-hard requires showing that any language in the complexity class PSPACE can be reduced to TQBF in polynomial time. I.e., :\forall L\in \mathsf, L\leq_p \mathrm. This means that, for a PSPACE language L, whether an input is in L can be decided by checking whether f(x) is in TQBF, for some function that is required to run in polynomial time (relative to the length of the input). Symbolically, :x\in L\iff f(x)\in \mathrm. Proving that TQBF is PSPACE-hard, requires specification of . So, suppose that L is a PSPACE language. This means that L can be decided by a polynomial space deterministic
Turing machine A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algori ...
(DTM). This is very important for the reduction of L to TQBF, because the configurations of any such Turing Machine can be represented as Boolean formulas, with Boolean variables representing the state of the machine as well as the contents of each cell on the Turing Machine tape, with the position of the Turing Machine head encoded in the formula by the formula's ordering. In particular, our reduction will use the variables c_1 and c_2, which represent two possible configurations of the DTM for L, and a natural number t, in constructing a QBF \phi_ which is true if and only if the DTM for L can go from the configuration encoded in c_1 to the configuration encoded in c_2 in no more than t steps. The function , then, will construct from the DTM for L a QBF \phi_, where c_ is the DTM's starting configuration, c_\text is the DTM's accepting configuration, and T is the maximum number of steps the DTM could need to move from one configuration to the other. We know that ''T'' = ''O''(exp(''n'')), where n is the length of the input, because this bounds the total number of possible configurations of the relevant DTM. Of course, it cannot take the DTM more steps than there are possible configurations to reach c_\mathrm unless it enters a loop, in which case it will never reach c_\mathrm anyway. At this stage of the proof, we have already reduced the question of whether an input formula (encoded, of course, in c_\text) is in L to the question of whether the QBF \phi_, i.e., f(w), is in TQBF. The remainder of this proof proves that can be computed in polynomial time. For t=1, computation of \phi_ is straightforward—either one of the configurations changes to the other in one step or it does not. Since the Turing Machine that our formula represents is deterministic, this presents no problem. For t>1, computation of \phi_ involves a recursive evaluation, looking for a so-called "middle point" m_1. In this case, we rewrite the formula as follows: :\phi_=\exists m_1(\phi_\wedge\phi_). This converts the question of whether c_1 can reach c_2 in t steps to the question of whether c_1 reaches a middle point m_1 in t/2 steps, which itself reaches c_2 in t/2 steps. The answer to the latter question of course gives the answer to the former. Now, t is only bounded by T, which is exponential (and so not polynomial) in the length of the input. Additionally, each recursive layer virtually doubles the length of the formula. (The variable m_1 is only one midpoint—for greater t, there are more stops along the way, so to speak.) So the time required to recursively evaluate \phi_ in this manner could be exponential as well, simply because the formula could become exponentially large. This problem is solved by universally quantifying using variables c_3 and c_4 over the configuration pairs (e.g., \), which prevents the length of the formula from expanding due to recursive layers. This yields the following interpretation of \phi_: :\phi_=\exists m_1\forall (c_3,c_4)\in \(\phi_). This version of the formula can indeed be computed in polynomial time, since any one instance of it can be computed in polynomial time. The universally quantified ordered pair simply tells us that whichever choice of (c_3,c_4) is made, \phi_\iff\phi_. Thus, \forall L\in \mathsf, L\leq_p \mathrm, so TQBF is PSPACE-hard. Together with the above result that TQBF is in PSPACE, this completes the proof that TQBF is a PSPACE-complete language. (This proof follows Sipser 2006 pp. 310–313 in all essentials. Papadimitriou 1994 also includes a proof.)


Miscellany

*One important subproblem in TQBF is the
Boolean satisfiability problem In logic and computer science, the Boolean satisfiability problem (sometimes called propositional satisfiability problem and abbreviated SATISFIABILITY, SAT or B-SAT) is the problem of determining if there exists an interpretation that satisfie ...
. In this problem, you wish to know whether a given Boolean formula \phi can be made true with some assignment of variables. This is equivalent to the TQBF using only existential quantifiers: \exists x_1 \cdots \exists x_n \phi(x_1, \ldots, x_n) This is also an example of the larger result NP ⊆ PSPACE which follows directly from the observation that a polynomial time verifier for a proof of a language accepted by a NTM (
Non-deterministic Turing machine In theoretical computer science, a nondeterministic Turing machine (NTM) is a theoretical model of computation whose governing rules specify more than one possible action when in some given situations. That is, an NTM's next state is ''not'' comp ...
) requires polynomial space to store the proof. *Any class in the
polynomial hierarchy In computational complexity theory, the polynomial hierarchy (sometimes called the polynomial-time hierarchy) is a hierarchy of complexity classes that generalize the classes NP and co-NP. Each class in the hierarchy is contained within PSPACE. T ...
( PH) has TQBF as a hard problem. In other words, for the class comprising all languages L for which there exists a poly-time TM V, a verifier, such that for all input x and some constant i, x \in L \Leftrightarrow \exists y_1 \forall y_2 \cdots Q_i y_i \ V(x,y_1,y_2,\dots,y_i)\ =\ 1 which has a specific QBF formulation that is given as \exists \phi such that \exists \vec \forall \vec \cdots Q_i \vec\ \phi(\vec,\vec,\dots,\vec)\ =\ 1 where the \vec's are vectors of Boolean variables. *It is important to note that while TQBF the language is defined as the collection of true quantified Boolean formulas, the abbreviation TQBF is often used (even in this article) to stand for a totally quantified Boolean formula, often simply called a QBF (quantified Boolean formula, understood as "fully" or "totally" quantified). It is important to distinguish contextually between the two uses of the abbreviation TQBF in reading the literature. *A TQBF can be thought of as a game played between two players, with alternating moves. Existentially quantified variables are equivalent to the notion that a move is available to a player at a turn. Universally quantified variables mean that the outcome of the game does not depend on what move a player makes at that turn. Also, a TQBF whose first quantifier is existential corresponds to a formula game in which the first player has a winning strategy. *A TQBF for which the quantified formula is in 2-CNF may be solved in
linear time In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by ...
, by an algorithm involving strong connectivity analysis of its
implication graph In mathematical logic and graph theory, an implication graph is a skew-symmetric, directed graph composed of vertex set and directed edge set . Each vertex in represents the truth status of a Boolean literal, and each directed edge from verte ...
. The
2-satisfiability In computer science, 2-satisfiability, 2-SAT or just 2SAT is a computational problem of assigning values to variables, each of which has two possible values, in order to satisfy a system of constraints on pairs of variables. It is a special case ...
problem is a special case of TQBF for these formulas, in which every quantifier is existential. *There is a systematic treatment of restricted versions of quantified Boolean formulas (giving Schaefer-type classifications) provided in an expository paper by Hubie Chen. *Planar TQBF, generalizing
Planar SAT In computer science, the planar 3-satisfiability problem (abbreviated PLANAR 3SAT or PL3SAT) is an extension of the classical Boolean 3-satisfiability problem to a planar incidence graph. In other words, it asks whether the variables of a give ...
, was proved PSPACE-complete by D. Lichtenstein.{{Cite journal, last=Lichtenstein, first=David, date=1982-05-01, title=Planar Formulae and Their Uses, url=https://epubs.siam.org/doi/10.1137/0211025, journal=SIAM Journal on Computing, volume=11, issue=2, pages=329–343, doi=10.1137/0211025, issn=0097-5397


Notes and references

* Fortnow & Homer (2003) provides some historical background for PSPACE and TQBF. * Zhang (2003) provides some historical background of Boolean formulas. * Arora, Sanjeev. (2001)
''COS 522: Computational Complexity''
Lecture Notes, Princeton University. Retrieved October 10, 2005. * Fortnow, Lance & Steve Homer. (2003, June).
A short history of computational complexity
''The Computational Complexity Column,'' 80. Retrieved October 9, 2005. * Papadimitriou, C. H. (1994). ''Computational Complexity.'' Reading: Addison-Wesley. * Sipser, Michael. (2006). ''Introduction to the Theory of Computation.'' Boston: Thomson Course Technology. * Zhang, Lintao. (2003).
''Searching for truth: Techniques for satisfiability of Boolean formulas''
Retrieved October 10, 2005.


See also

*
Cook–Levin theorem In computational complexity theory, the Cook–Levin theorem, also known as Cook's theorem, states that the Boolean satisfiability problem is NP-complete. That is, it is in NP, and any problem in NP can be reduced in polynomial time by a determi ...
, stating that
SAT The SAT ( ) is a standardized test widely used for college admissions in the United States. Since its debut in 1926, its name and scoring have changed several times; originally called the Scholastic Aptitude Test, it was later called the Schol ...
is
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by tryi ...
*
Generalized geography In computational complexity theory, generalized geography is a well-known PSPACE-complete problem. Introduction Geography is a children's game, where players take turns naming cities from anywhere in the world. Each city chosen must begin with the ...


External links

* The Quantified Boolean Formulas Librar
(QBFLIB)

International Workshop on Quantified Boolean Formulas
Satisfiability problems Boolean algebra PSPACE-complete problems