1 Introduction

The goal of knowledge compilation is to succinctly represent propositional knowledge bases in a format that supports a number of queries in polynomial time [8]. Choosing a representation language generally involves a trade-off between succinctness and the range of queries that can be efficiently answered. In this paper, we study ordered binary decision diagram (OBDD) representations of propositional theories given as formulas in conjunctive normal form (CNF). Binary decision diagrams (also known as branching programs) and their variants are widely used and well-studied representation languages for Boolean functions [25]. OBDDs in particular enjoy properties, such as polynomial-time equivalence testing, that make them the data structure of choice for a range of applications.

The question of which classes of CNFs can be represented as (or compiled into, in the jargon of knowledge representation) OBDDs of polynomial size is largely unexplored [25, Chapter 4]. We approach this classification problem by considering structurally characterized CNF classes, more specifically, classes of CNF formulas defined in terms of properties of their incidence graphs (the incidence graph of a formula is the bipartite graph on clauses and variables where a variable is adjacent to the clauses it occurs in). Figure 1 depicts a hierarchy of well-studied bipartite graph classes as considered by Lozin and Rautenbach [20, Fig. 2]. This hierarchy is particularly well-suited for our classification project as it includes prominent cases such as beta acyclic CNFs [5] and bounded clique-width CNFs. When located within this hierarchy, the known bounds on the OBDD size of structural CNF classes leave a large gap (depicted on the left of Fig. 1):

  • On the one hand, we have a polynomial upper bound on the OBDD size of bounded treewidth CNF classes proved recently by Razgon [23]. The corresponding graph classes are located at the bottom of the hierarchy.

  • On the other hand, there is an exponential lower bound for the OBDD size of general CNFs, proved two decades ago by Devadas [9]. The corresponding graph class is not chordal bipartite, has unbounded degree and unbounded clique-width, and hence is located at the top of the hierarchy.

Fig. 1
figure 1

The diagram depicts a hierarchy of classes of bipartite graphs under the inclusion relation (thin edges). \(\mathcal {B}\), \(\mathcal {H}\), \(\mathcal {D}_{k}\), \(\mathcal {C}\), \(\mathcal {C}_{v}\), and \(\mathcal {C}_{c}\) denote, respectively, bipartite graphs, chordal bipartite graphs (corresponding to beta acyclic CNFs), bipartite graphs of degree at most k (k ≥ 3), convex graphs, left (variable) convex graphs, and right (clause) convex graphs. The class \(\mathcal {C}_{v} \cap \mathcal {C}_{c}\) of biconvex graphs and the class \(\mathcal {D}_{k}\) of bipartite graphs of degree at most k have unbounded clique-width. The class \(\mathcal {H} \cap \mathcal {D}_{k}\) of chordal bipartite graphs of degree at most k has bounded treewidth. The green and red curved lines enclose, respectively, classes of incidence graphs whose CNFs have polynomial time OBDD compilation, and classes of incidence graphs whose CNFs have exponential size OBDD representations; the right hand picture shows the compilability frontier, updated in light of Results 1 and 2

Contribution

In this paper, we tighten this gap as illustrated on the right in Fig. 1. More specifically, we prove new bounds for two structural classes of CNFs.

Result 1

CNF formulas with variable convex incidence graphs have polynomial OBDD size (Theorem 7).

Convexity is a property of bipartite graphs that has been extensively studied in the area of combinatorial optimization [14, 15, 24], and that can be detected in linear time [4, 19].

To prove Result 1, we identify a property of CNF classes—called the few subterms property—that is sufficient for polynomial-size compilability (Theorem 4), and then prove that CNFs with variable convex incidence graphs have this property (Lemma 6). The few subterms property naturally arises as a sufficient condition for polynomial size compilability when considering OBDD representations of CNF formulas (cf. Oztok and Darwiche’s recent work on CV-width [22], which explores a similar idea). Aside from its role in proving polynomial-size compilation for variable convex CNFs, the few subterms property can also be used to explain the (known) fact that classes of CNFs with incidence graphs of bounded treewidth have OBDD representations of polynomial size (Lemma 10), and as such offers a unifying perspective on these results. Both the result on variable convex CNFs and the result on bounded treewidth CNFs can be improved to polynomial time compilation by appealing to a stronger version of the few subterms property (Theorems 7 and 11).

In an attempt to push the few subterms property further, we adopt the language of parameterized complexity to formally capture the idea that CNFs “close” to a class with few subterms have “small” OBDD representations. More precisely, defining the deletion distance of a CNF from a CNF class as the number of its variables or clauses that have to be deleted in order for the resulting formula to be in the class, we prove that CNFs have fixed-parameter tractable OBDD size parameterized by the deletion distance from a CNF class with few subterms (Theorem 13). This result can again be improved to fixed-parameter time compilation under additional assumptions (Theorem 14), yielding for instance fixed-parameter tractable time compilation of CNFs into OBDDs parameterized by the feedback vertex set size (Corollary 15).

On the negative side, we prove that some structurally characterized classes of CNF formulas do not have small OBDD representations:

Result 2

There is a class of CNF formulas with incidence graphs of bounded degree such that every formula F in this class has OBDD size at least 2Ω(size(F)) (Theorem 19).Footnote 1

This substantially improves a \(2^{\Omega (\sqrt {\text {\textsf {size}}(F)})}\) lower bound for the OBDD size of a class of CNFs by Devadas [9]. Moreover, we establish this bound for a class that satisfies strong syntactic restrictions: every clause contains exactly two positive literals and each variable occurs at most 3 times.

The heavy lifting in our proof of this result is done by a family of expander graphs. Expander graphs have found applications in many areas of mathematics and computer science [16, 21], including circuit and proof complexity [17]. In this paper, we show how they can be used to derive lower bounds for OBDDs.

Organization

The remainder of this paper is organized as follows. In Section 2, we introduce basic notation and terminology. In Section 3, we prove that formulas with few subterms have polynomial OBDD size and show that variable-convex CNFs (as well as bounded treewidth CNFs) enjoy the few subterms property. Fixed-parameter tractable size and time compilability results based on the few subterms property are presented in Section 3.4. In Section 4, we prove a strongly exponential lower bound on the OBDD size of CNF formulas based on expander graphs. We conclude in Section 5.

2 Preliminaries

Formulas

Let X be a countable set of variables. A literal is a variable x or a negated variable ¬x. If x is a variable we let var(x) = varx) = x. A clause is a finite set of literals. For a clause c we define var(c) = {var(l)∣lc}. If a clause contains a literal negated as well as unnegated it is tautological. A conjunctive normal form (CNF) is a finite set of non-tautological clauses. If F is a CNF formula we let \(\text {\textsf {var}}(F) = \bigcup _{c \in F} \text {\textsf {var}}(c)\). The size of a clause c is |c|, and the size of a CNF F is \(\text {\textsf {size}}(F) = {\sum }_{c \in F} |c|\). An assignment is a mapping f : X → {0, 1}, where X X. We identify f with the set {¬xxX , f(x) = 0} ∪ {xxX , f(x) = 1}. An assignment f satisfies a clause c if fc; for a CNF F, we let F[f] denote the CNF containing the clauses in F not satisfied by f, restricted to variables in Xvar(f), that is, F[f] = {c∖{x, ¬xxvar(f)}∣cF,fc = }; then, f satisfies F if F[f] = , that is, if it satisfies all clauses in F. If F is a CNF with var(F) = {x 1,…,x n } we define the Boolean function F(x 1,…,x n )computed by F as F(b 1,…,b n ) = 1 if and only if the assignment \(f_{(b_{1}, \dots , b_{n})}: \text {\textsf {var}}(F) \rightarrow \{0, 1\}\) given by \(f_{(b_{1}, \dots , b_{n})}(x_{i}) = b_{i}\) satisfies the CNF F.

Binary Decision Diagrams

A binary decision diagram (BDD) D on variables {x 1,…,x n } is a labelled directed acyclic graph satisfying the following conditions: D has at at most two vertices without outgoing edges, called sinks of D. Sinks of D are labelled with 0 or 1; if there are exactly two sinks, one is labelled with 0 and the other is labelled with 1. Moreover, D has exactly one vertex without incoming edges, called the source of D. Each non-sink node of D is labelled by a variable x i , and has exactly two outgoing edges, one labelled 0 and the other labelled 1. Each node v of D represents a Boolean function F v = F v (x 1,…,x n ) in the following way. Let (b 1,…,b n ) ∈ {0, 1}n and let w be a node labelled with x i . We say that (b 1,…,b n )activates an outgoing edge of w labelled with b ∈ {0, 1} if b i = b. Since (b 1,…,b n ) activates exactly one outgoing edge of each non-sink node, there is a unique sink that can be reached from v along edges activated by (b 1,…,b n ). We let F v (b 1,…,b n ) = b, where b ∈ {0, 1} is the label of this sink. The function computed by D is F s , where s denotes the (unique) source node of D. The size of a BDD is the number of its nodes.

An ordering σ of a set {x 1,…,x n } is a total order on {x 1,…,x n }. If σ is an ordering of {x 1,…,x n } we let var(σ) = {x 1,…,x n }. Let σ be the ordering of {x 1,…,x n } given by \(x_{i_{1}}<x_{i_{2}}< {\cdots } <x_{i_{n}}\). For every integer 0 < jn, the length j prefix of σ is the ordering of \(\{x_{i_{1}},\ldots ,x_{i_{j}}\}\) given by \(x_{i_{1}}< {\cdots } <x_{i_{j}}\). A prefix of σ is a length j prefix of σ for some integer 0 < jn. For orderings \(\sigma =x_{i_{1}}< {\cdots } <x_{i_{n}}\) of {x 1,…,x n } and \(\rho =y_{i_{1}}< {\cdots } <y_{i_{m}}\) of {y 1,…,y m }, we let σ ρ denote the ordering of {x 1,…,x n , y 1,…,y m } given by \(x_{i_{1}}< {\cdots } <x_{i_{n}}<y_{i_{1}}< {\cdots } <y_{i_{m}}\). Let D be a BDD on variables {x 1,…,x n } and let \(\sigma = x_{i_{1}} < {\cdots } < x_{i_{n}}\) be an ordering of {x 1,…,x n }. The BDD D is a σ-ordered binary decision diagram (σ-OBDD) if x i < x j (with respect to σ) whenever D contains an edge from a node labelled with x i to a node labelled with x j . A BDD D on variables {x 1,…,x n } is an ordered binary decision diagram (OBDD) if there is an ordering σ of {x 1,…,x n } such that D is a σ-OBDD. For a Boolean function F = F(x 1,…,x n ), the OBDD size of F is the size of the smallest OBDD on {x 1,…,x n } computing F.

We say that a class \(\mathcal {F}\) of CNFs has polynomial-time compilation into OBDDs if there is a polynomial-time algorithm that, given a CNF \(F \in \mathcal {F}\), returns an OBDD computing the same Boolean function as F. We say that a class \(\mathcal {F}\) of CNFs has polynomial size compilation into OBDDs if there exists a polynomial \(p \colon \mathbb {N} \to \mathbb {N}\) such that, for all CNFs \(F \in \mathcal {F}\), there exists an OBDD of size at most p(size(F)) that computes the same function as F.

Graphs

For standard graph theoretic terminology, see [10]. Let G = (V,E) be a graph. The (open) neighborhood of W in G, in symbols neigh(W,G), is defined by

$$\text{\textsf{neigh}}(W,G) =\{ v \in V \setminus W \mid \text{there exists}\; w \in W\; \text{such that}\; vw \in E\}.$$

We freely use neigh(v,G) as a shorthand for neigh({v},G), and we write neigh(W) instead of neigh(W,G) if the graph G is clear from the context. A graph G = (V,E) is bipartite if its vertex set V can be partitioned into two blocks V and V such that, for every edge v wE, we either have vV and wV , or vV and wV . In this case we may write G = (V , V , E). The incidence graph of a CNF F, in symbols inc(F), is the bipartite graph (var(F),F,E) such that v cE if and only if vvar(F), cF, and vvar(c); that is, the blocks are the variables and clauses of F, and a variable is adjacent to a clause if and only if the variable occurs in the clause.

A bipartite graph G = (V,W,E) is left convex if there exists an ordering σ of V such that the following holds: if wv and w v are edges of G and v < v < v (with respect to the ordering σ) then w v is an edge of G. The ordering σ is said to witness left convexity of G. A CNF F is variable convex if inc(F) = (var(F),F,E) is left convex.

For an integer d, a CNF F has degree d if inc(F) has degree at most d. A class \(\mathcal {F}\) of CNFs has bounded degree if there exists an integer d such that every CNF in \(\mathcal {F}\) has degree d.

3 Polynomial Time Compilability

In this section, we introduce the few subterms property, a sufficient condition for a class of CNFs to admit polynomial size compilation into OBDDs (Section 3.1). We prove that the classes of variable convex CNFs and bounded treewidth CNFs have the few subterms property (Sections 3.2 and 3.3). Finally, we establish fixed-parameter tractable size and time OBDD compilation results for CNFs, where the parameter is the deletion distance to a few subterms CNF class (Section 3.4).

3.1 The Few Subterms Property

Definition 1 (Subterm width)

Let F be a CNF formula and let Vvar(F). The set of V- subterms of F is defined

$$\text{\textsf{st}}(F,V) = \{ F[f] \mid f \colon V \to \{0, 1\} \}.$$

Given an ordering σ of var(F), the subterm width of F with respect to σ is

$$\text{\textsf{stw}}(F,\sigma) =\max \{ |\text{\textsf{st}}(F,\text{\textsf{var}}(\pi))| \mid \pi\text{ is a prefix of }\sigma \}.$$

The subterm width of F is the minimum subterm width of F with respect to an ordering of var(F).

We now state a few simple properties of subterms that will be used throughout the paper. Let V be a set of variables and let F be a CNF.

  1. 1.

    Trivially, |st(F,V)| ≤ 2|V|.

  2. 2.

    Each V-subterm of F is the restriction of a subset of F, so |st(F,V)| ≤ 2|F|.

  3. 3.

    If F = F F then F[f] = F [f]∪F [f] for every variable assignment f : V→{0, 1}, so |st(F,V)| ≤ |st(F , V)|⋅|st(F , V)|.

Definition 2 (Subterm Bound)

Let \(\mathcal {F}\) be a class of CNF formulas. A function \(b \colon \mathbb {N} \to \mathbb {N}\) is a subterm bound of \(\mathcal {F}\) if, for all \(F \in \mathcal {F}\), the subterm width of F is bounded from above by b(size(F)). Let \(b \colon \mathbb {N} \to \mathbb {N}\) be a subterm bound of \(\mathcal {F}\), let \(F \in \mathcal {F}\), and let σ be an ordering of var(F). We call σ a witness of the subterm bound b with respect to F if stw(F,σ) ≤ b(size(F)).

Definition 3 (Few Subterms)

A class \(\mathcal {F}\) of CNF formulas has few subterms if it has a polynomial subterm bound \(p \colon \mathbb {N} \to \mathbb {N}\); if, in addition, for all \(F \in \mathcal {F}\), an ordering σ of var(F) witnessing p with respect to F can be computed in polynomial time, \(\mathcal {F}\) is said to have constructive few subterms.

The few subterms property naturally presents itself as a sufficient condition for a polynomial size construction of OBDDs from CNFs.

Theorem 4

There exists an algorithm that, given a CNF F and an ordering σ of var(F), returns a σ-OBDD for F of size at most |var(F)|⋅stw(F, σ) in time polynomial in |var(F)| and stw(F, σ).

Proof

Let F be a CNF and σ = x 1<⋯ < x n be an ordering of var(F). The algorithm computes a σ-OBDD D for F as follows.

At step i = 1, create the source of D, labelled by F, at level 0 of the diagram; if F (respectively, F = ), then identify the source with the 0-sink (respectively, 1-sink) of the diagram, otherwise make the source an x 1-node.

At step i+1 for i = 1,…,n−1, let v 1,…,v l be the x i -nodes at level i−1 of the diagram, respectively labelled F 1,…,F l . For j = 1,…,l and b = 0, 1, compute F j [x i = b], where x i = b denotes the assignment f:{x i }→{0, 1} mapping x i to b. If F j [x i = b] is equal to some label of an x i+1-node v already created at level i, then direct the b-edge leaving the x i -node labelled F j to v; otherwise, create a new x i+1-node v at level i, labelled F j [x i = b], and direct the b-edge leaving the x i -node labelled F j to v. If F j [x i = b], then identify v with the 0-sink of D, and if = F j [x i = b], then identify v with the 1-sink of D.

At termination, the diagram obtained computes F and respects σ. We analyze the runtime. At step i+1 (0 ≤ i < n), the nodes created at level i are labelled by CNFs of the form F[f], where f ranges over all assignments of {x 1,…,x i } not falsifying F; that is, these nodes correspond exactly to the {x 1,…,x i }-subterms st(F,{x 1,…,x i }) of F not containing the empty clause, whose number is bounded above by stw(F,σ). As level i is processed in time bounded above by its size times the size of level i−1, and |var(F)| levels are processed, the diagram D has size at most |var(F)|⋅stw(F,σ) and is constructed in time bounded above by a polynomial in |var(F)| and stw(F,σ). □

Corollary 5

A class of CNFs with the constructive few subterms property admits polynomial time compilation into OBDDs.

Proof

Let \(\mathcal {F}\) be a class of CNF formulas with constructive few subterms and let \(p \colon \mathbb {N} \to \mathbb {N}\) be a polynomial subterm bound of \(\mathcal {F}\). The algorithm, given a CNF F, computes in polynomial time an ordering of var(F) witnessing p with respect to F, and invokes the algorithm of Theorem 4, which runs in time polynomial in |var(F)| and stw(F,σ). Since stw(F,σ) ≤ p(size(F)) the overall runtime is polynomial in size(F). □

3.2 Variable Convex CNF formulas

In this section, we prove that the class of variable convex CNFs has the constructive few subterms property (Lemma 6), and hence admits polynomial time compilation into OBDDs (Theorem 7); as a special case, CNFs whose incidence graphs are cographs admit polynomial time compilation into OBDDs (Example 8).

Lemma 6

The class \(\mathcal {F}\) of variable convex CNFs has the constructive few subterms property.

Proof

Let \(F \in \mathcal {F}\), so that inc(F) is left convex, and let σ be an ordering of var(F) witnessing the left convexity of inc(F). Let π be any prefix of σ. Call a clause cF π-active in F if var(c)∩var(π)≠ and var(c)∩(var(F)∖var(π))≠. Let A denote the set of π-active clauses of F. For all cA, let var π (c) = var(c) ∩ var(π).

Claim

Let c,c A. Then, var π (c)⊆var π (c ) or var π (c )⊆var π (c).

Proof of Claim

Let c,c A. Assume for a contradiction that the statement does not hold, that is, there exist variables v,v var(π), vv , such that vvar π (c)∖var π (c ) and v var π (c )∖var π (c). Assume that σ(v) < σ(v ); the other case is symmetric. Since c is π-active, by definition there exists a variable wvar(F)∖var(π) such that wvar(c). It follows that σ(v ) < σ(w). Therefore, we have σ(v) < σ(v ) < σ(w), where v,wvar(c) and v var(c), contradicting the fact that σ witnesses the left convexity of inc(F). □

We now argue that there is a function g with domain A such that the image of A under g contains the set {A[f] | f does not satisfy A} of terms induced by assignments not satisfying A. Let L = {x, ¬x | xvar(π)} denote the set of literals associated with variables in var(π). The function g is defined as follows. For cA, we let

$$g(c) = \{ c^{\prime} \setminus L \:|\: c^{\prime} \in A, c^{\prime} \cap L \subseteq c \cap L \}.$$

Let f : var(π)→{0, 1} be an assignment that does not satisfy A. Let cA be a clause not satisfied by f such that var π (c) is maximal with respect to inclusion. We claim that g(c) = A[f]. To see this, let c A be an arbitrary clause. It follows from the claim proved above that either \(\text {\textsf {var}}_{\pi }(c) \subsetneq \text {\textsf {var}}_{\pi }(c^{\prime })\) or var π (c )⊆var π (c). In the first case, c is satisfied by choice of c. In the second case, c is not satisfied by f if and only if c LcL. The formula A[f] is precisely the set of clauses in A not satisfied by f, restricted to variables not in var(π), so g(c) = A[f] as claimed. Taking into account that an assignment might satisfy A, this implies

$$|\text{\textsf{st}}(A, \text{\textsf{var}}(\pi))| \leq |A| + 1 \leq \text{\textsf{size}}(F) + 1.$$

Let A = {cF | var(c)⊆var(π)} and A = {cF | var(c) ∩ var(π) = }, so that F = AA A . For every assignment f : var(π)→{0, 1} we have A [f] = A and either A [f] = or A [f] = {}, so the number of subterms of F under assignments to var(π) is bounded as

$$|\text{\textsf{st}}(F, \text{\textsf{var}}(\pi))| \leq 2 \cdot (\text{\textsf{size}}(F) + 1).$$

This proves that the class of variable convex CNFs has few subterms. Moreover, an ordering witnessing the left convexity of inc(F) can be computed in polynomial (even linear) time [4, 19], so the class of variable convex CNFs even has the constructive few subterms property. □

Theorem 7

The class of variable convex CNF formulas has polynomial time compilation into OBDDs.

Proof

Immediate from Corollary 5 and Lemma 6. □

Example 8 (Bipartite Cographs)

Let F be a CNF such that inc(F) is a cograph. Note that inc(F) is a complete bipartite graph. Indeed, cographs are characterized as graphs of clique-width at most 2 [7], and it is readily verified that if a bipartite graph has clique-width at most 2, then it is a complete bipartite graph. A complete bipartite graph is trivially left convex. Then Theorem 7 implies that CNFs whose incidence graphs are cographs have polynomial time compilation into OBDDs.

3.3 Bounded Treewidth CNF Formulas

In this section, we prove that if a class of CNFs has bounded treewidth, then it has the constructive few subterms property (Lemma 10), and hence admits polynomial time compilation into OBDDs (Theorem 11).

Let G be a graph. A tree decomposition of G is a triple \(\mathcal {T} = (T, \chi , r)\), where T = (V(T),E(T)) is a tree rooted at r and χ : V(T)→2V(G) is a labeling of the vertices of T by subsets of V(G) (called bags) such that

  1. 1.

    \(\bigcup _{t \in V(T)} \chi (t) = V(G)\),

  2. 2.

    for each edge u vE(G), there is a node tV(T) with {u,v}⊆χ(t), and

  3. 3.

    for each vertex vV(G), the set of nodes t with vχ(t) forms a connected subtree of T.

The width of a tree decomposition (T,χ,r) is the size of a largest bag χ(t) minus 1. The treewidth of G is the minimum width of a tree decomposition of G. The pathwidth of G is the minimum width of a tree decomposition (T,χ,r) such that T is a path.

Let F be a CNF. We say that inc(F) = (var(F),F,E) has treewidth (respectively, pathwidth) k if the graph (var(F)∪F,E) has treewidth (respectively, pathwidth) k. We identify the pathwidth (respectively, treewidth) of a CNF with the pathwidth (respectively, treewidth) of its incidence graph.

Let F be a CNF formula. If inc(F) has pathwidth k, then an ordering σ of var(F) is called a forget ordering for F if, with respect to an arbitrary linearization of some path decomposition of width k for inc(F), if the first bag containing v is less than or equal to the first bag containing v whenever σ(v) < σ(v ). A proof of the following lemma already appears, in essence, in works by Ferrara et al. [12, Theorem 2.1] and Razgon [23, Lemma 5].

Lemma 9

Let F be a CNF of pathwidth k − 1, and let σ be a forget ordering for F. Then stw(F, σ) ≤ 2k+1.

Proof

Let F be a CNF such that inc(F) has pathwidth k−1, let σ be a forget ordering for F, and let π be any prefix of σ.

Let v be the last variable in var(π) relative to the ordering σ, and let B be the first bag (in the linearization of P) that contains v. A clause cF is called π-active in F if var(c) ∩ var(π) ≠ and var(c) ∩ (var(F) ∖ var(π)) ≠ . Let ac(F,var(π)) denote the CNF containing the π-active clauses of F. Let

$$\begin{array}{@{}rcl@{}} C^{\prime} &=& \text{\textsf{ac}}(F,\text{\textsf{var}}(\pi)) \cap B,\\ C^{\prime\prime} &=& \{ c \in \text{\textsf{ac}}(F,\text{\textsf{var}}(\pi)) \mid c \in B^{\prime}\; \text{only if}\; B^{\prime}>B\; \text{in} P \}; \end{array} $$

in words, C contains π-active clauses in the bag B, and C contains π-active clauses occurring only in bags strictly larger than B in the total order of P. Clearly, C C = .

Claim

ac(F,var(π)) = C C .

Proof of Claim

First observe that a π-active clause c cannot occur only in bags strictly smaller than B in the total order of P. For otherwise, since var(c)∩(var(F)∖var(π))≠, let v var(c)∩(var(F)∖var(π)); if B is the first bag that contains v , then BB (by the choice of v), hence v is not contained in any bag strictly smaller than B, and the edge c v is not witnessed in P, a contradiction.

Thus π-active clauses either occur in B (including the case where they occur in B and in bags smaller or larger than B in P), or occur only in bags strictly larger than B in P. Thus, ac(F, var(π)) ⊆ C C ; the other inclusion holds by definition. □

From the claim, we get

$$|\text{\textsf{st}}(\text{\textsf{ac}}(F,\text{\textsf{var}}(\pi)), \text{\textsf{var}}(\pi))| \leq |\text{\textsf{st}}(C^{\prime},\text{\textsf{var}}(\pi))| \cdot |\text{\textsf{st}}(C^{\prime\prime},\text{\textsf{var}}(\pi))|\text{;}$$

thus, it suffices to bound above the size of the two sets on the right so that the product of the individual bounds is at most 2k. Let k = |C |. Obviously, we have \(|\text {\textsf {st}}(C^{\prime },\text {\textsf {var}}(\pi ))|\leq 2^{k^{\prime }}\). Let \(V^{\prime }=\bigcup _{c \in C^{\prime \prime }} \text {\textsf {var}}(c) \cap \text {\textsf {var}}(\pi )\) and let k = |V |.

Claim

V B.

Proof of Claim

Let c be a π-active clause occurring only in bags strictly larger than B in P. Let v var(c) ∩ var(π). By the choice of v and the properties of the forget ordering σ, it holds that the first bag containing v is less than or equal to B. Since B is the first bag that contains v, it holds that v B by the properties of P (the edge c v is witnessed in a bag strictly larger than B in P). □

Claim

\(|\text {\textsf {st}}(C^{\prime \prime },\text {\textsf {var}}(\pi ))|\leq 2^{k^{\prime \prime }}\).

Proof of Claim

Define an equivalence relation on var(π)-assignments as follows: For all f,f :var(π)→{0, 1}, ff if and only if, for all vV , f(v) = f (v). Since |V | = k , the equivalence relation has \(2^{k^{\prime \prime }}\) many equivalence classes. Moreover, if ff , then C [f] = C [f ], because var(C ) ⊆ V . The claim follows. □

Since C , V B and C V = , it holds that k + k = |C |+|V | ≤ |B| ≤ k. Hence,

$$|\text{\textsf{st}}(\text{\textsf{ac}}(F,\text{\textsf{var}}(\pi)), \text{\textsf{var}}(\pi))| \leq 2^{k^{\prime}} \cdot 2^{k^{\prime\prime}}=2^{k^{\prime}+k^{\prime\prime}} \leq 2^{k}\text{.}$$

Note that F is the disjoint union of ac(F,var(π)), clauses D F whose variables are all in var(π), and clauses D F whose variables are all outside var(π). Also, st(D , var(π))⊆{,{}}, and st(D , var(π)) = {D }. It follows that

$$\begin{array}{@{}rcl@{}} |\text{\textsf{st}}(F,\text{\textsf{var}}(\pi))| &\leq& |\text{\textsf{st}}(\text{\textsf{ac}}(F,\text{\textsf{var}}(\pi)), \text{\textsf{var}}(\pi))| \cdot |\text{\textsf{st}}(D^{\prime},\text{\textsf{var}}(\pi))| \cdot |\text{\textsf{st}}(D^{\prime\prime},\text{\textsf{var}}(\pi))| \\ &\leq& 2^{k+1}, \end{array} $$

and the statement is proved. □

Lemma 10

Let \(\mathcal {F}\) be a class of CNFs of bounded treewidth. Then \(\mathcal {F}\) has the constructive few subterms property.

Proof

Let c−1 be the treewidth bound of \(\mathcal {F}\) and let \(F \in \mathcal {F}\), so that the treewidth of inc(F) is at most c−1. We can compute a width c−1 tree decomposition of inc(F) in linear time O(size(F)) [3]. From this decomposition, we can compute a path decomposition of inc(F) of width at most (c−1)⋅ log|var(F) ∪ F| ≤ c⋅ log|var(F) ∪ F|−1 [2, Corollary 24] and a corresponding forget ordering of var(F) in polynomial time. By Lemma 9, the subterm width of F with respect to σ is at most 2c⋅log|var(F)∪F| = |var(F)∪F|cO(size(F)c). Thus \(\mathcal {F}\) has a polynomial subterm bound, and a witnessing ordering σ can be computed for each \(F \in \mathcal {F}\) in polynomial time. We conclude that \(\mathcal {F}\) has the constructive few subterms property. □

Theorem 11

Let \(\mathcal {F}\) be a class of CNFs of bounded treewidth. Then, \(\mathcal {F}\) has polynomial time compilation into OBDDs.

Proof

Immediate from Lemma 10 and Corollary 5. □

3.4 Almost Few Subterms

In this section, we use the language of parameterized complexity to formalize the observation that CNF classes “close” to CNF classes with few subterms have “small” OBDD representations [11, 13].

Let F be a CNF and D a set of variables and clauses of F. Let E be the formula obtained by deleting D from F, that is,

$$E=\{ c \setminus \{ l \in c \mid \text{\textsf{var}}(l) \in D \} \mid c \in F \setminus D \}\text{;}$$

we call D a deletion set of F with respect to E.

The following lemma shows that adding a few variables and clauses does not increase the subterm width of a formula too much.

Lemma 12

Let F and E be CNFs such that D is a deletion set of F with respect to E. Let π be an ordering of var(E) and let σ be an ordering of var(F) ∩ D. Then stw(F, σπ) ≤ 2kstw(E, π), where k = |D|.

Proof

Let V = Dvar(F) and C = DF, and let k = |V| and k = |C|. Let ρ be a prefix of σ π and X = var(ρ). From F = C∪(FC) we get

$$ |\text{\textsf{st}}(F, X)| \leq |\text{\textsf{st}}(C, X)|\: |\text{\textsf{st}}(F \setminus C, X)|. $$
(1)

By definition,

$$\text{\textsf{st}}(F \setminus C, X) = \{(F \setminus C)[f]\:|\:f \in \{0, 1\}^{X} \}.$$

Splitting the assignments f into two parts, we can write this as

$$ \text{\textsf{st}}(F \setminus C, X) = \{(F \setminus C)[f^{\prime}][f^{\prime\prime}]\:|\:f^{\prime} \in \{0, 1\}^{V \cap X}, f^{\prime\prime} \in \{0, 1\}^{X \setminus V} \}. $$
(2)

Let f ∈{0, 1}VX be an assignment. The formula E is obtained from FC by deleting variables in V. It follows that (FC)[f ]⊆E and thus

$$(F \setminus C)[f^{\prime}][f^{\prime\prime}] \subseteq E[f^{\prime\prime}]$$

for any assignment f ∈{0, 1}XV. This yields

$$ |\{(F \setminus C)[f^{\prime}][f^{\prime\prime}]\:|\:f^{\prime\prime} \in \{0, 1\}^{X \setminus V} \}| \leq |\{E[f^{\prime\prime}]\:|\:f^{\prime\prime} \in \{0, 1\}^{X \setminus V} \}|, $$
(3)

and the right hand side of this inequality corresponds to |st(E,XV)|. Combining this with (2), we obtain

$$\begin{array}{@{}rcl@{}} |\text{\textsf{st}}(F \setminus C, X)| &=& |\{ (F \setminus C)[f^{\prime}][f^{\prime\prime}]\:|\:f^{\prime} \in \{0, 1\}^{V \cap X}, f^{\prime\prime} \in \{0, 1\}^{X \setminus V} \}| \\ &\leq& 2^{k^{\prime}} |\{E[f^{\prime\prime}]\:|\:f^{\prime\prime} \in \{0, 1\}^{X \setminus V} \}| = 2^{k^{\prime}} \cdot |\text{\textsf{st}}(E, X \setminus V)| \\ &\leq& 2^{k^{\prime}}\cdot \text{\textsf{stw}}(E, \pi). \end{array} $$

Inserting into (1), we get

$$\begin{array}{@{}rcl@{}} |\text{\textsf{st}}(F, X)| \leq |\text{\textsf{st}}(C, X)|\cdot |\text{\textsf{st}}(F \setminus C, X)| \leq 2^{k^{\prime\prime}} \cdot 2^{k^{\prime}}\cdot \text{\textsf{stw}}(E, \pi) = 2^{k} \cdot \text{\textsf{stw}}(E, \pi), \end{array} $$

and the lemma is proved. □

In this section, the standard of efficiency we appeal to comes from the framework of parameterized complexity [11, 13]. The parameter we consider is defined as follows. Let \(\mathcal {F}\) be a class of CNF formulas. We say that \(\mathcal {F}\) is closed under variable and clause deletion if \(E \in \mathcal {F}\) whenever E is obtained by deleting variables or clauses from \(F \in \mathcal {F}\). Let \(\mathcal {F}\) be a CNF class closed under variable and clause deletion. The \(\mathcal {F}\)-deletion distance of F is the minimum size of a deletion set of F from any \(E \in \mathcal {F}\). An \(\mathcal {F}\)-deletion set of F is a deletion set of F with respect to some \(E \in \mathcal {F}\).

Let \(\mathcal {F}\) be a class of CNF formulas with few subterms closed under variable and clause deletion. We say that CNFs have fixed-parameter tractable OBDD size, parameterized by \(\mathcal {F}\)-deletion distance, if there is a computable function \(f:\mathbb {N} \rightarrow \mathbb {N}\) and a polynomial \(p: \mathbb {N} \rightarrow \mathbb {N}\) such that a CNF F with \(\mathcal {F}\)-deletion distance k has OBDD size at most f(k) p(size(F)).

Theorem 13

Let \(\mathcal {F}\) be a class of CNF formulas with few subterms closed under variable and clause deletion. CNFs have fixed-parameter tractable OBDD size, parameterized by \(\mathcal {F}\) -deletion distance.

Proof

Let \(\mathcal {F}\) be a class of CNF formulas with few subterms closed under variable and clause deletion. Since \(\mathcal {F}\) has few subterms, it has a polynomial subterm bound \(p: \mathbb {N} \rightarrow \mathbb {N}\). Let k be the \(\mathcal {F}\)-deletion distance of F. Let \(E \in \mathcal {F}\) be a formula such that the deletion distance of F from E is k, and let D a deletion set of F with respect to E. Let π be an ordering of var(E) witnessing p for E, and let σ be an ordering of var(F) ∩ D. By Lemma 12, the subterm width of F with respect to ρ = σ π is at most 2k p(size(E)), so by Theorem 4 there is a ρ-OBDD for F of size at most 2k p(size(E)) |var(F)|. □

The requirement that \(\mathcal {F}\) be closed under variable and clause deletion ensures that the deletion distance from \(\mathcal {F}\) is defined for every CNF. For our purposes, this can be assumed without loss of generality, as it is readily verified that if \(\mathcal {F}\) has few subterms with polynomial subterm bound \(p: \mathbb {N} \rightarrow \mathbb {N}\), then the closure of \(\mathcal {F}\) under variable and clause deletion has few subterms with the same polynomial subterm bound.

Analogously, we say that CNFs have fixed-parameter tractable time computable OBDDs (respectively, \(\mathcal {F}\)-deletion sets), parameterized by \(\mathcal {F}\)-deletion distance, if an OBDD (respectively, a \(\mathcal {F}\)-deletion set) for a given CNF F of \(\mathcal {F}\)-deletion distance k is computable in time f(k) p(size(F)).

Theorem 14

Let \(\mathcal {F}\) be a class of CNFs closed under variable and clause deletion satisfying the following:

  • \(\mathcal {F}\) has the constructive few subterms property.

  • CNFs have fixed-parameter tractable time computable \(\mathcal {F}\) -deletion sets, parameterized by \(\mathcal {F}\) -deletion distance.

Then CNFs have fixed-parameter tractable time computable OBDDs, parameterized by \(\mathcal {F}\) -deletion distance.

Proof

Given an input formula F, the algorithm first computes a smallest \(\mathcal {F}\)-deletion set D of F. Let E be the formula obtained from F by deleting D. The algorithm computes a variable ordering π of E witnessing a polynomial subterm bound \(p: \mathbb {N} \rightarrow \mathbb {N}\) of \(\mathcal {F}\). Since \(\mathcal {F}\) has the constructive few subterms property, this can be done in polynomial time. Next, the algorithm chooses an arbitrary ordering σ of var(F) ∩ D. By Lemma 12 we have stw(F,σ π) ≤ 2|D| stw(E,π) ≤ 2k p(size(E)), where k is the \(\mathcal {F}\)-deletion distance of F. Invoking the algorithm of Theorem 4, our algorithm computes and returns an OBDD for F in time polynomial in 2k p(size(E)) |var(F)|. Since size(E) ≤ size(F) there is a polynomial \(q: \mathbb {N} \rightarrow \mathbb {N}\) (independent of F) such that the last expression is bounded by 2k q(size(F)). □

Corollary 15 (Feedback Vertex Set)

Let \(\mathcal {F}\) be the class of formulas whose incidence graphs are forests. CNFs have fixed-parameter tractable time computable OBDDs parameterized by \(\mathcal {F}\) -deletion distance.

Proof

Given a graph G = (V,E), a set DV is called a feedback vertex set of G if the graph GD is a forest; here, GD is the graph (VD,E ) such that v wE if and only if v wE and v,wVD. For any CNF F, a subset D of its variables and clauses is a feedback vertex set of the incidence graph inc(F) if and only if it is a \(\mathcal {F}\)-deletion set, so a smallest feedback vertex set of inc(F) is a smallest \(\mathcal {F}\)-deletion set. There is a fixed-parameter tractable algorithm that, given a graph G and a parameter k, computes a feedback vertex set D of G such that |D| ≤ k or reports that no such set exists [6]. It follows that there is a fixed-parameter tractable algorithm, parameterized by the \(\mathcal {F}\)-deletion distance, for computing a smallest \(\mathcal {F}\)-deletion set of an input CNF. Moreover, the incidence graphs of formulas in \(\mathcal {F}\) have treewidth 1, so \(\mathcal {F}\) has the constructive few subterms property by Lemma 10. Clearly, \(\mathcal {F}\) is closed under variable and clause deletion. Hence, applying Theorem 14, we conclude that CNFs have fixed-parameter tractable time computable OBDDs parameterized by \(\mathcal {F}\)-deletion distance. □

4 Polynomial Size Incompilability

In this section, we introduce the subfunction width of a graph CNF, to which the OBDD size of the graph CNF is exponentially related (Section 4.1), and prove that expander graphs yield classes of graph CNFs of bounded degree with linear subfunction width, thus obtaining an exponential lower bound on the OBDD size for graph CNFs in such classes (Section 4.2).

4.1 Many Subfunctions

In this section, we introduce the subfunction width of a graph CNF (Definition 16), and prove that the OBDD size of a graph CNF is bounded below by an exponential function of its subfunction width (Theorem 17).

A graph CNF is a CNF F such that F = {{u,v}∣u vE} for some graph G = (V,E) without isolated vertices.

Definition 16 (Subfunction Width)

Let F be a graph CNF. Let σ be an ordering of var(F) and let π be a prefix of σ. We say that a subset {c 1,…,c e } of clauses in F is subfunction productive relative to π if there exist {a 1,…,a e }⊆var(π) and {u 1,…,u e }⊆var(F)∖var(π) such that for all i,j ∈ {1,…,e}, ij, and all cF,

  • c i = {a i , u i };

  • c≠{a i , a j } and c≠{a i , u j }.

The subfunction width of F, in symbols sfw(F), is defined by

$$\text{\textsf{sfw}}(F)=\min_{\sigma} \max_{\pi} \{ |M| \mid M\; \text{is subfunction productive relative to}\; \pi \},$$

where σ ranges over all orderings of var(F) and π ranges over all prefixes of σ.

Intuitively, in the graph G underlying the graph CNF F in Definition 16, there is a matching of the form a i u i with a i var(π) and u i var(F)∖var(π), i ∈ {1,…,e}; such a matching is “almost” induced, in that G can contain edges of the form u i u j , but no edges of the form a i a j or a i u j , i,j ∈ {1,…,e}, ij.

Theorem 17

Let F be a graph CNF. The OBDD size of F is at least 2sfw(F).

Proof

Let F be a graph CNF. Let D be any OBDD computing F, let σ be the ordering of var(F) respected by D, and let π be a prefix of σ such that {c 1,…,c e }⊆F is subfunction productive relative to σ and π and esfw(F). Let {a 1,…,a e }⊆var(π) and {u 1,…,u e }⊆var(F)∖var(π) be as in Definition 16, so that in particular c i = {a i , u i }, i ∈ {1,…,e}. Let

$$ L=\{ f \colon \text{\textsf{var}}(\pi) \to \{0, 1\} \mid f(v)=1\; \text{for all}\; v \not\in \{a_{1},\ldots,a_{e}\} \}; $$
(4)

in words, L is the set containing, for each assignment of {a 1,…,a e }, its extension to var(π) that sends all variables in var(π)∖{a 1,…,a e } to 1.

Claim

Let fL and let cF be such that cvar(π). Then, f satisfies c.

Proof of Claim

Otherwise, since F is a graph CNF and by (4) the only variables sent to 0 by f are in {a 1,…,a e }, it is the case that c = {a i , a j } for some i,j ∈ {1,…,e}, ij, which is impossible by the second item in Definition 16. □

Claim

Let f and g be distinct assignments in L. Then, f and g lead to different nodes in D.

Proof of Claim

Let f and g be distinct assignments in L. By the previous claim, f and g satisfy each clause in F whose variables are contained in var(π). Thus, the computation paths activated by f and g in D lead to some nodes in D distinct from the 0-sink of D.

Since f and g are distinct assignments in L, they differ on at least one variable in {a 1,…,a e }; say without loss of generality that f(a 1) = 0≠1 = g(a 1). Let h : var(F)∖var(π)→{0, 1} be such that h(v) = 0 if and only if v = u 1. We show that that fh does not satisfy F, but gh satisfies F; it follows that f and g lead to different nodes in D.

Clearly, fh does not satisfy F, because by Definition 16 the clause c 1 = {a 1, u 1} is in F, and by construction f(a 1) = h(u 1) = 0. We show that gh satisfies F.

Let cF. If cvar(π), then g satisfies c by the previous claim. If cvar(F)∖var(π), then h satisfies c, because c contains two distinct variables, hence at least one of its variables differs from u 1 and is assigned to 1 by h. Otherwise, cvar(π)≠ and c∩(var(F)∖var(π))≠. If c contains a variable in var(F)∖var(π) distinct from u 1, then h satisfies c. Otherwise, c = {a,u 1} for some avar(π). In this case, if a ∈ {a 1,…,a e }, then a = a 1 by Definition 16, and g satisfies c via g(a 1) = 1. Else, avar(π)∖{a 1,…,a e } and by definition of L we have g(a) = 1, so that again g satisfies c. □

It is readily observed that |L|=2e. Then, by the above claims, the computation paths activated by the assignments in L lead to 2e different nodes in D. We observed that esfw(F). Then D has size at least 2sfw(F). It follows that the OBDD size of F is at least 2sfw(F). □

4.2 Bounded Degree

In this section, we use the existence of a family of expander graphs to obtain a class of graph CNFs with linear subfunction width (Lemma 18), thus obtaining an exponential lower bound on the OBDD size of a class of CNFs of bounded degree (Theorem 19).

Let n and d be positive integers, d ≥ 3, and let 𝜖<1 be a positive real. A graph G = (V,E) is a (n,d,𝜖)-expander if G has n vertices, degree at most d, and for all subsets WV such that |W| ≤ n/2, the inequality

$$ |\text{\textsf{neigh}}(W)| \geq \epsilon|W| $$
(5)

holds. It is known that for all integers d ≥ 3, there exists a real 0 < 𝜖, and a sequence

$$ \{ G_{i} \mid i \in \mathbb{N} \} $$
(6)

such that G i = (V i , E i ) is an (n i , d,𝜖)-expander (\(i \in \mathbb {N}\)), and n i tends to infinity as i tends to infinity [1, Section 9.2].

Lemma 18

Let F be a graph CNF whose underlying graph is an (n,d,𝜖)-expander, where n ≥ 2, 𝜖>0, and d ≥ 3. Then

$$\text{\textsf{sfw}}(F) \geq \frac{\epsilon }{16d}\: n\text{.} $$

Proof

Let σ be any ordering of var(F) and let π be the length ⌊n/2⌋ prefix of σ.

Claim

There exists a subset {c 1,…,c l } of clauses of F, subfunction productive relative to π, such that \(l \geq \frac {\epsilon }{16d}\, n\).

Proof of Claim

We will construct a sequence (a 1, b 1),…,(a l , b l ) of pairs (a i , b i )∈var(π)×(var(F)∖var(π)) of vertices such that a i neigh(a j ), and such that {a i , b j } ∈ F if and only if i = j, for 1 ≤ i, jl. Letting c i = {a i , b i } for 1 ≤ il, this yields a set {c 1,…,c l } of clauses that are subfunction productive relative to π. Assume we have chosen a (possibly empty) sequence (a 1, b 1),…,(a j , b j ) of such pairs. For a vertex v in the underlying graph of F, let N[v] = {v}∪neigh(v) denote its solid neighborhood. Let \(V = \bigcup _{i=1}^{j} (N[a_{i}] \cup N[b_{i}])\) and A = var(π)∖V. Then |A| ≤ n/2 and we can use the expansion property (5) to conclude that |neigh(A)| ≥ 𝜖|A|. Let B = neigh(A)∖V. If both A and B are nonempty we pick (a j+1, b j+1)∈A×B so that a j+1 b j+1 is an edge. We have Avar(π) as well as Bvar(F)∖(AV)⊆var(F)∖var(π), so (a j+1, b j+1)∈var(π)×(var(F)∖var(π)). By construction, {a j+1, b j+1} is a clause in F; moreover, a i neigh(b j+1) as well as b i neigh(a j+1), for 1 ≤ ij. We conclude that the sequence (a 1, b 1),…,(a j+1, b j+1) has the desired properties. Otherwise, if either of the sets A or B is empty, we stop.

We now give a lower bound on the length l of a sequence constructed in this manner. Let (a 1, b 1),…,(a j , b j ) be such that one of the sets A and B as defined in the previous paragraph is empty, so that j = l. Since the degree of the underlying graph is bounded by d, we have |V| ≤ 2d j and |A| ≥ ⌊n/2⌋−2d j. If A is empty, we must have 2d j ≥ ⌊n/2⌋ and thus

$$ j \geq \left\lfloor \frac{n}{2} \right\rfloor\: \frac{1}{2d} \geq \frac{n-1}{4d} \geq \frac{n}{8d}, $$
(7)

where the last inequality follows from n ≥ 2. Now suppose B is empty. We have |B| ≥ 𝜖|A|−|V|, so

$$0 \geq \epsilon (\lfloor n/2 \rfloor - 2dj) - 2dj = \epsilon (\lfloor n/2 \rfloor) - 2dj (1+\epsilon). $$

From this, we get

$$ j \geq \frac{\epsilon (n - 1)}{4d (1+\epsilon)} \geq \frac{\epsilon (n - 1)}{8d} \geq \frac{\epsilon n}{16d}. $$
(8)

Here, the last inequality again follows from n ≥ 2. Recalling that 𝜖<1 and taking the minimum of the bounds in (7) and (8), we obtain the lower bound stated in the claim. □

The lemma is an immediate consequence of the above claim. □

Theorem 19

There exist a class \(\mathcal {F}\) of CNF formulas and a constant c>0 such that, for every \(F \in \mathcal {F}\), the OBDD size of F is at least 2csize(F). In fact, \(\mathcal {F}\) is a class of read 3 times, monotone, 2-CNF formulas.

Proof

Let \(\mathcal {G}=\{ G_{i} \mid i \in \mathbb {N} \}\) be a family of graphs as in (6), so that for all \(i \in \mathbb {N}\) the graph G i = (V i , E i ) is a (n i , d,𝜖)-expander (n i ≥ 2, d = 3, 𝜖>0) and n i as i. Using the expansion property, it is readily verified that each graph in \(\mathcal {G}\) is connected; in particular, it does not have isolated vertices. Therefore \(\mathcal {F}=\{ E_{i} \colon i \in \mathbb {N} \}\) is a class of graph CNFs; in fact, a class of read 3 times, monotone, 2-CNF formulas. By Lemma 18 each \(F \in \mathcal {F}\) satisfies

$$\text{\textsf{sfw}}(F) \geq \frac{\epsilon}{16d} \: |\text{\textsf{var}}(F)|.$$

Since the underlying graph of F has degree at most d and |var(F)| vertices, the formula F contains at most d |var(F)| clauses (each variable occurs in at most d clauses), and each clause contains at most 2 literals. That is, 2d|var(F)| ≥ size F, and thus

$$\text{\textsf{sfw}}(F) \geq \frac{\epsilon}{16d}\:|\text{\textsf{var}}(F)| = \frac{\epsilon}{32d^{2}} \:2d|\text{\textsf{var}}(F)| \geq \frac{\epsilon}{32d^{2}}\: \text{\textsf{size}}{F}.$$

Setting c = 𝜖 / 32d 2, it follows from Theorem 17 that the OBDD size of F is at least 2c⋅|sizeF|. □

5 Conclusion

In closing, we briefly explain why completing the classification task laid out in this paper (and thus closing the gap depicted in Fig. 1) seems to require new ideas.

On the one hand, our upper bound for variable convex CNFs appears to push the few subterms property to its limits – natural variable orderings cannot be used to witness few subterms for (clause) convex CNFs and CNF classes of bounded clique-width. On the other hand, our lower bound technique based on expander graphs essentially requires bounded degree, but the candidate classes for improving lower bounds in our hierarchy, bounded clique-width CNFs and beta acyclic CNFs, have unbounded degree. In both cases, imposing a degree bound leads to classes of bounded treewidth [18] and thus polynomial bounds on the size of OBDD representations.