Motivation
Clique-width is a graph parameter introduced by Courcelle and Olariu (Discrete Appl. Math. 101 (2000)) that measures how far a graph is from being built by a few labelled operations. Every problem expressible in monadic second-order logic with quantification over vertices and vertex sets (MSO1) can be solved in linear time on graphs given together with a decomposition of bounded clique-width (Courcelle, Makowsky and Rotics, Theory Comput. Syst. 33 (2000)). Bounded clique-width is more general than bounded tree-width: complete graphs have unbounded tree-width but clique-width 2.
For fixed k there was, before this paper, no polynomial-time algorithm that either decides that a graph has clique-width at least k+1 or outputs a decomposition of clique-width bounded by a function of k; the best known algorithm, by Johansson (2001), gave width 2klogn. Oum and Seymour (J. Combin. Theory Ser. B 96 (2006)) closed this gap with approximation 23k+2−1, through rank-width and a factor-3 approximation for the branch-width of symmetric submodular functions.
Timeline:
- 1991: Robertson and Seymour introduce branch-width of graphs and hypergraphs (J. Combin. Theory Ser. B 52).
- 2000: Courcelle and Olariu define clique-width; Courcelle, Makowsky and Rotics solve MSO1 problems on graphs given with a k-expression.
- 2001: Johansson gives a 2klogn approximation.
- 2006: Oum and Seymour define rank-width, prove rwd(G)≤cwd(G)≤2rwd(G)+1−1, and give an O(n9logn) algorithm that outputs a (23k+2−1)-expression or certifies clique-width above k.
Setting
All graphs are finite and simple. For a finite set V, a function f:2V→Z is submodular if f(X)+f(Y)≥f(X∩Y)+f(X∪Y) and symmetric if f(X)=f(V∖X).
A branch-decomposition of f is a pair (T,L) where T is a tree with at least two vertices and all degrees at most 3, and L is a bijection from V onto the leaves of T. Removing an edge e of T splits the leaves in two; the width of e is f of the set of elements of V on one side. The width of (T,L) is the largest edge width, and the branch-width bw(f) is the least width of a branch-decomposition, with bw(f)=f(∅) when ∣V∣≤1.
A set W⊆V is well-linked with respect to f if for every partition (X,Y) of W and every Z with X⊆Z⊆V∖Y, f(Z)≥min(∣X∣,∣Y∣).
Let A(G) be the adjacency matrix of G over GF(2). For disjoint X,Y⊆V(G), cutrkG∗(X,Y) is the rank of the submatrix of A(G) with rows X and columns Y, and the cut-rank function is cutrkG(X)=cutrkG∗(X,V(G)∖X). The rank-width rwd(G) is bw(cutrkG).
A k-expression is a term built from constants ⋅i (a vertex with label i∈{1,…,k}), the operators ηi,j (i=j; add all edges between labels i and j), ρi→j (relabel i into j) and disjoint union ⊕. Its value is the labelled graph it produces; G has clique-width cwd(G)≤k if some k-expression has value isomorphic to G.
An interpolation of f is a function f∗ on disjoint pairs (X,Y) that agrees with f on (X,V∖X), is monotone, submodular in the sense f∗(A,B)+f∗(C,D)≥f∗(A∩C,B∪D)+f∗(A∪C,B∩D), and has f∗(∅,∅)=f(∅).
Formalization targets
Goal: Theorem 1.1, certificate form
For a graph G with at least one vertex and an integer k≥1:
∃W, ∣W∣=3k+1, W well-linked for cutrkG⟹cwd(G)≥k+1,
∄W, ∣W∣=3k+1, W well-linked for cutrkG⟹cwd(G)≤23k+2−1.
The same explicit condition decides which side of the approximation holds; this is what the paper's algorithm certifies.
Milestones
- Proposition 4.1: properties of an interpolation, including that X↦f∗(X,B)−f(∅) is a matroid rank function on V∖B when f({v})−f(∅)≤1.
- Proposition 4.2: fmin(X,Y)=minX⊆Z⊆V∖Yf(Z) is an interpolation.
- Theorem 5.1: a well-linked set of size k forces bw(f)≥k/3 (for k=1).
- Theorem 5.2: no well-linked set of size k implies bw(f)≤k, when f({v})≤1.
- Proposition 6.1: rkM[X1,Y1]+rkM[X2,Y2]≥rkM[X1∪X2,Y1∩Y2]+rkM[X1∩X2,Y1∪Y2].
- Corollary 6.2: submodularity of cutrkG∗ and cutrkG.
- Section 6 claim: cutrkG is symmetric submodular and cutrkG∗ interpolates it.
- Proposition 6.3: rwd(G)≤cwd(G)≤2rwd(G)+1−1.
Significance
The dichotomy turns clique-width, for which no exact polynomial algorithm is known even for fixed k, into a parameter that can be approximated with an explicit witness in each direction. Downstream, every algorithm for graphs of bounded clique-width that needs a k-expression as input becomes applicable to graphs given without one, at the cost of an exponential blow-up of the width.
The result is proved in the literature; this mission formalizes it. To our knowledge none of the objects involved — branch-width of set functions, rank-width, cut-rank, k-expressions, clique-width — has been formalized in Mathlib, and the submodularity of submatrix rank (Proposition 6.1) is absent from Mathlib's Matrix.rank API. The formal development would give reusable definitions of branch-decompositions of arbitrary integer set functions, of cut-rank, and of clique-width, and a machine-checked link between the combinatorial and the linear-algebraic width parameters.
Difficulty
The upper bound in Theorem 5.2 is the core. The natural approach, growing a branch-decomposition one leaf split at a time while keeping the width at most k, gets stuck at a leaf carrying a set B with f(B)=k: a split of B into two parts of f-value below k has to be found, and it must be found from the failure of well-linkedness of a set that is not obviously related to B. The paper's device is the interpolation f∗, which attaches a matroid to B whose base has exactly f(B) elements. Formalizing this requires handling partial branch-decompositions, their extensions, and a maximality argument over trees, none of which exists in Mathlib.
Proposition 6.3's upper bound is a second, independent difficulty: a rank-decomposition must be converted into a k-expression by an induction over a rooted binary tree, with a relabelling argument bounding the number of labels by the number of distinct nonzero rows of a GF(2) matrix of rank k. Its lower bound needs the tree structure of a k-expression to be read as a branch-decomposition.
Formalization scope
The ground set is a Fintype V with DecidableEq V; subsets are Finset V; set functions are Finset V → ℤ, as in the paper. A branch-decomposition is a tree T : SimpleGraph (Fin n) with n≥2, all neighbour sets of size at most 3, and an injective map L from V onto the vertices of degree 1; the side of an edge uw is found by reachability from u after deleting uw. Branch-width, rank-width and clique-width are never computed as minima: "bw(f)≤k" is the predicate "∣V∣≤1 and f(∅)≤k, or a branch-decomposition of width at most k exists", lower bounds say that every branch-decomposition has a wide edge, and "cwd(G)≤k" is "G has a k-expression". Labels {1,…,k} are Fin k. The value of a k-expression has as vertex type the occurrences of constants (a nested sum type), and ηi,j requires i=j. Cut-rank uses Matrix.rank over ZMod 2 of submatrices of SimpleGraph.adjMatrix. An interpolation is a function on all pairs of subsets whose axioms are imposed on disjoint pairs only.
Running time is not formalized. The paper's Theorem 1.1 asserts an O(n9logn) algorithm; there is no cost model on the page, and the goal states the certificate the algorithm returns instead. Without the running time, "cwd(G)≥k+1 or cwd(G)≤23k+2−1" holds for every graph, so that reading is ruled out as a formalization of the goal; so are well-linkedness with respect to anything other than cutrkG, widths defined by an unguarded infimum (which is 0 on an empty family), k-expressions whose value is not the graph up to isomorphism or whose η may join equal labels, and Theorem 5.1 stated for k=1.
Correction of Theorem 5.1. As printed, Theorem 5.1 fails for k=1: a singleton is always well-linked, but the edgeless graph on two vertices has cut-rank identically 0 and branch-width 0<1/3. The milestone carries the hypothesis k=1; the goal uses the theorem only at size 3k+1≥4.
The graph with no vertex is excluded from the goal and from the upper bound of Proposition 6.3, since it has no k-expression for any k. Contributions welcome: proofs of the milestones, lemmas on branch-decompositions (suppressing degree-2 vertices, extending partial decompositions), and submatrix-rank submodularity, which is reusable beyond this mission.
Selected references