Regular resolution for CNFs with almost bounded one-sided treewidth
Andrea Cali, Igor Razgon

TL;DR
This paper introduces a new tree decomposition for CNFs and shows that regular resolution complexity is fixed-parameter tractable for CNFs close to bounded one-sided incidence treewidth, advancing understanding in proof complexity.
Contribution
It defines a one-sided incidence tree decomposition for CNFs and proves FPT bounds on resolution size for CNFs near bounded one-sided treewidth, generalizing previous classes.
Findings
Resolution size is FPT for CNFs with small p and k
Introduces a new one-sided incidence tree decomposition
Generalizes known classes of bounded incidence treewidth CNFs
Abstract
We introduce a one-sided incidence tree decomposition of a CNF . This is a tree decomposition of the incidence graph of where the underlying tree is rooted and the set of bags containing each clause induces a directed path in the tree. The one-sided treewidth is the smallest width of a one-sided incidence tree decomposition. We consider a class of unsatisfiable CNF that can be turned into one of one sided treewidth at most by removal of at most clauses. We show that the size of regular resolution for this class of CNFs is FPT parameterized by and . The results contributes to understanding the complexity of resolution for CNFs of bounded incidence treewidth, an open problem well known in the areas of proof complexity and knowledge compilation. In particular, the result significantly generalizes all the restricted classes of CNFs of bounded…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · Natural Language Processing Techniques · Logic, programming, and type systems
Regular resolution for CNFs with almost bounded one-sided treewidth
Andrea Calì and Igor Razgon The second author would like to thank Stefan Szeider and Friedrich Slivovsky for very useful personal communication.
Abstract
We introduce a one-sided incidence tree decomposition of a CNF . This is a tree decomposition of the incidence graph of where the underlying tree is rooted and the set of bags containing each clause induces a directed path in the tree. The one-sided treewidth is the smallest width of a one-sided incidence tree decomposition.
We consider a class of unsatisfiable CNF that can be turned into one of one sided treewidth at most by removal of at most clauses. We show that the size of regular resolution for this class of CNFs is FPT parameterized by and . The results contributes to understanding the complexity of resolution for CNFs of bounded incidence treewidth, an open problem well known in the areas of proof complexity and knowledge compilation. In particular, the result significantly generalizes all the restricted classes of CNFs of bounded incidence treewidth that are known to admit an FPT sized resolution.
The proof includes an auxiliary result and several new notions that may be of an independent interest.
1 Introduction
It is well known that an unsatisfiable CNF has a resolution proof of unsatisfiability of size FPT in the primal treewidth of . On the other hand, it is a well known open problem whether there is an FPT sized resolution parameterized by the incidence treewidth of [7]. The only progress related to this problem we are aware of (besides the FPT upper bound parameterized by the primal treewidth) is establishing that resolution is FPT if parameterized by incidence pathwidth [10]. In this paper we establish an FPT upper bound significantly generalizing the parameterization by both primal treewidth and incidence pathwidth.
First of all, we consider the regular resolution rather than the full-fledged one. Second, we introduce the notion of a one-sided treewidth of a CNF . This is the smallest width of a one-sided tree decomposition of the incidence graph of meaning that the underlying tree is rooted and the set of bags containing each clause induces a directed path in the tree. Suppose that has clauses such that after their removal, the resulting CNF has one-sided treewidth at most . We prove that in this case, unsatisfiability of can be proved by regular resolution of size . Intuitively speaking the regular resolution is FPT for CNFs whose one-sided treewisth is almost bounded. As we said above, the considered class of CNFs significantly generalizes all the restricted classes of CNFs of bounded incidence treewidth for which an FPT upper bound on resolution is known. The result also carries an important message for researchers attempting to prove an XP lower bound for the general case: the target class of CNFs must be involved in the sense that in any rooted tree decomposition of the incidence graph of a CNF of this class there must be many clauses each of them appearing in bags of more than one branch of the underlying tree.
An important part of the proof is an auxiliary result stating that transitional resolution is FPT for CNFs of bounded one-sided treewidth. The transitional resolution is a novel generalization of regular resolution that may be of an independent interest so let us consider it in more detail. First of all, throughout this paper, we regard regular resolution as a read-once branching program with clauses associated with the sinks [12]. The semantic of this representation is the following. Let be a sink of and be the clause associated with . Let be an assignment ’carried’ by a path from the source of to . Then must falsify . In the transitional resolution, we set aside a subset of clauses of and call them transitional clauses. In a transitional resolution, the sinks may be non-transitional and transitional ones. A non-transitional sink is associated with a non-transitional clause with the same semantic as described above. A transitional sink is associated with a subset of and the semantic is as follows. Let be an assignment carried by a path from the source of to . Then falsifies all the clauses of and there is an extension of that satisfies the remaining clauses of .
To understand the motivation, let be a proper subset of the set of variables of . Consider , a CNF obtained by projection to of all the clauses having at least one occurrence of a variable of . Suppose is unsatisfiable. Can we use a regular resolution proof for as a building block for the regular resolution proof for ? Yes if it is transitional resolution! The transitional clauses are those that have occurrences of both and . Indeed, a non-transitional clause of is also a clause of . Therefore, a sink labelled with can also be a sink for a regular resolution for . However, each transitional clause of is a proper subset of a clause of . Therefore, if such a clause is falsified, further reasoning is needed to derive a falsified clause for the whole . The transitional sinks provide all the required information for this reasoning. They serve as ’interface’ or ’connection ports’ that allow to ’plug in a resolution for into a resolution for . This approach is critical for our main result and we believe it will be useful in other contexts.
Let us now state formally our result regarding the transitional resolution. Let be an unsatisfiable CNF of one-sided treewidth and with transitional clauses. Then there is a transitional resolution proof for of size . Put it differently, the resolution size remains FPT in only if .
Both results of this paper are obtained constructively, that is we demonstrate an algorithm for constructing the required resolution subject to the size upper bound. The transitional resolution is constructed using top-down dynamic programming. This means that we define local DAGs associated with the nodes of the tree of the underlying tree decomposition, the sinks are associated with sources of local DAGs of children of . This approach is quite standard in knowledge compilation [8, 13, 9]. The difficulty of handling transitional clauses is that we need to implement the conjunction in the FBDD style [2]. This may potentially lead to exponential explosion. The most non-trivial aspect of the proof is to demonstrate that the explosion is tamed and the required upper bound is indeed achieved.
The regular resolution witnessing the main result is constructed using bottom up dynamic programming: the local DAGs are associated with prefixes of the postorder traversal of the underlying tree. To obtain the desired upper bound, we use the following nice fact. If for each non-leaf node of a rooted binary tree , the number of nodes in the left subtree is greater than or equal to the number of nodes in the right subtree then the subgraph induced by each prefix of the postorder traversal is the union of at most vertex-disjoint subtrees of . Bottom-up dynamic programming has been used, example in [5] and [6]. However, we are not aware of other results utilizing the above combinatorial statement about postorder traversals.
Let us now overview related results that we have not considered so far. Arguably, the best known parameter in the area of proof complexity is the width of a resolution proof. A classical result [3] demonstrates that the size of a resolution proof is exponential in its width. It was open for some time whether the resolution size is FPT in its width until it was resolved negatively in [1]
The equivalent definition of regular resolution as read-once branching program connects it to the area of knowledge compilation. On the surface, regular resolution is very similar to free binary decision diagram (FBDD): the difference only in the labelling of sinks and the corresponding semantics of source-sink paths. However, regular resolution is in fact much closer to decision decomposable negation normal forms (Decision DNNF) [13]: they both can easily handle conjunction of two variable disjoint CNFs. Decision DNNF simply has a decomposable decision gate at its disposal. Regular resolution does not have luxury of using such a gate but instead it has a not less impressive power of forgetting. Indeed if is unsatisfiable and is variable-disjoint with then one of them is unsatisfiable. If, say is unsatisfiable then a regular resolution proof for is in fact such a proof for the whole , so that can simply be discarded! On the contrast, FBDDs do not possess the gift of forgetting and have no conjunction gate at their disposal. As a result they cannot even efficiently represent CNFs of bounded primal treewidth [14]. It is also interesting to note that it is open whether CNFs of bounded incidence treewidth can be represeted by FPT-sized Decision DNNFs.
We conclude the literature overview by saying that investigation of new graph parameters is currently a bustling research direction. Notable examples include twin-width [4] and several variants of maximum matching width [11], the latter set of parameters is known to be of a significant relevance for knowledge compilation [15].
We conclude the introduction by overviewing the structure of the paper. There are five sections in the main body of the paper and three sections in the appendix. Section 2 is preliminaries. The auxiliary result (Theorem 1) is proved in Section 3. The main result (Theorem 2) is proved in Section 4. The conclusion is provided in Section 5. The proofs of both theorems consist of establishing correctness of the dynamic programming constructions and proving upper bounds on their sizes. While the latter is neat and compact, the former is rather tedious. Therefore, in the main body of the paper we provide only sketches of proofs of Theorems 1 and 2 postponing detailed proofs to the appendix that is structured as follows. Section A provides theorems essentially reducing the correctness proofs to proving that the local DAGs satisfy certain properties. A detailed proof of Theorem 1 is provided in Section B and a detailed proof of Theorem 2 is provided in Section C of the appendix.
2 Preliminaries
2.1 Set of literals, CNFs, and DAGs.
In this paper when we consider a set of literals of Boolean variables, we mean that is well formed in the sense that it does not contain both positive and negative literals of the same variable. A variable occurs in if either or . In the former case, we say that occurs positively or has a positive assignment in . In the latter case, we say that occurs negatively or has a negative assignment in .
We use to denote the set of variables of an object which may be a set of literals, a CNF, a graph with sets of variables associated with its vertices (e.g. a tree decomposition) or a branching program.
We consider a CNF as a set of clauses and each clause is just a set of literals. Let be a clause and let be a set of literals. We say that satisfies if . If does not satisfy then where . We denote by the set of all such that is a clause of that is not satisfied by . A CNF is a subCNF of if and the subCNF is modular if .
For a set of literals and a set of variables, we denote by the projection of to that is such that .
The primal graph of a CNF has vertices corresponding to and two variables are adjacent if they occur in the same clause. The incidence graph of a CNF has vertices corresponding to the variables and clauses of and there is an edge between and if occurs in .
In this paper we often consider directed acyclyc graphs (DAGs) (including rooted binary trees). For a DAG and , we denote by the subgraph of including and all the vertices reachable from .
2.2 One-sided tree decomposition
A tree decomposition of a graph is a pair where is a tree, is a set of bags associated with each node . The bags must obey the rules of (i) union () (ii) containment () and (iii) connectivity (for each vertex , the set of nodes whose bags contain induces a connected subgraph of ). The width of the tree decomposition is the largest size of a bag minus one. The treewidth of a graph is the smallest width of its tree decomposition.
In this paper we will consider tree decompositions for the incidence graph of a CNF (incidence tree decompositions of ). In this case, for each node of the underlying tree, is partitioned into and respectively corresponding to variables and clauses.
Definition 1
Let be a rooted incidence tree decomposition of . For each clause of , let denotes the set of nodes of whose bags contain . Then is one-sided if for each , is a directed path.
The one-sided (incidence) treewidth of is the smallest width of a one-sided incidence tree decomposition of .
It is not hard to see that the one-sided treewidth of ’dominates’ both the incidence pathwidth and the primal treewidth of in the following sense.
Proposition 1
The onde-sided treewidth of does not exceed the incidence pathwdith of and is at most the primal treewidth of plus one.
Proof. An incidence path decomposition can be turned into a one-sided one by making an end vertex of the underlying path the root.
Let be a primal tree decomposition of . Apply the following standard transformation. For each non-empty clause , identify a node of such that includes all the variables of . Introduce a new node connected to and make the bag of .
Clearly we obtained an incidence tree decomposition of of width at most the width plus one where each clause is present in at most one node. Therefore, whatever node of the underlying tree is made the root, the resulting decomposition will be one-sided.
Proposition 2
Let be a one-sided incidence tree decomposition of . Then can be replaced by a one sided incidence tree decomposition of with the number of bags linear in , whose width is not larger than that of and being a binary tree.
Proof. First we produce a tree decomposition of a linear size while keeping one-sidedness. This is done is the following two stages.
Remove each leaf whose bag is a subset of its parent. 2. 2.
For each non-root node having one child such that where is the parent of , contract .
Note that the result of the first step is that each leaf is associated with a unique element of . This ensures that the number of leaves is at most . The same argument bounds the number of non-root nodes with one child. Taking into account that the number of non-root nodes with two or more children is not greater than the number of leaves and, adding the non-root nodes implies that the total number of nodes is at most . Clearly, these transformations do not violate the read-onceness.
If is binary we are done. Otherwise, let be a node of with children such that . We obtain a one-side incidence tree decomposition of of width not larger than that of by applying the following transformation.
Introduce a new node . 2. 2.
Let be the children of and the children of .
Clearly by repeated application of this transformation we will eventually obtain an underlying tree which is binary. It remains to specify the content of the bags of the nodes involved. The bags of are exactly the same as for . The bag for is constructed as follows.
. 2. 2.
.
Let . By the one-sidedess property, does not occur n bags of any . Therefore, the connectedness property regarding is preserved. The rest of the required properties of a one-sided incidence tree decomposition are easy to verify by direct inspection.
Note that this transformation does change the number of leaves nor the number of nodes having one child. Hence the counting argument made before the transformation applies and we still have the upper bound of .
The notions of and naturally extend to structures containing several nodes of . For example, if is a subtree then , If , we may also say that is contained in . Also, if is a subset of subtrees of then .
2.3 Postorder traversals
Let be a rooted binary tree. For each non-leaf node we identify its left and right children as follows. If has only one child then is considered the left child of . If has two children and and, say, then is the left child of and is the right child of . Finally, then the left and the right children are assigned in an arbitrary (but fixed) way.
Having defined the left and right children for the non-leaf nodes of , we can define the permutation of the nodes of explored according to the postorder traversal (left subtree of , if any, is recursively traversed then the right subtree, if any, is recursively traversed, then the root is traversed).
Let be a prefix of . It is not hard to see that 111Here and in several other places we slightly abuse notation by identifying a sequence with its underlying set. The correct interpretation will always be clear from the context. is the union of vertex disjoint trees (meaning subtrees of rooted by some vertices ). We denote the set of these trees by .
Proposition 3
Let be two distinct elements of Then one of them, say, occurs before the other in the following sense: all the nodes of precede in all the nodes of .
Proof. By induction on The statement is clearly true for so assume that .
Let be the root of . If has only one child, te statement is easily seen to hold by the induction assumption. So, assume that has two children (the left child) and (the right child). Denote the respective postorder traversals for and by and . Clearly . Assume that . Then is the only elements of and hence the statement is vacuously true. Next, assume that . It follows that and hence the statement holds by the induction assumption.
Assume now that . This means that is a prefix of . Let . Clearly and it is the largest element of according to the order specified in the statement of the proposition. Moreover, are all in . The order between them exists by the induction assumption. It remains to say that the order between the trees in is the same as in .
Proposition 3 naturally defines a linear order on . In what follows, if we say that for , we mean that occurs before in as specified in Proposition 3.
Definition 2
Let be a proper prefix of and let be its immediate successor (that is, the node immediately following in ). If is a leaf of , we call an expanding node. Otherwise is a contracting node.
Proposition 4
Let be a prefix of . Then .
Proof. By induction on The statement is clearly true for so assume that .
Let be the root of . If has only one child, the statement is easily seen to hold by the induction assumption. So, assume that has two children (the left child) and (the right child). Then the reasoning is done through the following case analysis.
. This is possible only if But in this case . 2. 2.
. It follows that and hence the statement holds regarding by the induction assumption and hence holds regarding . 3. 3.
Assume that . Let be the subsequence of consisting of all elements of . Clearly (the subscript si used to emphasize that the set is considered w.r.t. rather than . By the induction assumption, . By selection of the left and right children and hence .
Finally, we introduce two more notations. For a set of subtrees of , we denote the set of roots of by . Also, the last tree of according to the above order is denoted by .
2.4 Regular resolution and -based functions
The compressed decision tree defined below is essentially a read-once branching program where the sinks are not labelled and no related semantics is provided. In terms of programming languages, this notion can be thought of as an abstract class. We find this generic notion very handy as we can then easily define several related models by simply specifying labelling of links and providing constraints on source-sink paths.
Definition 3** (Compressed Decision Tree)**
A Compressed Decision Tree (CDT) is a DAG with a single source with the following additional properties.
*Each non-terminal node is associated with a variable. * 2. 2.
Each non-terminal node has exactly two out-neighbours, one of them is labelled with , the other is labelled with , where is the variable labelling . 3. 3.
Read-onceness* property: on each directed path of , no variable occurs twice as a literal labelling an edge of .*
For a directed path of , we denote by the set of literals labelling the edges of . We sometimes refer to as the assignment carried by .
If the underlying graph of is a tree then is called a decision tree. If is the set of all assignments carried by root-leaf paths of . we sometimes say that is a decision tree over .
Definition 4** (Regular resolution)**
A regular resolution (RR) of a CNF is a CDT with clauses associated with the sinks such that the following holds.
Let be a sink of , let be a clause associated with and let be a path from the root to . Then falsifies .
Definition 5** (-based functions)**
Let be a CNF. A -based function is a function with the domain and, for each , . We denote by the set of all clauses such that there is a clause such that .
We identify two special -based functions. The first is the function for each . where and is mapped to . The second is the identity function with and for each , .
We also say that a -based function is unsatisfiable if is unsatisfiable.
Definition 6
Let and be two -based functions such that for each , . The union is a function with , for each , and for each , . Functions and are defined accordingly. 2. 2.
Let be a -based function and let be a set of literals. Let be the subset of consisting of all clauses such that is satisfied by . Them is a function whose domain is and for each , . 3. 3.
Let be a -based function . Then the restriction of to is a function with and for each , . We also sometimes refer to as a subfunction of . Another way to define a restriction is to specify the set of clauses to be removed from the domain. The resulting function is denoted by .
Remark. Let be a -based function and let . Then .
Definition 7** (Functional regular resolution)**
A Functional Regular Resolution (FRR) is a CDT with -based functions associated with (labelling) its root and its sinks so that the following holds. Let be the function associated with the root of . Let be a sink of and let be the function associated with . Then . Moreover, let be a root- path. Then for each , does not satisfy and . is a falsifying FRR is each sink of is labelled with for some .
FRR is a more general structure than RR due to the following easy to establish argument.
Proposition 5
Let be a falsifying FRR for . Then a RR for can be obtained from by changing each label of a sink just to .
In light of the above proposition, we will construct FRRs instead of RRs in the subsequent sections. The benefit of this increased generality is that a composition of FRRs is easier to describe formally that a composition of RRs because in the former case we do not need to change the labels of sinks. Indeed, suppose that is an FRR for a -based function and let be a non-root node. Let be an assignment carried by a path from the source of to . Then it can be shown that is an FRR for . On the other hand, is also an RR for (subject to changing all the sink labels to . However, in this case is not a RR for because the labels of the sinks are the clauses of not of !
3 Regular resolution with transitional clauses
Throughout this section is an unsatisfiable CNF and is a one-sided tree decomposition of the incidence graph of having width at most . In light of Proposition 2, we assume that is a binary tree. To define a transitional resolution we need to identify for the given CNF a subset of clauses that we call transitional. We need two auxiliary definitions.
Definition 8** (Falsifier)**
Let be a -based function and let . An assignment is a -falsifier (for ) if the following conditions hold.
for each , is falsified by . 2. 2.
There is a witnessing extension of such that for each , satisfies .
Definition 9** (Transition function)**
A -based function is called transitional if and . We refer to a transition function with by .
Definition 10** (Transitional resolution)**
A transitional resolution (TRes) is a CDT whose source is associated with a -based function and the sinks are partitioned into two types of nodes: terminal and transitional ones.
Each terminal node is associated with a function for some and for each path from the source to , falsifies .
Each transitional node is associated with a transitional function with such that for each path from the source to , is a -falsifier.
* is a TRes for if .*
Theorem 1
Let . Then there is a transitional resolution for of size in case and in case . In other words, if , the size if FPT in only.
In the next section, we use a TRes as a building block for construction of the FRR witnessing the main result (Theorem 2). Theorem 1 provides an upper bound on the size of the building blocks. In fact, the TRes occurring in the proof of Theorem 2 has its sets of transitional clauses of size at most , so the full power of Theorem 1 as expressed in its last sentence will not be needed. The idea of the use of a TRes for construction of FRRs may be of an independent interest, therefore, we briefly describe the underlying intuition.
Let be a partition of . The idea is to construct first a resolution for a -based function mapping clauses to their projections to (of course the only clauses for which these projections are non-empty) and then to somehow extend the resolution to one for the whole .
can be seen as the disjoint union of sets , where consists of clauses whose sets of variables have non-empty intersections with both and and for each , . Let be a -based function with and for each , . What is a possible use of for the construction of an FRR for ? First, if is satsfiable, then is an unsatisfiable set of clauses, so we can construct instead of . If is unsatisfiable then the situation is more complicated.
Let be an falsifying FRR for . Can it be extended to a falsifying FRR for ? No, not quite. A sink labelled with for can indeed be a sink for a falsifying FRR for . But if , this sink needs to be further expanded. However, the information providced by the sink (falsification of is nit sufficient for such an expansion. The issue of ’information transfer’ is completely resolved by the use of transitional resolution. Indeed, suppose that is a transitional resolution for with being the set of transitional clauses. Then the clauses of only take part in the labels for transitional sinks and these labels provide sufficient information for their further expansion. Indeed, let be such a sink and assume that it is labelled with for some . This means that each assignment carried by a source- path of can be extended to an assignment over the whole that satisfies all the clauses of but falsifies the projections to of the clauses of . Let now be a -based function with domain mapping each clause of the domain to its projection to . From being a label of , we conclude that is unsatisfiable. Let be a falsifying FRR for . Identify the source of with and perform the same operation for the rest of transitional sinks of (of course, w.r.t. their corresponding labels). It can be shown that the resulting construction is a falsifying FRR for . In the actual construction in the next section, the expansions of different transitional sinks are not necessarily vertex disjoint, thus the construction is made more compact.
In fact what we need in the next section is the following corollary of Theorem 1.
Corollary 1
Let be a -based unsatisfiable function. Then there is a transitional resolution of of size as specified in Theorem 1.. Moreover, the set of variables of this transitional resolution is a subset of
Proof. Let . First we show that the one-sided trewidth of cannot be large than . Indeed, , therefore the one-sided treewidth of s at most . Now, replace each with (removing double occurrences in case the mapping is not one to one). Clearly, the tree decomposition for (after removal of the set of variables not occurring in ) applies to .
We are going to consider a transitional decomposition for . However, we need to define the set of transitional clauses for . In order to do this, we need to look at the set for each . consists precisely of clauses for which . As clauses of correspond to a partition of a subset of , . Therefore by Theorem 1, there is a transitional resolution for with being the set of transitional clauses and whose size is upper bounded as specified in Theorem 1 by and
We transform into a transitional resolution for w.r.t by simply changing the labelling of the sinks in the following way.
- •
A label is replaced by where is an arbitrary but fixed clause in (note that since is non-transitional for , such a clause must exist).
- •
A label is replaced with where .
We now need to verify that is indeed a transitional resolution Let be a sink of and let be a path from the source to . Assume first that, in , is associated with . This means that falsifies . In , is associated with , hence falsifies . Next we assume that, in , is associated with . We observe that that falsifies for each simply because by definition of and falsifies all the clauses of by definition of . Next, there is an extension of satisfies for each . Now, we claim that satisfies for each simply because by definition of as a ’saturated’ set. We have thus verified that is indeed a transitional resolution.
Finally, we note that the proof of Theorem 1 uses only variables of simply by construction of local graphs for the resolution, This means that, by construction .
3.1 Proof of Theorem 1: Informal overview
It is instructive to first assume that the number of transitional clauses is zero. In this case, we associate with each node an FPT number of -based functions. Each such a function is ’induced’ by an assignment to the variables lying in the bags of the ancestors of . Then we construct a DAG where, for each such a function , there is a node such that is an FRR of . One of these functions is hence , where is the node corresponding to is the required FRR.
In order to construct , we order the nodes of so that children occur before their parents. Then we order the functions in an arbitrary order adhering to the order of their respective nodes. This means that if then all the functions associated with are ordered before all th functions associated with . Let be the resulting sequence of functions, the nodes of corresponding to them as above are denoted by . For each , we construct an FPT sized local subgraph whose source is and each sink is either a sink of the whole or is identified with some for .
In order to see how the local subgraphs are created let us see in a greater detail how the functions are defined. In fact what we associate with each node are not functions but types, that is tuples of the form where and is an assignment to where is the parent of (of course if is the root). Intuitively, is the set of clauses satisfied by the assignment to the variables in the bags of the ancestors of and is the projection of this assignment to . The functions are associated with the types, in particular, the function associated with is denoted by and is defined as follows. The domain is but without and without the clauses satisfied by . For each , . Intuitively, registers the effect on of the assignment to the ancestors of on .
As the number of types per node is at most , so the total number of types and hence the number of functions is at most . We consider only unsatisfiable types , that is those for which is unsatisfiable. A detailed consideration is provided in the next subsection. For now, we consider only a single case that conveys the idea of the design of the local graphs.
So, let be a non-leaf having two children and and let be an unsatisfiable type such that all clauses in the range of are non-empty and, in addition, . In this case, the local subgraph corresponding to is nothing else then a decision tree over all possible assignments to with the root corresponding to and each leaf corresponding to a type of one of the children of . Let us consider more in detail how we choose this type.
Each , and naturally induces a type , where and consists of and, in addition, those clauses of that are satisfied by . It is not hard to see that one of must be unsatisfiable. The algorithm arbitrarily chooses an unsatisfiable type and associates the vertex corresponding to with . The other type is simply discarded even if it is also unsatisfiable.
Why do we discard the other type? The intuition is the following. Imagine an unsatisfiable CNF consisting of two variable disjoint subCNFs . Clearly, one of these subCNFs must be unsatisfiable, let it be say . Then, in order to prove the unsatisfiability of using regular resolution, it is enough to do so for . The subCNF can be discarded even if it is unsatisfiable as well.
Example 1
Let Consider the incidence tree decomposition where . We set to be the root with children and , being the child of and being the child of . Further on, we let , , , , , , , , , .
Consider the type . It is not hard to see that is just . Now let and consider the types of the children of induced by and . These types are and where and , , .
It follows that and the clause is mapped to itself. In other words, is a satisfiable type. On the other hand, and 222Note a slight abuse of not using the double brackets for the sake of a better readability., , . Thus and clearly it forms an unsatisfiable CNF thus is an unsatisfiable type. The branch of the local subgraph of corresponding to corresponds to .
Note, however that the assignment induces two unsatisfiable types, one for each child and hence an arbitrary one of them can be chosen as the sink of the local sugraph of corresponding to .
Let us now discuss the general case where the set of transitional clauses is not empty. In this case the types are of the form where . The idea is that is a subset of transitional clauses that are falsified by assignment to variables located in the bags of the ancestors of . The function corresponding to is where (with a slight abuse of notation) is the function corresponding to the shortened type as described above. Like in the case with , the types are ordered and DAGs are gradually built so that for each type , the resulting DAG contains a subgraph which is a transitional resolution of . Like in the case with , this DAG is constructed by adding a local subgraph for each type in the considered order. Most of the cases of construction of local graphs are easy extensions of the case of . However, there is one case that is conceptually different. To understand it, consider the situation below.
Suppose that a CNF is a variable disjoint union of two unsatisfiable CNFs and . Suppose next that both and are non-empty. Because of the last assumption we cannot use just one of , and to discard the other one. Indeed, suppose we consider only and discard . If all the sinks of the resulting resolution are terminal ones, good and well. But what if we have a transitional sink ? Consider an assignment carried by a path ending at . Then is a falsifier of some w.r.t. . However, is not such a falsifier w.r.t. the whole as, by assumption, cannot be extended to an assignment satisfying all the clauses of ! Put it differently, a transitional node needs information about all the clauses of not just part of them.
Thus in the considered situation the resolution must be applied to a conjunction of and of . Obviously, the resolution does not have conjunction gates, so we use the standard trick of putting the resolution for say ’on top’ of the one for . We postpone the nuances of this arrangement to the stage of formal description and discuss here only the aspect of combinatorial explosion. If the DAGs of resolutions for and have already been defined then the ’on top’ configuration requires creating a separate copy of the resolution of . Thus the local graph corresponding to is of size comparable to the union of all the DAGs that have been created before. We refer to this situation as doubling. To mitigate its effect we, essentially compare the quantities and and put on top the one whose respective quantity is smaller (ties can be broken arbitrarily). This way we ensure that the sequence of nested doublings is of size at most .
3.2 Proof of Theorem 1: formal description
Definition 11** (Bag-related type)**
A (bag-related) type is a quadruple where , is an assignment with where is the parent of ( if is the root), , and . We may refer to the respective components of by .
Definition 12** (Associated functions)**
The function associated with is a -based function with the domain consisting of the clauses of that do not belong to and are not satisfied by . For each , .
We also denote the function by
Definition 13** (Unsatisfiable and basic types)**
A type is unsatisfiable if is unsatisfiable. An unsatisfiable type is basic if either (i) there is a non-transitional clause such that or (ii) is satisfiable. In case (i), is a non-transitional basic type with being a witnessing clause and in case (ii) it is a transitional one.
Definition 14** (Extension for a type)**
Let be a type with . An extension of is an assignment to . We denote the set of all extensions of by . In particular, if then .
Definition 15
[Successor of a type] Let be a non-basic unsatisfiable type such that is not a leaf of . Let and let be a child of . The -successor of is a type such that , , consists of and all such that is satisfied by , is the union of and the set clauses such that is falsified by .
If has two children and then each extension of identifies the and -successors of . In most cases, during the construction of the transitional resolution, one of them will be chosen as the preferred successor. making the resulting construction similar to the case with . However, there is one particular case where the preferred successor cannot be chosen. We define this case through the notion of a special pair.
Definition 16** (Special pair)**
Let be a non-basic unsatisfiable type such that has two children and . Let . Then is a special pair if (i) both and -successors of are unsatisfiable and nonbasic and (ii) both and are non-empty.
We also need two concepts related to special pairs: those of the main child and the main successor.
Definition 17** (The main child)**
Let be a node of having two children and let and be the children of . Assume that . Then we say that is the main child of . If both intersections are of the same size then we arbitrarily fix a child of and name it the main child of .
Definition 18** (The main and secondary sucessors.)**
Let be a special pair and let . Then clearly, has two children and . Let and be the respective and successors of . Assume w.l.o.g that is the main child of . Then we refer to and as, respectively, the main and secondary successors of .
Now, we establish a linear order on the union of the set of unsatisfiable non-basic types and the set of special pairs.
Definition 19
Let be the set of all unsatisfiable types and let be the set of all special pairs. We fix a linear order satisfying the constraints as specified below.
For , the type is defined as follows. If then and if then . Let , let , , and let for . Then is mandatory in the following two cases
* is a descendant of .* 2. 2.
* but is a special pair while is a type.*
The above definition is somewhat tedious because of the need to consider types and special pairs within the same set. The idea, however, is simple. We first look at the nodes corresponding to and and if is an ancestor of in then is ahead of . In the other case, and are associated with the same type. In this case must precede if is a special pair while is not. Otherwise, the ordering is arbitrary.
Definition 20** (Local subgraphs for elements of )**
We define a graph as the union of local graphs for each . The graphs are defined inductively along . In particular, when we define for some , we assume that for all , have been defined. The set of vertices of each is disjoint with except some sinks that may be identified with the sources of previous .
Assume first that . is a single source DAG whose source is . If Then is the only node of and the assignment corresponding to it is . Otherwise, is a decision tree (with the root ). Let be a sink of the . The assignment corresponding to is where is the to path of .
Now we make a decision regarding the sinks of . The decision is specified in the list below. Each item in the list specifies a condition and the decision made in case this condition holds. For each item but the first one, we assume that the conditions of the previous items do not hold.
We denote by . The children of (if any) are denoted by and , if has only one child then it is . Their respective successors of through are denoted by and .
* falsifies for some . In this case is labelled with . If there are several such choose one arbitrarily.* 2. 2.
* falsifies for while is satisfiable. In this case, is labelled with .* 3. 3.
* is a special pair. Then is identified with the source of .* 4. 4.
* has only one child. Then is identified with the source of .* 5. 5.
Satisfiable sibling case: has two children and, say is satisfiable. Then is identified with the source of . 6. 6.
Non-transitional child case: has two children and, say . Then is identified with the source of .
In the last three cases, is identified with the source of the local graph of one successor of through . We refer to this successor as the preferred successor of through .
Now, we assume that , where is a special pair. Let , be the children of , , be the respective successors through with being the main successor. Let be a transitional resolution for such that . Then is obtained from by the follwing modification of the transitional sinks. Let be a sink of labelled with . Then, in , is identified with the source of where and the rest of the components remain the same.
Remark 1
Note that if is a leaf then any extension of assigns all the variables of , therefore, the first or the second case must occur.
Note also that for the definition to be valid, whenever a sink of a local graph is identified with the source of local graph of another type, it needs to be established that this type is an element of . In the correctness proof in the appendix, we show that this is indeed the case.
Proof sketch of Theorem 1. The proof consists of two stages. First we establish correctness of the construction as per Definition 20 then we establish an upper bound on its size.
For the correctness, we let . Then we show that for each , is a transitional resolution for and for each , is a transitional resolution for . In particular, this is so for the starting type , where is the root of . We observe that . Hence, we conclude that is the required transitional resolution for . The proof uses the machinery developed in Section A of the appendix enabling a ’piecewise’ construction of a transitional resolution. In particular, given a sequence of ’local’ CDTs satisfying certain criteria, it is shown that their union is a transitional resolution for a certain function. Because of this framework, in the actual proof of Theorem 1 (Section B of the Appendix), we only need to show that the graphs and satisfy the required criteria. The proof is mostly straightforward checking of conditions, the most interesting aspect is the use the properties of tree decompositions and one-sidedness.
To upper-bound the size of , we essentially, upper bound the sum of sizes of local graphs. We observe an immediate difficulty: there is uncertainty in the definition of the local graph . Definition 20 says that is is a transitional resolution for (where is the main successor of through ) subject to a certain variable constraint, but, beyond this, no specification is provided and hence a size upper bound is not clear. We know, however that is a transitional resolution for . So we can simply take a copy of as . This, however, immediately creates another problem: we take a ’whole’ graph to serve as a local graph, the total of the sizes essentially ’doubles’ and this may lead to exponential explosion. Demonstration that this exponential explosion is controlled by parameters requires a more careful view.
First of all, we observe that the number of nodes such that and is a special pair is at most . This means that the number of special pairs is upper bounded by a function of and . Next, we define a rank of an element of . For this, we first say that if a sink is identified with then is a child of . The notion of a child naturally leads to the notion of a descendant. With this in mind the rank is defined as follows. The rank of is the maximum over ranks of its descendants (if has no descendants then the rank is zero). The rank of a special pair is the rank of plus one where is the main successor of through .
We prove that the rank of an element of is at most . Then we show that the local graph size for a special pair of rank is upper bounded by where . We conclude that, since the rank is upper bounded by and the number of elements of is upper bounded by , the required upper bound follows.
4 The main result
Theorem 2
Let be a CNF, to which we refer as long clauses and be an integer. Assume that has a one-sisded tree decomposition of the incidence graph of width at most (due to Proposition 2, we assume that is a binary tree). Then there is a resolution of of size .
In the rest of this section, we introduce definitions towards the proof of Theorem 2 and provide a sketch of the proof. The complete proof is available in Section C of the Appendix. Formal statements in this section alternate with fragments of informal discussion. For a reader interested in the formal reasoning only, the informal discussion can be safely omitted.
Similarly to the proof of Theorem 1, the resolution is constructed in a piecewise manner as a union of local graphs of types. However, the types are defined in a different manner. In particular, while for the proof of Theorem 1, the types were associated with nodes of the underlying search tree, in the considered case, the types are associated with prefixes of . Before we continue the discussion, let us define the types and the corresponding classification of variables.
Definition 21** (Type)**
A type is a quadruple where is a (possibly empty) prefix of and is function from to To define the remaining two components, we need to have a more detailed look at the domain and range of . So, let be the subset of that are not mapped to and let . Then is a subset of and is an assignment to .
When it may be not clear from the context which type the above structures are related to, we prove the name of the type in the brackets, for example, , and so on.
Definition 22** (Inner, fixed, and outer variables)**
Let be a type. We call the inner variables of and denote the set by . Let . We say that is fixed if there is a long clause such that and one of the following holds: (i) or and where is the smallest tree of such that . We call a witnessing clause of . If there are several clauses matching the definition, pick an abitrary one. We denote by the set of all fixed variables. For each , the fixed assignment of is the literal opposite to its occurrence in the wintessing clause . We denote by the set of all the fixed literals. Finally the variables of are called outer variables and their set is denoted by .
In order to interpret the above definitions, we need to note that, in the resulting resolution, each type (reachable from the source) is associated with a node . The types describe invariant properties of the assignments carried by the paths from the source to . For example, the long clauses satisfied by are . In this case, is the smallest tree of such that or, to put it differently, the minimal tree containing a variable whose occurrence in satisfies . Then is the set of such minimal trees. To continue the discussion, let us first define the function of the type.
Definition 23** (The type function)**
For a type , is a -based function. For each .
The domain of such that one of the following three conditions hold: (i) ; (ii) ; (iii) and and is not satisfied by .
Thus the assignment as above does not assign . occur in with assignment , occur with assignment but what about the rest of the variables of? To understand this, note that variables of ’communicate’ with the rest of the variables through the vaiables of the roots of and through the clauses having variables both inside and outside (let us call them ’connecting’ clauses for the sake of the argument). In particular let and be two assignments to that do not falsify any clause, have the same projection to , and satisfy the same set of connecting clauses. Then it can be shown that . The meaning of the component of is exactly the set of connecting clauses that are not satisfied by . So, the assignment to the roots of plus do provide a complete description and, subject to this invariant, the assignment to the rest of the variables of may be arbitrary!
Definition 24** (Basic, final, and unsatisfiable types.)**
A type is unsatisfiable if is unsatisfiable. An type is basic if there is such that . A type is final if
Now we start defining local subgraphs. We will consider only non-basic types. One useful observation is that for a long clause , does not intersect with . Indeed, by definition, . Therefore, any must belong to and cannot be in . This immediately simplifies construcrtion of local graphs for the final types. Indeed, if is final then . Since we assumed that is non-basic does not contain long clauses. In other words, is a -based function and hence there is an FPT size falsifying FRR for by Corollary 1.
For a non-final type , the construction of the local subgraph depends on whether the immediate successor of is an expanding or an contracting node. If is expanding then the local graph is effectively a decision tree with some nuances related to definition of sinks. The case when is contracting is more involved. In order to informally discuss it, we need to introduce several additional definitions.
Definition 25
*A linear order is an arbitrary but fixed ordering over unsatisfiable types obeying the following constraint. Suppose that and are unsatisfiable types such that . Then in . *
Definition 26
Let be a non-basic non-final unsatisfiable type and let be the immediate successor of . We say that is established if is a contracting node and at least one element of is a subtree of .
Definition 27
With the data as in Definition 26, a variable is determining if there is a clause such that . We denote by the set of all determining variables, omitting the brackets if the type is clear from the description.
Definition 28
Let be a non-basic non-final unsatisfiable type and be the immediate successor of . The dome of is defined as follows.
- •
If is established then is a single node if . Otherwise, is a decision tree over all the assignments to .
- •
If is non-established then is a single node if . Otherwise, is constructed in two stages. On the first stage, we define as a decision tree over all assignments of . If then . Otherwise, for each sink of such that the assignment carried by the path from the root of to satisfies at least one , make the root of a decision tree over all the assignments to .
Definition 29
Let be a non-basic non-final unsatisfiable type and be the immediate successor of . Assume that is contracting and let be an assignment to that does not falsify any clause in . Then we say that is potentially complex if one of the following two conditions holds.
- •
* is established.*
- •
* satisfies a clause .*
The local subgraph of any type of includes the dome plus subgraphs whose sources are sinks of Why is not a a sink of not necessarily a sink of the whole local subgraph of ? This may happen when the assignment carried by the path from the source of to is potentially complex. In this case is going to be a minimal tree in any successor of identified with a sink of reachable from , meaning that all the variables of will be inner for . Yet, may include variables of that are not yet assigned after assgning the variables of . These are precisely the variables taken care by . To see how this is done, we need one more definition.
Definition 30
[Filling function and its transitional resolution] Let be a non-basic non-final unsatisfiable type and be the immediate successor of . Let be a potentially complex assignment. For the sake of brevity, let us denote by . Denote the set by and refer to them as free variables.
The filling function ( and may be added in brackets if not clear from the context) is a -based function such that for each , . The domain of consists of all clauses of such that is not satisfied by and .
If is unsatisfiable, let be a transitional resolution of with the transitional clauses being and with the extra constraint that .
Continuing the informal discussion, we introduce a subgraph of with being the source if the corresponding filling function is unsatisfiable. This subgraph is nothing but the transitional resolution for as defined above. Earlier types of are identified with the transitional sinks of . The precise construction is provided in the definition below. It is worth noting that due to the same reason as for the final types, does not include long clauses, hence can be of FPT size in .
Definition 31
The local graph for each unsatisfiable type is constructed recursively along . All the nodes of , except sinks, are unique for in the sense that they do not occur in the earlier types. The sinks may be identified with sources of local graphs for earlier types.
If is final then is a falsifying FRR for . In the rest of the definition, we assume that is non-basic and non-final.
The dome is a subgraph of and the source of is the source of . is obtained from by processing of each sink and making one of the following three decisions (i) associating the sink with some or (ii) identifying the sink with the source of the local graph of an earlier type or (iii) deciding that the considered sink of is not a sink of and constructing the graph . The detailed construction is specified below.
Let be the immediate successor of . Let be a sink of . Then , the assignment corresponding to is if is the only node of . Otherwise, is a decision tree and is its leaf. In this case, is where is the root- path of .
So, let be the considered sink of . Suppose that falsifies for some . Then is associated with .
Otherwise, we consider separately the cases where is an expanding node and where is a contracting node. Suppose first that is an expanding node. If does not satisfy any clause of then is identified with source of where where is obtained from by removal of clauses that are satisfied by . Otherwise, is identified with the source of where where is obtained from by replacing with for each that is satisfied by . s obtained from by removal of all clauses that are satisfied by and adding those clauses of that are not satisfied by . Finally .
Assume now that is a contracting node. If is not potentially complex then is associated with the type where is obtained from by removal of clauses that are satisfied by .
The most interesting case though is where is potentially complex. For this case we need to introduce additional notations.
Let be the subset of that are not satisfied by . Let . Let be the subset of consisting of all clauses such that is not satisfied by and and .
Let be a function from to obtained from as follows.
- •
For each such that and is satisfied by , .
- •
For each such that , .
Let .
Assume first that is satisfiable. Then is identified with the source of where .
Finally assume that is not satisfiable. Let be the transitional resolution for as per Definition 30. Identify with the source of . Then for each transitional sink of do the following. Let be the function associated with . Then, identify with the source of , where
Proof sketch of Theorem 2. We start the proof from defining a well-formed type. Let be a fixed variable for . Recall that for we define the witnessing clause for and choose arbitrarily if there are several candidates. The type is well formed if has the same occurrence in all the candidates, hence it does not matter which candidate we choose. We did not introduce the definition in the main body of the paper to improve readability. The proof of Theorem 2 is applied not to but rather to its subsequence consisting of all the well-formed types.
Let be the union of all the local subgraphs of the elements of . For each , let be the source of . We prove that each is a falsfying FRR for . The proof uses Theorem 3 provided in Appendix A. In order to apply the theorem, we need to demonstrate for each that is valid in the following sense. First, whenever a sink of is labelled with for each path from to , falsifies . Second, whenever a sink of is identified with an earlier type then for each path of from to , is a subfunction of and (that is is well-formed, non-basic, an unsatisfiable). Next, we observe that there is one particular type (the first denotes the empty prefix) such that . (That is, is, in fact a regular resolution for by Proposition 5.) This completes the correctness proof and it remains to establish the upper bund on the construction size.
The upper bound can be obtained by multiplying an upper bound on the size of a local subgraph by the number of types. The most critical part in assessing the local subgraph size is that it may include a falsifying FRR. However, as we explained before, the resolution is always an FPT size in since the domain of the corresponding function does not contain long clauses. For the number of types, the number of possible first components is . With the first component fixed, by Proposition 4 the number of possible second components is , which is well known to be FPT. With the first two components fixed, the number of possible third and forth components is at most .
5 Conclusion
We have proved that regular resolution is FPT for CNFs whose one-sided treewidth is almost bounded. We have also demonstrated how a resolution under a more restricted parameterization can serve as a building block for the construction towards the main result, increasing by one the degree of . We believe that using this approach FPT algorithms can be defined for more and more general parameters at the price of higher and higher degree of the polynomial dependence on . The main question however is: can we reach this way the general case of bounded incidence treewidth? We believe that the answer is no and that an XP lower bound needs to be sought at least in the case of regular resolution.
We believe that the first step in the design of hard instances should be understanding the properties of the underlying hypergraphs that make the instances hard. Such properties would be most convenient to investigate if the CNFs were monotone. In the context of resolution, this is clearly impossible since the CNFs must be unsatisfiable (we may, of course, allow empty clauses but the resulting class would hardly be interesting). We think that the right approach is to consider a closely related model of Decision DNNFs representing monotone CNFs of bounded incidence treewidth. As mentioned in the introduction, this model has a lot in common with the regular resolution. Therefore, we believe that understanding the complexity of the former on CNFs of bounded incidence treewidth will provide an important insight for the latter.
Appendix A Assembling a resolution from small fragments
Definition 32
Let be -based functions. For each we define a CDT with source satisfying the following conditions.
- •
Each sink of is labelled with or, otherwise, is identified with the source of for some , (Of course the latter condition is possible only if ).
- •
For each and each , except those that are identified with roots of earlier , .
- •
Let be a sink of and let be a path from to . Then if is associated with then and is falsified by . Otherwise, is associated with the source of for some . In this case is a subfunction of .
We call a falsifying sequence.
Definition 33
With data as in the previous definition we say that is a child of is has a sink identified with the root of (clearly ). Let be a sequence such that for each is a child of . We then say that is a descendant of . The falsifying sequence is read-once if for each such that is a descendant of ,
Theorem 3
Let be a falsifying read-once sequence for the respective -based functions . Let . Let be the respective sources of . Then each is a falsifying FRR for .
Proof.
Claim 1
Let and be DAGs wth labels on their edges. Suppose that . Then the following statements hold.
* is a DAG.* 2. 2.
. 3. 3.
.
Proof. The second statement is immediate by definition as does not add nor removes edges between vertices of (note that there are no edges between sinks). That is is a DAG and also but there is no path from the former to the latter. This proves the first statement. Finally, for the third statement, are sinks of because of the second statement and are sinks of simply by construction. The rest of the vertices are not sinks either in or in so, obviously, they remain non-sinks in .
For , let be . Using inductively the above claim we make the following list of observations that will be referred by their numbers in the rest of the proof.
Each is a DAG all sinks of which are labelled with . Apply inductively the first and the third statements of the above claim. 2. 2.
For each that is not a sink, has two outgoing edges one labelled with the positive and one labelled with the negative literal of the same variable. Let be the smallest index such that . Note that if is a sink in then, by inductive application of the second statement of the claim, starting from and up to , we observe tat remains a sink in . Hence is not a sink in . By definition . Moreover, if then is not a vertex of by the minimality assumption. Hence, as is not a sink of , it follows from the first statement of the claim that is not a sink of . But then has two outgoing edges as specified in the stement of the current item. Again applying part 2 of the claim inductively until , we observe that this situation with two outgoing edges is preserved in . 3. 3.
For each , for all . Again, starting from , apply inductively the second part of the claim
Now, we need to prove that each is read-once. For this purpose, we prove that for each path in from to a sink where each is a source sink path in one of . The proof is by induction on . By the last item in the above list, it is enough to consider . , so we are done by construction. Assume now that . Then has a prefix which is a source-sink path of . If , we are done. Otherwise, , where starts from for some . By the induction assumption, satisfies the requirement. Hence, the desired concatenation of subpaths for plus at the beginning provides the desired concatenation of paths for . Now, consider the concatenation as above. Each is read-once by definition so, if there is a repetition, there are some and , such that intersect. But is a path of some and is a path of some such that and is a descendant of . By assumption, the variables of and must be disjoint, a contradiction.
It follows from the combination of the first three items the above list and the read-onceness claim that each is a falsifying FRR. It remains to prove that each has this capacity for . We proceed by induction on . For , as we have seen above, , so the statement holds by construction. Assume now that . Let be a source-sink path of . Let be the label of the final node of As verified above has a prefix that is a source-sink path of . Assume first that for some . Then and, by the induction assumption and falsifies . By construction, is a subfunction of . We conclude that and falsifies . If is not an earlier then the same conclusion follows by construction.
In the rest of this section, is the set of transitional clauses of .
Definition 34
Let be a -based function. We denote by the subset of consisting of all clauses such that . We say that is interesting if the following two conditions hold.
- •
.
- •
* is unsatisfiable*
Definition 35
Let be an interesting -based function. Let be an assignment and suppose that is also an interesting -based function. Let be an interesting subfunction of . We say that is a good function for if one of the following conditions is true.
. 2. 2.
* is satisfiable and .*
Proposition 6
* is a good function for .*
Lemma 1
Suppose that is a good function for . Let be a falsifier for for some such that is disjoint with both and . Then is a -falsifier for .
Proof. If the first condition of Definition 35 holds then the statement holds in a vacuous way because no such a falsifier exists. Indeed by assumption , hence an extension of must satisfy in contradiction to the definition of an interesting function. So, we assume that the second case holds.
Let be an extension of satisfying and let be a satisfying assignment to . We may assume w.l.o.g. that and that . By assumption , , and are mutually disjoint. Therefore is a well formed set of literals. We claim that satisfies for all . Indeed, if then is satisfied by . If then and hence is satisfied by . It remains to assume that . But then is satisfied by .
Definition 36
Let be interesting -based functions. For each we define a CDT with source satisfying the following conditions.
- •
Each sink of is labelled with or or, otherwise, is identified with the source of for some , (Of course the latter condition is possible only if ).
- •
For each and each , except those that are identified with roots of earlier , .
- •
Let be a sink of and let be a path from to . Then we consider the following subcases.
- –
If is associated with then and is falsified by .
- –
if is associated with then is a -falsifier for
- –
Otherwise, is associated with the source of for some . In this case is a good function for .
We call a transitional falsifying sequence.
We define children and descendants analogously to the non-transisitional case. With this in mind, we are now in a position to state a version of Theorem 3 for the transitional case.
Theorem 4
Let be a transitional falsifying sequence for the respective -based functions . Let . Let be the respective sources of . Then each is a DAG with being the union of and all such that is a descendant of and sinks labelled by either or . Also, let Then, for each , .
Suppose that two additional conditions take place for each
Each path of is read-once. 2. 2.
Let be a source-sink path of and suppose that the final vertex of is for some . Then is disjoint with .
Then is a transitional resolution for .
Proof. Claim 1 applies for this proof. The three observations in the proof of Theorem 3 also hold but with the statement for the first one is slightly modified as specified below.
Each is a DAG all sinks of which are labelled either with or with . Apply inductively the first and the third statements of Claim 1. 2. 2.
For each that is not a sink, has two outgoing edges one labelled with the positive and one labelled with the negative literal of the same variable. 3. 3.
For each , for all .
These observations already prove the part of the theorem that does not take into account the additional conditions. With these conditions in mind, let be a source-sink path of . Due to read-onceness condition, is a well formed set of literals. We need to prove that (i) if the final vertex of is labelled with then and falsifies and (ii) if the final vertex of is associated with then and is a -falsifier for .
The proof of (i) is analogous to the corresponding proof in Theorem 3, so we concentrate on proving (ii). If is a source-sink path of the statement follows by construction. Let be the prefix of that is a source-sink path of . Then the final vertex of is for some . Let be the suffix of starting from By the indudction assumption (the induction basis is correct by construction), and is a -falsifier for . Recall that by construction, is a good finction for and that is disjoint with (due to read-onceness of ) and with (by construction). Therefore, all the premises of Lemma 1 are satisfied and we conclude that is a -falsifier for .
Appendix B Proof of Theorem 1
Lemma 2
*Let , where is a source-sink path of . Assume that is an interesting function. Further on, we assume that is not a leaf and and be successors of through (in case has only one child, let be the only successor of through ). Then the following statements hold. *
* is the disjoint union of , . In case has only one child, * 2. 2.
At least one of , is unsatisfiable. 3. 3.
* is the disjoint union of , , and .* 4. 4.
For each , is the disjoint union of and .
The last two cases naturally adapted to the situation where has only one child. In particular, is not part of the union in the third case and the definition holds only for in the fourth case.
Proof. First of all observe that by construction, is a subset of for each . Therefore, to establish that is a subfunction of , it is enough to show that is a subfunction of .
First of all, we need to show that for each , .
Let . By definition, . Hence, by one-sidedness of , . In particular, this implies that (the rest of the variables are present only in so would need to be present in one of the bags of the subtree due to the containement property). Then . As , We conclude that and hence .
Now, let . Then . There are three reasons why may not belong to we will observe that none of these reasons holds. The first reason is that . This means that . Since by the connectivity condition of tree decompositions, . That is , a contradiction.
The next reason is that . However, in this case, in contradiction to .
Finally, it may be that is satisfied by . Then is satisfied by . If then, by definition, , a contradiction. Otherwise, let be a variable whose occurrence in satisfies . Since , cannot occur in any bag outside by the treewidth connectivity condition. Then the containment condition implies that must also occur in a bag inside . Since is occurring in a bag outside (namely in the bag of ), by the treewidth connectivity condition. In particular, occurs in in contradiction to .
Thus we conclude that . It remains to be seen that is not satisfied by . But in this case is satisfied by and we apply the reasoning of the previous paragraph.
Now, we assume that and that , We claim that . Indeed, there may be two reasons why this is not so. One such a reason is that . Recall that consists of two subsets. The first is but in this case , a contradiction. The second set are those clauses that are satisfied by . But if is satisfied by it is not contained in and if is satisfied by then it is not contained in , a contradiction in both cases. The other reason that may cause to not be in is that is satisfied by . But, by definition, is a subset of , so the last argument applies.
Next, we observe that if has two children then and are disjoint. Indeed, for a clause to be in both domains, it must be present in both and which is impossible due to one-sidedness.
Finally, we observe that does not have any clauses but . Indeed, suppose that such a clause exists. By the proven above . By the containement condition, cannot intersect with . It follows that all the variables of are assigned by , in fact by by definition og . Then is either satisfied by (contradiction to ) or falsified by (contradiction to ). So we have proved the first statement for the case of two children. The proof applies for the case of one child simply by observing that .
The second statement follows immediately if has only one child. For the case of two children, we observe that . Indeed, by definition of the type functions and it is a well known property of tree decompositions that (for otherwise the connectivity condition does not hold). Assume that the second statement does not hold. For each , let be an assignment satisfying . Clearly, we may assume that for each . But then and hence is a well formed set of literals. By the first statement satisfies in contradiction to our assumption about unsatisfiability of the latter. This proves the second statement.
The third statement follows from the combination of the first statement and the observation that . For the fourth statement, recall that, by definition each is the union of and and that . However, by assumption , so the fourth statement follows.
Lemma 3
Let and let where is a source-sink path of . Assume that for each non-transitional clause , is not falsified by and that is not satisfiable. (In other words, we assume that the conditions of the first two items in the list in Definition 20 do not hold.)
Then the following statements hold.
If is a special pair then is a good function for . 2. 2.
Otherwise, let be the preferred successor of through . Then (meaning that the definition of is valid) and is a good function for .
Proof. It is not hard to see that for each , is an interesting function. Also, is an interesting function by assumption of the lemma. This means that the premises of the definition of a good function are satisfied.
The first statement of the lemma is immediate from Proposition 6. For the second statement, observe that and that . It follows that is an interesting function and, in particular, that all the premises of Lemma 2 have been met.
It follows from the first statement of Lemma 2 that does not map any clause in its domain to . It also follows from the definition of and from the second statement of Lemma 2 that is unsatisfiable. Thus we conclude that is a non-basic unsatisfiable type and hence belongs to . As , we also conclude that is an interesting function. To observe that remaining part of the definition of a good function is satisfied, we consider the last three items of definition of separately.
In the satisfiable sibling case, let be the successor of through other than . By combination of the last two statements of Lemma 2, and, by the assumption of the case is satisfiable thus is a good function by the second item of Definition 35. In the non-transitional child case does not intersect with thus is a good function by the first item of Definition 35. Finally, in the single child case, the last two cases of Lemma 2 imply that thus, so the lemma follows from Proposition 6.
Lemma 4
Let . Let be a source-sink path and let be the final vertex of . Then the following statements hold.
- •
Suppose that is associated with . Then and falsifies .
- •
Suppose that is associated with a source of . Then is non-basic unsatisfiable type (implying validity of definition of in Definition 20) and is a good subfunction for .
Proof.
Assume first that is associated with . Combining the third and fourth statements of Lemma 2, we observe that is a subfunction of . By definition of a transitional resolution, and falsifies . Hence the same holds if is replaced by .
Let us now assume that is identified with the source of some . By construction and the fourth statement of Lemma 2, is a -falsifier for where is the union of and some clauses of . Applying again the fourth statement of Lemma 2, we observe that , hence by construction, . By the third statement of Lemma 2, , hence by construction . In particular, it follows from that and hence is an interesting function. Thus it remains to be shown that is a subfunction of and that the range of is satisfiable.
Let . Assume first that . Note that, (see the proof of the second statement of Lemma 2 for an explanation). On the other hand, by construction, . It follows that and, moreover, that . Next, if , then falsifies . Hence and . Thus we have shown that is a subfunction of .
Let . We need to show that is satisfiable. It follows from the previous paragraph that is the subset of that are not satisfied by . As by Lemma 2, is a subfunciton of , we in fact need to show that . But this is immediate since is a -falsifier for .
Corollary 2
Let Let be -based functions and let be graphs such that such that and if and in case . Then is a transitional falsifying sequence.
Proof. Immediate from the combination Lemma 3, and Lemma 4.
Theorem 5
With the data as in Corollary 2, let . Then the following statements hold.
- •
For each , let be the source of . Then is a transitional resolution for and where and is the parent of in (if is the root of , consider ).
- •
For each , let be the source of . Then is a transitional resolution for and .
Proof. First of all, let us introduce one additional notation: for ,
Corollary 2 gives us the possibility to apply Theorem 4 without the read-onceness assumption. From this application, we obtain the following two statements.
For each , is a DAG with all the sinks labelled by either or . where is the source of 2. 2.
For each and each , .
Claim 2
For each , . 2. 2.
For each , . 3. 3.
Each is read-once.
Proof. The proof is by induction on . The above reasoning allows us to prove the claim for graphs only. Assume first that . Then and . Moreover, and the claim follows by construction.
Assume now that . Assume first that . Let be a source-sink path of . We need to prove that is read-once and that where . By construction, has a prefix which is a source-sink path of . If then we are done by definition of . Otherwise, the final node of is for some . Let be the suffix of starting from . We will prove that is read-once, and hence does not intersect with As a minor subtlety, note that this will imply that since, by the treewidth connectivity condition, .
Path is a source-sink path of hence it is a source-sink path of and hence, in turn, it is read-once by the induction assumption. For the constraint on the set of variables, assume first that . Then is the successor of through and is a child of . Hence , the first subset relation follows by the induction assumption. Otherwise, but then is immediate by the induction assumption.
It remains to assume that . Let and be the successors of through , , and are the children of . We assume w.l.o.g. that is the main successor of through .
As in the previous case, let be a source-sink path of . We need to prove that is read-once and that . By construction, has a prefix which is a source-sink path of . By construction, is read-once and . Therefore, if , we are done. Otherwise, the final node of is for some . Let be the suffix of starting at . Then is a source-sink path of and hence a source-sink path of . By construction, such that . It follows from the induction assumption that is read-once and . To conclude that the whole is read-once, we observe that the connecedness condition implies that implyingthat thus confirming the read-onceness of .
Claim 3
Let . Let be a source-sink path of , let be the final vertex of and assume that is the source of for . Then is disjoint from .
Proof. Clearly, we may assume that is a proper subfunction of . Let . Then, by the assumption and Lemma 2, has two successors, and through . Let , , .
Assume that . Then, by assumption and Lemma 2, is not a special pair. Let be the preferred successor of through , that is . By Claim 2, . On the other hand, by Lemma 2, and, by definition, . By the properties of tree decompositions, is disjoint with .
It remains to assume that . Then, by definition of where . By Claim 2, . We are going to show that thus implying the same conclusion as in the previous paragraph. Clearly, . In the proof of Lemma 4, we established that . Furthermore, it is not hard to see that . By Lemma 2, and, by definition,
, as required.
It follows from Claims 2 and 3 that the additional conditions of Theorem 4 are satisfied. We can now fully apply Theorem 4 and hence to conclude that each is a transitional resolution for the functionas specified in the statement of this theorem.
We are now moving on to consider upper bounds on the size of . For this, we need to redefine the notion of a descendant of a transitional falsifying sequence in terms of and state a simple but important fact.
Definition 37
In light of Corollary 2, a descendant relation is defined on functions . We naturally extend it to elements of : is a descendant of if and only if is a descendant of . We denote the descendancy relation by . That is means that is a descendant of .
Proposition 7
If then one of the following two statements hold.
* and .* 2. 2.
Let and , and . Then is a descendant of in .
Definition 38
A node is splitting if has two children and such that for each . We denote by the number of splitting nodes of
The transitional number of is .
Lemma 5
For each ,
Proof. The proof is by induction from the leaves to the root of . If is a leaf then both and are zeroes, so the inequality clearly holds.
Suppose that is not a leaf. If then the inequality again clearly holds, so we assume that . Assume first that is not a splitting node. Then has a child such that . It follows that all the splitting nodes of are in . Consequently, and hence, by the induction assumption, . As , the statement follows.
It remains to assume that is a splitting node. Let and be the children of . For let . Due to one-sidedness . In particular, it follows that
, thus immediately implying the statement for the case where both and are zeroes. 2. 2.
For each , . This means that, if say while , then taking into account the induction assumption, . 3. 3.
. In particular, if both and hold then , the first equality accounts for , the first ineuqality follows from the induction assumption.
Definition 39
In this definition we introduce three notions of a rank.
- •
Ranks for types and special pairs* We define the rank of each element of under assumption that the ranks have been defined for all the smaller elements. Let . If is a leaf then . Otherwise, . If , let be the main successor of through . Then *
- •
Ranks for the nodes of .* For a node , the main rank , and the splitting rank are defined recursively from the leaves to the root as follows. If is a leaf then both and are zeroes. If is not a splitting node then and is the maximum over all such that (descendant of in ). If is a splitting node, let be the main child of . Then and is the maximum between and all such that .*
Lemma 6
For each , the following two statements hold.
If then . 2. 2.
If then .
Proof. By induction from the leaves to the root of . Let be such that is a leaf. Since is not a splitting node, is not a special pair. By definition, and hence the statement holds because the function is non-negative.
Assume now that such that is not a splitting node. By definition, there is such that . As is not a splitting node, cannot be a special pair with type equal . Let Then is a descendant of of in .
This means that either or is a special pair with the type equal . It is not hard to observe that in the latter case is also a descendant of (as the only parent of a special pair is its type). Furthermore, in the latter case . Therefore, we may assume that . Then, by the induction assumption and definition of , .
Assume now that . Let and let be the main child of . Let be the -successor. Then, by definition of , and the induction assumption .
Finally, we assume that such that is a splitting node. Let be an element of such that . If is a special pair then, by the induction assumption, . Otherwise, we apply the same argumentation as for the case where is not a splitting node.
Lemma 7
For each , .
Proof. By induction from the leaves to the root of . If is a leaf then so the statement clearly holds.
Suppose that is not a leaf. If then the inequality again clearly holds, so we assume that . Assume first that is not a splitting node. Then has a child such that . Consequently, and hence, by the induction assumption, . As , the statement follows.
It remains to assume that is a splitting node. Let and be the children of with being the main child. As is monotone non-decreasing on the direction from the leaves to the root, For let . Due to one sidedness . In particular, it follows that thus immediately implying the statement in case both and are zeroes. Otherwise, assume first that . Then and the argumentation in the previous paragraph applies.
It remains to assume that . If , the statement is immediate since , so we assume that By definition of the main child, . Further on, . It follows that . By the induction assumption, . Hence, the statement holds.
Recall, that by definition, is the disjoint union of the set of types and the set of special pairs. Let and . We observe that the definitions of local graphs and especially are not completely deterministic in the sense that there may be several possible graphs meeting the requirements of the respective definitions. In the next lemma, we claim that these graphs can be such that a good upper bound can be claimed on the size of the respective -graphs.
Lemma 8
There are local graphs for the elements of matching their respective definitions so that the following size upper bounds are observed.
Let . Then where is the rank of . 2. 2.
Let . Then , where is the rank of .
Proof. It is not hard to infer from the combination of Corollary 2 and Lemma 4 that for each , is the union of and all the such that is a descendant of . Therefore, for , instead of , we can use .
Note also that for each we can assume that simply because is a decision tree over at most variables.
The proof is by induction along . Consider first the smallest element of . This element is some . In fact, we make a more general assumption that . In this case, all the successors of are elements of . Hence, taking into account the reasoning in the first two paragraphs, . In particular, the statement of the lemma holds for this case.
Consider now an element under assumption that the statement of the lemma holds for all the smaller elements of . Assume first that . Let be the main successor of , and By construction, is a transitional resolution for under additional constraint that its set of variables must be a subset of . It turns out that a good upper bound on such a transitional resolution follows from the induction assumption. Indeed, and precedes . By Theorem 5, is a transitional resolution for with the required constraint on its set of variables, hence any upper bound on its size can be used to upper-bound the size of . By definition, of the rank of the rank of is . Therefore, by the induction assumption, thus confirming the lemma for the considered case.
It remains to assume that , that is . Then we can upper bound the size of by the total size of local graphs of size at most each and at most special pairs of rank at most each (since these special pairs must be descendants of ). Applying the induction assumption to the special pairs, observe that the sizes of their respective local graphs are at most . Thus .
Proof of Theorem 1. Let be the root of . Consider the type . It is not hard to see that . It follows that and hence, by Theorem 5 is a transitional resolution for and . Thus we need to demonstrate that the required upper bound holds for . For this purpose we employ Lemma 8 and conclude that , where is the rank of . So, we need to upper-bound, , and .
In order to upper-bound , let us compute for the given fixed the number of types such that . It is not hard to see that the number of such types is at most the product of the possible elements of the second, third and fourth components, that is . Taking into account that , we conclue that . Because of our assumption about , where . Thus .
In order to upper bound , we again fix and upper-bound the number of such that . Taking into account that , we obtain an upper bound of . Next, we observe that if and is a special pair then is a splitting node. This means that is at most the number of splitting nodes of multiplied by . Applying Lemma 5 and taking into account that for each , we conclude that .
In order to upper bound , we combine the inequality obtained in the previous paragraph and Lemmas 6 and 7 to observe that . Substituting the data in the formula in the end of the first paragraph of this proof and performing elementary transformations, we conclude that assuming that , a transitional resolution for can be upper bounded by . If then the upper bound becomes .
Appendix C Proof of Theorem 2
We first prove two propositions concerning postorder traversals.
Proposition 8
Let be a proper prefix of and let be its immediate successor. Then the following statements hold.
If is an expanding node then and is the last element of . The order between the remaining elements is the same as in . 2. 2.
Assume that is a contracting node. and let be the set of trees rooted by the children of . Then are the last elements of , , is the last node of , and the order of the rest of the elements is preserved as in .
Proof. By induction on The statement is clearly true for so assume that .
Let be the root of . Assume that . Then clearly is a contracting node and . It is not hard to see that , hence the statement holds for this case.
Let be the left child of and let be the postorder traversal of . Assume that . Then, by the induction assumption, the statement is correct regarding . Clearly, it remains correct if is used instead of . It remains to assume that has two children. Let be the right child of . and let be the postorder traversal of . Since the previous cases do not hold, . Morveor, is the immediate successor of in . By the induction assumption, the statement holds regarding and w.r.t. . As (and their order) are the same w.r.t. and and is located before all the elements of , the statement holds regarding and .
Proposition 9
Let be a proper prefix of and let be the immediate successor of . Let .
Assume that is an expanding node. Then . 2. 2.
Assume that is a contracting node. If then . Otherwise, .
Proof. Assume that is an expanding node. Let . By Proposition 8, . Suppose that such that and . Again by Proposition 8, and in contradiction to the minimality of .
Assume now that is a contracting node with being as above. If then by the same argument as in the previous paragraph. Otherwise, by Proposition 8, . Suppose there is such that and . By Proposition 8, and is smaller than each of , a contradiction to the minimality of .
When we consider the types of , we in fact concentrate on specific types that are called well-formed. We define them below.
Definition 40
Let . We denote by the set of witnessing clauses of as per Definition 22. is the disjoint union of two sets and where consists of the clauses satisfying part (i) of definition of a witnessing clause as per Definition 22 and are those satisfying part (ii).
Definition 41
Continuing on Definition 40, we say that is consistent if it has the same occurrence in all the clauses of . Put it differently, is consistent if it either occurs positively in all the clauses of or occurs negatively in all of them. We say that is well-formed if all the fixed variables are consistent.
The rest of the proof is divided into five subsections. In the first four subsections we prove that sinks of local graphs of non-basic non-final types satisfy the validity conditions in terms of Theorem LABEL:assembly1. Each subsection is devoted to a specific condition concerning the kind of the immediate successor of and the assignment of the considered sink. The actual proof, gathering all facts together, is provided in the fifth subsection.
C.1 Expanding , does not satisfy new long clauses
Lemma 9
Let be a well-formed non-basic non-final unsatisfiable type and let be the immediate successor of . assume that is an expanding node. Let be a sink of such that does not satisfy any clauses of . Let where is obtained from by removal of clauses that are satisfied by . Then the following statements hold.
For each , . 2. 2.
* is the disjoint union of and .* 3. 3.
For each , . 4. 4.
. 5. 5.
. 6. 6.
* is the disjoint union of and .*
Proof.
Claim 4
Let . Then and .
Proof. First of all, it follows directly from definition of that . Then, .
Let . Assume first that . By definition of , It follows that and that . Assume now that . By definition of , . By Proposition 9, . As (due to being witnessing for in ), we conclude that thus confirming that and that .
The proof of the following claim is analogous to the proof of Claim 4 with and exchanging their roles.
Claim 5
Let . Then and .
Taking into account that by definition, Claim 4 in fact shows that . Hence, combination of Claim 4 and 5 imply that these two sets are equal and the witnessing sets of each variable are the same w.r.t and . This implies the first statement of the lemma.
Let now . Then , the largest tree of . Hence , implying that and, in particular (since must be witnessed by at least one clause), that .
Let . Then . As all the variables outside of belong to , . Hence .
Conversely, let . This means that there is . such that . This already implies that . It remains to show that . But if it were so then would belong to causing a contradiction since by definition of . Thus the second and the third statements are settled.
For the fourth statement, note that, by construction, . If assigned any extra variables, it would have satisfied a clause of which is not the case.
For the fifth statement, remains to show that for each , the occurrences of in and are the same and that for each , the occurrences of in and in are the same. In the former case, the desired statement follows from . In the latter case, the assignment of in is precisely the one to not satisfy any witnessing clause of , hence precisely the assignment of in .
For the last statement, note that .
Theorem 6
Let be a well-formed non-basic non-final unsatisfiable type and let be the immediate successor of . assume that is an expanding node. Let be a sink of such that does not satisfy any clauses of . Then the following statements hold.
If is a labelled with then , is not satisfied by and . 2. 2.
If is identified with the source of then is a well-formed non-basic unsatisfiable type and .
Proof. The first statement is immediate by construction, so we prove the second statement. Assume the premise of the statement regarding . By construction, where is obtained from by removal of clauses that are satisfied by . In order to show that is a well-formed type, we demonstrate that each variable is consistent. If then the consistency of follows from the well-formity of by the first statement of Lemma 9. Otherwise, by the second statement of Lemma 9, . For the sake of contradiction, assume that there are two clauses of such that occurs positively, say in and negatively in . Then the assignment of in must satisfy one of the clauses. However, by the third statement of Lemma 9 and does not satisfy any of these clauses by assumption.
Let . Then . The penultimate equality follows form the combination of statements 4 and 6 of Lemma 9. It follows that it is enough to show that . Since , . Since, by assumption, does not satisfy any clause of , we conclude that .
Next, recall that and let . By definition, while . This means that is the subset of consisting of the clauses that are not satisfied by . But, by definition, this is exactly !
Now, let . This means that and is not satisfied by . By construction and Lemma 9, , is not satisfied by and also not satisfied by . We conclude that . Conversely, suppose that . This means that is not satisfied by It remains to see that . By Lemma 9, the opposite can happen only if . But, in this case, the premise of the first statement is satisfied that is is a falsifying sink of , which is not the case by assumption.
It remains to be added that, based on the previous paragraph, the unsatisfiability of follows from the unsatisfiability of since this implies that is unsatisfiable. Also because does not falsify any for any simply by assumption.
C.2 Expanding , satisfies new long clauses
Now, we are going to consider the case where is an expanding node and satisfies some clauses mapped to by . Throughout the consideration, where is obtained from by replacing by for each that is satisfied by . s obtained from by removal of all clauses that are satisfied by and adding those clauses of that are not satisfied by . Finally .
Lemma 10
The following statements hold.
. 2. 2.
For each , .
Proof. Let . Let . If then . By construction, . By Proposition 9, .
Assume now that . If is not satisfied by then by construction and we are done since . Finally, assume that is satisfied by . Let be a variable whose occurrence in satisfies . Then . Indeed, otherwise, and hence, by construction, cannot belong to , a contradiction. As . meaning that .
Conversely, let . By construction, . Let . If meaning that then, clearly and hence . If then we consider two subcases. The first is if . In this case , the first statement follows from Proposition 9. Hence and hence . In the second case, and hence and again .
Lemma 11
The following two statements hold.
- •
**
- •
**
Proof. By the first statement of Lemma 10, . On the other hand, by construction, is the disjoint union of , , and . By regrouping the items, we obtain The first statement now follows by taking the complement of both sides.
It follows from Lemma 10 that . Next, by construction, is the disjoint union of , and . Clearly, their union is the right-hand part of the second statement.
Theorem 7
Let be a well-formed non-basic non-final unsatisfiable type and let be the immediate successor of . assume that is an expanding node. Let be a sink of such that satisfies clauses of . Then the following statements hold.
If is a labelled with then , is not satisfied by and . 2. 2.
If is identified with the source of then is a well-formed non-basic unsatisfiable type and .
Proof. The first statement is immediate by construction, so we prove the second statement. Assume the premise of the statement regarding . By construction, is as defined in the paragraph preceding Lemma 10.
By the first statement of Lemma 10, each is a variable of and hence the consistency of follows from the second statement of Lemma 10 and the consistency of for . We conclude that is well-formed.
Let Then , the penultimate inequality follows from Lemma 10. It follows that it is sufficient to establish that .
Let . If then, taking into account that is not satisfied by , by construction (and hence, by definition, belongs to ).
Assume that . Then as is not satisfied by , (and, again, belongs to .
Finally, let . If then since it is not satisfied by . Otherwise, by definition of , is not satisfied by . Hence, by the second statement of Lemma 11, is not satisfied by and hence belongs to in the role of a clause outside of .
Conversely, assume that . If then, by definition and not satisfied by and hence belongs to . Assume that . If then, taking into account that is not satisfied by , we conclude that . Otherwise the only way for to get into is if and not satisfied by .
Finally, if then, ,by definition of , is not satisfied by by Lemma 10. By definition of , . Therefore . Finally, we note that being non-basic and unsatisfiable follows from the same argument as in the proof of Theorem 6.
C.3 Contracting , not potentially complex
Lemma 12
Let be a well-formed non-basic non-final unsatisfiable type and let be the immediate successor of . assume that is a contracting node. Let be a sink of such that is not potentially complex. Let where is obtained from by removal of clauses that are satisfied by . Then the following statements hold.
For each , . 2. 2.
* is the disjoint union of and .* 3. 3.
For each , . 4. 4.
. 5. 5.
. 6. 6.
* is the disjoint union of and .*
Proof. Unlike in the case of being an expanding note, in the considered case the trees of disappear and we need to verify that is valid in the sense that none of the trees in the range of belongs to . However, if it was so then would be potentially complex. So, we conclude that
Claim 6
.
Claim 7
Let . Then and .
Proof. First of all, it follows directly from definition of that . Then, .
Let . Assume first that . By definition of , . It follows that and that .
Assume now that . As and by Claim 6, by Proposition 8. By Proposition 9, . As , by another application of Proposition 8 thus implying that .
Claim 8
Let . Then and (note that the second part implies the first one).
Proof. Let . Suppose that . This means that and, in particular, that .
Assume that . This means that . By Claim 6, . By Proposition 8, . By Proposition 9 and one more application of Proposition 8 implies that . We conclude that .
Taking into account that by definition, Claim 7 in fact shows that . Hence, combination of Claim 7 and 8 imply that these two sets are equal and the witnessing sets of each variable are the same w.r.t and . This implies the first statement of the lemma.
Let now . Then , the largest tree of . Hence , implying that and, in particular (since must be witnessed by at least one clause), that .
Let . Then . As all the variables outside of belong to , . Hence .
Conversely, let . This means that there is . such that . This already implies that . It remains to show that . But if it were so then would belong to causing a contradiction since by definition of . Thus the second and the third statements are settled.
For the fourth statement, note that, by construction, . If assigned any extra variables, it would have satisfied a clause of which is not the case.
For the fifth statement, remains to show that for each , the occurrences of in and are the same and that for each , the occurrences of in and in are the same. In the former case, the desired statement follows from . In the latter case, the assignment of in is precisely the one to not satisfy any witnessing clause of , hence precisely the assignment of in .
For the last statement, note that .
Theorem 8
*Let be a well-formed non-basic non-final unsatisfiable type and let be the immediate successor of . assume that is a contracting node. Let be a sink of such that is not potentially complex. Then the following statements hold. *
If is a labelled with then , is not satisfied by and . 2. 2.
If is identified with the source of then is a well-formed non-basic unsatisfiable type and .
Proof. Analogous to Theorem 6 with Lemma 12 used instead of Lemma 9.
C.4 Contracting , potentially complex
In this subsection we assume that is a well-formed non-basic non-final unsatisfiable type, that , the immediate successor of is a contracting node, and that is potentially complex.
Let be the subset of that are not satisfied by . Let .
Lemma 13
.
Proof. Let . If there is such that then we are done. Otherwise, . We show that in this case, . First note that, by assumption, for some child of such that . Next, as is non-basic, . This means that there is such that . That is, by the edge containement property of tree decompositions, there is a node of such that and . Now and hence . By the connectivity property, is contained in the bag of the parent of which is .
Let be the subset of consisting of all clauses such that is not satisfied by and and .
Let be a function from to obtained from as follows.
- •
For each such that and is satisfied by , .
- •
For each such that , .
Let . Let It follows from definitions of and a potentially complex assignment that . Moreover, Lemma 13 implies that all the elements of occur in the bags of the roots of and hence the type is valid in this sense. Note that in the previous cases this validity was obvious by construction.
Lemma 14
* and for each , .*
Proof.
Let . We are going to show that for . Clearly, this will imply that .
It follows from Proposition 8 that and hence, by Proposition 9 .
Let . Assume first that If then and we are done. Otherwise, . In light of the previous paragraph plus another application of Proposition 9, , hence .
Assume now that . If then through another application of Proposition 8, implies that and hence . If then . Hence, by the second paragraph and another application of Proposition 8, . Again, it follows that .
Conversely, assume that . As , . It thus remains to show that thus implying that .
Let . If then and hence thus impying that . Assume that . If then . Otherwise, note that implies by Proposition 8 that and hence by Proposition 9. If then by Proposition 8 and we are done. Otherwise, . It follows from that Hence, by Proposition 8, and hence and we are done.
Lemma 15
**
Proof. By construction, . Combining with Lemma 14, we observe that . Consequently, . This is the same as to say that . However, by construction, .
Lemma 16
Then for each , .
Proof. Let . Assume fist that . Then and hence . Let . Then (as ), . If then by definition in contradiction to the definition of being a subset of .
Assume next that which is, by definition . If then does not have joint variables with simply by definition. If then we need to use the definition of one-sided decomposition. In particular, let . This means that there is a child of such that . Since by definition, is not present in any bag outside of , implies that is present in a bag of by the containement property. To this end note that simply because contains a variable of . On the other hand, where is a root of a tree of . Now does not contain ancestors nor descendants of hence by definition of one-sided tree decomposition.
Finally, let . Reusing the previous paragraph, we note that if then . On the other hand, by definition of , there is such that . So, by the containement condition must be present in a bag containing . On the other hand, so is not present in a bags of . It follows that must be contained in a bag outside of . By the connectivity condition, this means that must be present in the bag of the parent of which is , in contradiction to the definition of .
Lemma 17
* is a subfunction of .*
Proof. First of all, let . By combination of Lemmas 15 and 16, . This means that . It thus remains to verify that .
So, let . If then . By definition of this means (and hence ) and is not satisfied by . If then it is immediate from the definition of these sets that and that is not satisfied by .
It thus remains to assume that . One necessary condition for that is that is not satisfied by . It follows from Lemma 14 and the definition of that and . From this we already conclude that is not satisfied by , so we only need to show that .
The other necessary condition for is that there is such that . Since by Lemma 14, we know now that . It thus remains to verify that is not satisfied by . More precisely, in light of the previous paragraph we need to prevify that is not satisfied by . Taking into account the reasoning in the previous paragraph, this amounts to showing that is not satisfied by . Assume the opposite. This means that there is such that . As , by the connectivity condition, cannot appear in any bag outside of . This means that itself must appear in a bag inside by the containement condition of tree decompositions. On the other hand, as , cannot appear in any bag inside . This means that by the containement condition, must appear in a bag outside . By the connnectivity condition this means that contradicting the definition of .
Lemma 18
Assume that (the filling function) is satisfiable. Then is not satisfiable.
Proof. Assume the opposite and let be a satisfying assignment of . Also, let be a satisfying assignment of . Clearly, we may assume that and . According to Lemma 16, . Therefore, is a well formed set of literals.
By definition of for each , . Therefore, by Lemma 16, . Hence, we can consider the function . The set as in the previous paragraph satisfies . We will establish a contradiction by showing that is in fact unsatisfiable.
In order to do this, we need the following claim.
Claim 9
.
Assume that the claim holds. Then for each , . Indeed, for this follows from Lemma 17. For , , the containement relation follows from Theorem 15. It thus follows that is a satisfiying assignment for . However, this is a contradiction: simply because is unsatisfiable by assumption. It thus remains to prove the claim.
In light of Lemma 17, it is enough to show that each such that is contained in . Assume first that . Then from and not being satisfied by , it follows that and hence . If then, since is not satisfied by , .
It remains to assume that . If then . Otherwise, applying the same argument as in the first paragraph of Lemma 17, we observe that . As we assumed that does not falsify , . In ths remains to show that is not satisfied by . We note that (see the third paragraph of the proof of Lemma 17) for a detailed reasoning). Now is clearly not satisfied by and since, , is not satisfied by simply by definition of .
Now we are considering the case where is not satisfiable. The reasoning is similar to the case where is satisfiable. So, rather than reproving everything, we will refer to relevant proofs or their fragments wherever appropriate.
Let be the subset of consisting of all the clauses such that . Let be a transitional resolution for with being the set of transitional clauses.
Lemma 19
.
Proof. Let . By definition of , there is a variable such that but does not occur in a bag outside . This means that by the edge connectivity property. On the other hand, by definition of , there is a variable . Because of the containement condition, must occur in a bag outside . We conclude that, by the connectivity condition, .
Lemma 20
Let be a non-transitional sink of labelled with . Let be an assignment carried by a source- path of . Then .
Proof. In other words, we need to show that . By definition of and a non-transitional clause of , this is the same as to show that
. Now, . That is, . As falsifies , we are done.
Let and be a -falsifier for with . Let . It follows from the combination of Lemmas 13 and 19 that all occur in bags of , hence is valid in this sense.
The following theorem is proved analogously to Lemma 14.
Lemma 21
* and for each , .*
The following lemma is proved analogously to Lemma 15 with Lemma 21 used instead of Lemma 14.
Lemma 22
**
Lemma 23
Then for each , .
Proof. Let . The subsequent reasoning is analogous to that of Lemma 16 with Lemma 21 and Lemma 22 used instead of Lemma 14 and Lemma 15, respectively.
Lemma 24
* is a subfunction of .*
Proof. Let be the restriction of to and be the restriction of to .
It follows from Lemma 16 that being a subfunction of is equilvalent to being a subfunction of . This can be proved analogously to Lemma 17 with used instead of and Lemmas 21, 22, and 23 being used instead of Lemmas 14, 15, and 16, respectively.
So, it remains to show that is a subfunction of . By definition of , and not satisfied by . So, it remains to show that . This is the same as to show that . Now, , which is by Lemma 21, . On the other hand, the only difference in the representation of is that is used instead of . The former is a superset of the latter since falsifies by assumption. On the other hand , therefore, meaning that the containement in the opposite direction holds as well.
Lemma 25
Then is not satisfiable.
Proof. Assume the opposite. Let be a satisfying assignment for . Also, let be the restriction of to and let be a satisfying assignment for existing by definition of . Clearly, we assume that and that . That is, and hence is a well formed set of literals.
It follows from Lemma 23 that , therefore, we can consider a function . Clearly, satisfies . We are going to demonstrate that and for each , . This will imply that satisfies , a contradiction to the assumption that .
In light of Lemma 24, it is enough to show the following.
- •
. Just follows from the definition of .
- •
For each , . In fact this is proved for the whole in the proof of Lemma 18.
- •
. This is the claim in the proof of Lemma 18 (wih Lemma 24 used instead of Lemma 17).
Theorem 9
Let be a well-formed non-basic non-final unsatisfiable type and let be the immediate successor of . assume that is a contracting node. Let be a sink of such that is potentially complex. Let be the filling function.
If is satisfiable then, is identified with the source of where is non-basic well-formed unsatisfiable type Moreover, is a subfunction of .
If is unsatisfiable then, by construction, is the source of a transitional resolution of with being the set of transitional clauses. Let be a sink of . Let be an arbitrary path from to . Suppose that is associated with for some non-transitional clause . Then . Otherwise, is a transitional link associated with . In this case is identified with the source of where is a well-formed non-basic unsatisfiable type. Moreover, is a subfunction of .
Proof. If is satisfiable then the identification of with the source of follows by construction. It follows from Lemma 14 that is well-formed. Further on, it follows from Lemma 17 that is a subfunction of . As does not falsify any clause of , we conclude that is a non-basic type. Finally, it follows from Lemma 18 that is a non-satisfiable type.
Assume now that is not satisfiable. If is a non-transitional sink then the related statement follows from Lemma 20. If is transitional sink then it is identified with the source of by construction. It follows from Lemma 21 that is well formed. Next, it follows from Lemma 24 that is a sufunction of . The argument that is non-basic is now a little bit more complicated. As is potentially complex, does not fasify any clause of but there is also extra effect by . For each this does not matter because by Lemma 23, (recall that by assumption). On the other hand, for each , and hence is not falsified by either. Finally, it follows from Lemma 25 is unsatisfiable.
C.5 Combining things together
Theorem 10
Let be a subsequence of consisting of all the non-basic well-formed unsatisfiable types. Let . For each let be the source of . Then for each is a falsifying FRR.
Proof. Let . First, we observe that is a falsifying sequence of functions. In order to do this, we need to demonstrate that each satisfies the conditions of Definition 32. If is final, this follows from the definition. Otherwise, this follows from Theorems 6, 7, 8, 9, . . Let us prove that the sequence is read-once.
Let us say that a type is a descendant of type (both types belong to ) if is a descendant of as per the definition before Theorem 3. Let be the union of and all the sets such that is a descendant of .
Claim 10
.
Proof. By induction on . For , and simply by construction.
Now consider for . Then is the union of , which is a subset of by construction and the union of for children of . By the induction assumption, It follows that from the combination of the following statements:
- •
the last statement of Lemma 9 ;
- •
the first statement of Lemma 11 ;
- •
the last statement of Lemma 12;
- •
Now, let be a descendant of . This means that there is a child of such that either or is a descendant of . In any case, and hence, by the claim . The combination of statements provided inthe end of the proof of the claim implies that . It follows that as required.
Proof of Theorem 2. Assume that does not contain empty clauses for otherwise, the statement is trivial. Let be a type where at the first position denotes the empty prefix of and maps every clause to . We call the starting type. We claim that . Indeed, as is empty, . That is, . Thus for each , . It remains to show that . As maps all the long clauses to , they all belong to . As for a clause , direct inspection of the last condition of the type function definition shows that . It follows from Theorem 10 that is an FRR for .
Now, we need to upper-bound the size of . Let us denote by . Clearly, is the union of and the local graphs of all the descendants of in the sense defined in the proof of Theorem 10. We are going to upper bound the size of each local graph and the number of local subgraphs in the union.
Consider first the local graph for a final type . by definition, is a falsifying FRR for , so it might look like a recursion. However, the situation is much simpler. In particular, observe that . Indeed, suppose a long clause belongs to . This means that . Consequently, by definition, . As is final, it follows that in contradiction to being non-basic. As is in fact , Corollary 1 is applicable. As there are no transitional clauses, the upper bound for is at most .
Each local graph of a non-final type consists of a dome of size at most plus at most (at most one per leaf transitional resolutions). By Lemma 19, the number of transitional clauses for such a resolution is at most . Therefore, by Corollary 1, the size of each resolution is . We concldue that thesize of each local subgraph is .
In order to calculate the number of local graphs in the union we calculate the number of respective types. A type consists of four components. The number of possible first components is the number of bags of plus one. As the number of bags is , this is an upper bound on the number of the first components as well. For the number of second components, recall that by Proposition 4 (taking into account that the number of bags is ), is for each prefix of . Therefore, with the first component being fixed, each clause of can be mapped to different values. Thus the number of possible maps is which is well known to be upper-bounded by .
For the last two components, observe that for each type , partitions a subset of . Therefore . By definition, is a subset of bags of the roots of and assigns the variables in the bags of the roots of . As the set of trees is completely determined by the first two components, with these components being fixed, the number of possible third components as well as the number of possible fourth components is (recall that the size of each bag is at most ). We conclude that the total size of is .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Albert Atserias, Massimo Lauria, and Jakob Nordström. Narrow proofs may be maximally long. ACM Trans. Comput. Log. , 17(3):19, 2016.
- 2[2] Paul Beame, Jerry Li, Sudeepa Roy, and Dan Suciu. Lower bounds for exact model counting and applications in probabilistic databases. In Proceedings of the Twenty-Ninth Conference on Uncertainty in Artificial Intelligence, Bellevue, WA, USA, August 11-15, 2013 , 2013.
- 3[3] Eli Ben-Sasson and Avi Wigderson. Short proofs are narrow - resolution made simple. J. ACM , 48(2):149–169, 2001.
- 4[4] Édouard Bonnet, Eun Jung Kim, Stéphan Thomassé, and Rémi Watrigant. Twin-width I: tractable FO model checking. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020 , pages 601–612, 2020.
- 5[5] Johann Brault-Baron, Florent Capelli, and Stefan Mengel. STACS 2015. volume 30 of LIP Ics , pages 143–156, 2015.
- 6[6] Florent Capelli. Understanding the complexity of #sat using knowledge compilation. In LICS 2017 , pages 1–10. IEEE Computer Society, 2017.
- 7[7] Marek Cygan, Fedor V. Fomin, Danny Hermelin, and Magnus Wahlström. Randomization in parameterized complexity (dagstuhl seminar 17041). Dagstuhl Reports , 7(1):103–128, 2017.
- 8[8] Adnan Darwiche. Decomposable negation normal form. J. ACM , 48(4):608–647, 2001.
