Abstract

Samer & Szeider (2009) introduces “backdoor sets” to Quantified Boolean Formulas (QBFs), providing a new method to solve these PSPACE-complete problems efficiently by identifying a small set of variables (k) that, when assigned, simplify the entire formula into a known poly-time solvable class like QHORN (clauses with at most one positive literal) or Q2CNF (clauses with at most two positive literals).

Tractable Unbounded QBF Solving

While solving QBF generally is PSPACE-complete, a few tractable (polynomial-time solvable) classes of QBFs are known. However, very few of these classes allow for an unbounded number of quantifier alternations. The two most prominent tractable classes that do allow unbounded alternations are:

  • QHORN: clauses have at most one positive literal, and,
  • Q2CNF: clauses have at most two positive literals.

These can both be solved in polynomial time.

Backdoor Sets

Samer & Szeider (2009) proposes to generalize the concept of (strong-)backdoor sets from SAT to QBFs.

In SAT, a (strong-)backdoor set for a tractable class (like HORN or 2CNF) is a set of variables. If you try all possible truth assignments for the variables in , every resulting simplified formula belongs to the easy class . This allows you to solve the hard formula by checking easy formulas.

Samer & Szeider (2009) proposes to create hierarchies of new tractable QBF classes of the form . Here, is the base class (either QHORN or Q2CNF), and is the class of all QBFs that have a strong backdoor set of size at most . The algorithms to solve these are fixed-parameter algorithms, meaning their runtime is efficient for small .

Let’s look at an example. Our easy base class will be Q2CNF.

Consider the formula:

This formula is not in Q2CNF because the first clause has 3 literals.

However, let’s try a backdoor set . There are two possibilities:

  1. We set : The formula’s first clause becomes , which is just . The whole formula simplifies to . This is a Q2CNF formula.
  2. We set : The first clause becomes , which is always true and is removed. The formula simplifies to . This is also a Q2CNF formula.

Since all assignments for resulted in a formula in our easy class , is a strong backdoor set. Our formula belongs to the class .

Variable Dependencies in QBFs

A direct SAT-style backdoor doesn’t work for QBFs because of variable dependencies. The order of quantifiers () matters immensely in QBF solving.

Let’s look at a new formula:

Here, the problem is the 3-literal clause . A naive SAT approach might be to make a backdoor , since is in the clause we want to simplify.

But in the prefix of the QBF , the value of can depend on the value chosen for . A critical requirement for QBF backdoors is that they must be closed under this dependency. I.e if you put a variable into the backdoor, you must also include all the variables depends on.

In this case, depends on . Therefore, a valid, dependency-closed backdoor wouldn’t be , it would have to be .

This forces the development of a “theory of variable dependency”.

A naïve rule (e.g., “a variable depends on everything quantified to its left”) is too restrictive and would make all backdoors enormous. A more sophisticated approach is needed to find the true dependencies. For example, if we can prove that can be “swapped” to without changing the formula’s satisfiability, we’ve proven that doesn’t depend on , which gives us more succinct backdoor sets.

Proposition 2 of Samer & Szeider (2009) shows that finding minimum variable dependencies is PSPACE-hard.

Tractable Dependency Schemes

While finding the minimum dependency schemes is PSPACE-hard, there exist some tractable algorithms for computing minimal dependency schemes. Before we describe the schemes, we define the following:

  • is a binary relation that identifies all pairs of variables where is quantified to the left of in the formula’s prefix (i.e., the depth of is less than the depth of ). Therefore, is the set of all variables that are on the right of in the quantifier prefix.

Trivial Scheme

The Trivial Dependency Scheme () is a basic, safe, and tractable method for assigning dependencies in a Quantified Boolean Formula (QBF).

The scheme is defined as assigning to each QCNF formula the binary relation , defined as follows:

: Assigning to each variable all the variables to its right in the quantifier prefix, but only starting from the first variable (from left to right) that has a different quantification type.

Standard Scheme

The Standard Dependency Scheme () is “more general” (i.e., more precise) than because it analyzes the formula’s clause structure, not just the quantifier prefix.

Core Ideas

The scheme is based on an approach of “connectedness”, presented in Biere (2005) and later refined in Bubeck & Kleine Büning (2007).

  • Biere’s Idea: The paper states that two variables () are “locally connected” if they appear in the same clause. They are “connected” if there is a path of such locally connected variables between them.
  • Bubeck and Kleine Büning’s Refinement: The paper incorporates their observation that universally quantified () variables should be ignored when building this connection path. The reasoning is that universal variables do not propagate changes of truth values.

formalizes this “connected-while-ignoring-universals” idea.

Formal Definitions

The scheme relies on three preliminary definitions that build upon each other:

  • Set :

    In plain English, this means:

    • : “all variables to the right of in the prefix”
    • : “minus all the universal variables”

    Therefore, the set is “the set of all existential () variables that are to the right of .”

  • Connected: An X-path between two clauses and is a sequence of clauses ( where and ). In this path, any two adjacent clauses () must share at least one variable that is in the set . Two clauses are connected with respect to if such an X-path exists between them.

  • Dependency Pair: An (x, y)-dependency pair with respect to a set is a pair of clauses that meets three conditions:

    • and must have different quantifier types ().
    • must be in clause and must be in clause .
    • and must be “connected” with respect to the set .

Using these we can define the Rule as follows:

A variable depends on (i.e., ) if and only if:

  1. is to the right of in the prefix ().
  2. The formula contains an (x, y)-dependency pair.
  3. The “connection set” used to check for the dependency pair is defined as: .

Triangle Scheme

Core Idea

The Triangle Dependency Scheme is a far stricter dependency than . For a dependency to exist, it must find a specific “triangle” of connections involving both the positive and negative literals of a variable.

The key intuition is:

  • If a universal variable () is connected to a clause containing the positive literal () AND also connected to a clause containing the negative literal , then ‘s value is truly dependent on .
  • If is only connected to one of them (e.g., but not ), then is considered “pure” (think unate/monotonic) relative to , and concludes there is no dependency.

Formal Definition

The scheme relies on the following definition:

  • Set : .

  • Dependency Triple: This is a triple of clauses that “proves” a dependency between and (which must have different quantifier types). The definition has two cases:

    • Case 1: is , is then must contain .
      • must contain the positive literal .
      • must contain the negative literal .
      • The “Triangle”: must be connected to , AND must also be connected to with respect to .
    • Case 2: is , is then must contain .
      • must contain the positive literal .
      • must contain the negative literal .
      • The “Triangle”: must be connected to , AND must also be connected to with respect to .

A variable depends on (i.e., ) if and only if:

  1. is to the right of in the prefix ().
  2. The formula contains an (x, y)-dependency triple.
  3. The “connection set” used to check for the dependency pair is defined as: .

Trivial vs Standard vs Triangle Dependency Schemes

Formula:

Variable (Trivial) (Standard) (Triangle)

This table clearly shows the hierarchy of precision:

  • The Trivial scheme is the most “pessimistic” and finds the most dependencies.
  • The Standard scheme is more precise, finding a subset of the Trivial dependencies by analyzing the clause structure.
  • The Triangle scheme is the most precise, finding the smallest set of dependencies.
  • Samer & Szeider (2009) contains proofs that show .

(Partial) Assignment Trees

graph TD
    A(Root)

    subgraph "∀ (u)"
        B("u = 0")
        C("u = 1")
    end

    A --> B;
    A --> C;

    subgraph "∃ (v)"
        D("v = 1")
        E("v = 1")
    end
    
    B --> D;
    C --> E;

    subgraph "∀ (w)"
        F("w = 0")
        G("w = 1")
        H("w = 0")
        I("w = 1")
    end

    D --> F;
    D --> G;
    E --> H;
    E --> I;

    subgraph "∃ (x)"
        J("x = 1")
        K("x = 1")
        L("x = 1")
        M("x = 1")
    end

    F --> J;
    G --> K;
    H --> L;
    I --> M;

    subgraph "∀ (y)"
        N("y = 0")
        O("y = 1")
        P("y = 0")
        Q("y = 1")
        R("y = 0")
        S("y = 1")
        T("y = 0")
        U("y = 1")
    end

    J --> N;
    J --> O;
    K --> P;
    K --> Q;
    L --> R;
    L --> S;
    M --> T;
    M --> U;

    subgraph "∃ (z)"
        V("z = 1")
        W("z = 1")
        X("z = 1")
        Y("z = 1")
        Z("z = 1")
        AA("z = 1")
        BB("z =1")
        CC("z = 1")
    end

    N --> V;
    O --> W;
    P --> X;
    Q --> Y;
    R --> Z;
    S --> AA;
    T --> BB;
    U --> CC;

    

(Partial) assignment trees are a generalization of the idea of a “(partial) truth assignments” (from SAT) to the QBF setting.

  • It is a rooted binary tree where nodes are labeled with variable assignments (e.g., or ).
  • All nodes at the same depth are for the same variable. If a node has two children, they represent the two opposite assignments (e.g, ).
  • Any path from the root to a leaf represents a complete truth assignment for all variables in the tree.
  • A variable in the tree is “universal” if its parent node has two children (it must be checked for both 0 and 1) or “existential” if its parent has one child [it only needs to be checked for one value].

A Partial Assignment Tree is an assignment tree that is valid for a specific formula :

  1. Its variables are a subset of the formula’s variables.
  2. The “universal” or “existential” type of a variable in the tree must match its quantifier in the formula .
  3. The relative order of variables (their depth in the tree) must match their relative order in the QBF prefix.
  4. The set of variables in the tree, , must be dependency-closed. i.e. all variables in the assignment must also contain their dependents.

Types of Backdoors

With these trees, the Samer & Szeider (2009) defines three types of backdoors. In all cases, a backdoor set must be a dependency-closed set and represents a tractable QBF class, like Q2CNF or QHorn ().

Weak Backdoor Set

A set is a weak -backdoor if:

  • There exists at least one valid partial assignment tree (with )
  • …such that for all assignments on that tree, the simplified formula is true and belongs to the easy class .
  • This problem is W[2]-hard and thus not fixed-parameter tractable.

Strong Backdoor Set

This is the central definition. A set is a strong -backdoor if:

  • For all possible truth assignments …
  • …the simplified formula belongs to the easy class .
  • This is simpler because it doesn’t require a special tree, and it doesn’t require the sub-problems to be true.

Deletion Backdoor Set

A set is a deletion -backdoor if:

  • The formula (where all variables in are simply deleted from the clauses)…
  • …belongs to the easy class .

Strong Backdoors are Deletion Backdoors

Lemma 2 of Samer & Szeider (2009) states the following:

For the classes QHORN and Q2CNF, a set is a Strong Backdoor Set if and only if it is a Deletion Backdoor Set.

This means to find a strong backdoor, we don’t need to check assignments. We just need to find a dependency-closed set that, when deleted, makes the formula easy.

This turns the problem into a Hitting Set problem.

  1. Violations: A formula is not in our easy class if it has “violating” clauses.
    • For Q2CNF (max 2 literals), a violation is a clause with 3+ literals, like . The “violating set” is .
    • For QHORN (max 1 positive literal), a violation is a clause with 2+ positive literals, like . The “violating set” is .
  2. Goal: We must find a set that “hits” (intersects with) all these violating sets. This is the classic Hitting Set problem.
  3. The Constraint: Our set must also be dependency-closed (i.e., ).
  4. In Samer & Szeider (2009), they encode this dependency constraint into the hitting set problem. They create a new, “saturated” set system .
    • If contains a violating set , and…
    • …variable depends on (i.e., ), then…
    • …they add a new violating set , which is , to the system .
  5. A minimal hitting set for this new, larger “saturated” system is guaranteed to be a valid, dependency-closed strong backdoor.
  6. Finding a -sized hitting set for 3-sets (Q2CNF) or vertex cover for 2-sets (QHORN) are both well-known Fixed Parameter Tractable(FPT) problems. Once the FPT algorithm finds the backdoor of size , the original QBF can be evaluated by solving the (easy) subproblems to determine the satisfiability of .

References

Biere, A. (2005). Resolve and Expand. In D. Hutchison, T. Kanade, J. Kittler, J. M. Kleinberg, F. Mattern, J. C. Mitchell, M. Naor, O. Nierstrasz, C. Pandu Rangan, B. Steffen, M. Sudan, D. Terzopoulos, D. Tygar, M. Y. Vardi, G. Weikum, H. H. Hoos, & D. G. Mitchell (Eds.), Theory and Applications of Satisfiability Testing (Vol. 3542, pp. 59–70). Springer Berlin Heidelberg. https://doi.org/10.1007/11527695_5
Bubeck, U., & Kleine Büning, H. (2007). Bounded Universal Expansion for Preprocessing QBF. In J. Marques-Silva & K. A. Sakallah (Eds.), Theory and Applications of Satisfiability Testing – SAT 2007 (Vol. 4501, pp. 244–257). Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-540-72788-0_24
Samer, M., & Szeider, S. (2009). Backdoor Sets of Quantified Boolean Formulas. Journal of Automated Reasoning, 42(1), 77–97. https://doi.org/10.1007/s10817-008-9114-5