JD: Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – project number 563448077. NM and ST received funding from the European Research Council (ERC) with grant agreement No. 101126229 – BUKA. NM also received funding from the European Union through an ERA Fellowship with grant agreement No. 101334340 – LoCoMoDe.
A large part of this work was done while MP was affiliated with the University of Warsaw and was supported by the project BOBR that has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme, grant agreement No. 948057. During the employment at TU Darmstadt, MP was supported by the Alexander von Humboldt Foundation in the framework of the Alexander von Humboldt Professorship, endowed by the Federal Ministry of Research, Technology, and Space, as well as by the European Union through European Research Council project WYDRA, grant agreement no. 101230549.
Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
Introduction
It is conjectured that various well-studied graph problems—such as the independent set problem, the dominating set problem, or more generally, problems expressible in first-order logic—become tractable, in the sense of parameterized complexity, on graph classes which are monadically dependent . A graph class C \mathcal{C} C is monadically independent if it encodes all graphs as follows: there is some number k k k and first-order formula φ ( x , y ) \varphi(x,y) φ ( x , y ) in the signature of k k k -colored graphs, such that every graph H H H can be obtained by the following recipe. First pick some graph G ∈ C G \in\mathcal{C} G ∈ C and its k k k -coloring G + G^{+} G + ; then construct the graph whose edges are the vertex pairs satisfying φ ( x , y ) ∨ φ ( y , x ) \varphi(x,y) \lor\varphi(y,x) φ ( x , y ) ∨ φ ( y , x ) in G + G^{+} G + ; finally remove some vertices, obtaining the target graph H H H . Conversely, C \mathcal{C} C is monadically dependent if it is not monadically independent. Examples include the class of planar graphs, graph classes with bounded maximum degree, every class excluding a fixed graph as a minor, the class of unit interval graphs, and many other classes of graphs studied in the literature.
Thus, monadic dependence is defined as a natural dividing line for the expressive power of graph classes with respect to first-order logic, classifying them into those where arbitrarily complicated relations can be encoded (monadically independent classes) and those where any fixed encoding mechanism is in some way restricted (monadically dependent classes). Monadic dependence has been the subject of intensive investigations over the last 10 years, mostly due to the following conjecture that predicts that this expressive-power dividing line coincides with the dividing line for the algorithmic tractability of first-order logic.
Conjecture 1 [30 , 18 ] . Let C \mathcal{C} C be a monadically dependent class of graphs. Then the model checking problem for first-order logic on C \mathcal{C} C is fixed-parameter tractable: There exists an algorithm that given a graph G ∈ C G \in\mathcal{C} G ∈ C and a first-order sentence φ \varphi φ , verifies whether φ \varphi φ holds in G G G in time O C , φ ( ∣ G ∣ c ) O_{\mathcal{C},\varphi}(|G|^c) O C , φ ( ∣ G ∣ c ) , for some constant c c c .
As observed by Adler and Adler [1 ] following a result of Podewski and Ziegler [28 ] , on monotone1 graph classes monadic dependence coincides with the concept of nowhere denseness of Nešetřil and Ossona de Mendez [24 ] . Hence, in those classes Conjecture 1 is verified by the landmark result of Grohe, Kreutzer, and Siebertz [20 ] . Combined, the results of Dreier, Mählmann, and Siebertz [13 ] and Dreier, Eleftheriadis, Mählmann, McCarty, Pilipczuk, and Toruńczyk [11 ] proved Conjecture 1 in monadically stable classes: a property lying strictly between nowhere denseness and monadic dependence that postulates non-interpretability of all linear orders , instead of all graphs, using a fixed first-order formula in vertex-colored graphs from the class. The conjecture was also confirmed in classes of ordered graphs by Bonnet, Giocanti, Ossona de Mendez, Simon, Thomassé, and Toruńczyk [7 ] ; there, monadic dependence coincides with the boundedness of the graph parameter twin-width . On the negative side, Dreier, Mählmann, and Toruńczyk proved that in monadically independent graph classes that are hereditary, the model checking problem for first-order logic is as hard as on general graphs, that is, AW[]-hard [14 ] . Thus, a confirmation of Conjecture 1 would prove that on hereditary graph classes, monadic dependence precisely delimits fixed-parameter tractability of model checking first-order logic (assuming FPT ≠ \ne = AW[ ]).
We refer the reader to the introductory sections of [11 , 14 ] for a broader introduction to the background of Conjecture 1 and the already sizeable body of work around it.
Recently, Dreier and Toruńczyk [16 ] proposed a line of attack on Conjecture 1. They introduced a family of graph parameters called merge-width , indexed by a radius parameter r ∈ N r \in\mathbb{N} r ∈ N , and conjectured the following two assertions that together would amount to a proof of Conjecture 1:
Monadically dependent graph classes C \mathcal{C} C have almost bounded merge-width: for every r ∈ N r \in\mathbb{N} r ∈ N , the radius-r r r merge-width of any graph G ∈ C G \in\mathcal{C} G ∈ C is bounded by a subpolynomial2 function of the size of G G G . (The function may depend on C \mathcal{C} C and r r r .) Moreover, suitable decompositions (called merge sequences ) witnessing the almost boundedness of merge-width can be efficiently constructed.
Note that there are monadically dependent classes that have unbounded merge-width3 , which explains why only almost boundedness is conjectured.
(2) Model checking first-order logic can be performed in fixed-parameter time on any hereditary graph class of almost bounded merge-width.
To corroborate the viability of this approach, Dreier and Toruńczyk showed the following:
Classes of bounded twin-width as well as classes of bounded expansion have bounded merge-width. (That is, the radius-r r r merge-width of any member of the class is bounded by a constant depending on r r r and the class.) Also, nowhere dense classes have almost bounded merge-width. All these classes are monadically dependent and are known to admit fixed-parameter algorithms for model checking first-order logic (with the twin-width case requiring access to a suitable decomposition). On the other hand, hereditary classes that are monadically independent do not have almost bounded merge-width.
The model checking problem for first-order logic can be solved in fixed-parameter time in graph classes of bounded merge-width, provided suitable merge sequences witnessing the boundedness of merge-width can be efficiently constructed. (Note that Step (2) above concerns the more general classes of almost bounded merge-width.)
Recently, the authors together with Rose McCarty [12 ] proved that monadically dependent classes have almost bounded radius-1 merge-width; this implements Step (1) of the approach for r = 1 r = 1 r = 1 . In this paper, we implement Step (1) in full by proving the following result.
Theorem 1.1. For every r ∈ N r \in\mathbb{N} r ∈ N and monadically dependent graph class C \mathcal{C} C , there is a subpolynomial function f : N → N f : \mathbb{N} \to\mathbb{N} f : N → N such that for every n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , the radius-r r r merge-width of G G G is bounded by f ( n ) f(n) f ( n ) . Moreover, given G ∈ C G \in\mathcal{C} G ∈ C , a merge sequence for G G G of radius-r r r width bounded by f ( n ) f(n) f ( n ) can be computed in O ^ C , r ( n 3 ) \widehat{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) time.4
A companion paper by three of the authors [15 ] implements Step (2) of the approach and thereby completes the proof of Conjecture 1.
Both the proof for the radius-1 case from [12 ] and our proof of Theorem 1.1 are based on neighborhood complexity and tools from VC combinatorics. However, the resulting proofs differ significantly, and we were unable to extend the proof from [12 ] to higher radii.
Discussion. Theorem 1.1 confirms the conjecture of the first and last author [16 Conjecture 1.18] , stating that for hereditary graph classes, monadic dependence coincides with almost bounded merge-width. Most importantly, this opens the way towards proving Conjecture 1, that the model checking problem is fixed-parameter tractable on monadically dependent graph classes, which is achieved in a companion paper [15 ] by a subset of the authors. It also confirms a conjecture of the last author [29 Conjecture 10.7, full version] , stating the equivalence of monadic dependence and almost bounded flip-width , for hereditary graph classes. Flip-width is a family of graph parameters based on games, similar to the Cops and Robber game characterizing treewidth. It is known that for hereditary graph classes, almost bounded merge-width implies almost bounded flip-width [16 ] , which implies monadic dependence [14 ] . Thus, our result proves the equivalence of the three notions, and yields a characterization of monadic dependence in terms of games.
This adds to a list of logical, combinatorial, and algorithmic characterizations of monadically dependent graph classes, which we state below, referring to the relevant papers for the definitions and proofs.
Theorem 1.2. The following conditions are equivalent for a hereditary graph class C \mathcal{C} C :
C \mathcal{C} C is monadically dependent,
C \mathcal{C} C is dependent [9 ] ,
C \mathcal{C} C has almost bounded merge-width [16 ] ,
C \mathcal{C} C has almost bounded flip-width [29 ] ,
C \mathcal{C} C is flip-breakable [14 ] ,
C \mathcal{C} C is flip-separable [4 ] ,
first-order model checking is fixed-parameter tractable on C \mathcal{C} C [14 , 15 ] . (The implication (7)→(1) assumes A W [ ⋆ ] ≠ F P T \mathrm{AW}[\star] \ne\mathrm{FPT} AW [ ⋆ ] = FPT .)
We refer to [8 , 9 ] for a list of model-theoretic characterizations of monadic dependence, in the greater generality of relational structures. We note that the results in the current paper (including the statement of Theorem 1.2 ) easily extend to structures equipped with several binary relations, using a standard encoding in graphs [14 Section 19.3, full version] . Lifting them to relational structures is left for future work.
Acknowledgements
Acknowledgements. We thank Rose McCarty for insightful discussions and contributions to the early development of the ideas in this paper.
Overview
In this section we give a technical overview of the proof of Theorem 1.1, focusing on presenting the main conceptual ideas. Figure 1 shows the structure of the proof. We go through it from right to left.
Figure 1. Structure of the proof of Theorem 1.1. Each arrow is an implication, labeled by where it is proved.
Merge-width
We start by recalling the definition of merge-width and the relevant intuitions behind it. Actually, throughout this paper we will not rely on the original definition of Dreier and Toruńczyk [16 ] , but on a variant called partition merge-width proposed recently by Drabik, Dumas, Geniet, Nowakowski, Pilipczuk, and Toruńczyk [10 ] . On the one hand, partition merge-width puts fewer constraints on the decompositions that need to be constructed, which makes our task technically easier. On the other hand, decompositions witnessing bounds on partition merge-width can be efficiently transformed into decompositions witnessing bounds on (original) merge-width, at the cost of a minor loss in the values of the parameters. See Theorem 3.5 for a precise formulation. To introduce partition merge-width, we need a few definitions first.
Let G G G be a graph. The notion of a decomposition underlying partition merge-width is called a partition sequence : it is a sequence
P 0 ⊑ P 1 ⊑ … ⊑ P m \mathcal{P}_0 \sqsubseteq\mathcal{P}_1 \sqsubseteq\ldots\sqsubseteq\mathcal{P}_m P 0 ⊑ P 1 ⊑ … ⊑ P m
of partitions of the vertex set of G G G such that
The intuition is that the partitions P 0 , … , P m \mathcal{P}_0,\ldots,\mathcal{P}_m P 0 , … , P m should describe a process of iterative merging of various parts of the graph G G G , starting from singletons and ending with the whole vertex set being in a single part, so that at every time step of the merging process, the current partition P i \mathcal{P}_i P i provides good control over the “information flow” in G G G . This control is measured by the width of the partition sequence; a notion whose definition is quite subtle.
Let P \mathcal{P} P be a partition of the vertex set of G G G . (Think: P = P i \mathcal{P}=\mathcal{P}_i P = P i for some i ∈ { 0 , … , m } i\in\{0,\ldots,m\} i ∈ { 0 , … , m } .) A P \mathcal{P} P -flip of G G G is any graph H H H that can be obtained from G G G as follows: For any pair of parts A , B ∈ P A,B\in\mathcal{P} A , B ∈ P , either leave all the edges between A A A and B B B intact, or complement the adjacency relation between A A A and B B B ; that is, replace all the edges u v uv uv with u ∈ A u\in A u ∈ A and v ∈ B v\in B v ∈ B with non-edges, and vice versa. In this definition we allow A = B A=B A = B , which corresponds to either leaving the adjacency relation within A A A intact or complementing it.
With this definition, we introduce the P \mathcal{P} P -metric [19 ] on the vertex set of G G G : for u , v ∈ V ( G ) u,v\in V(G) u , v ∈ V ( G ) , we set
dist P ( u , v ) : = max { dist H ( u , v ) : H is a P -flip of G } , \operatorname{dist}_{\mathcal{P}}(u,v):=\max\{\operatorname{dist}_{H}(u,v): H\text{ is a }\mathcal{P}\text{-flip of }G\}, dist P ( u , v ) := max { dist H ( u , v ) : H is a P -flip of G } ,
where dist H ( u , v ) \operatorname{dist}_{H}(u,v) dist H ( u , v ) is the standard shortest-path distance metric in H H H . The intuition behind this definition is that dist P ( u , v ) \operatorname{dist}_{\mathcal{P}}(u,v) dist P ( u , v ) measures how well P \mathcal{P} P controls short connections between u u u and v v v by verifying whether these connections can be destroyed in a P \mathcal{P} P -flip. As observed in [19 ] , dist P ( ⋅ , ⋅ ) \operatorname{dist}_{\mathcal{P}}(\cdot,\cdot) dist P ( ⋅ , ⋅ ) is indeed a metric on the vertex set of G G G .
Now, for a radius parameter r ∈ N r\in\mathbb{N} r ∈ N , the radius-r r r width of a partition sequence P 0 , P 1 , … , P m \mathcal{P}_0,\mathcal{P}_1,\ldots,\mathcal{P}_m P 0 , P 1 , … , P m is the smallest integer k ∈ N k\in\mathbb{N} k ∈ N satisfying the following:
For every i < m i<m i < m and vertex u u u of G G G , there are at most k k k parts P ∈ P i P\in\mathcal{P}_i P ∈ P i with dist P i + 1 ( u , P ) ≤ r \operatorname{dist}_{\mathcal{P}_{i+1}}(u,P)\le r dist P i + 1 ( u , P ) ≤ r .
Thus, the intuition is that every vertex of the graph is well-separated in the P i + 1 \mathcal{P}_{i+1} P i + 1 -metric from all but at most k k k parts of P i \mathcal{P}_i P i . The + 1 +1 + 1 in the indices is important: While we measure distances with respect to the coarser partition P i + 1 \mathcal{P}_{i+1} P i + 1 (so the distances in the P i + 1 \mathcal{P}_{i+1} P i + 1 -metric can be larger than in the P i \mathcal{P}_i P i -metric), we measure the number of close parts in the finer partition P i \mathcal{P}_i P i . This allows a smooth control of the properties of partitions P i \mathcal{P}_i P i along the whole partition sequence.
We remark that in the original definition of merge-width [16 ] , distances are measured in “error graphs” R 1 , … , R m R_1,\ldots,R_m R 1 , … , R m that accumulate more and more error edges along the partition sequence, and each error graph R i R_i R i must be “compatible” with a single P i \mathcal{P}_i P i -flip H i H_i H i . Intuitively, working with partition merge-width allows us to consider all such P i \mathcal{P}_i P i -flips at the same time thanks to the flexibility of the P i \mathcal{P}_i P i -metric, and it also relaxes the inconvenient monotonicity requirement imposed on the error graphs.
For readers familiar with twin-width, it is also instructive to understand the difference between the mechanics of twin-width and of merge-width. While in both cases, the underlying notion of a decomposition is a partition sequence, in twin-width, if two parts A , B A,B A , B of the current partition P i \mathcal{P}_i P i are neither complete nor anticomplete to each other, then we consider this an “error edge” between whole parts A A A and B B B that affects all the vertices of A A A and B B B . In merge-width, error edges (i.e., edges of the graphs R i R_i R i as above) occur and are measured at the level of individual vertices, and thus vertices of a single part A ∈ P i A\in\mathcal{P}_i A ∈ P i can be incident to error edges leading to many other parts of P i \mathcal{P}_i P i without making the width large. As shown in [16 ] , such a reinterpretation of the mechanics of error edges leads to a notion – merge-width – that, contrary to twin-width, is also capable of describing key notions of sparsity theory (classes of bounded expansion and nowhere dense classes [25 ] ). This is because it captures the mechanics of generalized coloring numbers , a family of parameters characterizing those classes. Finally, working with the P i \mathcal{P}_i P i -metric in the definition of partition merge-width hides the concept of error edges from the immediate focus, but it should rather be regarded as a technical method to take all possible flips into account at the same time.
In the language of partition merge-width, our main result reads as follows. (In this overview, we write subpoly q ˉ ( n ) \operatorname{subpoly}_{\bar{q}}(n) subpoly q ˉ ( n ) to denote an unspecified subpolynomial function of variable n n n that may depend on parameters q ˉ \bar{q} q ˉ .)
Theorem 2.1 (Theorem 4.3 , simplified). Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class. Then there is an O C , r ( n 3 ) \mathcal{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) -time algorithm that given an n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , outputs a partition sequence of G G G of radius-r r r width bounded by subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) .
Theorem 1.1 then follows from combining the statement above with the results of Drabik et al. [10 ] .
Neighborhood complexity
Partitions in the partition sequence that we are going to construct in the proof of Theorem 2.1 will have a very specific form: they will be partitions into neighborhood classes , or 1-types, over vertex subsets. More precisely, for a graph G G G and a subset of vertices A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , we define the partition T 1 ( G , A ) \mathcal{T}_1(G,A) T 1 ( G , A ) of V ( G ) V(G) V ( G ) into 1-types over A A A as follows:
every vertex of A A A is placed into a singleton 1-type; and
vertices outside of A A A are partitioned into 1-types according to their neighborhood in A A A : u , v ∈ V ( G ) − A u,v \in V(G)-A u , v ∈ V ( G ) − A have the same 1-type over A A A if and only if N ( u ) ∩ A = N ( v ) ∩ A N(u) \cap A=N(v) \cap A N ( u ) ∩ A = N ( v ) ∩ A .
Note that in general graphs, there can be as many as ∣ A ∣ + 2 ∣ A ∣ |A|+2^{|A|} ∣ A ∣ + 2 ∣ A ∣ 1-types over A A A : ∣ A ∣ |A| ∣ A ∣ singleton types of the vertices A A A , and 2 ∣ A ∣ 2^{|A|} 2 ∣ A ∣ corresponding to the 2 ∣ A ∣ 2^{|A|} 2 ∣ A ∣ different subsets of A A A . By the Sauer–Shelah Lemma, this bound can be reduced to polynomial in ∣ A ∣ |A| ∣ A ∣ assuming that the set system of neighborhoods in G G G has bounded VC dimension; this is the case in monadically dependent graph classes (see Observation 3.2 ). However, it turns out that monadic dependence actually implies a much stronger bound: monadically dependent classes have almost linear neighborhood complexity , meaning that the number of 1-types over A A A is almost linear in the size of A A A . This was proved very recently by the authors and Rose McCarty [12 ] .
Theorem 2.2 ([12 Theorem 2] ). Let C \mathcal{C} C be a monadically dependent graph class. Then for every graph G ∈ C G \in\mathcal{C} G ∈ C and non-empty vertex subset A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , we have
∣ { N ( u ) ∩ A : u ∈ V ( G ) } ∣ ≤ ∣ A ∣ ⋅ subpoly C ( ∣ A ∣ ) . |\{N(u) \cap A:u \in V(G)\}| \leq|A| \cdot\operatorname{subpoly}_{\mathcal{C}}(|A|). ∣ { N ( u ) ∩ A : u ∈ V ( G )} ∣ ≤ ∣ A ∣ ⋅ subpoly C ( ∣ A ∣ ) .
Note that there are only ∣ A ∣ |A| ∣ A ∣ 1-types corresponding to the vertices of A A A , hence Theorem 2.2 implies that ∣ T 1 ( G , A ) ∣ ≤ ∣ A ∣ ⋅ subpoly C ( ∣ A ∣ ) |\mathcal{T}_1(G,A)| \leq|A| \cdot\operatorname{subpoly}_{\mathcal{C}}(|A|) ∣ T 1 ( G , A ) ∣ ≤ ∣ A ∣ ⋅ subpoly C ( ∣ A ∣ ) (see Theorem 3.3 ).
Theorem 2.2 is a fundamental result about monadically dependent graph classes on which our whole approach hinges. It generalizes analogous results for nowhere dense classes [17 ] , monadically stable classes [11 ] , and classes of bounded merge-width [3 ] . We refer the reader to the introductory section of [12 ] for more background on neighborhood complexity.
Reduction to the Damping Theorem
In the proof of Theorem 2.1 , we will actually construct a sequence of vertex subsets
V ( G ) = B 0 ⊇ B 1 ⊇ ⋯ ⊇ B m − 1 ⊇ B m = ∅ V(G)=B_0 \supseteq B_1 \supseteq\cdots\supseteq B_{m-1} \supseteq B_m=\varnothing V ( G ) = B 0 ⊇ B 1 ⊇ ⋯ ⊇ B m − 1 ⊇ B m = ∅
and put
P i : = T 1 ( G , B i ) for all i ∈ { 0 , 1 , … , m } . \mathcal{P}_i:=\mathcal{T}_1(G,B_i) \qquad\text{for all } i \in\{0,1,\ldots,m\}. P i := T 1 ( G , B i ) for all i ∈ { 0 , 1 , … , m } .
Thus, it is clear that P 0 \mathcal{P}_0 P 0 is a partition into singletons, P m \mathcal{P}_m P m has one part V ( G ) V(G) V ( G ) , and every next partition P i + 1 \mathcal{P}_{i+1} P i + 1 is a coarsening of P i \mathcal{P}_i P i ; so P 0 , P 1 , … , P m \mathcal{P}_0,\mathcal{P}_1,\ldots,\mathcal{P}_m P 0 , P 1 , … , P m is a partition sequence. Our goal is to construct the sequence B 0 , B 1 , … , B m B_0,B_1,\ldots,B_m B 0 , B 1 , … , B m so that this partition sequence has subpolynomial radius-r r r width.
For the rest of this overview it is convenient to phrase the width in terms of balls. For a partition P \mathcal{P} P of V ( G ) V(G) V ( G ) , a vertex u u u , and r ∈ N r \in\mathbb{N} r ∈ N , let Ball P [ u ] : = { v : dist P ( u , v ) ≤ r } \operatorname{Ball}_{\mathcal{P}}[u]:=\{v:\operatorname{dist}_{\mathcal{P}}(u,v)\leq r\} Ball P [ u ] := { v : dist P ( u , v ) ≤ r } ; that is, Ball P [ u ] \operatorname{Ball}_{\mathcal{P}}[u] Ball P [ u ] is the set of vertices that are at distance at most r r r from u u u in every P \mathcal{P} P -flip of G G G . Similarly, for a graph H H H , we let Ball H [ u ] \operatorname{Ball}_H[u] Ball H [ u ] be the set of vertices at distance at most r r r from u u u in H H H . The radius-r r r width of the partition sequence above is then the least k k k such that for every i ∈ [ m ] : = { 1 , … , m } i \in[m] := \{1,\ldots,m\} i ∈ [ m ] := { 1 , … , m } and every vertex u u u , the ball Ball r T 1 ( G , B i ) [ u ] \operatorname{Ball}^{\mathcal{T}_1(G,B_i)}_r[u] Ball r T 1 ( G , B i ) [ u ] intersects at most k k k parts of T 1 ( G , B i − 1 ) \mathcal{T}_1(G,B_{i-1}) T 1 ( G , B i − 1 ) . Hence Theorem 2.1 follows immediately from the following statement.
Theorem 2.3 (Theorem 4.3 , simplified). Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class. Then for every n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C one can compute in time O ~ C , r ( n 3 ) \widetilde{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) a sequence of vertex subsets V ( G ) = B 0 ⊇ B 1 ⊇ ⋯ ⊇ B m = ∅ V(G) = B_0 \supseteq B_1 \supseteq\cdots\supseteq B_m = \varnothing V ( G ) = B 0 ⊇ B 1 ⊇ ⋯ ⊇ B m = ∅ such that for every i ∈ [ m ] i \in[m] i ∈ [ m ] and vertex u u u , the ball Ball r T 1 ( G , B i ) [ u ] \operatorname{Ball}^{\mathcal{T}_1(G,B_i)}_r[u] Ball r T 1 ( G , B i ) [ u ] intersects at most subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) parts of T 1 ( G , B i − 1 ) \mathcal{T}_1(G,B_{i-1}) T 1 ( G , B i − 1 ) . In particular, T 1 ( G , B 0 ) ⊑ T 1 ( G , B 1 ) ⊑ ⋯ ⊑ T 1 ( G , B m ) \mathcal{T}_1(G,B_0) \sqsubseteq\mathcal{T}_1(G,B_1) \sqsubseteq\cdots\sqsubseteq\mathcal{T}_1(G,B_m) T 1 ( G , B 0 ) ⊑ T 1 ( G , B 1 ) ⊑ ⋯ ⊑ T 1 ( G , B m ) is a partition sequence of radius-r r r width bounded by subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) .
We construct this sequence in m m m steps, and each step contributes subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) to the width. Hence, the final width grows linearly in m m m . The key is to make every step halve the remaining work, leading to m ≤ O ( log n ) m \le O(\log n) m ≤ O ( log n ) , which is absorbed by subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) . More precisely, we maintain a set S i S_i S i of vertices that still need to be processed. Initially, S 0 = V ( G ) S_0 = V(G) S 0 = V ( G ) . In a single step, we replace S i S_i S i by a new set S i + 1 S_{i+1} S i + 1 of vertices that still need to be processed, with ∣ S i + 1 ∣ ≤ ∣ S i ∣ / 2 |S_{i+1}| \le|S_i|/2 ∣ S i + 1 ∣ ≤ ∣ S i ∣/2 , so that after at most 1 + log 2 n 1 + \log_2 n 1 + log 2 n steps no vertices are left. The sets S i S_i S i need not be nested, that is, a vertex may need to be processed again later. Accordingly, we let B i : = S i ∪ S i + 1 ∪ ⋯ B_i := S_i \cup S_{i+1} \cup\cdots B i := S i ∪ S i + 1 ∪ ⋯ be the set of all vertices that were processed at step i i i or later. Figure 2 illustrates this on a complete binary tree. A single step of the construction is captured by the following theorem, which takes A = S i A = S_i A = S i and yields S = S i + 1 S = S_{i+1} S = S i + 1 .
Figure 2. Construction of the sets S i S_i S i and B i B_i B i on a complete binary tree G G G , where S 0 = V ( G ) S_0 = V(G) S 0 = V ( G ) and each set S i S_i S i is obtained from S i − 1 S_{i-1} S i − 1 by removing the lowest level. In this example, the sets S i S_i S i are nested, so B i = ⋃ j ≥ i S j = S i B_i = \bigcup_{j\ge i} S_j = S_i B i = ⋃ j ≥ i S j = S i . (In general, the sets S i S_i S i need not be nested.) The panels show the resulting partition sequence T 1 ( G , B 0 ) ⊑ T 1 ( G , B 1 ) ⊑ ⋯ ⊑ T 1 ( G , B 4 ) \mathcal{T}_1(G,B_0) \sqsubseteq\mathcal{T}_1(G,B_1) \sqsubseteq\cdots\sqsubseteq\mathcal{T}_1(G,B_4) T 1 ( G , B 0 ) ⊑ T 1 ( G , B 1 ) ⊑ ⋯ ⊑ T 1 ( G , B 4 ) . In the fourth panel, the ⦿-marked set is Ball r T 1 ( G , B 3 ) [ u ] \operatorname{Ball}^{\mathcal{T}_1(G,B_3)}_r[u] Ball r T 1 ( G , B 3 ) [ u ] for every r ≥ 4 r \ge4 r ≥ 4 ; it intersects three parts of T 1 ( G , B 2 ) \mathcal{T}_1(G,B_2) T 1 ( G , B 2 ) , so it contributes three to the radius-r r r width of this partition sequence.
Theorem 2.4 (Damping Theorem; Theorem 4.1 , simplified). Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class. Then for every n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C and A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , one can compute in time O ~ C , r ( n 3 ) \widetilde{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) a set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) with ∣ S ∣ ≤ ∣ A ∣ / 2 |S| \le|A|/2 ∣ S ∣ ≤ ∣ A ∣/2 and a T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) -flip H H H of G G G such that for every vertex u u u , the ball Ball r H [ u ] \operatorname{Ball}^{H}_r[u] Ball r H [ u ] intersects at most subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) parts of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A \cup S) T 1 ( G , A ∪ S ) .
Note that two different partitions appear in the statement. The flip H H H is taken with respect to the coarser partition T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) , but the parts intersected by the balls are counted in a finer one, T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A \cup S) T 1 ( G , A ∪ S ) . This mirrors the + 1 +1 + 1 offset in the definition of radius-r r r width, where distances are measured in the coarser P i + 1 \mathcal{P}_{i+1} P i + 1 -metric and close parts are counted in the finer partition P i \mathcal{P}_i P i .
We call the output S S S a damper of the input A A A . Figure 3 shows an example of A A A , S S S , the flip H H H , and the partitions T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) and T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A \cup S) T 1 ( G , A ∪ S ) . The proof of the Damping Theorem is the key technical substance of this paper, and we sketch it in the next subsection.
Figure 3. An example of the Damping Theorem. The graph consists of three rows of vertices of equal length k k k , with edges joining vertices in different columns and adjacent rows; additionally a vertex s s s adjacent to the middle row is added. The input set A A A is the bottom row and the output is S = { s } S=\{s\} S = { s } . The shaded sets are the parts of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A\cup S) T 1 ( G , A ∪ S ) , and the dashed sets are the parts of T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) . The flip H H H complements the adjacency between S S S and the middle row, and between the middle row and the union of the top and bottom rows. While the original ball Ball G 1 [ u ] \operatorname{Ball}^1_G[u] Ball G 1 [ u ] (marked ) intersects Ω ( k ) \Omega(k) Ω ( k ) parts of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A\cup S) T 1 ( G , A ∪ S ) , the flipped ball Ball H r [ u ] \operatorname{Ball}^r_H[u] Ball H r [ u ] (marked ) intersects only three parts of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A\cup S) T 1 ( G , A ∪ S ) , for every r ≥ 1 r\ge1 r ≥ 1 .
Proof sketch of Theorem 2.3 using Theorem 2.4 (Damping Theorem). We let each S i S_i S i be a damper of S i − 1 S_{i-1} S i − 1 , witnessed by a T 1 ( G , S i ) \mathcal{T}_1(G,S_i) T 1 ( G , S i ) -flip H i H_i H i . Since dampers have at most half the size, m ≤ 1 + log 2 n m \le1 + \log_2 n m ≤ 1 + log 2 n .
Fix i ∈ [ m ] i\in[m] i ∈ [ m ] and a vertex u u u , and let U : = Ball T 1 ( G , B i ) r [ u ] U:=\operatorname{Ball}^r_{\mathcal{T}_1(G,B_i)}[u] U := Ball T 1 ( G , B i ) r [ u ] . (For i = 3 i=3 i = 3 and r ≥ 4 r\ge4 r ≥ 4 , this is the -marked set in Figure 2 .) For every j ≥ i j\ge i j ≥ i we have S j ⊆ B i S_j\subseteq B_i S j ⊆ B i , so H j H_j H j is also a T 1 ( G , B i ) \mathcal{T}_1(G,B_i) T 1 ( G , B i ) -flip, and therefore U ⊆ Ball H j r [ u ] U\subseteq\operatorname{Ball}^r_{H_j}[u] U ⊆ Ball H j r [ u ] . By the Damping Theorem, U U U intersects at most subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) parts of T 1 ( G , S j − 1 ∪ S j ) \mathcal{T}_1(G,S_{j-1}\cup S_j) T 1 ( G , S j − 1 ∪ S j ) , and hence also of the coarser partition T 1 ( G , S j − 1 ) \mathcal{T}_1(G,S_{j-1}) T 1 ( G , S j − 1 ) . However, to prove the theorem, it remains to show that U U U intersects at most subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) parts of T 1 ( G , B i − 1 ) \mathcal{T}_1(G,B_{i-1}) T 1 ( G , B i − 1 ) , which is the common refinement of the partitions T 1 ( G , S j − 1 ) \mathcal{T}_1(G,S_{j-1}) T 1 ( G , S j − 1 ) for j ≥ i j\ge i j ≥ i . This is not immediate: a priori the number of parts of T 1 ( G , B i − 1 ) \mathcal{T}_1(G,B_{i-1}) T 1 ( G , B i − 1 ) intersected by U U U is bounded only by the product of the numbers of parts of the partitions T 1 ( G , S j − 1 ) \mathcal{T}_1(G,S_{j-1}) T 1 ( G , S j − 1 ) intersected by U U U . This is resolved by an additivity property of 1-types (Lemma 4.2 ), which is again a consequence of the almost linear number of types: if U U U intersects k j k_j k j parts of T 1 ( G , S j − 1 ) \mathcal{T}_1(G,S_{j-1}) T 1 ( G , S j − 1 ) , for each j ≥ i j\ge i j ≥ i , then U U U intersects at most subpoly C ( n ) ⋅ ∑ j ≥ i k j \operatorname{subpoly}_{\mathcal{C}}(n)\cdot\sum_{j\ge i}k_j subpoly C ( n ) ⋅ ∑ j ≥ i k j parts of T 1 ( G , ⋃ j ≥ i S j − 1 ) = T 1 ( G , B i − 1 ) \mathcal{T}_1(G,\bigcup_{j\ge i}S_{j-1})=\mathcal{T}_1(G,B_{i-1}) T 1 ( G , ⋃ j ≥ i S j − 1 ) = T 1 ( G , B i − 1 ) . Since each k j k_j k j is bounded by subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) and there are at most m ≤ 1 + log 2 n m\le1+\log_2 n m ≤ 1 + log 2 n indices j j j , this is subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) , as desired. For the full proof see § 5 .
Proving the Damping Theorem
We now discuss the proof of the Damping Theorem (§ 6 to § 9 ). Its key building block is the following routine.
Neighborhood Damping routine
Input: a set A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) .
Output: a set S S S with ∣ S ∣ ≤ ∣ A ∣ / 2 |S|\le|A|/2 ∣ S ∣ ≤ ∣ A ∣/2 and a T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) -flip H H H of G G G in which the neighborhood of every vertex intersects few parts of a partition R \mathcal{R} R satisfying certain properties.
For instance, R = T 1 ( G , A ∪ S ) \mathcal{R}=\mathcal{T}_1(G,A\cup S) R = T 1 ( G , A ∪ S ) is allowed, which gives the Damping Theorem for r = 1 r=1 r = 1 . For larger r r r , this is not enough, as few parts per neighborhood do not imply few parts per ball: in Figure 4 , the neighborhood of u u u intersects a single part of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A\cup S) T 1 ( G , A ∪ S ) , but its neighbors lead to different parts, so Ball H 2 [ u ] \operatorname{Ball}^2_H[u] Ball H 2 [ u ] intersects many. This conflict only shows at distance 2, out of reach of the Neighborhood Damping routine, which only controls neighborhoods. Fortunately, the routine also works for finer partitions R \mathcal{R} R (Lemma 6.1 and Corollary 7.8 ). So we look for a partition R \mathcal{R} R that exposes such conflicts already at distance 1: few parts of R \mathcal{R} R per neighborhood should imply few parts of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A\cup S) T 1 ( G , A ∪ S ) per ball of radius r r r . A natural way to achieve this is for R \mathcal{R} R to separate vertices that lead to different parts, as the dashed partition in Figure 4 does for the neighbors of u u u .
Figure 4. A T 1 ( G , S ) T_1(G,S) T 1 ( G , S ) -flip H H H of G G G . The neighborhood of u u u intersects only a single part of T 1 ( G , A ∪ S ) T_1(G,A \cup S) T 1 ( G , A ∪ S ) , while Ball H 2 [ u ] \operatorname{Ball}^{2}_{H}[u] Ball H 2 [ u ] unfortunately intersects many. The finer partition T 2 ( G , A ∪ S ) T_2(G,A \cup S) T 2 ( G , A ∪ S ) into 2-types (dashed, shown within Q Q Q , defined below) exposes this conflict already at distance 1.
Higher types. To construct such a partition, we split each 1-type according to how its vertices attach to the 1-types, and iterate. Formally, fix a set Z Z Z of vertices and i ≥ 1 i \ge1 i ≥ 1 . A vertex v v v attaches to an i i i -type Q Q Q over Z Z Z in one of three ways:
v v v is complete to Q Q Q : it is adjacent to all vertices of Q Q Q ;
v v v is anticomplete to Q Q Q : it is adjacent to no vertex of Q Q Q ; or
v v v is mixed to Q Q Q : neither of the above.
Two vertices have the same ( i + 1 ) (i+1) ( i + 1 ) -type over Z Z Z if they have the same i i i -type over Z Z Z and attach in the same way to every i i i -type over Z Z Z . Thus the partition T i + 1 ( G , Z ) T_{i+1}(G,Z) T i + 1 ( G , Z ) of V ( G ) V(G) V ( G ) into ( i + 1 ) (i+1) ( i + 1 ) -types over Z Z Z refines T i ( G , Z ) T_i(G,Z) T i ( G , Z ) . See Figure 5 for an example.
Figure 5. The 1-types over a set Z Z Z , and the 2-types over Z Z Z within the top 1-type. In the middle row, x x x and y y y are complete to the left part, anticomplete to the middle part, and mixed to the right part, and therefore have the same 2-type, while w w w is anticomplete to the left one and mixed to the other two.
The r r r -types are exactly what we were looking for in the Neighborhood Damping routine (Lemma 8.1 ): For every set Z ⊆ V ( G ) Z \subseteq V(G) Z ⊆ V ( G ) , every T 1 ( G , Z ) T_1(G,Z) T 1 ( G , Z ) -flip H H H of G G G , and every m ∈ N m \in\mathbb{N} m ∈ N , we have
for every vertex v , N H ( v ) intersects for every vertex u , Ball H r [ u ] intersects at most m parts of T r ( G , Z ) at most ( m + 1 ) r parts of T 1 ( G , Z ) . (1) \begin{aligned}
&\text{for every vertex }v,\ N_H(v)\text{ intersects} &&\text{for every vertex }u,\ \operatorname{Ball}^{r}_{H}[u]\text{ intersects}\\
&\text{at most }m\text{ parts of }T_r(G,Z) &&\text{at most }(m+1)^r\text{ parts of }T_1(G,Z). \tag*{(1)}
\end{aligned} for every vertex v , N H ( v ) intersects at most m parts of T r ( G , Z ) for every vertex u , Ball H r [ u ] intersects at most ( m + 1 ) r parts of T 1 ( G , Z ) . (1)
Hence, running the Neighborhood Damping routine with R = T r ( G , A ∪ S ) \mathcal{R}=T_r(G,A \cup S) R = T r ( G , A ∪ S ) and applying {(xref}(2.1)} with Z = A ∪ S Z=A \cup S Z = A ∪ S to the resulting T 1 ( G , S ) T_1(G,S) T 1 ( G , S ) -flip H H H (which is in particular a T 1 ( G , A ∪ S ) T_1(G,A \cup S) T 1 ( G , A ∪ S ) -flip, as S ⊆ A ∪ S S \subseteq A \cup S S ⊆ A ∪ S ) proves the Damping Theorem.
Predampers. The Neighborhood Damping routine is implemented in two steps: first we construct the set S S S , using the following lemma, and then we construct the flip H H H . The lemma measures how differently two vertices u u u , v v v look from the perspective of a partition R \mathcal{R} R of V ( G ) V(G) V ( G ) : let Δ [ u , v ] : = ( N ( u ) △ N ( v ) ) ∪ { u , v } \Delta[u,v] := (N(u) \mathbin{\triangle} N(v)) \cup\{u,v\} Δ [ u , v ] := ( N ( u ) △ N ( v )) ∪ { u , v } for distinct u , v u,v u , v , and Δ [ u , u ] : = ∅ \Delta[u,u] := \varnothing Δ [ u , u ] := ∅ , and let ham R ( u , v ) \operatorname{ham}_{\mathcal{R}}(u,v) ham R ( u , v ) be the number of parts of R \mathcal{R} R that intersect Δ [ u , v ] \Delta[u,v] Δ [ u , v ] .
Lemma 2.5 (Predamping Lemma; Lemma 6.1 , simplified). Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class . Then for every n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C and every sufficiently large set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , one can compute in time O ~ C , r ( n 3 ) \widetilde{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) a set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) such that, denoting R : = T r ( G , A ∪ S ) \mathcal{R} := T_r(G,A \cup S) R := T r ( G , A ∪ S ) :
(A1) ∣ S ∣ ≤ ∣ A ∣ / 2 |S| \leq|A|/2 ∣ S ∣ ≤ ∣ A ∣/2 ;
(A2) every vertex u u u has a vertex s u ∈ S s_u \in S s u ∈ S with ham R ( u , s u ) ≤ subpoly C , r ( n ) \operatorname{ham}_{\mathcal{R}}(u,s_u) \leq\operatorname{subpoly}_{\mathcal{C},r}(n) ham R ( u , s u ) ≤ subpoly C , r ( n ) ; and
(A3) any two vertices u , v u,v u , v in the same 1-type over S S S satisfy ham R ( u , v ) ≤ subpoly C , r ( n ) \operatorname{ham}_{\mathcal{R}}(u,v) \leq\operatorname{subpoly}_{\mathcal{C},r}(n) ham R ( u , v ) ≤ subpoly C , r ( n ) .
A set S S S as above shall be called a predamper of A A A .
Proof sketch of Theorem 2.4 (Damping Theorem) using Lemma 2.5 (Predamping Lemma). Let S S S be a predamper of A A A . We construct a T 1 ( G , S ) T_1(G,S) T 1 ( G , S ) -flip H H H in which the neighborhood of every vertex intersects only subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) parts of R = T r ( G , A ∪ S ) \mathcal{R} = T_r(G,A \cup S) R = T r ( G , A ∪ S ) . This is the output of the Neighborhood Damping routine, so together with (1) , it proves the Damping Theorem. For every 1-type Q Q Q over S S S , pick x ∈ Q x \in Q x ∈ Q and let s Q : = s x s_Q := s_x s Q := s x . By (A2), (A3), and the triangle inequality, ham R ( v , s Q ) ≤ subpoly C , r ( n ) \operatorname{ham}_{\mathcal{R}}(v,s_Q) \leq\operatorname{subpoly}_{\mathcal{C},r}(n) ham R ( v , s Q ) ≤ subpoly C , r ( n ) for all v ∈ Q v \in Q v ∈ Q . As s Q ∈ S s_Q \in S s Q ∈ S , the set N ( s Q ) N(s_Q) N ( s Q ) is a union of parts of T 1 ( G , S ) T_1(G,S) T 1 ( G , S ) , so we may flip the adjacency between Q Q Q and every 1-type over S S S contained in N ( s Q ) N(s_Q) N ( s Q ) . This turns the neighborhood of every v ∈ Q v \in Q v ∈ Q into N ( v ) △ N ( s Q ) N(v) \mathbin{\triangle} N(s_Q) N ( v ) △ N ( s Q ) , which intersects only subpoly C , r ( n ) \operatorname{subpoly}_{\mathcal{C},r}(n) subpoly C , r ( n ) parts of R \mathcal{R} R . The choices for Q Q Q and Q ′ Q' Q ′ may disagree on whether to flip the pair ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) ; a majority vote over the pairs ( R , R ′ ) (R,R') ( R , R ′ ) of parts of R \mathcal{R} R with R ⊆ Q R \subseteq Q R ⊆ Q and R ′ ⊆ Q ′ R' \subseteq Q' R ′ ⊆ Q ′ resolves this at the cost of a factor 3 (Lemma 7.2). Let H H H be the resulting flip. For the full proof, see § 8 and § 9 .
Proving the Predamping Lemma
It remains to sketch the proof of the Predamping Lemma, which is the combinatorial core of this paper: given a set A A A , we construct a predamper S S S of A A A . We start with S : = ∅ S := \varnothing S := ∅ and add vertices to S S S according to three rules (R1)–(R3), as long as one of them applies. The rules refer to the current partition R = T r ( G , A ∪ S ) \mathcal{R} = T_r(G,A \cup S) R = T r ( G , A ∪ S ) , which gets finer as S S S grows. We fix an arbitrary ordering of V ( G ) V(G) V ( G ) , call the minimum of each part of $\mathcal{R} its representative , and let X X X be the set of representatives. When a part is split, its representative remains the representative of one of the new parts, so X X X only grows as S S S grows. We state the rules in a simplified form. The precise statements are given in the proof of Lemma 6.1 . Once no rule applies, (A2) and (A3) hold. For (A1), we show for each rule that it is applied at most ∣ A ∪ S ∣ / 9 |A \cup S|/9 ∣ A ∪ S ∣/9 times, where S S S is the final set. This gives ∣ S ∣ ≤ ∣ A ∪ S ∣ / 3 |S| \leq|A \cup S|/3 ∣ S ∣ ≤ ∣ A ∪ S ∣/3 , and hence ∣ S ∣ ≤ ∣ A ∣ / 2 |S| \leq|A|/2 ∣ S ∣ ≤ ∣ A ∣/2 .
Crossing. Let γ i \gamma_i γ i be the least number such that ∣ T i ( G , Z ) ∣ ≤ γ i ⋅ ∣ Z ∣ |T_i(G,Z)| \leq\gamma_i \cdot|Z| ∣ T i ( G , Z ) ∣ ≤ γ i ⋅ ∣ Z ∣ for every non-empty Z ⊆ V ( G ) Z \subseteq V(G) Z ⊆ V ( G ) . For 1-types, Theorem 3.3 gives a bound γ 1 ≤ subpoly C ( n ) \gamma_1 \leq\operatorname{subpoly}_{\mathcal{C}}(n) γ 1 ≤ subpoly C ( n ) . This bound can actually be lifted to i i i -types (Lemma 5.1) because they are first-order definable (Claim 5.2): the ( i + 1 ) (i+1) ( i + 1 ) -type of a vertex over Z Z Z is determined by three fixed first-order formulas evaluated against a set containing one representative of each i i i -type over Z Z Z , and in monadically dependent classes the number of types of a fixed finite set of formulas over a vertex set is again almost linear in its size (Lemma 5.3). By induction on i i i , we get γ i ≤ subpoly C , i ( n ) \gamma_i \leq\operatorname{subpoly}_{\mathcal{C},i}(n) γ i ≤ subpoly C , i ( n ) (Lemma 5.1). As we are ultimately interested in R = T r ( G , A ∪ S ) \mathcal{R} = T_r(G,A \cup S) R = T r ( G , A ∪ S ) , denote γ : = γ r \gamma:= \gamma_r γ := γ r ; then γ ≤ subpoly C , r ( n ) \gamma\leq\operatorname{subpoly}_{\mathcal{C},r}(n) γ ≤ subpoly C , r ( n ) .
The subpolynomial bound on γ \gamma γ implies an almost linear bound on ∣ R ∣ |\mathcal{R}| ∣ R ∣ in terms of ∣ A ∪ S ∣ |A \cup S| ∣ A ∪ S ∣ , which is the main property of R \mathcal{R} R that the Neighborhood Damping routine needs. A vertex u u u crosses a part R ∈ R R \in\mathcal{R} R ∈ R if u ∉ R u \notin R u ∈ / R and u u u is neither complete nor anticomplete to R R R . The first rule is the following.
(R1, simplified) If a vertex w w w crosses more than 9 γ 9\gamma 9 γ parts of R \mathcal{R} R , add w w w to S S S .
Observe that each application of this rule splits all the crossed parts, because R \mathcal{R} R refines T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A\cup S) T 1 ( G , A ∪ S ) , so it increases the number of parts of R \mathcal{R} R by more than 9 γ 9\gamma 9 γ . Since R \mathcal{R} R only gets finer as S S S grows, if (R1) is applied t t t times, then the final partition has more than t ⋅ 9 γ t\cdot9\gamma t ⋅ 9 γ parts. As it also has at most γ ⋅ ∣ A ∪ S ∣ \gamma\cdot|A\cup S| γ ⋅ ∣ A ∪ S ∣ parts, we get t ⋅ 9 γ < γ ⋅ ∣ A ∪ S ∣ t\cdot9\gamma<\gamma\cdot|A\cup S| t ⋅ 9 γ < γ ⋅ ∣ A ∪ S ∣ , which implies t < ∣ A ∪ S ∣ / 9 t<|A\cup S|/9 t < ∣ A ∪ S ∣/9 .
Rule (R1) lets us ignore crossed parts. Precisely, let ham R ⊆ ( u , v ) \operatorname{ham}_{\mathcal{R}}^{\subseteq}(u,v) ham R ⊆ ( u , v ) be the number of parts of R \mathcal{R} R entirely contained in N ( u ) △ N ( v ) N(u)\mathbin{\triangle}N(v) N ( u ) △ N ( v ) . Every other part that intersects Δ [ u , v ] \Delta[u,v] Δ [ u , v ] contains u u u or v v v , or is crossed by u u u or by v v v . So once (R1) no longer applies,
ham R ( u , v ) ≤ ham R ⊆ ( u , v ) + 18 γ + 2. \operatorname{ham}_{\mathcal{R}}(u,v)\leq\operatorname{ham}_{\mathcal{R}}^{\subseteq}(u,v)+18\gamma+2. ham R ( u , v ) ≤ ham R ⊆ ( u , v ) + 18 γ + 2.
Hence it suffices to establish the following revised assertions:
(A2′) Every vertex u u u has a vertex s u ∈ S s_u\in S s u ∈ S with ham R ⊆ ( u , s u ) ≤ subpoly C , r ( n ) \operatorname{ham}_{\mathcal{R}}^{\subseteq}(u,s_u)\leq\operatorname{subpoly}_{\mathcal{C},r}(n) ham R ⊆ ( u , s u ) ≤ subpoly C , r ( n ) .
(A3′) Any two vertices u , v u,v u , v in the same 1-type over S S S satisfy ham R ⊆ ( u , v ) ≤ subpoly C , r ( n ) \operatorname{ham}_{\mathcal{R}}^{\subseteq}(u,v)\leq\operatorname{subpoly}_{\mathcal{C},r}(n) ham R ⊆ ( u , v ) ≤ subpoly C , r ( n ) .
Packing. Towards ensuring (A2′), we introduce the following rule:
(R2, simplified) If a vertex w w w satisfies ham R ⊆ ( w , s ) > ℓ \operatorname{ham}_{\mathcal{R}}^{\subseteq}(w,s)>\ell ham R ⊆ ( w , s ) > ℓ for all s ∈ S s\in S s ∈ S , add w w w to S S S .
Once (R2) no longer applies, (A2′) holds with the bound ℓ \ell ℓ (which we will soon set to the desired ℓ = subpoly C , r ( n ) \ell=\operatorname{subpoly}_{\mathcal{C},r}(n) ℓ = subpoly C , r ( n ) ). To bound the number of applications, let Y Y Y be the set of vertices added by (R2). Let S S S and X X X be the final sets. As X X X contains one representative of each part of R = T r ( G , A ∪ S ) \mathcal{R}=\mathcal{T}_r(G,A\cup S) R = T r ( G , A ∪ S ) , we have ∣ X ∣ ≤ γ ⋅ ∣ A ∪ S ∣ |X|\leq\gamma\cdot|A\cup S| ∣ X ∣ ≤ γ ⋅ ∣ A ∪ S ∣ . Consider distinct u , v ∈ Y u,v\in Y u , v ∈ Y , where v v v was added after u u u . When v v v was added, we had ham R ⊆ ( v , u ) > ℓ \operatorname{ham}_{\mathcal{R}}^{\subseteq}(v,u)>\ell ham R ⊆ ( v , u ) > ℓ , and as refining R \mathcal{R} R can only increase ham R ⊆ \operatorname{ham}_{\mathcal{R}}^{\subseteq} ham R ⊆ , this also holds for the final partition. So N ( u ) △ N ( v ) N(u)\mathbin{\triangle}N(v) N ( u ) △ N ( v ) contains more than ℓ \ell ℓ parts of the final partition, and hence also more than ℓ \ell ℓ of their representatives: ∣ Δ [ u , v ] ∩ X ∣ > ℓ |\Delta[u,v]\cap X|>\ell ∣Δ [ u , v ] ∩ X ∣ > ℓ . Bounding ∣ Y ∣ |Y| ∣ Y ∣ is therefore a packing problem. The packing ratio of G G G is the least β \beta β such that for every ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N and X , Y ⊆ V ( G ) X,Y\subseteq V(G) X , Y ⊆ V ( G ) with ∣ Y ∣ ≥ 2 |Y|\geq2 ∣ Y ∣ ≥ 2 and ∣ Δ [ u , v ] ∩ X ∣ ≥ ℓ |\Delta[u,v]\cap X|\geq\ell ∣Δ [ u , v ] ∩ X ∣ ≥ ℓ for all distinct u , v ∈ Y u,v\in Y u , v ∈ Y , we have ∣ Y ∣ ≤ β ⋅ ∣ X ∣ / ℓ |Y|\leq\beta\cdot|X|/\ell ∣ Y ∣ ≤ β ⋅ ∣ X ∣/ ℓ . Combined with the almost linear bound ∣ T 1 ( G , Z ) ∣ ≤ γ ⋅ ∣ Z ∣ |\mathcal{T}_1(G,Z)|\leq\gamma\cdot|Z| ∣ T 1 ( G , Z ) ∣ ≤ γ ⋅ ∣ Z ∣ on the number of 1-types, Haussler’s Packing Lemma [21 ] yields β ≤ subpoly C , r ( n ) \beta\leq\operatorname{subpoly}_{\mathcal{C},r}(n) β ≤ subpoly C , r ( n ) (Lemma 5.9 ). Hence ∣ Y ∣ ≤ β ⋅ ∣ X ∣ / ℓ ≤ β γ ⋅ ∣ A ∪ S ∣ / ℓ |Y|\leq\beta\cdot|X|/\ell\leq\beta\gamma\cdot|A\cup S|/\ell ∣ Y ∣ ≤ β ⋅ ∣ X ∣/ ℓ ≤ β γ ⋅ ∣ A ∪ S ∣/ ℓ . So if we choose ℓ : = 9 β γ ≤ subpoly C , r ( n ) \ell:=9\beta\gamma\leq\operatorname{subpoly}_{\mathcal{C},r}(n) ℓ := 9 β γ ≤ subpoly C , r ( n ) , we conclude that (R2) is applied at most ∣ A ∪ S ∣ / 9 |A\cup S|/9 ∣ A ∪ S ∣/9 times.
Hitting symmetric differences. Two vertices u , v ∉ S u,v\notin S u , v ∈ / S have the same 1-type over S S S if and only if S S S is disjoint from N ( u ) △ N ( v ) N(u)\mathbin{\triangle}N(v) N ( u ) △ N ( v ) . So (A3′) asks that S S S hits N ( u ) △ N ( v ) N(u)\mathbin{\triangle}N(v) N ( u ) △ N ( v ) whenever ham R ⊆ ( u , v ) ≥ k \operatorname{ham}_{\mathcal{R}}^{\subseteq}(u,v)\geq k ham R ⊆ ( u , v ) ≥ k , for a threshold k = subpoly C , r ( n ) k=\operatorname{subpoly}_{\mathcal{C},r}(n) k = subpoly C , r ( n ) chosen below. As $X contains one representative of each part of R \mathcal{R} R , such a set contains at least k k k vertices of X X X ; so it suffices that S S S hits every set N ( u ) △ N ( v ) N(u)\mathbin{\triangle}N(v) N ( u ) △ N ( v ) containing at least k k k vertices of X X X . That is, S S S should be an ε \varepsilon ε -net for these sets with respect to the uniform measure on X X X , with ε = k / ∣ X ∣ \varepsilon=k/|X| ε = k /∣ X ∣ . If X X X were fixed, a random sample would do: including every vertex of X X X with probability $1/(9\gamma)$ yields about ∣ X ∣ / ( 9 γ ) ≤ ∣ A ∪ S ∣ / 9 |X|/(9\gamma)\leq|A\cup S|/9 ∣ X ∣/ ( 9 γ ) ≤ ∣ A ∪ S ∣/9 vertices and, with high probability, hits every set with k k k vertices of X X X , provided k ≥ Ω ( γ log n ) k\geq\Omega(\gamma\log n) k ≥ Ω ( γ log n ) . However, this argument is circular, for adding the sample to S S S refines R \mathcal{R} R , and the new representatives were never sampled. What we need is an online version of ε \varepsilon ε -nets.
(Online ε \varepsilon ε -net) Let F \mathcal{F} F be a set system on a set V V V , and let k ∈ N k\in\mathbb{N} k ∈ N . An adversary repeatedly adds elements to a set P ⊆ V P\subseteq V P ⊆ V . After each addition, we may add elements of V V V to a set S S S , but never remove any, so that S S S again intersects every F ∈ F F\in\mathcal{F} F ∈ F with at least k k k elements of P P P . The goal is to keep ∣ S ∣ ≤ c ⋅ ∣ P ∣ / k |S|\leq c\cdot|P|/k ∣ S ∣ ≤ c ⋅ ∣ P ∣/ k for a small factor c c c .
In our setting, F \mathcal{F} F consists of the sets N ( u ) △ N ( v ) N(u) \mathbin{\triangle} N(v) N ( u ) △ N ( v ) , and P = X P = X P = X . Every vertex added to S S S , whether by (R1), by (R2), or by the net itself, refines R \mathcal{R} R and may thereby add new representatives to X X X . Using again the almost linear bound on the number of 1-types and Welzl’s theorem on orderings with low crossing number [31 ] , we propose a construction of an online ε \varepsilon ε -net with c ≤ subpoly C , r ( n ) c \le\operatorname{subpoly}_{\mathcal{C},r}(n) c ≤ subpoly C , r ( n ) . The third rule follows this net.
(R3, simplified) If the online ε \varepsilon ε -net, given the current set X X X , adds a vertex w w w , add w w w to S S S .
Once (R3) no longer applies, S S S hits every set N ( u ) △ N ( v ) N(u) \mathbin{\triangle} N(v) N ( u ) △ N ( v ) with at least k k k vertices of X X X , which gives (A3′). By the guarantee of the online ε \varepsilon ε -net, and as ∣ X ∣ ≤ γ ⋅ ∣ A ∪ S ∣ |X| \le\gamma\cdot|A \cup S| ∣ X ∣ ≤ γ ⋅ ∣ A ∪ S ∣ in the end, (R3) is applied at most c ⋅ ∣ X ∣ / k ≤ c γ ⋅ ∣ A ∪ S ∣ / k c \cdot|X|/k \le c\gamma\cdot|A \cup S|/k c ⋅ ∣ X ∣/ k ≤ c γ ⋅ ∣ A ∪ S ∣/ k times. Choosing k : = 9 c γ ≤ subpoly C , r ( n ) k := 9c\gamma\le\operatorname{subpoly}_{\mathcal{C},r}(n) k := 9 c γ ≤ subpoly C , r ( n ) , this is at most ∣ A ∪ S ∣ / 9 |A \cup S|/9 ∣ A ∪ S ∣/9 .
We remark that the above description using an online ε \varepsilon ε -net serves only as an intuition. The proof of Lemma 6.1 does not isolate it as a separate statement, but implements (R3) directly via a vertex ordering of low alternation obtained using Welzl’s method (Corollary 5.13). We also note that while we are not aware that this concrete construction was known in the literature, orderings with low alternation were used before to construct (generalizations of) ε \varepsilon ε -nets, see e.g. [2 Theorem 1.3] .
Preliminaries
Basic notation. We write N \mathbb{N} N for the set of positive integers. For k ∈ N k \in\mathbb{N} k ∈ N we denote [ k ] : = { 1 , … , k } [k] := \{1, \ldots, k\} [ k ] := { 1 , … , k } . The symmetric difference of sets X X X and Y Y Y is the set X △ Y : = ( X − Y ) ∪ ( Y − X ) X \mathbin{\triangle} Y := (X - Y) \cup(Y - X) X △ Y := ( X − Y ) ∪ ( Y − X ) . For two partitions P \mathcal{P} P and Q \mathcal{Q} Q of the same set, we say that P \mathcal{P} P is finer than, or is a refinement of Q \mathcal{Q} Q , and that Q \mathcal{Q} Q is coarser than, or is a coarsening of P \mathcal{P} P , if every part of P \mathcal{P} P is contained in a single part of Q \mathcal{Q} Q . We denote it by P ⊑ Q \mathcal{P} \sqsubseteq\mathcal{Q} P ⊑ Q .
Asymptotics. We use the standard O ( ⋅ ) O(\cdot) O ( ⋅ ) notation that hides constant multiplicative factors. For a tuple of objects q ˉ \bar{q} q ˉ , we may decorate this notation as O q ˉ ( ⋅ ) O_{\bar{q}}(\cdot) O q ˉ ( ⋅ ) to signify that the hidden factors may depend on q ˉ \bar{q} q ˉ . Typically, q ˉ \bar{q} q ˉ will consist of a monadically dependent graph class C \mathcal{C} C and a distance parameter r ∈ N r \in\mathbb{N} r ∈ N , both fixed in the context.
Call a function f : N → N f : \mathbb{N} \to\mathbb{N} f : N → N subpolynomial if for every real ε > 0 \varepsilon> 0 ε > 0 , we have
lim n → ∞ f ( n ) n ε = 0. \lim_{n \to\infty} \frac{f(n)}{n^{\varepsilon}} = 0. n → ∞ lim n ε f ( n ) = 0.
We write subpoly ( ⋅ ) \operatorname{subpoly}(\cdot) subpoly ( ⋅ ) for an anonymous subpolynomial function, and in particular f ( n ) ≤ subpoly ( n ) f(n) \le\operatorname{subpoly}(n) f ( n ) ≤ subpoly ( n ) means that f ( n ) f(n) f ( n ) is bounded by a subpolynomial function of n n n . If f , g : N → N f, g : \mathbb{N} \to\mathbb{N} f , g : N → N satisfy f ( n ) , g ( n ) ≤ subpoly ( n ) f(n), g(n) \le\operatorname{subpoly}(n) f ( n ) , g ( n ) ≤ subpoly ( n ) , then also f ( n ) + g ( n ) ≤ subpoly ( n ) f(n) + g(n) \le\operatorname{subpoly}(n) f ( n ) + g ( n ) ≤ subpoly ( n ) and f ( n ) ⋅ g ( n ) ≤ subpoly ( n ) f(n) \cdot g(n) \le\operatorname{subpoly}(n) f ( n ) ⋅ g ( n ) ≤ subpoly ( n ) . We sometimes use the notation subpoly q ˉ ( n ) \operatorname{subpoly}_{\bar{q}}(n) subpoly q ˉ ( n ) to denote a subpolynomial function that may depend on a tuple of objects q ˉ \bar{q} q ˉ . Also, we use notation O ~ ( ⋅ ) \widetilde{O}(\cdot) O ( ⋅ ) to hide subpolynomial multiplicative factors, and we may write O ~ q ˉ ( ⋅ ) \widetilde{O}_{\bar{q}}(\cdot) O q ˉ ( ⋅ ) to signify that those factors may depend on q ˉ \bar{q} q ˉ .
Graphs. We use standard graph notation. All graphs considered in this paper are finite, undirected, and simple (without loops or parallel edges). For the purpose of computation, we assume that all graphs are represented by their adjacency matrices.
For a vertex u u u of a graph G G G , by N G ( u ) N_G(u) N G ( u ) we denote the open neighborhood , which is the set of all neighbors of u u u in G G G , and by N G [ u ] N_G[u] N G [ u ] we denote the closed neighborhood , defined as N G ( u ) ∪ { u } N_G(u) \cup\{u\} N G ( u ) ∪ { u } . We also write N G [ A ] : = ⋃ u ∈ A N G [ u ] N_G[A] := \bigcup_{u \in A} N_G[u] N G [ A ] := ⋃ u ∈ A N G [ u ] . Further, the open and closed symmetric difference of distinct vertices u u u and v v v are defined as
Δ G ( u , v ) : = ( N G ( u ) △ N G ( v ) ) − { u , v } and Δ G [ u , v ] : = ( N G ( u ) △ N G ( v ) ) ∪ { u , v } . \Delta_G(u,v) := \left(N_G(u) \mathbin{\triangle} N_G(v)\right) - \{u,v\}
\quad\text{and}\quad
\Delta_G[u,v] := \left(N_G(u) \mathbin{\triangle} N_G(v)\right) \cup\{u,v\}. Δ G ( u , v ) := ( N G ( u ) △ N G ( v ) ) − { u , v } and Δ G [ u , v ] := ( N G ( u ) △ N G ( v ) ) ∪ { u , v } .
We define Δ G ( v , v ) = Δ G [ v , v ] = ∅ \Delta_G(v,v)=\Delta_G[v,v]=\varnothing Δ G ( v , v ) = Δ G [ v , v ] = ∅ . In this notation, we may drop the graph in the subscript if it is clear from the context.
The (shortest path) distance between vertices u u u and v v v in a graph G G G is denoted by dist G ( u , v ) \operatorname{dist}_G(u,v) dist G ( u , v ) . The ball with center u u u of radius r ∈ N ∪ { 0 } r\in\mathbb{N}\cup\{0\} r ∈ N ∪ { 0 } in G G G is the set of all the vertices that are at distance at most r r r from u u u in G G G . We denote it by Ball G r [ u ] \operatorname{Ball}_G^r[u] Ball G r [ u ] .
A vertex u u u in a graph G G G is complete to a vertex subset A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) if u ∉ A u\notin A u ∈ / A and u u u is adjacent to every member of A A A . Similarly, u u u is anticomplete to A A A if u ∉ A u\notin A u ∈ / A and u u u is non-adjacent to every member of A A A . We say that u u u is homogeneous to A A A if u u u is either complete or anticomplete to A A A . Note that if u ∈ A u\in A u ∈ A , then u u u cannot be homogeneous to A A A . More generally, for disjoint A , B ⊆ V ( G ) A,B\subseteq V(G) A , B ⊆ V ( G ) , we say that A A A and B B B are complete (resp. anticomplete ) to each other if every vertex of A A A is complete (resp. anticomplete) to B B B ; and A , B A,B A , B are homogeneous to each other if they are complete or anticomplete to each other.
A vertex ordering of a graph G G G is a total order on the vertices of G G G .
VC dimension. A set system over a set U U U is a family of subsets of U U U . The VC dimension of a set system F \mathcal{F} F over U U U is the maximum cardinality of a set X ⊆ U X\subseteq U X ⊆ U that is shattered by F \mathcal{F} F in the following sense: For every Y ⊆ X Y\subseteq X Y ⊆ X there exists F ∈ F F\in\mathcal{F} F ∈ F such that F ∩ X = Y F\cap X=Y F ∩ X = Y .
Transducibility and monadic dependence. We use first-order logic on graphs, with adjacency represented by the relation adj ( x , y ) \operatorname{adj}(x,y) adj ( x , y ) . For k ∈ N k\in\mathbb{N} k ∈ N , a k k k -colored graph is a graph equipped with k k k unary predicates U 1 , … , U k U_1,\ldots,U_k U 1 , … , U k . A k k k -coloring , or expansion , G + G^+ G + of a graph G G G assigns interpretations of these predicates on V ( G ) V(G) V ( G ) ; the predicates need not be disjoint.
For a k k k -colored graph H H H and a first-order formula φ ( x , y ) \varphi(x,y) φ ( x , y ) in its signature, define φ ( H ) \varphi(H) φ ( H ) to be the graph with vertex set V ( H ) V(H) V ( H ) in which distinct vertices u , v u,v u , v are adjacent if and only if φ ( u , v ) ∨ φ ( v , u ) \varphi(u,v)\lor\varphi(v,u) φ ( u , v ) ∨ φ ( v , u ) holds in H H H .
For two graph classes C , D \mathcal{C},\mathcal{D} C , D , we say that C \mathcal{C} C transduces D \mathcal{D} D , or that D \mathcal{D} D is transducible from C \mathcal{C} C , if there are k ∈ N k\in\mathbb{N} k ∈ N and a first-order formula φ ( x , y ) \varphi(x,y) φ ( x , y ) in the signature of k k k -colored graphs such that every graph H ∈ D H\in\mathcal{D} H ∈ D can be obtained from some graph G ∈ C G\in\mathcal{C} G ∈ C by first choosing a k k k -coloring G + G^+ G + of G G G and then taking an induced subgraph of φ ( G + ) \varphi(G^+) φ ( G + ) . The central concept studied in this paper is the following.
Definition 3.1. A graph class C \mathcal{C} C is monadically dependent if C \mathcal{C} C does not transduce the class of all graphs.
It is easy to see that transducibility is a transitive relation on graph classes [26 Lemma 2] . Therefore, any graph class transducible from a monadically dependent class is again monadically dependent. Also, note the following.
Observation 3.2. For every monadically dependent graph class C \mathcal{C} C there is a constant d d d such that for every G ∈ C G\in\mathcal{C} G ∈ C , the set system { N G [ u ] : u ∈ V ( G ) } \{N_G[u]:u\in V(G)\} { N G [ u ] : u ∈ V ( G )} over V ( G ) V(G) V ( G ) has VC dimension at most d d d .
Proof. Suppose that the set system { N G [ u ] : u ∈ V ( G ) } \{N_G[u]:u\in V(G)\} { N G [ u ] : u ∈ V ( G )} for some graph G ∈ C G\in\mathcal{C} G ∈ C shatters a set X X X . Pick any graph H H H with vertex set X X X . For every edge u v ∈ E ( H ) uv\in E(H) uv ∈ E ( H ) , choose a vertex w u v ∈ V ( G ) w_{uv}\in V(G) w uv ∈ V ( G ) such that N G [ w u v ] ∩ X = { u , v } N_G[w_{uv}]\cap X=\{u,v\} N G [ w uv ] ∩ X = { u , v } , and color all chosen vertices with a distinguished predicate U U U , obtaining a 1-coloring G + G^+ G + of G G G . Let φ ( x , y ) \varphi(x,y) φ ( x , y ) be the first-order formula with one unary predicate U U U asserting that there is a vertex z ∈ U z\in U z ∈ U with x , y ∈ N [ z ] x,y\in N[z] x , y ∈ N [ z ] . Then H H H is the subgraph of φ ( G + ) \varphi(G^+) φ ( G + ) induced by X X X . If the VC dimensions of these set systems over graphs in C \mathcal{C} C were unbounded, the fixed formula φ \varphi φ would therefore witness that C \mathcal{C} C transduces the class of all graphs, contradicting monadic dependence. □ \square □
1-types. Let G G G be a graph and S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) a set of its vertices. We say that two vertices a , b ∈ V ( G ) a,b\in V(G) a , b ∈ V ( G ) have the same 1-type over S S S if either a = b ∈ S a=b\in S a = b ∈ S , or a , b ∉ S a,b\notin S a , b ∈ / S and N G ( a ) ∩ S = N G ( b ) ∩ S N_G(a)\cap S=N_G(b)\cap S N G ( a ) ∩ S = N G ( b ) ∩ S (the more commonly used term is atomic type , but later we will use an extension where 1 is replaced with a parameter). We call the corresponding partition of V ( G ) V(G) V ( G ) the partition into 1-types over S S S , and denote it by T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) . Note that if R ⊆ S R\subseteq S R ⊆ S then T 1 ( G , R ) \mathcal{T}_1(G,R) T 1 ( G , R ) is coarser than T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) .
Neighborhood complexity. As mentioned in § 3 , we will heavily rely on the recent result of Dreier et al. [12 ] stating that in monadically dependent graph classes, the number of 1-types over a vertex subset A A A is almost linear in the cardinality of A A A .
Theorem 3.3 ([12 ] ). For every monadically dependent graph class C \mathcal{C} C , there is a function γ : N → N \gamma:\mathbb{N}\to\mathbb{N} γ : N → N with γ ( n ) ≤ subpoly C ( n ) \gamma(n)\leq\operatorname{subpoly}_{\mathcal{C}}(n) γ ( n ) ≤ subpoly C ( n ) such that for any graph G ∈ C G\in\mathcal{C} G ∈ C and non-empty set A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) , we have
∣ T 1 ( G , A ) ∣ ≤ γ ( ∣ A ∣ ) ⋅ ∣ A ∣ . |\mathcal{T}_1(G,A)|\leq\gamma(|A|)\cdot|A|. ∣ T 1 ( G , A ) ∣ ≤ γ ( ∣ A ∣ ) ⋅ ∣ A ∣.
Theorem 3.3 is closely related to the following concept: the shatter function or the neighborhood complexity 5 of a graph G G G is the function π G : N → N \pi_G:\mathbb{N}\to\mathbb{N} π G : N → N that maps every k ∈ N k\in\mathbb{N} k ∈ N to the maximum of ∣ T 1 ( G , A ) ∣ |\mathcal{T}_1(G,A)| ∣ T 1 ( G , A ) ∣ among vertex subsets A A A of cardinality k k k . Thus, Theorem 3.3 asserts that in monadically dependent classes, the shatter function π G ( k ) \pi_G(k) π G ( k ) is always bounded by k ⋅ γ ( k ) k\cdot\gamma(k) k ⋅ γ ( k ) for a subpolynomial function γ \gamma γ that depends only on the class C \mathcal{C} C .
Flips and definable flips. Let G G G be a graph with vertex set V V V and P \mathcal{P} P be a partition of its vertex set. A P \mathcal{P} P -flip of G G G is a graph H H H with the same vertex set as G G G such that for every pair of parts X , Y ∈ P X,Y\in\mathcal{P} X , Y ∈ P (possibly X = Y X=Y X = Y ) one of the following cases holds:
x y ∈ E ( G ) ⟺ x y ∈ E ( H ) xy\in E(G)\Longleftrightarrow xy\in E(H) x y ∈ E ( G ) ⟺ x y ∈ E ( H ) , for all distinct x ∈ X x\in X x ∈ X and y ∈ Y y\in Y y ∈ Y , or
x y ∈ E ( G ) ⟺ x y ∉ E ( H ) xy\in E(G)\Longleftrightarrow xy\notin E(H) x y ∈ E ( G ) ⟺ x y ∈ / E ( H ) , for all distinct x ∈ X x\in X x ∈ X and y ∈ Y y\in Y y ∈ Y .
Thus, a P \mathcal{P} P -flip H H H of G G G can be fully described by G G G and a symmetric binary relation σ ⊆ P × P \sigma\subseteq\mathcal{P}\times\mathcal{P} σ ⊆ P × P which distinguishes those pairs X , Y ∈ P X,Y\in\mathcal{P} X , Y ∈ P for which the second case above occurs; then H H H is obtained by complementing the adjacency relation between X X X and Y Y Y , for every pair of parts X , Y ∈ P X,Y\in\mathcal{P} X , Y ∈ P with ( X , Y ) ∈ σ (X,Y)\in\sigma ( X , Y ) ∈ σ .
For S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) , an S S S -definable flip – or more briefly, an S S S -flip of G G G – is a T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) -flip of $G, where T 1 ( G , S ) \mathcal{T}_1(G,S) T 1 ( G , S ) is the partition of V ( G ) V(G) V ( G ) into 1-types over S S S . The following observation is immediate.
Observation 3.4. Let G G G be a graph and P , Q \mathcal{P},\mathcal{Q} P , Q be partitions of the vertex set of G G G such that P \mathcal{P} P is a refinement of Q \mathcal{Q} Q . Then every Q \mathcal{Q} Q -flip of G G G is also a P \mathcal{P} P -flip of G G G . Consequently, if S ⊆ T ⊆ V ( G ) S\subseteq T\subseteq V(G) S ⊆ T ⊆ V ( G ) are two vertex subsets, then every S S S -flip of G G G is also a T T T -flip of G G G .
Flip metric. Next, we recall the concept of flip-metric , introduced by Gajarský et al. in [19 ] . Let G G G be a graph and P \mathcal{P} P be a partition of the vertex set of G G G . For vertices u , v ∈ V ( G ) u,v\in V(G) u , v ∈ V ( G ) , we define
dist P ( u , v ) : = max { dist H ( u , v ) : H is a P -flip of G } . \operatorname{dist}_{\mathcal{P}}(u,v):=\max\{\operatorname{dist}_{H}(u,v):H\text{ is a }\mathcal{P}\text{-flip of }G\}. dist P ( u , v ) := max { dist H ( u , v ) : H is a P -flip of G } .
The idea behind this definition is to measure the distance between u u u and v v v relative to a partition P \mathcal{P} P , but instead of committing to doing so in a single P \mathcal{P} P -flip, to consider all the possible P \mathcal{P} P -flips at once.
As observed in [19 ] , dist P ( ⋅ , ⋅ ) \operatorname{dist}_{\mathcal{P}}(\cdot,\cdot) dist P ( ⋅ , ⋅ ) is a quasi-metric6 on the vertex set of G G G . Note that radius-r r r balls in this quasi-metric take the following form:
Ball P [ u ] : = ⋂ { Ball r H [ u ] : H is a P -flip of G } . \operatorname{Ball}_{\mathcal{P}}[u]:=\bigcap\{\operatorname{Ball}^{H}_{r}[u]:H\text{ is a }\mathcal{P}\text{-flip of }G\}. Ball P [ u ] := ⋂ { Ball r H [ u ] : H is a P -flip of G } .
Merge-width
We first recall the definition of merge-width as introduced by Dreier and Toruńczyk [16 ] . Let G G G be a graph with vertex set V V V . By ( V 2 ) \binom{V}{2} ( 2 V ) we denote the set of unordered pairs of distinct vertices of $G. A merge sequence for G G G is a sequence
( P 1 , R 1 ) , ( P 2 , R 2 ) , … , ( P m , R m ) (\mathcal{P}_1, R_1),(\mathcal{P}_2, R_2),\ldots,(\mathcal{P}_m, R_m) ( P 1 , R 1 ) , ( P 2 , R 2 ) , … , ( P m , R m )
such that
P 1 ⊑ P 2 ⊑ … ⊑ P m \mathcal{P}_1 \sqsubseteq\mathcal{P}_2 \sqsubseteq\ldots\sqsubseteq\mathcal{P}_m P 1 ⊑ P 2 ⊑ … ⊑ P m is a sequence of ever coarser partitions of the vertex set of G G G , where P 1 \mathcal{P}_1 P 1 is the partition into singletons and P m \mathcal{P}_m P m has one part V V V ;
R 1 ⊆ R 2 ⊆ … ⊆ R m ⊆ ( V 2 ) R_1 \subseteq R_2 \subseteq\ldots\subseteq R_m \subseteq\binom{V}{2} R 1 ⊆ R 2 ⊆ … ⊆ R m ⊆ ( 2 V ) is an inclusion chain of sets of pairs of vertices of G G G ;
for every i ∈ [ m ] i \in[m] i ∈ [ m ] and pair of parts P , P ′ ∈ P i P, P' \in\mathcal{P}_i P , P ′ ∈ P i (possibly P = P ′ P = P' P = P ′ ), either all pairs u u ′ ∈ ( V 2 ) uu' \in\binom{V}{2} u u ′ ∈ ( 2 V ) with u ∈ P u \in P u ∈ P , u ′ ∈ P ′ u' \in P' u ′ ∈ P ′ , u u ′ ∉ R i uu' \notin R_i u u ′ ∈ / R i , are edges in G G G , or they are all non-edges in G G G .
For r ∈ N r \in\mathbb{N} r ∈ N , the radius-r r r width of the merge sequence ( P 1 , R 1 ) , ( P 2 , R 2 ) , … , ( P m , R m ) (\mathcal{P}_1, R_1),(\mathcal{P}_2, R_2),\ldots,(\mathcal{P}_m, R_m) ( P 1 , R 1 ) , ( P 2 , R 2 ) , … , ( P m , R m ) is the smallest integer k k k satisfying the following property:
For every i ∈ [ m − 1 ] i \in[m-1] i ∈ [ m − 1 ] and u ∈ V u \in V u ∈ V , Ball ( V , R i + 1 ) r [ u ] \operatorname{Ball}^{r}_{(V,R_{i+1})}[u] Ball ( V , R i + 1 ) r [ u ] intersects at most k k k parts of P i \mathcal{P}_i P i .
Note the + 1 +1 + 1 in this definition: It is important that while radius-r r r balls are considered with respect to the larger edge set R i + 1 R_{i+1} R i + 1 , we measure the number of intersected parts of the finer partition P i \mathcal{P}_i P i .
The radius-r r r merge-width of G G G is the smallest k k k such that G G G admits a merge sequence of radius-r r r width at most k k k . A graph class C \mathcal{C} C has almost bounded merge-width if for every r ∈ N r \in\mathbb{N} r ∈ N , every n n n -vertex graph in C \mathcal{C} C has radius-r r r merge-width bounded by f ( n ) f(n) f ( n ) for some function f ( n ) ≤ subpoly C , r ( n ) f(n) \leq\operatorname{subpoly}_{\mathcal{C},r}(n) f ( n ) ≤ subpoly C , r ( n ) . Having bounded merge-width is more restrictive: we require that the radius-r r r merge-width of any G ∈ C G \in\mathcal{C} G ∈ C is bounded by a constant depending only on C \mathcal{C} C and r r r .
Partition merge-width. In [10 ] , Drabik, Dumas, Geniet, Nowakowski, Pilipczuk, and Toruńczyk studied several variants of the definition of merge-width. They showed that some relaxations of the conditions lead to functionally equivalent families of parameters. We will use their concept of partition merge-width . Intuitively, partition merge-width avoids the need of explicitly providing the monotone sequence of sets of pairs R i R_i R i , and works with balls in the flip-metric instead.
A partition sequence for a graph G G G is a sequence
P 1 ⊑ P 2 ⊑ … ⊑ P m \mathcal{P}_1 \sqsubseteq\mathcal{P}_2 \sqsubseteq\ldots\sqsubseteq\mathcal{P}_m P 1 ⊑ P 2 ⊑ … ⊑ P m
of ever coarser partitions of the vertex set of G G G such that P 1 \mathcal{P}_1 P 1 is the partition into singletons and P m \mathcal{P}_m P m has one part V ( G ) V(G) V ( G ) . For r ∈ N r \in\mathbb{N} r ∈ N , the radius-r r r width of P 1 , … , P m \mathcal{P}_1,\ldots,\mathcal{P}_m P 1 , … , P m is the smallest integer k k k satisfying the following:
For every i ∈ [ m − 1 ] i \in[m-1] i ∈ [ m − 1 ] and u ∈ V ( G ) u \in V(G) u ∈ V ( G ) , Ball P i + 1 r [ u ] \operatorname{Ball}^{r}_{\mathcal{P}_{i+1}}[u] Ball P i + 1 r [ u ] intersects at most k k k parts of P i \mathcal{P}_i P i .
Again, the radius-r r r partition merge-width of G G G is the least k k k such that G G G admits a partition sequence of radius-r r r width at most k k k .
The radius-r r r partition merge-width of a graph G G G is never larger than its radius-r r r merge-width: The last condition in the definition of a merge sequence is equivalent to saying that there is a P i \mathcal{P}_i P i -flip of G G G that is a subgraph of ( V ( G ) , R i ) (V(G), R_i) ( V ( G ) , R i ) , so the bound on the reachable parts of P i + 1 \mathcal{P}_{i+1} P i + 1 transfers; see [10 Lemmas 3.3 and 3.6] . The implication in the other direction is far from obvious, but as proved by Drabik et al., can be obtained at the cost of a minor loss in the radius.
Theorem 3.5 ([10 Theorem 5.1] ). Let r ∈ N r \in\mathbb{N} r ∈ N , G G G be a graph, and π G : N → N \pi_G : \mathbb{N} \to\mathbb{N} π G : N → N be the shatter function of G G G . Let k k k be the radius-( 6 r + 1 ) (6r+1) ( 6 r + 1 ) partition merge-width of G G G . Then G G G has radius-r r r merge-width at most k ⋅ π G ( k ) k \cdot\pi_G(k) k ⋅ π G ( k ) .
Moreover, given a partition sequence for G G G of radius-( 6 r + 1 ) (6r+1) ( 6 r + 1 ) width k k k , a merge sequence for G G G of radius-r r r width at most k ⋅ π G ( k ) k \cdot\pi_G(k) k ⋅ π G ( k ) can be computed in O ( n 3 ) O(n^3) O ( n 3 ) time, where n n n is the vertex count of G G G .
We note that for the algorithmic statement, Drabik et al. [10 ] only claim that the running time is polynomial. The O ( n 3 ) O(n^3) O ( n 3 ) bound stated above follows from a careful inspection of the proof combined with a simple amortization argument; we outline this in Section A.
Damping Theorem, and derivation of the main result
In this section we reduce the proof of Theorem 1.1 to an auxiliary statement called the Damping Theorem. The subsequent sections will be devoted to the proof of the Damping Theorem.
We now state the key technical ingredient of the proof of Theorem 1.1.
Theorem 4.1 (Damping Theorem). Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class . Then there exists a function h : N → N h \colon\mathbb{N} \to\mathbb{N} h : N → N with h ( n ) ≤ subpoly ^ C , r ( n ) h(n) \le\widehat{\operatorname{subpoly}}_{\mathcal{C},r}(n) h ( n ) ≤ subpoly C , r ( n ) such that for any q ∈ N q \in\mathbb{N} q ∈ N , n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , and vertex subset A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , there exist a set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) and an S S S -flip H H H of G G G satisfying the following properties:
∣ S ∣ ≤ ∣ A ∣ / q |S| \le|A|/q ∣ S ∣ ≤ ∣ A ∣/ q ; and
for every vertex u ∈ V ( G ) u \in V(G) u ∈ V ( G ) , Ball H r [ u ] \operatorname{Ball}^{r}_{H}[u] Ball H r [ u ] intersects at most q r ⋅ h ( n ) q^{r} \cdot h(n) q r ⋅ h ( n ) parts of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A \cup S) T 1 ( G , A ∪ S ) .
Also, there is an algorithm that, given q q q , r r r , G G G , and A A A , computes such a set S S S and an S S S -flip H H H in time O ^ C , r ( n 3 ) \widehat{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) .
The set S S S and the flip H H H act as a “damper” for A A A , by reducing its impact on outside vertices v v v . Crucially, S S S is only a fixed fraction of the size of A A A . We note that for the purpose of proving Theorem 1.1, it is sufficient to focus on the case q = 2 q=2 q = 2 in Theorem 4.1 ; that is, require that S S S is at least twice smaller than A A A . However, we go the extra inch to prove a more “tunable” version of Theorem 4.1 that allows a trade-off between the size of S S S and the quality of the flip H H H . The purpose of it is to derive a variant of Theorem 1.1 that will be used in [15 ] . This larger generality poses no additional conceptual obstacles in the proof. We also note that the algorithm in Theorem 4.1 does not depend on the class C \mathcal{C} C .
In the remaining sections of this paper we work towards the proof of Theorem 4.1 . Before we proceed with it, we present how Theorem 1.1 can be derived from Theorem 4.1 . We first need a lemma providing a certain additivity property of 1-types.
Lemma 4.2. Let G G G be a graph and γ ∈ N \gamma\in\mathbb{N} γ ∈ N be such that ∣ T 1 ( G , A ) ∣ ≤ γ ∣ A ∣ |\mathcal{T}_1(G,A)| \le\gamma|A| ∣ T 1 ( G , A ) ∣ ≤ γ ∣ A ∣ for every non-empty A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) . Let S 1 , … , S t , X ⊆ V ( G ) S_1,\ldots,S_t,X \subseteq V(G) S 1 , … , S t , X ⊆ V ( G ) be vertex subsets. Further, for every i ∈ [ t ] i \in[t] i ∈ [ t ] , let k i k_i k i be the number of 1-types over S i S_i S i that are intersected by X X X . Then the number of 1-types over S : = ⋃ i ∈ [ t ] S i S := \bigcup_{i \in[t]} S_i S := ⋃ i ∈ [ t ] S i intersected by X X X is bounded by γ ⋅ ∑ i ∈ [ t ] k i \gamma\cdot\sum_{i \in[t]} k_i γ ⋅ ∑ i ∈ [ t ] k i .
Proof. Consider any i ∈ [ t ] i \in[t] i ∈ [ t ] . We claim that there exists R i ⊆ S i R_i \subseteq S_i R i ⊆ S i with ∣ R i ∣ ≤ k i − 1 |R_i| \le k_i-1 ∣ R i ∣ ≤ k i − 1 such that whenever two elements of X X X have different 1-types over S i S_i S i , they also have different 1-types over R i R_i R i . Let X i X_i X i be a subset of X X X containing one representative of each 1-type over S i S_i S i intersected by X X X ; thus ∣ X i ∣ = k i |X_i|=k_i ∣ X i ∣ = k i . It suffices to find R i ⊆ S i R_i \subseteq S_i R i ⊆ S i with ∣ R i ∣ ≤ k i − 1 |R_i| \le k_i-1 ∣ R i ∣ ≤ k i − 1 such that the elements of X i X_i X i have pairwise different 1-types over R i R_i R i . Start with R i : = ∅ R_i := \varnothing R i := ∅ and as long as there exist two distinct vertices x , x ′ ∈ X i x,x' \in X_i x , x ′ ∈ X i with the same 1-type over R i R_i R i , add to R i R_i R i any vertex y ∈ S i y \in S_i y ∈ S i that distinguishes x x x and x ′ x' x ′ ; that is, y ∈ { x , x ′ } y \in\{x,x'\} y ∈ { x , x ′ } is non-homogeneous to { x , x ′ } \{x,x'\} { x , x ′ } . (Such a vertex y y y always exists because x , x ′ x,x' x , x ′ have different 1-types over S i S_i S i .) Every vertex added to R i R_i R i strictly increases the number of 1-types over R i R_i R i intersected by X i X_i X i , hence after at most ∣ X i ∣ − 1 = k i − 1 |X_i|-1=k_i-1 ∣ X i ∣ − 1 = k i − 1 iterations we obtain the desired set R i R_i R i .
Let R : = ⋃ i ∈ [ t ] R i R := \bigcup_{i \in[t]} R_i R := ⋃ i ∈ [ t ] R i ; thus R ⊆ S R \subseteq S R ⊆ S and ∣ R ∣ ≤ ∑ i ∈ [ t ] k i |R| \le\sum_{i \in[t]} k_i ∣ R ∣ ≤ ∑ i ∈ [ t ] k i . We claim that if vertices x , x ′ ∈ X x,x' \in X x , x ′ ∈ X have different 1-types over S S S , then they also have different 1-types over R R R . Indeed, since x , x ′ ∈ X x,x' \in X x , x ′ ∈ X have different 1-types over S S S , there exists y ∈ S y \in S y ∈ S that distinguishes x x x and x ′ x' x ′ in the sense from the previous paragraph. Then y ∈ S i y \in S_i y ∈ S i for some i ∈ [ t ] i \in[t] i ∈ [ t ] . Consequently, x x x and x ′ x' x ′ have different 1-types over S i S_i S i , so they also have different 1-types over R i R_i R i . As R i ⊆ R R_i \subseteq R R i ⊆ R , it follows that x x x and x ′ x' x ′ have different 1-types over R R R . From the observation above it follows that the number of 1-types over S S S intersected by X X X is equal to the number of 1-types over R R R intersected by X X X . We conclude by noting that the total number of 1-types over R R R is bounded by γ ∣ R ∣ ≤ γ ⋅ ∑ i ∈ [ t ] k i \gamma|R| \le\gamma\cdot\sum_{i\in[t]} k_i γ ∣ R ∣ ≤ γ ⋅ ∑ i ∈ [ t ] k i .
We now prove a variant of Theorem 1.1 that provides a very concrete shape of a partition sequence of the given graph. We note that this shape is actually quite close to the concept of definable merge-width , also proposed by Drabik et al. [10 ] . But in order not to overcomplicate things, we choose to stick to the terminology of partition merge-width.
Theorem 4.3. Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class. Then there is a function k : N → N k : \mathbb{N} \to\mathbb{N} k : N → N with k ( n ) ≤ subpoly C , r ( n ) k(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) k ( n ) ≤ subpoly C , r ( n ) such that for any integer q ≥ 2 q \ge2 q ≥ 2 and any n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , there exists a sequence of vertex subsets
∅ = B m ⊆ B m − 1 ⊆ ⋯ ⊆ B 1 ⊆ B 0 = V ( G ) \varnothing= B_m \subseteq B_{m-1} \subseteq\cdots\subseteq B_1 \subseteq B_0 = V(G) ∅ = B m ⊆ B m − 1 ⊆ ⋯ ⊆ B 1 ⊆ B 0 = V ( G ) with m ≤ 1 + log q n m \le1 + \log_q n m ≤ 1 + log q n satisfying the following condition. For every i ∈ [ m ] i \in[m] i ∈ [ m ] and u ∈ V ( G ) u \in V(G) u ∈ V ( G ) ,
Ball P i r [ u ] intersects at most k ′ ( n ) : = q r ⋅ ( log q n + 1 ) ⋅ k ( n ) parts of P i − 1 , \operatorname{Ball}_{\mathcal{P}_i}^{r}[u]\text{ intersects at most }k'(n) := q^r \cdot(\log_q n + 1)\cdot k(n)\text{ parts of }\mathcal{P}_{i-1}, Ball P i r [ u ] intersects at most k ′ ( n ) := q r ⋅ ( log q n + 1 ) ⋅ k ( n ) parts of P i − 1 , where P i : = T 1 ( G , B i ) \mathcal{P}_i := \mathcal{T}_1(G,B_i) P i := T 1 ( G , B i ) . In particular, P 0 ⊑ P 1 ⊑ ⋯ ⊑ P m \mathcal{P}_0 \sqsubseteq\mathcal{P}_1 \sqsubseteq\cdots\sqsubseteq\mathcal{P}_m P 0 ⊑ P 1 ⊑ ⋯ ⊑ P m is a partition sequence for G G G of radius-r r r width at most k ′ ( n ) k'(n) k ′ ( n ) .
Moreover, given q q q , r r r , and G G G , such a sequence B 0 , B 1 , … , B m B_0,B_1,\ldots,B_m B 0 , B 1 , … , B m can be computed in O ^ C , r ( n 3 ) \widehat{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) time.
Proof of Theorem 4.3 assuming Theorem 4.1 . Let γ , h : N → N \gamma,h:\mathbb{N}\to\mathbb{N} γ , h : N → N be the functions provided by Theorems 3.3 and 4.1 for the class C \mathcal{C} C and radius r r r . Thus, γ ( n ) ≤ subpoly C ( n ) \gamma(n)\le\operatorname{subpoly}_{\mathcal{C}}(n) γ ( n ) ≤ subpoly C ( n ) and h ( n ) ≤ subpoly C , r ( n ) h(n)\le\operatorname{subpoly}_{\mathcal{C},r}(n) h ( n ) ≤ subpoly C , r ( n ) . Denote γ : = γ ( n ) \gamma:=\gamma(n) γ := γ ( n ) and h : = h ( n ) h:=h(n) h := h ( n ) , where n n n is the vertex count of the considered graph G G G .
We iteratively define sets S 0 , S 1 , S 2 , … S_0,S_1,S_2,\ldots S 0 , S 1 , S 2 , … and graphs H 1 , H 2 , … H_1,H_2,\ldots H 1 , H 2 , … as follows:
Set S 0 : = V ( G ) S_0:=V(G) S 0 := V ( G ) .
For i ≥ 1 i\ge1 i ≥ 1 , apply Theorem 4.1 with parameter q q q to the set A = S i − 1 A=S_{i-1} A = S i − 1 . Thus, in O ^ C , r ( n 3 ) \widehat{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) time we obtain a set S i ⊆ V ( G ) S_i\subseteq V(G) S i ⊆ V ( G ) satisfying ∣ S i ∣ ≤ ∣ S i − 1 ∣ / q |S_i|\le|S_{i-1}|/q ∣ S i ∣ ≤ ∣ S i − 1 ∣/ q and an S i S_i S i -flip H i H_i H i such that for every u ∈ V ( G ) u\in V(G) u ∈ V ( G ) , Ball H i r [ u ] \operatorname{Ball}_{H_i}^{r}[u] Ball H i r [ u ] intersects at most q r ⋅ h q^r\cdot h q r ⋅ h parts of T 1 ( G , S i − 1 ∪ S i ) \mathcal{T}_1(G,S_{i-1}\cup S_i) T 1 ( G , S i − 1 ∪ S i ) . If S i = ∅ S_i=\varnothing S i = ∅ , we finish the iteration and set m : = i m:=i m := i . Otherwise, we proceed to the next step with the set S i S_i S i defined.
Note that we have ∣ S i ∣ ≤ n / q i |S_i|\le n/q^i ∣ S i ∣ ≤ n / q i for every i ∈ N i\in\mathbb{N} i ∈ N , hence the iteration must stop after at most 1 + log q n 1+\log_q n 1 + log q n steps, yielding m ≤ 1 + log q n m\le1+\log_q n m ≤ 1 + log q n . In particular we have m ≤ 1 + log 2 n ≤ O ^ ( 1 ) m\le1+\log_2 n\le\widehat{O}(1) m ≤ 1 + log 2 n ≤ O ( 1 ) due to q ≥ 2 q\ge2 q ≥ 2 , so sets S 0 , S 1 , S 2 , … S_0,S_1,S_2,\ldots S 0 , S 1 , S 2 , … and graphs H 1 , H 2 , … H_1,H_2,\ldots H 1 , H 2 , … can be computed in total time O ^ C , r ( n 3 ) \widehat{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) .
For i ∈ { 0 , 1 , … , m } i\in\{0,1,\ldots,m\} i ∈ { 0 , 1 , … , m } , define
B i : = ⋃ i ≤ j ≤ m S j . B_i:=\bigcup_{i\le j\le m}S_j. B i := i ≤ j ≤ m ⋃ S j .
Thus V ( G ) = B 0 ⊇ B 1 ⊇ ⋯ ⊇ B m = ∅ V(G)=B_0\supseteq B_1\supseteq\cdots\supseteq B_m=\varnothing V ( G ) = B 0 ⊇ B 1 ⊇ ⋯ ⊇ B m = ∅ , and sets B 0 , … , B m B_0,\ldots,B_m B 0 , … , B m can be computed from the sets S 0 , … , S m S_0,\ldots,S_m S 0 , … , S m in O ( n 2 ) O(n^2) O ( n 2 ) time. Denote P i : = T 1 ( G , B i ) \mathcal{P}_i:=\mathcal{T}_1(G,B_i) P i := T 1 ( G , B i ) .
Consider any i ∈ [ m ] i\in[m] i ∈ [ m ] and u ∈ V ( G ) u\in V(G) u ∈ V ( G ) . Let X : = Ball P i r [ u ] X:=\operatorname{Ball}_{\mathcal{P}_i}^{r}[u] X := Ball P i r [ u ] . Note that S j S_j S j is a subset of B i B_i B i for every j ≥ i j\ge i j ≥ i , hence by Observation 3.4 , H j H_j H j is also a B i B_i B i -flip of G G G . Consequently, we have
X = Ball P i r [ u ] ⊆ Ball H j r [ u ] , for every j ≥ i . X=\operatorname{Ball}_{\mathcal{P}_i}^{r}[u]\subseteq\operatorname{Ball}_{H_j}^{r}[u],\qquad\text{for every }j\ge i. X = Ball P i r [ u ] ⊆ Ball H j r [ u ] , for every j ≥ i .
Since Ball H j r [ u ] \operatorname{Ball}_{H_j}^{r}[u] Ball H j r [ u ] intersects at most q r ⋅ h q^r\cdot h q r ⋅ h parts of T 1 ( G , S j − 1 ∪ S j ) \mathcal{T}_1(G,S_{j-1}\cup S_j) T 1 ( G , S j − 1 ∪ S j ) , it also intersects at most q r ⋅ h q^r\cdot h q r ⋅ h parts of T 1 ( G , S j − 1 ) \mathcal{T}_1(G,S_{j-1}) T 1 ( G , S j − 1 ) , for this partition can only be coarser. We conclude that
X intersects at most q r ⋅ h parts of T 1 ( G , S j − 1 ) , for every j ≥ i . X\text{ intersects at most }q^r\cdot h\text{ parts of }\mathcal{T}_1(G,S_{j-1}),\qquad\text{for every }j\ge i. X intersects at most q r ⋅ h parts of T 1 ( G , S j − 1 ) , for every j ≥ i .
We now apply Lemma 4.2 to the sets S i − 1 , S i , S i + 1 , … , S m − 1 , X S_{i-1}, S_i, S_{i+1}, \ldots, S_{m-1}, X S i − 1 , S i , S i + 1 , … , S m − 1 , X . Noting that B i − 1 = ⋃ i − 1 ≤ j ≤ m − 1 S j B_{i-1} = \bigcup_{i-1 \le j \le m-1} S_j B i − 1 = ⋃ i − 1 ≤ j ≤ m − 1 S j , we thus conclude that
X intersects at most γ ⋅ m ⋅ q r ⋅ h parts of T 1 ( G , B i − 1 ) = P i − 1 . X \text{ intersects at most } \gamma\cdot m \cdot q^r \cdot h \text{ parts of } \mathcal{T}_1(G, B_{i-1}) = \mathcal{P}_{i-1}. X intersects at most γ ⋅ m ⋅ q r ⋅ h parts of T 1 ( G , B i − 1 ) = P i − 1 .
Therefore, we may set k ( n ) : = γ ( n ) ⋅ h ( n ) k(n) := \gamma(n) \cdot h(n) k ( n ) := γ ( n ) ⋅ h ( n ) and note that k ( n ) ≤ subpoly C , r ( n ) k(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) k ( n ) ≤ subpoly C , r ( n ) .
Theorem 1.1 now follows from a straightforward combination of Theorems 3.5 and 4.3 .
Theorem 1.1. For every r ∈ N r \in\mathbb{N} r ∈ N and monadically dependent graph class C \mathcal{C} C , there is a subpolynomial function f : N → N f : \mathbb{N} \to\mathbb{N} f : N → N such that for every n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , the radius-r r r merge-width of G G G is bounded by f ( n ) f(n) f ( n ) . Moreover, given G ∈ C G \in\mathcal{C} G ∈ C , a merge sequence for G G G of radius-r r r width bounded by f ( n ) f(n) f ( n ) can be computed in O ^ C , r ( n 3 ) \widehat{\mathcal{O}}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) time.7
Proof. Applying Theorem 4.3 for q = 2 q = 2 q = 2 and radius r ′ : = 6 r + 1 r' := 6r + 1 r ′ := 6 r + 1 to the considered graph G ∈ C G \in\mathcal{C} G ∈ C yields, in O ^ C , r ( n 3 ) \widehat{\mathcal{O}}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) time, a partition sequence for G G G of radius-r ′ r' r ′ width bounded by k ′ ( n ) : = 2 6 r + 1 ⋅ ( log 2 n + 1 ) ⋅ k ( n ) ≤ subpoly C , r ( n ) k'(n) := 2^{6r+1} \cdot(\log_2 n + 1) \cdot k(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) k ′ ( n ) := 2 6 r + 1 ⋅ ( log 2 n + 1 ) ⋅ k ( n ) ≤ subpoly C , r ( n ) . We may now apply Theorem 3.5 to this sequence and thus obtain, in O ( n 3 ) O(n^3) O ( n 3 ) time, a merge sequence for G G G of radius-r r r width bounded by k ′ ( n ) ⋅ π G ( k ′ ( n ) ) k'(n) \cdot\pi_G(k'(n)) k ′ ( n ) ⋅ π G ( k ′ ( n )) . By Theorem 3.3 , π G \pi_G π G is bounded by a polynomial (even almost linear) function, hence k ′ ( n ) ⋅ π G ( k ′ ( n ) ) ≤ subpoly C , r ( n ) k'(n) \cdot\pi_G(k'(n)) \le\operatorname{subpoly}_{\mathcal{C},r}(n) k ′ ( n ) ⋅ π G ( k ′ ( n )) ≤ subpoly C , r ( n ) .
Finally, we derive a variant of Theorem 1.1 that will be used in [15 ] .
Theorem 4.4. Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class. Then for any rational ε > 0 \varepsilon> 0 ε > 0 and any n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , there is a sequence of vertex subsets
∅ = B m ⊆ B m − 1 ⊆ … ⊆ B 1 ⊆ B 0 = V ( G ) \varnothing= B_m \subseteq B_{m-1} \subseteq\ldots\subseteq B_1 \subseteq B_0 = V(G) ∅ = B m ⊆ B m − 1 ⊆ … ⊆ B 1 ⊆ B 0 = V ( G ) with m ≤ O ( r / ε ) m \le O(r/\varepsilon) m ≤ O ( r / ε ) , which satisfies the following condition. For every i ∈ [ m ] i \in[m] i ∈ [ m ] and u ∈ V ( G ) u \in V(G) u ∈ V ( G ) ,
Ball T 1 ( G , B i ) r [ u ] intersects at most O C , r , ε ( n ε ) parts of T 1 ( G , B i − 1 ) . \operatorname{Ball}^{r}_{\mathcal{T}_1(G,B_i)}[u] \text{ intersects at most } \mathcal{O}_{\mathcal{C},r,\varepsilon}(n^\varepsilon) \text{ parts of } \mathcal{T}_1(G,B_{i-1}). Ball T 1 ( G , B i ) r [ u ] intersects at most O C , r , ε ( n ε ) parts of T 1 ( G , B i − 1 ) . Moreover, there is an algorithm (independent of C \mathcal{C} C and r r r ) which, given ε \varepsilon ε , r r r , and G G G , computes such a sequence B 0 , B 1 , … , B m B_0, B_1, \ldots, B_m B 0 , B 1 , … , B m , and runs in time O ^ C , r ( n 3 ) \widehat{\mathcal{O}}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) for graphs G ∈ C G \in\mathcal{C} G ∈ C .
Proof. We may assume n ≥ 2 n \ge2 n ≥ 2 . We apply Theorem 4.3 with q = ⌈ n ε / 2 r ⌉ q = \lceil n^{\varepsilon/2r} \rceil q = ⌈ n ε /2 r ⌉ and radius parameter r r r . This yields the desired sequence of vertex subsets B 0 , B 1 , … , B m B_0, B_1, \ldots, B_m B 0 , B 1 , … , B m with m ≤ 1 + log q n ≤ 1 + 2 r / ε ≤ O ( r / ε ) m \le1 + \log_q n \le1 + 2r/\varepsilon\le O(r/\varepsilon) m ≤ 1 + log q n ≤ 1 + 2 r / ε ≤ O ( r / ε ) . The bound on the number of 1-types over B i − 1 B_{i-1} B i − 1 intersected by a radius-r r r ball in the T 1 ( G , B i ) \mathcal{T}_1(G,B_i) T 1 ( G , B i ) -metric becomes
q r ⋅ ( log q n + 1 ) ⋅ k ( n ) ≤ ( 2 n ε / 2 r ) r ⋅ ( 1 + 2 r / ε ) ⋅ k ( n ) ≤ 2 r ( 1 + 2 r / ε ) ⋅ n ε / 2 ⋅ k ( n ) . q^r \cdot(\log_q n + 1) \cdot k(n) \le(2n^{\varepsilon/2r})^r \cdot(1 + 2r/\varepsilon) \cdot k(n) \le2^r(1 + 2r/\varepsilon) \cdot n^{\varepsilon/2} \cdot k(n). q r ⋅ ( log q n + 1 ) ⋅ k ( n ) ≤ ( 2 n ε /2 r ) r ⋅ ( 1 + 2 r / ε ) ⋅ k ( n ) ≤ 2 r ( 1 + 2 r / ε ) ⋅ n ε /2 ⋅ k ( n ) .
Since k ( n ) ≤ subpoly C , r ( n ) k(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) k ( n ) ≤ subpoly C , r ( n ) , this quantity is bounded by O C , r , ε ( n ε ) \mathcal{O}_{\mathcal{C},r,\varepsilon}(n^\varepsilon) O C , r , ε ( n ε ) . Finally, the running time is bounded by O ^ C , r ( n 3 ) \widehat{\mathcal{O}}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) by Theorem 4.3 .
Ingredients
In this section we gather several concepts and tools that we will need for the proof of Theorem 4.1 . We also introduce some terminology that will be useful for stating some of the intermediate results on a suitable level of generality.
r-types
We introduce the key notion behind the proof of Theorem 4.1 . It extends the concept of 1-types to larger distances. Recall that given a graph G G G and A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , two vertices u u u , v v v of G G G have the same 1-type over A A A if either u = v ∈ A u = v \in A u = v ∈ A , or u , v ∉ A u,v \notin A u , v ∈ / A and N G ( u ) ∩ A = N G ( v ) ∩ A N_G(u) \cap A = N_G(v) \cap A N G ( u ) ∩ A = N G ( v ) ∩ A .
For an integer r ≥ 2 r \ge2 r ≥ 2 , we define the partition T r ( G , A ) T_r(G,A) T r ( G , A ) into r r r -types over A A A inductively as follows. Two vertices u , u ′ ∈ V ( G ) u,u' \in V(G) u , u ′ ∈ V ( G ) have the same r r r -type if and only if the following conditions are satisfied:
u u u and u ′ u' u ′ have the same ( r − 1 ) (r-1) ( r − 1 ) -type over A A A ;
for each Q ∈ T r − 1 ( G , A ) Q \in T_{r-1}(G,A) Q ∈ T r − 1 ( G , A ) , u u u is complete to Q − { u } Q - \{u\} Q − { u } if and only if u ′ u' u ′ is complete to Q − { u ′ } Q - \{u'\} Q − { u ′ } ; and
for each Q ∈ T r − 1 ( G , A ) Q \in T_{r-1}(G,A) Q ∈ T r − 1 ( G , A ) , u u u is anticomplete to Q − { u } Q - \{u\} Q − { u } if and only if u ′ u' u ′ is anticomplete to Q − { u ′ } Q - \{u'\} Q − { u ′ } .
Note that the exclusion of u u u or u ′ u' u ′ from Q Q Q in the definition is relevant only if u , u ′ ∈ Q u,u' \in Q u , u ′ ∈ Q ; otherwise, the conditions just speak about (anti)completeness to Q Q Q . Also observe that if A ⊆ B ⊆ V ( G ) A \subseteq B \subseteq V(G) A ⊆ B ⊆ V ( G ) then T r ( G , A ) T_r(G,A) T r ( G , A ) is coarser than T r ( G , B ) T_r(G,B) T r ( G , B ) .
In the next lemma we extend Theorem 3.3 to r r r -types. The proof is a reduction to Theorem 3.3 that exploits first-order definability of the partition into r r r -types.
Lemma 5.1. For every monadically dependent graph class C \mathcal{C} C and r ∈ N r \in\mathbb{N} r ∈ N , there is a function γ r : N → N \gamma_r:\mathbb{N} \to\mathbb{N} γ r : N → N with γ r ( n ) ≤ subpoly C , r ( n ) \gamma_r(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) γ r ( n ) ≤ subpoly C , r ( n ) such that for any graph G ∈ C G \in\mathcal{C} G ∈ C and non-empty set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , we have
∣ T r ( G , A ) ∣ ≤ γ r ( ∣ A ∣ ) ⋅ ∣ A ∣ . |T_r(G,A)| \le\gamma_r(|A|) \cdot|A|. ∣ T r ( G , A ) ∣ ≤ γ r ( ∣ A ∣ ) ⋅ ∣ A ∣.
Proof. We first observe that the partitions into r r r -types are definable in the following sense.
Claim 5.2. For every r ∈ N r \in\mathbb{N} r ∈ N there is a first-order formula τ r ( x , y ) \tau_r(x,y) τ r ( x , y ) over { A } \{A\} { A } -colored graphs such that for any graph G G G , vertex subset A A A , and vertices u , u ′ ∈ V ( G ) u,u' \in V(G) u , u ′ ∈ V ( G ) , we have
τ r ( u , u ′ ) holds in ( G , A ) if and only if u and u ′ have the same r -type over A . \tau_r(u,u')\text{ holds in }(G,A)\qquad\text{if and only if}\qquad u\text{ and }u'\text{ have the same }r\text{-type over }A. τ r ( u , u ′ ) holds in ( G , A ) if and only if u and u ′ have the same r -type over A .
Proof of the claim. This follows from a straightforward encoding of the inductive definition of r r r -types in first-order logic. Precisely, for r = 1 r = 1 r = 1 we may use the formula
τ 1 ( x , x ′ ) : = ( x = x ′ ) ∨ [ x ∉ A ∧ x ′ ∉ A ∧ ∀ y ( y ∈ A → ( adj ( x , y ) ↔ adj ( x ′ , y ) ) ) ] . \tau_1(x,x') := (x = x') \lor[x \notin A \land x' \notin A \land\forall y (y \in A \to(\operatorname{adj}(x,y) \leftrightarrow\operatorname{adj}(x',y)))]. τ 1 ( x , x ′ ) := ( x = x ′ ) ∨ [ x ∈ / A ∧ x ′ ∈ / A ∧ ∀ y ( y ∈ A → ( adj ( x , y ) ↔ adj ( x ′ , y )))] .
For r ≥ 2 r \ge2 r ≥ 2 , formula τ r ( x , x ′ ) \tau_r(x,x') τ r ( x , x ′ ) can be constructed from τ r − 1 ( x , x ′ ) \tau_{r-1}(x,x') τ r − 1 ( x , x ′ ) as follows:
τ r ( x , x ′ ) : = τ r − 1 ( x , x ′ ) ∧ ( ( ∀ y [ ( ∀ z z ≠ x ∧ τ r − 1 ( y , z ) → adj ( x , z ) ) ) ↔ ( ∀ z z ≠ x ′ ∧ τ r − 1 ( y , z ) → adj ( x ′ , z ) ) ) ) ∧ ( ( ∀ z z ≠ x ∧ τ r − 1 ( y , z ) → ¬ adj ( x , z ) ) ↔ ( ∀ z z ≠ x ′ ∧ τ r − 1 ( y , z ) → ¬ adj ( x ′ , z ) ) ) ) . \begin{aligned}
\tau_r(x,x') :=\;& \tau_{r-1}(x,x') \land\\
&\bigl((\forall y\,[(\forall z\, z \ne x \land\tau_{r-1}(y,z) \to\operatorname{adj}(x,z))) \leftrightarrow(\forall z\, z \ne x' \land\tau_{r-1}(y,z) \to\operatorname{adj}(x',z)))\bigr) \land\\
&\bigl((\forall z\, z \ne x \land\tau_{r-1}(y,z) \to\neg\operatorname{adj}(x,z)) \leftrightarrow(\forall z\, z \ne x' \land\tau_{r-1}(y,z) \to\neg\operatorname{adj}(x',z)))\bigr).
\end{aligned} τ r ( x , x ′ ) := τ r − 1 ( x , x ′ ) ∧ ( ( ∀ y [( ∀ z z = x ∧ τ r − 1 ( y , z ) → adj ( x , z ))) ↔ ( ∀ z z = x ′ ∧ τ r − 1 ( y , z ) → adj ( x ′ , z ))) ) ∧ ( ( ∀ z z = x ∧ τ r − 1 ( y , z ) → ¬ adj ( x , z )) ↔ ( ∀ z z = x ′ ∧ τ r − 1 ( y , z ) → ¬ adj ( x ′ , z ))) ) .
We use the following bound on types of formulas in monadically dependent graph classes, which is a generalization and easy consequence of Theorem 3.3 . For a finite set Γ \Gamma Γ of first-order formulas φ ( x , y ) \varphi(x,y) φ ( x , y ) over colored graphs, a colored graph G G G , and a set B ⊆ V ( G ) B \subseteq V(G) B ⊆ V ( G ) , let T Γ ( G , B ) T_\Gamma(G,B) T Γ ( G , B ) denote the partition of V ( G ) V(G) V ( G ) into Γ \Gamma Γ -types over B B B : vertices u u u , v v v belong to the same part if and only if, for every b ∈ B b \in B b ∈ B and φ ∈ Γ \varphi\in\Gamma φ ∈ Γ , we have that φ ( u , b ) ↔ φ ( v , b ) \varphi(u,b) \leftrightarrow\varphi(v,b) φ ( u , b ) ↔ φ ( v , b ) holds in G G G .
Lemma 5.3. Fix a finite set Γ \Gamma Γ of first-order formulas φ ( x , y ) \varphi(x,y) φ ( x , y ) , possibly using a fixed finite set of vertex colors, and a monadically dependent graph class C \mathcal{C} C . There is a function γ Γ : N → N \gamma_\Gamma:\mathbb{N} \to\mathbb{N} γ Γ : N → N with γ Γ ( n ) ≤ subpoly C , Γ ( n ) \gamma_\Gamma(n) \le\operatorname{subpoly}_{\mathcal{C},\Gamma}(n) γ Γ ( n ) ≤ subpoly C , Γ ( n ) such that, for every graph G ∈ C G \in\mathcal{C} G ∈ C , every expansion G + G^+ G + of G G G by the colors occurring in Γ \Gamma Γ , and every non-empty set B ⊆ V ( G ) B \subseteq V(G) B ⊆ V ( G ) , we have
∣ T Γ ( G + , B ) ∣ ≤ ∣ B ∣ ⋅ γ Γ ( ∣ B ∣ ) . |T_\Gamma(G^+,B)| \le|B| \cdot\gamma_\Gamma(|B|). ∣ T Γ ( G + , B ) ∣ ≤ ∣ B ∣ ⋅ γ Γ ( ∣ B ∣ ) .
The proof of Lemma 5.3 proceeds by lifting Theorem 3.3 in a standard way, and is deferred to Section B.
For r ≥ 2 r \ge2 r ≥ 2 , let Γ r \Gamma_r Γ r consist of the three formulas asserting, in the colored graph G + : = ( G , A ) G^+ := (G,A) G + := ( G , A ) , that
x x x and y y y have the same ( r − 1 ) (r-1) ( r − 1 ) -type over A A A ;
x x x is complete to the ( r − 1 ) (r-1) ( r − 1 ) -type of y y y over A A A , with x x x itself removed; and
x x x is anticomplete to the ( r − 1 ) (r-1) ( r − 1 ) -type of y y y over A A A , with x x x itself removed.
These formulas exist by Claim 5.2 and depend only on r r r . For each i ≥ 1 i \ge1 i ≥ 1 , choose a set A i A_i A i containing exactly one representative of each i i i -type over A A A . Then
T Γ r ( G + , A r − 1 ) = T r ( G , A ) : \mathcal{T}_{\Gamma_r}(G^+,A_{r-1})=\mathcal{T}_r(G,A): T Γ r ( G + , A r − 1 ) = T r ( G , A ) :
the first formula identifies the ( r − 1 ) (r-1) ( r − 1 ) -type of a vertex, while the other two record its attachments to every ( r − 1 ) (r-1) ( r − 1 ) -type. For r = 1 r=1 r = 1 , Theorem 3.3 gives ∣ A 1 ∣ ≤ ∣ A ∣ ⋅ subpoly C ( ∣ A ∣ ) |A_1| \le|A|\cdot\operatorname{subpoly}_{\mathcal{C}}(|A|) ∣ A 1 ∣ ≤ ∣ A ∣ ⋅ subpoly C ( ∣ A ∣ ) . Applying Lemma 5.3 inductively now yields
∣ A r ∣ = ∣ T Γ r ( G + , A r − 1 ) ∣ ≤ ∣ A r − 1 ∣ ⋅ subpoly C , r ( ∣ A r − 1 ∣ ) ≤ ∣ A ∣ ⋅ subpoly C , r ( ∣ A ∣ ) , |A_r|=|\mathcal{T}_{\Gamma_r}(G^+,A_{r-1})|\le|A_{r-1}|\cdot\operatorname{subpoly}_{\mathcal{C},r}(|A_{r-1}|)\le|A|\cdot\operatorname{subpoly}_{\mathcal{C},r}(|A|), ∣ A r ∣ = ∣ T Γ r ( G + , A r − 1 ) ∣ ≤ ∣ A r − 1 ∣ ⋅ subpoly C , r ( ∣ A r − 1 ∣ ) ≤ ∣ A ∣ ⋅ subpoly C , r ( ∣ A ∣ ) ,
as required.
Partition selectors. We introduce some terminology to conveniently capture some of the key properties of the partitions T r ( G , A ) \mathcal{T}_r(G,A) T r ( G , A ) . A partition selector is a function P ( ⋅ , ⋅ ) \mathcal{P}(\cdot,\cdot) P ( ⋅ , ⋅ ) that to a graph G G G and a set of vertices A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) assigns a partition P ( G , A ) \mathcal{P}(G,A) P ( G , A ) of the vertex set of G G G . We will only be interested in the partition selectors T r \mathcal{T}_r T r for r ∈ N r\in\mathbb{N} r ∈ N in this paper.
We call a partition selector P \mathcal{P} P monotone if P ( G , A ) \mathcal{P}(G,A) P ( G , A ) is a coarsening of P ( G , B ) \mathcal{P}(G,B) P ( G , B ) whenever A ⊆ B A\subseteq B A ⊆ B . Also, P \mathcal{P} P is t ( n ) t(n) t ( n ) -time computable if there is a t ( n ) t(n) t ( n ) -time algorithm computing P ( G , A ) \mathcal{P}(G,A) P ( G , A ) given G G G and A A A , where n n n is the number of vertices of G G G .
It is clear from the definition that T r \mathcal{T}_r T r is monotone and it is always the case that T r ( G , A ) \mathcal{T}_r(G,A) T r ( G , A ) is a refinement of T r − 1 ( G , A ) \mathcal{T}_{r-1}(G,A) T r − 1 ( G , A ) . More generally, we call a partition selector P \mathcal{P} P respectful if for any graph G G G and A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) , P ( G , A ) \mathcal{P}(G,A) P ( G , A ) is a refinement of T 1 ( G , A ) \mathcal{T}_1(G,A) T 1 ( G , A ) ; thus T r \mathcal{T}_r T r is respectful.
Definition 5.4. The growth ratio of a partition selector P \mathcal{P} P on a graph G G G is the least integer γ \gamma γ such that
∣ P ( G , A ) ∣ ≤ γ ⋅ ∣ A ∣ |\mathcal{P}(G,A)|\le\gamma\cdot|A| ∣ P ( G , A ) ∣ ≤ γ ⋅ ∣ A ∣ for every non-empty set A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) .
In particular, Lemma 5.1 immediately implies the following.
Theorem 5.5. For every monadically dependent graph class C \mathcal{C} C and r ∈ N r\in\mathbb{N} r ∈ N , there is a function γ r : N → N \gamma_r:\mathbb{N}\to\mathbb{N} γ r : N → N with γ r ( n ) ≤ subpoly C , r ( n ) \gamma_r(n)\le\operatorname{subpoly}_{\mathcal{C},r}(n) γ r ( n ) ≤ subpoly C , r ( n ) such that for any n n n -vertex graph G ∈ C G\in\mathcal{C} G ∈ C , T r \mathcal{T}_r T r has growth ratio at most γ r ( n ) \gamma_r(n) γ r ( n ) on $G.
Proof. It suffices to note that in the context of Lemma 5.1 , ∣ A ∣ ≤ ∣ V ( G ) ∣ = n |A|\le|V(G)|=n ∣ A ∣ ≤ ∣ V ( G ) ∣ = n and we may assume without loss of generality that γ r \gamma_r γ r is non-decreasing.
Finally, we note that the partition selectors T r \mathcal{T}_r T r are computable in quadratic time.
Lemma 5.6. There is an O ( r n 2 ) O(rn^2) O ( r n 2 ) -time algorithm that given r ∈ N r\in\mathbb{N} r ∈ N , an n n n -vertex graph G G G , and a vertex subset A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) , computes the partition T r ( G , A ) \mathcal{T}_r(G,A) T r ( G , A ) .
Proof. For r = 1 r=1 r = 1 , we may compute partition T 1 ( G , A ) \mathcal{T}_1(G,A) T 1 ( G , A ) in O ( n 2 ) O(n^2) O ( n 2 ) time by first computing for every vertex v ∈ V ( G ) − A v\in V(G)-A v ∈ V ( G ) − A a Boolean vector of length ∣ A ∣ |A| ∣ A ∣ representing its neighborhood in A A A , and then applying radix sort to those vectors. For larger r r r , it suffices to show how to compute T r ( G , A ) \mathcal{T}_r(G,A) T r ( G , A ) from T r − 1 ( G , A ) \mathcal{T}_{r-1}(G,A) T r − 1 ( G , A ) in O ( n 2 ) O(n^2) O ( n 2 ) time, for any r ≥ 2 r\ge2 r ≥ 2 . For this, we compute, for every vertex u ∈ V ( G ) u\in V(G) u ∈ V ( G ) and part Q ∈ T r − 1 ( G , A ) Q\in\mathcal{T}_{r-1}(G,A) Q ∈ T r − 1 ( G , A ) , the number of vertices v ∈ Q v \in Q v ∈ Q that are adjacent to u u u ; call this number c u , Q c_{u,Q} c u , Q . This can be done in total time O ( n 2 ) O(n^2) O ( n 2 ) by considering every edge u v uv uv of G G G and incrementing numbers c u , Q c_{u,Q} c u , Q and c v , P c_{v,P} c v , P , where P , Q ∈ T r − 1 ( G , A ) P, Q \in\mathcal{T}_{r-1}(G,A) P , Q ∈ T r − 1 ( G , A ) are such that u ∈ P u \in P u ∈ P and v ∈ Q v \in Q v ∈ Q . Once the numbers c u , Q c_{u,Q} c u , Q are computed, we may easily determine, for every vertex u u u and part Q ∈ T r − 1 ( G , A ) Q \in\mathcal{T}_{r-1}(G,A) Q ∈ T r − 1 ( G , A ) , whether u u u is anticomplete, complete, or non-homogeneous to Q − { u } Q-\{u\} Q − { u } . This yields, for every vertex u u u , a vector of length ∣ T r − 1 ( G , A ) ∣ |\mathcal{T}_{r-1}(G,A)| ∣ T r − 1 ( G , A ) ∣ that describes for every part Q ∈ T r − 1 ( G , A ) Q \in\mathcal{T}_{r-1}(G,A) Q ∈ T r − 1 ( G , A ) one of six possible states: (i) whether u u u belongs to Q Q Q or not, and (ii) whether u u u is anticomplete, complete, or non-homogeneous to Q − { u } Q-\{u\} Q − { u } . Sorting these vectors using radix sort and grouping consecutive duplicates yields the desired partition T r ( G , A ) \mathcal{T}_r(G,A) T r ( G , A ) in time O ( n ⋅ ∣ T r − 1 ( G , A ) ∣ ) ≤ O ( n 2 ) O(n \cdot|\mathcal{T}_{r-1}(G,A)|) \le O(n^2) O ( n ⋅ ∣ T r − 1 ( G , A ) ∣ ) ≤ O ( n 2 ) .
Packing ratio
We will use the well-known result due to Haussler [21 ] . The bound in the following formulation follows from the proof8 in [23 ] .
Theorem 5.7 (Haussler’s Packing Lemma). Let F \mathcal{F} F be a set system over a finite set U U U with ∣ F ∣ ≥ 2 |\mathcal{F}| \ge2 ∣ F ∣ ≥ 2 such that the following properties hold for some reals c , ρ ≥ 1 c, \rho\ge1 c , ρ ≥ 1 and numbers k , d ∈ N k, d \in\mathbb{N} k , d ∈ N :
∣ { F ∩ X : F ∈ F } ∣ ≤ c ⋅ ∣ X ∣ ρ |\{F \cap X : F \in\mathcal{F}\}| \le c \cdot|X|^\rho ∣ { F ∩ X : F ∈ F } ∣ ≤ c ⋅ ∣ X ∣ ρ for all ∅ ≠ X ⊆ U \varnothing\ne X \subseteq U ∅ = X ⊆ U ,
F \mathcal{F} F has VC dimension at most d d d , and
∣ F △ F ′ ∣ ≥ k |F \triangle F'| \ge k ∣ F △ F ′ ∣ ≥ k for all distinct F , F ′ ∈ F F, F' \in\mathcal{F} F , F ′ ∈ F .
Then
∣ F ∣ ≤ 2 c ⋅ ( 4 d ⋅ ∣ U ∣ k ) ρ ≤ O d , ρ , k ( c ⋅ ∣ U ∣ ρ ) . (2) |\mathcal{F}| \le2c \cdot\left(\frac{4d \cdot|U|}{k}\right)^\rho\le O_{d,\rho,k}\left(c \cdot|U|^\rho\right). \tag*{(2)} ∣ F ∣ ≤ 2 c ⋅ ( k 4 d ⋅ ∣ U ∣ ) ρ ≤ O d , ρ , k ( c ⋅ ∣ U ∣ ρ ) . (2)
It will be convenient to encapsulate Haussler’s Packing Lemma in the following definition.
Definition 5.8. The packing ratio of a graph G G G is the least integer β \beta β with the following property:
For all sets A , X ⊆ V ( G ) A, X \subseteq V(G) A , X ⊆ V ( G ) with ∣ X ∣ ≥ 2 |X| \ge2 ∣ X ∣ ≥ 2 and every k ∈ N k \in\mathbb{N} k ∈ N such that ∣ Δ [ u , v ] ∩ A ∣ ≥ k |\Delta[u,v] \cap A| \ge k ∣Δ [ u , v ] ∩ A ∣ ≥ k for all distinct u , v ∈ X u,v \in X u , v ∈ X , we have
∣ X ∣ ≤ β ⋅ ∣ A ∣ k . |X| \le\beta\cdot\frac{|A|}{k}. ∣ X ∣ ≤ β ⋅ k ∣ A ∣ .
The observation is that Haussler’s Packing Lemma together with a bound on the number of 1-types implies a bound on the packing ratio.
Lemma 5.9. Let G G G be a graph, γ \gamma γ be the growth ratio of T 1 \mathcal{T}_1 T 1 on G G G , and d d d be the maximum of 1 and the VC dimension of the set system { N [ u ] : u ∈ V ( G ) } \{N[u]: u \in V(G)\} { N [ u ] : u ∈ V ( G )} . Then the packing ratio β \beta β of G G G is at most
β ≤ 10 d γ ≤ 20 γ log 2 ( 2 γ ) . \beta\le10d\gamma\le20\gamma\log_2(2\gamma). β ≤ 10 d γ ≤ 20 γ log 2 ( 2 γ ) . Proof. We first show d ≤ 2 log 2 ( 2 γ ) d \le2\log_2(2\gamma) d ≤ 2 log 2 ( 2 γ ) . This is immediate if d = 1 d=1 d = 1 . Otherwise, let B B B be a shattered set of size d d d . Then
2 d = ∣ { N [ u ] ∩ B : u ∈ V ( G ) } ∣ ≤ ∣ T 1 ( G , B ) ∣ ≤ γ d . 2^d = |\{N[u] \cap B : u \in V(G)\}| \le|\mathcal{T}_1(G,B)| \le\gamma d. 2 d = ∣ { N [ u ] ∩ B : u ∈ V ( G )} ∣ ≤ ∣ T 1 ( G , B ) ∣ ≤ γ d . Using the elementary inequality d ≤ 2 d / 2 + 1 d \le2^{d/2+1} d ≤ 2 d /2 + 1 , we obtain 2 d / 2 ≤ 2 γ 2^{d/2} \le2\gamma 2 d /2 ≤ 2 γ , and hence d ≤ 2 log 2 ( 2 γ ) d \le2\log_2(2\gamma) d ≤ 2 log 2 ( 2 γ ) .
Denote β : = 10 d γ \beta:= 10d\gamma β := 10 d γ . Consider vertex subsets A , X ⊆ V ( G ) A, X \subseteq V(G) A , X ⊆ V ( G ) with ∣ X ∣ ≥ 2 |X| \ge2 ∣ X ∣ ≥ 2 and k ∈ N k \in\mathbb{N} k ∈ N such that ∣ Δ [ u , v ] ∩ A ∣ ≥ k |\Delta[u,v] \cap A| \ge k ∣Δ [ u , v ] ∩ A ∣ ≥ k for all distinct u , v ∈ X u,v \in X u , v ∈ X . Note that since k k k is positive, for all distinct u , v ∈ X − A u,v \in X-A u , v ∈ X − A we have N [ u ] ∩ A ≠ N [ v ] ∩ A N[u] \cap A \ne N[v] \cap A N [ u ] ∩ A = N [ v ] ∩ A , so
∣ X ∣ ≤ ∣ T 1 ( G , A ) ∣ ≤ γ ⋅ ∣ A ∣ . |X| \le|\mathcal{T}_1(G,A)| \le\gamma\cdot|A|. ∣ X ∣ ≤ ∣ T 1 ( G , A ) ∣ ≤ γ ⋅ ∣ A ∣.
In particular, the bound ∣ X ∣ ≤ β ⋅ ∣ A ∣ k |X| \le\beta\cdot\frac{|A|}{k} ∣ X ∣ ≤ β ⋅ k ∣ A ∣ holds whenever k ≤ 9 k \le9 k ≤ 9 , since d ≥ 1 d \ge1 d ≥ 1 . So from now on we may assume that k ≥ 10 k \ge10 k ≥ 10 .
Let
F : = { N [ u ] ∩ A : u ∈ X } . \mathcal{F} := \{N[u] \cap A: u \in X\}. F := { N [ u ] ∩ A : u ∈ X } .
Note that the assumption ∣ Δ [ u , v ] ∩ A ∣ ≥ k ≥ 10 |\Delta[u,v] \cap A| \ge k \ge10 ∣Δ [ u , v ] ∩ A ∣ ≥ k ≥ 10 for distinct u , v ∈ X u,v \in X u , v ∈ X implies that the sets N [ u ] ∩ A N[u] \cap A N [ u ] ∩ A for u ∈ X u \in X u ∈ X are pairwise different (so ∣ F ∣ = ∣ X ∣ |\mathcal{F}| = |X| ∣ F ∣ = ∣ X ∣ ) and
∣ F △ F ′ ∣ ≥ k − 2 , for all distinct F , F ′ ∈ F . (3) |F \mathbin{\triangle} F'| \ge k - 2, \qquad\text{for all distinct } F,F' \in\mathcal{F}. \tag*{(3)} ∣ F △ F ′ ∣ ≥ k − 2 , for all distinct F , F ′ ∈ F . (3)
For every non-empty B ⊆ A B \subseteq A B ⊆ A , we have
∣ { F ∩ B : F ∈ F } ∣ ≤ ∣ T 1 ( G , B ) ∣ ≤ γ ⋅ ∣ B ∣ , |\{F \cap B: F \in\mathcal{F}\}| \le|\mathcal{T}_1(G,B)| \le\gamma\cdot|B|, ∣ { F ∩ B : F ∈ F } ∣ ≤ ∣ T 1 ( G , B ) ∣ ≤ γ ⋅ ∣ B ∣ ,
and the VC dimension of F \mathcal{F} F is at most d d d . Thus we may apply Theorem 5.7 to F \mathcal{F} F over A A A with c = γ c = \gamma c = γ , ρ = 1 \rho= 1 ρ = 1 , and separation parameter k − 2 k - 2 k − 2 , using (3) . This gives
∣ X ∣ = ∣ F ∣ ≤ 8 d γ ⋅ ∣ A ∣ k − 2 ≤ 10 d γ ⋅ ∣ A ∣ k = β ⋅ ∣ A ∣ k , |X| = |\mathcal{F}| \le8d\gamma\cdot\frac{|A|}{k - 2} \le10d\gamma\cdot\frac{|A|}{k} = \beta\cdot\frac{|A|}{k}, ∣ X ∣ = ∣ F ∣ ≤ 8 d γ ⋅ k − 2 ∣ A ∣ ≤ 10 d γ ⋅ k ∣ A ∣ = β ⋅ k ∣ A ∣ ,
where the second inequality follows from k ≥ 10 k \ge10 k ≥ 10 . □ \square □
By combining Theorem 3.3 with Lemma 5.9 we immediately get the following.
Corollary 5.10. For every monadically dependent graph class C \mathcal{C} C there is a function β : N → N \beta: \mathbb{N} \to\mathbb{N} β : N → N with β ( n ) ≤ subpoly C ( n ) \beta(n) \le\operatorname{subpoly}_{\mathcal{C}}(n) β ( n ) ≤ subpoly C ( n ) such that every n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C has packing ratio at most β ( n ) \beta(n) β ( n ) .
Orders with low alternation
Further, we will rely on orderings of low alternation , also known as orderings with low crossing number . The following definition is already tailored to the graph setting.
Definition 5.11. Let G G G be a graph and ⪯ \preceq ⪯ be a vertex ordering of G G G . The alternation of ⪯ \preceq ⪯ is the least integer α \alpha α with the following property:
For every vertex u u u of G G G , there are at most α \alpha α pairs of vertices w , w ′ w,w' w , w ′ that are consecutive in ⪯ \preceq ⪯ and satisfy u ∈ Δ [ w , w ′ ] u \in\Delta[w,w'] u ∈ Δ [ w , w ′ ] .
We will rely on the fundamental result of Welzl [31 ] about the existence of paths with low crossing number in set systems of bounded VC dimension. The precise formulation we use is due to Bonnet, Duron, Sylvester, and Zamaraev [6 ] , and is already adapted to the graph setting.
Theorem 5.12 (follows from Theorem 20 of [6 ] ). Let G G G be an n n n -vertex graph and f : R ≥ 0 → R ≥ 0 f: \mathbb{R}_{\ge0} \to\mathbb{R}_{\ge0} f : R ≥ 0 → R ≥ 0 be a strictly increasing function such that ∣ { N [ u ] ∩ A : u ∈ V ( G ) } ∣ ≤ f ( ∣ A ∣ ) |\{N[u] \cap A: u \in V(G)\}| \le f(|A|) ∣ { N [ u ] ∩ A : u ∈ V ( G )} ∣ ≤ f ( ∣ A ∣ ) for every non-empty A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) . Further, let d d d be the VC dimension of { N [ u ] : u ∈ V ( G ) } \{N[u]: u \in V(G)\} { N [ u ] : u ∈ V ( G )} , treated as a set system over V ( G ) V(G) V ( G ) . Then there exists a vertex ordering of G G G with alternation bounded by
α : = 2 + 2 log 2 n + 10 d ⋅ ∑ i = 1 n 1 f − 1 ( i / 2 ) . \alpha:= 2 + 2\log_2 n + 10d \cdot\sum_{i=1}^{n} \frac{1}{f^{-1}(i/2)}. α := 2 + 2 log 2 n + 10 d ⋅ i = 1 ∑ n f − 1 ( i /2 ) 1 . Moreover, there is an O ( α 2 n 3 ) O(\alpha^2 n^3) O ( α 2 n 3 ) -time algorithm that given G G G , computes a vertex ordering with alternation bounded as above.
We remark that the formulation in [6 ] does not specify the running time of the construction procedure. In Section C we show that with minimal effort, the method described in [6 ] can be implemented so that it runs in O ( α 2 n 3 ) O(\alpha^{2}n^{3}) O ( α 2 n 3 ) time; this proves the algorithmic claim of Theorem 5.12 . We also remark that instead of alternation, Bonnet, Duron, Sylvester, and Zamaraev [6 ] consider a closely related parameter contiguity and prove a bound of α / 2 − 1 \alpha/2-1 α /2 − 1 on it; the bound on the alternation follows by the same reasoning, as explained in Section C.
Note that the algorithm of Theorem 5.12 does not need to be provided access to the function f f f ; it can be employed on any graph and it produces a vertex ordering satisfying the alternation bound for any function f f f that satisfies the prerequisites. Also, when f ( x ) = γ ⋅ x f(x)=\gamma\cdot x f ( x ) = γ ⋅ x for some γ > 0 \gamma>0 γ > 0 , we have
∑ i = 1 n 1 f − 1 ( i / 2 ) = 2 γ ⋅ ∑ i = 1 n 1 i ≤ 2 γ ( 1 + log 2 n ) . \sum_{i=1}^{n}\frac{1}{f^{-1}(i/2)}=2\gamma\cdot\sum_{i=1}^{n}\frac{1}{i}\leq2\gamma(1+\log_{2}n). i = 1 ∑ n f − 1 ( i /2 ) 1 = 2 γ ⋅ i = 1 ∑ n i 1 ≤ 2 γ ( 1 + log 2 n ) .
Then, the bound of Theorem 5.12 can be upper bounded by
2 + 20 d γ + ( 20 d γ + 2 ) ⋅ log 2 n . 2+20d\gamma+(20d\gamma+2)\cdot\log_{2}n. 2 + 20 d γ + ( 20 d γ + 2 ) ⋅ log 2 n .
Together with Theorem 3.3 and Observation 3.2 , we immediately conclude the following.
Corollary 5.13. Let G G G be an n n n -vertex graph, γ \gamma γ be the growth ratio of T 1 \mathcal{T}_{1} T 1 on G G G , and d d d be the VC dimension of the set system { N [ u ] : u ∈ V ( G ) } \{N[u]:u\in V(G)\} { N [ u ] : u ∈ V ( G )} . Then G G G admits a vertex ordering of alternation bounded by 2 + 20 d γ + ( 20 d γ + 2 ) ⋅ log 2 n 2+20d\gamma+(20d\gamma+2)\cdot\log_{2}n 2 + 20 d γ + ( 20 d γ + 2 ) ⋅ log 2 n , and such a vertex ordering can be computed in O ( d 2 γ 2 ⋅ n 3 log 2 2 n ) O(d^{2}\gamma^{2}\cdot n^{3}\log_{2}^{2}n) O ( d 2 γ 2 ⋅ n 3 log 2 2 n ) time.
Corollary 5.14. For every monadically dependent graph class C \mathcal{C} C there is a function α : N → N \alpha:\mathbb{N}\to\mathbb{N} α : N → N with α ( n ) ≤ subpoly C ( n ) \alpha(n)\leq\operatorname{subpoly}_{\mathcal{C}}(n) α ( n ) ≤ subpoly C ( n ) such that every n n n -vertex graph G ∈ C G\in\mathcal{C} G ∈ C admits a vertex ordering of alternation at most α ( n ) \alpha(n) α ( n ) . Further, such a vertex ordering can be computed in time O ~ ( n 3 ) \widetilde{O}(n^{3}) O ( n 3 ) , given G G G alone.
Predamping Lemma
In this section we take the first step towards the Damping Theorem (Theorem 4.1 ) by proving the Predamping Lemma (Lemma 6.1 ) below. Intuitively, the goal of this step is to find a set S S S that is already suitable, but whose relevant properties are expressed in the language of r r r -types and symmetric differences of neighborhoods, rather than in terms of the existence of a flip. To describe those properties, we need some definitions.
Let G G G be a graph and A A A be a set of its vertices. We say that a vertex u u u crosses A A A if u ∉ A u\notin A u ∈ / A and u u u is not homogeneous to A A A . For a partition Q \mathcal{Q} Q of V ( G ) V(G) V ( G ) and two vertices u , v u,v u , v of G G G , we define their Hamming distance with respect to Q \mathcal{Q} Q as
ham Q ( u , v ) : = ∣ { Q ∈ Q : Δ [ u , v ] ∩ Q ≠ ∅ } ∣ . \operatorname{ham}_{\mathcal{Q}}(u,v):=\left|\{Q\in\mathcal{Q}:\Delta[u,v]\cap Q\ne\varnothing\}\right|. ham Q ( u , v ) := ∣ { Q ∈ Q : Δ [ u , v ] ∩ Q = ∅ } ∣ .
Note that for any two vertices u , v u,v u , v , we have that Δ [ u , v ] = ∅ \Delta[u,v]=\varnothing Δ [ u , v ] = ∅ if and only if u = v u=v u = v , by our definition. It follows that ham Q ( u , v ) = 0 \operatorname{ham}_{\mathcal{Q}}(u,v)=0 ham Q ( u , v ) = 0 if and only if u = v u=v u = v . Moreover, since Δ [ u , w ] ⊆ Δ [ u , v ] ∪ Δ [ v , w ] \Delta[u,w]\subseteq\Delta[u,v]\cup\Delta[v,w] Δ [ u , w ] ⊆ Δ [ u , v ] ∪ Δ [ v , w ] for any triple of vertices u , v , w u,v,w u , v , w , we have that ham Q ( ⋅ , ⋅ ) \operatorname{ham}_{\mathcal{Q}}(\cdot,\cdot) ham Q ( ⋅ , ⋅ ) is symmetric and satisfies the triangle inequality; thus it defines a metric. Observe also that if R \mathcal{R} R is a refinement of Q \mathcal{Q} Q , then we have
ham R ( u , v ) ≥ ham Q ( u , v ) for all u , v ∈ V ( G ) . \operatorname{ham}_{\mathcal{R}}(u,v)\geq\operatorname{ham}_{\mathcal{Q}}(u,v)\qquad\text{for all }u,v\in V(G). ham R ( u , v ) ≥ ham Q ( u , v ) for all u , v ∈ V ( G ) .
With all these definitions in place, the goal of this section is to prove the Predamping Lemma formulated below. Note that compared to the simplified formulation from § 3 , we choose to express all the bounds in terms of three parameters:
The point of this is to make the formulation more robust with respect to various applications of the method; see the discussion in § 10 .
Lemma 6.1 (Predamping Lemma). Let P \mathcal{P} P be a monotone and respectful partition selector, G G G be a graph, and α , β , γ ∈ N \alpha,\beta,\gamma\in\mathbb{N} α , β , γ ∈ N be such that
P \mathcal{P} P has growth ratio at most γ \gamma γ on G G G ;
G G G has packing ratio at most β \beta β ; and
G G G admits a vertex ordering ≼ \preccurlyeq ≼ of alternation at most α \alpha α .
Then for every q ∈ N q \in\mathbb{N} q ∈ N and set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) with ∣ A ∣ ≥ 6 ( q + 1 ) |A| \ge6(q+1) ∣ A ∣ ≥ 6 ( q + 1 ) there exists a set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) such that
(A1) ∣ S ∣ ≤ ∣ A ∣ / q |S| \le|A|/q ∣ S ∣ ≤ ∣ A ∣/ q ;
(A2) for every u ∈ V ( G ) u \in V(G) u ∈ V ( G ) there exists s u ∈ S s_u \in S s u ∈ S such that ham P ( G , A ∪ S ) ( u , s u ) ≤ 15 ( q + 1 ) ⋅ β γ \operatorname{ham}_{\mathcal{P}(G,A\cup S)}(u,s_u) \le15(q+1)\cdot\beta\gamma ham P ( G , A ∪ S ) ( u , s u ) ≤ 15 ( q + 1 ) ⋅ β γ ; and
(A3) for any two vertices u , v ∈ V ( G ) u,v \in V(G) u , v ∈ V ( G ) belonging to the same 1 1 1 -type over S S S , we have
ham P ( G , A ∪ S ) ( u , v ) ≤ 44 ( q + 1 ) ⋅ α γ . \operatorname{ham}_{\mathcal{P}(G,A\cup S)}(u,v) \le44(q+1)\cdot\alpha\gamma. ham P ( G , A ∪ S ) ( u , v ) ≤ 44 ( q + 1 ) ⋅ α γ . Moreover, assuming that P \mathcal{P} P is computable in time t ( n ) t(n) t ( n ) , there is an O ( ( β + γ ) ∣ A ∣ ⋅ ( β γ n 2 + t ( n ) ) ) O((\beta+\gamma)|A|\cdot(\beta\gamma n^2+t(n))) O (( β + γ ) ∣ A ∣ ⋅ ( β γ n 2 + t ( n ))) -time algorithm computing such a set S S S given q q q , G G G , A A A , and ≼ \preccurlyeq ≼ . The algorithm does not need to be provided the values of α , β , γ \alpha,\beta,\gamma α , β , γ .
Proof. We describe an algorithmic procedure that constructs a suitable set S S S . Before we proceed with the description, let us argue that at a mild cost, we may actually assume that the procedure is provided the values of α , β , γ \alpha,\beta,\gamma α , β , γ . For α \alpha α this is clear, since the alternation of the provided vertex ordering ≼ \preccurlyeq ≼ can be easily computed in O ( n 2 ) O(n^2) O ( n 2 ) time. For β \beta β and γ \gamma γ , the procedure we are going to present has the following feature: It can be run for any supposed values of β \beta β and γ \gamma γ , and either it succeeds in finding a set S S S satisfying the postulated properties for these supposed values, or it produces a witness that the growth ratio of P \mathcal{P} P on G G G is larger than the supposed value of γ \gamma γ , or a witness that the packing ratio of G G G is larger than the supposed value of β \beta β . Therefore, we apply the procedure starting with β = γ = 1 \beta=\gamma=1 β = γ = 1 and each time a witness is found, we increment the corresponding parameter β \beta β or γ \gamma γ and run the procedure again. As a result, within at most β + γ \beta+\gamma β + γ re-runs we eventually find a set S S S that satisfies the postulated bounds for the supposed values of β \beta β and γ \gamma γ upper-bounded by their actual values. Consequently, from now on our goal is to design an O ( ∣ A ∣ ⋅ ( β γ n 2 + t ( n ) ) ) O(|A|\cdot(\beta\gamma n^2+t(n))) O ( ∣ A ∣ ⋅ ( β γ n 2 + t ( n ))) -time procedure that is given the values of α , β , γ \alpha,\beta,\gamma α , β , γ .
With the assumption above made, we proceed to the description of the procedure. Throughout the proof we denote
q ′ : = 3 ( q + 1 ) and ζ : = 2 q ′ γ . q' := 3(q+1) \qquad\text{and}\qquad\zeta:= 2q'\gamma. q ′ := 3 ( q + 1 ) and ζ := 2 q ′ γ .
We first focus on presenting the procedure itself and verifying the combinatorial properties of its output. We relegate the discussion of the algorithmic aspects to the end of the proof.
The procedure works as follows. We start with S : = ∅ S:=\varnothing S := ∅ and iteratively add vertices to S S S one by one according to rules that we will explain in a moment. During this process, we maintain the partition R : = P ( G , A ∪ S ) \mathcal{R}:=\mathcal{P}(G,A\cup S) R := P ( G , A ∪ S ) , which, due to the monotonicity of P \mathcal{P} P , can only get finer with each vertex added to S S S . Moreover, for every part R ∈ R R\in\mathcal{R} R ∈ R we let x R x_R x R be the ≼ \preccurlyeq ≼ -minimum vertex belonging to R R R , and call x R x_R x R the representative of R R R . We define the set of representatives
X : = { x R : R ∈ R } . X:=\{x_R:R\in\mathcal{R}\}. X := { x R : R ∈ R } .
Note that when a vertex is added to S S S during the procedure, every part R R R of R \mathcal{R} R can possibly break into several new parts. The new part that contains x R x_R x R retains x R x_R x R as its representative, while every other new part is assigned a new representative. Therefore, X X X can only grow by addition of new vertices.
We now describe the rules according to which vertices are added to S S S . As long as any of the following rules can be applied, apply the first one which is applicable.
(R1) If there is a vertex w w w that crosses more than q ′ γ q'\gamma q ′ γ parts of R \mathcal{R} R , then add w w w to S S S .
(R2) If there is a vertex w w w such that ham R ( w , s ) > 5 q ′ β γ \operatorname{ham}_{\mathcal{R}}(w,s)>5q'\beta\gamma ham R ( w , s ) > 5 q ′ β γ for all s ∈ S s\in S s ∈ S , then add w w w to S S S .
(R3) If there is a vertex w w w such that for every s ∈ S s\in S s ∈ S , there are at least ζ \zeta ζ vertices of X X X lying strictly between w w w and s s s in ≼ \preccurlyeq ≼ , then add w w w to S S S .
Observe that in any application of any of the rules above, we must have w ∉ S w\notin S w ∈ / S . Indeed, to argue this for Rules (R2) and (R3) it suffices to consider s = w s=w s = w supposing w ∈ S w\in S w ∈ S , while for Rule (R1), we note that a vertex of S S S crosses no parts of R = P ( G , A ∪ S ) \mathcal{R}=\mathcal{P}(G,A\cup S) R = P ( G , A ∪ S ) due to P \mathcal{P} P being respectful. Thus, S S S grows by one vertex with every application of a rule, and clearly no rule is applicable when S = V ( G ) S=V(G) S = V ( G ) . Therefore, the procedure eventually reaches a state in which no rule is applicable, yielding the final set S S S , which we shall denote by S ⋆ S^\star S ⋆ . Our claim is that S ⋆ S^\star S ⋆ satisfies all the assertions from the lemma statement. Denote R ⋆ : = P ( G , A ∪ S ⋆ ) \mathcal{R}^\star:=\mathcal{P}(G,A\cup S^\star) R ⋆ := P ( G , A ∪ S ⋆ ) and X ⋆ : = { x R : R ∈ R ⋆ } X^\star:=\{x_R:R\in\mathcal{R}^\star\} X ⋆ := { x R : R ∈ R ⋆ } .
Assertion (A2) follows immediately from the inapplicability of Rule (R2). Assertion (A3) is verified by the following claim and the observation that ( 4 α + 3 ) ζ + 2 = ( 4 α + 3 ) ⋅ 6 ( q + 1 ) γ + 2 ≤ 44 ( q + 1 ) ⋅ α γ (4\alpha+3)\zeta+2=(4\alpha+3)\cdot6(q+1)\gamma+2\le44(q+1)\cdot\alpha\gamma ( 4 α + 3 ) ζ + 2 = ( 4 α + 3 ) ⋅ 6 ( q + 1 ) γ + 2 ≤ 44 ( q + 1 ) ⋅ α γ .
Claim 6.2. Suppose vertices u u u and v v v have the same 1-type over S ⋆ S^\star S ⋆ . Then
ham R ⋆ ( u , v ) ≤ ( 4 α + 3 ) ζ + 2. \operatorname{ham}_{\mathcal{R}^\star}(u,v)\le(4\alpha+3)\zeta+2. ham R ⋆ ( u , v ) ≤ ( 4 α + 3 ) ζ + 2.
Proof of the claim. We may assume that u , v ∉ S ⋆ u,v\notin S^\star u , v ∈ / S ⋆ , for otherwise the assumption that u u u and v v v have the same 1-type over S ⋆ S^\star S ⋆ implies that u = v u=v u = v and the claim is trivial.
Suppose for contradiction that ham R ⋆ ( u , v ) > ( 4 α + 3 ) ζ + 2 \operatorname{ham}_{\mathcal{R}^\star}(u,v)>(4\alpha+3)\zeta+2 ham R ⋆ ( u , v ) > ( 4 α + 3 ) ζ + 2 , which means that there are more than ( 4 α + 3 ) ζ + 2 (4\alpha+3)\zeta+2 ( 4 α + 3 ) ζ + 2 parts of R ⋆ \mathcal{R}^\star R ⋆ that intersect Δ [ u , v ] \Delta[u,v] Δ [ u , v ] . At most two parts of R ⋆ \mathcal{R}^\star R ⋆ contain u u u or v v v , and, by the inapplicability of Rule (R1), at most q ′ γ + q ′ γ = ζ q'\gamma+q'\gamma=\zeta q ′ γ + q ′ γ = ζ parts of R ⋆ \mathcal{R}^\star R ⋆ are crossed by u u u or by v v v . Therefore, there are more than ( 4 α + 2 ) ζ = ( 2 α + 1 ) ⋅ 2 ζ (4\alpha+2)\zeta=(2\alpha+1)\cdot2\zeta ( 4 α + 2 ) ζ = ( 2 α + 1 ) ⋅ 2 ζ parts R ∈ R ⋆ R\in\mathcal{R}^\star R ∈ R ⋆ such that R ∩ { u , v } = ∅ R\cap\{u,v\}=\varnothing R ∩ { u , v } = ∅ , both u u u and v v v are homogeneous to R R R , and R R R intersects Δ [ u , v ] \Delta[u,v] Δ [ u , v ] ; so in fact R ⊆ Δ ( u , v ) R\subseteq\Delta(u,v) R ⊆ Δ ( u , v ) . Let F ⊆ R ⋆ \mathcal{F}\subseteq\mathcal{R}^\star F ⊆ R ⋆ be the set of those parts.
Since the alternation of ≼ \preccurlyeq ≼ is at most α \alpha α , there are at most 2 α 2\alpha 2 α pairs of vertices w , w ′ w,w' w , w ′ that are consecutive in ≼ \preccurlyeq ≼ and satisfy u ∈ Δ [ w , w ′ ] u\in\Delta[w,w'] u ∈ Δ [ w , w ′ ] or v ∈ Δ [ w , w ′ ] v\in\Delta[w,w'] v ∈ Δ [ w , w ′ ] . Therefore, the vertex set of G G G can be partitioned into at most 2 α + 1 2\alpha+1 2 α + 1 intervals in ≼ \preccurlyeq ≼ such that for every interval I I I of the partition, either I I I consists of a single vertex u u u or v v v , or both u u u and v v v are homogeneous to I I I . Since ∣ F ∣ > ( 2 α + 1 ) ⋅ 2 ζ |\mathcal{F}|>(2\alpha+1)\cdot2\zeta ∣ F ∣ > ( 2 α + 1 ) ⋅ 2 ζ , by the pigeonhole principle there exists an interval I I I of the partition such that
∣ I ∩ { x R : R ∈ F } ∣ > 2 ζ . (4) \left|I\cap\{x_R:R\in\mathcal{F}\}\right|>2\zeta. \tag*{(4)} ∣ I ∩ { x R : R ∈ F } ∣ > 2 ζ . (4)
Note that ∣ I ∣ > 2 |I|>2 ∣ I ∣ > 2 due to ζ ≥ 1 \zeta\ge1 ζ ≥ 1 , so both u u u and v v v are homogeneous to I I I . However, since x R ∈ Δ [ u , v ] x_R\in\Delta[u,v] x R ∈ Δ [ u , v ] for each R ∈ F R\in\mathcal{F} R ∈ F , it must be that u u u is complete to I I I and v v v is anticomplete to I I I or vice versa; so in particular I ⊆ Δ ( u , v ) I\subseteq\Delta(u,v) I ⊆ Δ ( u , v ) . Since u , v ∉ S ⋆ u,v\notin S^\star u , v ∈ / S ⋆ and u , v u,v u , v have the same 1-type over S ⋆ S^\star S ⋆ , no vertex of Δ [ u , v ] \Delta[u,v] Δ [ u , v ] belongs to S ⋆ S^\star S ⋆ . We conclude that
I ∩ S ⋆ = ∅ . (5) I\cap S^\star=\varnothing. \tag*{(5)} I ∩ S ⋆ = ∅ . (5)
From (4) and (5) it follows that there exists a vertex w ∈ I w\in I w ∈ I such that for every s ∈ S ⋆ s\in S^\star s ∈ S ⋆ , there are at least ζ \zeta ζ vertices of { x R : R ∈ F } ⊆ X ⋆ \{x_R:R\in\mathcal{F}\}\subseteq X^\star { x R : R ∈ F } ⊆ X ⋆ lying strictly between w w w and s s s in ≼ \preccurlyeq ≼ . Indeed, one can take for instance w w w to be a median vertex of I ∩ { x R : R ∈ F } I\cap\{x_R:R\in\mathcal{F}\} I ∩ { x R : R ∈ F } in ≼ \preccurlyeq ≼ . This means that Rule (R3) is applicable to w w w , a contradiction.
We are left with verifying Assertion (A1), that is, bounding the size of S ⋆ S^\star S ⋆ . Note that ∣ S ⋆ ∣ |S^\star| ∣ S ⋆ ∣ is equal to the total number of times Rules (R1), (R2), and (R3) are applied during the procedure. We bound each of these quantities separately. We use the following observation: as P \mathcal{P} P has growth ratio at most γ \gamma γ on G G G , we have
∣ R ⋆ ∣ ≤ γ ⋅ ∣ A ∪ S ⋆ ∣ . (6) |\mathcal{R}^\star|\le\gamma\cdot|A\cup S^\star|. \tag*{(6)} ∣ R ⋆ ∣ ≤ γ ⋅ ∣ A ∪ S ⋆ ∣. (6)
Claim 6.3. Rule (R1) is applied at most ∣ A ∪ S ⋆ ∣ / q ′ |A \cup S^\star|/q' ∣ A ∪ S ⋆ ∣/ q ′ times.
Proof of the claim. Observe that since P \mathcal{P} P is respectful and monotone, every time Rule (R1) is applied on some vertex w w w , every part of R \mathcal{R} R that is crossed by w w w breaks into two or more new parts. Consequently, the number of parts of R \mathcal{R} R increases by at least q ′ γ q'\gamma q ′ γ . So if Rule (R1) is applied ℓ \ell ℓ times in total during the procedure, then we have
∣ R ⋆ ∣ ≥ q ′ γ ℓ . |\mathcal{R}^\star| \ge q'\gamma\ell. ∣ R ⋆ ∣ ≥ q ′ γ ℓ .
Combining this with (6) yields ℓ ≤ ∣ A ∪ S ⋆ ∣ / q ′ \ell\le|A \cup S^\star|/q' ℓ ≤ ∣ A ∪ S ⋆ ∣/ q ′ .
Claim 6.4. Rule (R2) is applied at most ∣ A ∪ S ⋆ ∣ / q ′ |A \cup S^\star|/q' ∣ A ∪ S ⋆ ∣/ q ′ times.
Proof of the claim. Let S 2 ⊆ S ⋆ S_2 \subseteq S^\star S 2 ⊆ S ⋆ be the set of vertices added to S S S by Rule (R2). We first prove that for every two distinct vertices u , v ∈ S 2 u,v \in S_2 u , v ∈ S 2 , we have
∣ Δ [ u , v ] ∩ X ⋆ ∣ > q ′ β γ . (7) |\Delta[u,v] \cap X^\star| > q'\beta\gamma. \tag*{(7)} ∣Δ [ u , v ] ∩ X ⋆ ∣ > q ′ β γ . (7)
Indeed, assuming without loss of generality that v v v was added to S S S after u u u , let us consider the time moment just before v v v was added. At this point we already have u ∈ S u \in S u ∈ S , so since Rule (R2) adds v v v to S S S , we must have
ham R ( u , v ) > 5 q ′ β γ , \operatorname{ham}_{\mathcal{R}}(u,v) > 5q'\beta\gamma, ham R ( u , v ) > 5 q ′ β γ ,
where R \mathcal{R} R denotes the partition P ( G , A ∪ S ) \mathcal{P}(G,A \cup S) P ( G , A ∪ S ) at the considered time moment. This means that there are more than 5 q ′ ⋅ β γ 5q'\cdot\beta\gamma 5 q ′ ⋅ β γ parts of R \mathcal{R} R that intersect Δ [ u , v ] \Delta[u,v] Δ [ u , v ] . Among these, at most two parts contain u u u or v v v , and at most q ′ γ + q ′ γ = 2 q ′ γ q'\gamma+q'\gamma=2q'\gamma q ′ γ + q ′ γ = 2 q ′ γ parts may be crossed by u u u or v v v , because otherwise the lower-indexed Rule (R1) would be triggered instead of (R2). This leaves us with a set F \mathcal{F} F consisting of more than
5 q ′ β γ − 2 − 2 q ′ γ ≥ q ′ β γ 5q'\beta\gamma-2-2q'\gamma\ge q'\beta\gamma 5 q ′ β γ − 2 − 2 q ′ γ ≥ q ′ β γ
parts of R \mathcal{R} R that do not contain u u u or v v v and intersect Δ ( u , v ) \Delta(u,v) Δ ( u , v ) while being homogeneous both to u u u and to v v v ; so they are, in fact, contained in Δ ( u , v ) \Delta(u,v) Δ ( u , v ) . In particular, { x R : R ∈ F } ⊆ Δ ( u , v ) ∩ X ⊆ Δ ( u , v ) ∩ X ⋆ \{x_{\mathcal{R}}:\mathcal{R}\in\mathcal{F}\}\subseteq\Delta(u,v)\cap X\subseteq\Delta(u,v)\cap X^\star { x R : R ∈ F } ⊆ Δ ( u , v ) ∩ X ⊆ Δ ( u , v ) ∩ X ⋆ . We conclude that
∣ Δ [ u , v ] ∩ X ⋆ ∣ ≥ ∣ F ∣ > q ′ β γ ; |\Delta[u,v] \cap X^\star| \ge|\mathcal{F}| > q'\beta\gamma; ∣Δ [ u , v ] ∩ X ⋆ ∣ ≥ ∣ F ∣ > q ′ β γ ;
this establishes (7) .
Noting that X ⋆ X^\star X ⋆ is non-empty, the assumption that the packing ratio of G G G is at most β \beta β implies that
∣ S 2 ∣ ≤ β ⋅ ∣ X ⋆ ∣ q ′ β γ = ∣ X ⋆ ∣ q ′ γ . |S_2| \le\beta\cdot\frac{|X^\star|}{q'\beta\gamma}=\frac{|X^\star|}{q'\gamma}. ∣ S 2 ∣ ≤ β ⋅ q ′ β γ ∣ X ⋆ ∣ = q ′ γ ∣ X ⋆ ∣ .
By combining this with (6) , we get
∣ S 2 ∣ ≤ ∣ X ⋆ ∣ q ′ γ = ∣ R ⋆ ∣ q ′ γ ≤ γ ⋅ ∣ A ∪ S ⋆ ∣ q ′ γ = ∣ A ∪ S ⋆ ∣ / q ′ . |S_2| \le\frac{|X^\star|}{q'\gamma}=\frac{|\mathcal{R}^\star|}{q'\gamma}\le\frac{\gamma\cdot|A\cup S^\star|}{q'\gamma}=|A\cup S^\star|/q'. ∣ S 2 ∣ ≤ q ′ γ ∣ X ⋆ ∣ = q ′ γ ∣ R ⋆ ∣ ≤ q ′ γ γ ⋅ ∣ A ∪ S ⋆ ∣ = ∣ A ∪ S ⋆ ∣/ q ′ .
Claim 6.5. Rule (R3) is applied at most ∣ A ∪ S ⋆ ∣ / q ′ |A \cup S^\star|/q' ∣ A ∪ S ⋆ ∣/ q ′ times.
Proof of the claim. Let S 3 ⊆ S ⋆ S_3 \subseteq S^\star S 3 ⊆ S ⋆ be the set of vertices added to S S S by Rule (R3). Observe that for any two distinct vertices u , v ∈ S 3 u,v \in S_3 u , v ∈ S 3 , there are at least ζ \zeta ζ vertices of X ⋆ X^\star X ⋆ lying strictly between u u u and v v v in ⪯ \preceq ⪯ . Indeed, assuming without loss of generality that v v v was added later than u u u , at the time of adding v v v there were at least ζ \zeta ζ vertices of X X X lying strictly between u u u and v v v , and X ⊆ X ⋆ X \subseteq X^\star X ⊆ X ⋆ . Therefore, if we consider the vertices of S 3 S_3 S 3 ordered by ⪯ \preceq ⪯ , then between any two consecutive such vertices there are at least ζ \zeta ζ vertices of X ⋆ X^\star X ⋆ . It follows that
∣ S 3 ∣ ≤ 1 + ∣ X ⋆ ∣ ζ . |S_3| \le1+\frac{|X^\star|}{\zeta}. ∣ S 3 ∣ ≤ 1 + ζ ∣ X ⋆ ∣ .
By combining this with (6) we conclude that
∣ S 3 ∣ ≤ 1 + ∣ X ⋆ ∣ ζ = 1 + ∣ R ⋆ ∣ ζ ≤ 1 + γ ζ ⋅ ∣ A ∪ S ⋆ ∣ = 1 + ∣ A ∪ S ⋆ ∣ 2 q ′ ≤ ∣ A ∪ S ⋆ ∣ q ′ , |S_3| \le1 + \frac{|X^\star|}{\zeta} = 1 + \frac{|\mathcal{R}^\star|}{\zeta} \le1 + \frac{\gamma}{\zeta} \cdot|A \cup S^\star| = 1 + \frac{|A \cup S^\star|}{2q'} \le\frac{|A \cup S^\star|}{q'}, ∣ S 3 ∣ ≤ 1 + ζ ∣ X ⋆ ∣ = 1 + ζ ∣ R ⋆ ∣ ≤ 1 + ζ γ ⋅ ∣ A ∪ S ⋆ ∣ = 1 + 2 q ′ ∣ A ∪ S ⋆ ∣ ≤ q ′ ∣ A ∪ S ⋆ ∣ ,
where the last inequality follows from the assumption ∣ A ∣ ≥ 6 ( q + 1 ) = 2 q ′ |A| \ge6(q+1) = 2q' ∣ A ∣ ≥ 6 ( q + 1 ) = 2 q ′ .
By Claims 6.3 to 6.5, the total number of applications of any of the rules is at most 3 ∣ A ∪ S ⋆ ∣ / q ′ = ∣ A ∪ S ⋆ ∣ / ( q + 1 ) 3|A \cup S^\star|/q' = |A \cup S^\star|/(q+1) 3∣ A ∪ S ⋆ ∣/ q ′ = ∣ A ∪ S ⋆ ∣/ ( q + 1 ) . Hence
∣ S ⋆ ∣ ≤ ∣ A ∪ S ⋆ ∣ q + 1 ≤ ∣ A ∣ q + 1 + ∣ S ⋆ ∣ q + 1 , implying ∣ S ⋆ ∣ ≤ ∣ A ∣ / q . |S^\star| \le\frac{|A \cup S^\star|}{q+1} \le\frac{|A|}{q+1} + \frac{|S^\star|}{q+1}, \qquad\text{implying} \qquad|S^\star| \le|A|/q. ∣ S ⋆ ∣ ≤ q + 1 ∣ A ∪ S ⋆ ∣ ≤ q + 1 ∣ A ∣ + q + 1 ∣ S ⋆ ∣ , implying ∣ S ⋆ ∣ ≤ ∣ A ∣/ q .
This verifies Assertion (A1) and finishes the verification of the requested properties of S S S .
Runtime. We are left with showing that the procedure can be implemented so that it runs in O ( ∣ A ∣ ⋅ ( β γ n 2 + t ( n ) ) ) O(|A| \cdot(\beta\gamma n^2 + t(n))) O ( ∣ A ∣ ⋅ ( β γ n 2 + t ( n ))) time. As argued, the number of times9 the procedure applies any of Rules (R1), (R2), (R3) is ∣ S ⋆ ∣ ≤ ∣ A ∣ / q |S^\star| \le|A|/q ∣ S ⋆ ∣ ≤ ∣ A ∣/ q . Hence, it suffices to argue that finding an applicable rule and applying it can be done in O ( q β γ n 2 + t ( n ) ) O(q\beta\gamma n^2 + t(n)) O ( q β γ n 2 + t ( n )) time, because then the total running time will be bounded by
O ( ∣ A ∣ / q ⋅ ( q β γ n 2 + t ( n ) ) ) ≤ O ( ∣ A ∣ ⋅ ( β γ n 2 + t ( n ) ) ) . O(|A|/q \cdot(q\beta\gamma n^2 + t(n))) \le O(|A| \cdot(\beta\gamma n^2 + t(n))). O ( ∣ A ∣/ q ⋅ ( q β γ n 2 + t ( n ))) ≤ O ( ∣ A ∣ ⋅ ( β γ n 2 + t ( n ))) .
as promised. Applying a rule always amounts to adding a vertex w w w to S S S , recomputing the partition R = P ( G , A ∪ S ) \mathcal{R} = \mathcal{P}(G, A \cup S) R = P ( G , A ∪ S ) , and augmenting the set of representatives X X X , which takes time t ( n ) + O ( n 2 ) t(n) + O(n^2) t ( n ) + O ( n 2 ) . So we only need to show how to find an applicable rule in time O ( q β γ n 2 ) O(q\beta\gamma n^2) O ( q β γ n 2 ) . For this, we consider the rules one by one.
As for Rule (R1), for any given vertex w w w , we may easily count the number of parts of R \mathcal{R} R crossed by w w w in time O ( n ) O(n) O ( n ) by counting the number of neighbors of w w w in every part of R \mathcal{R} R . Hence, finding a vertex w w w to which Rule (R1) is applicable can be done in time O ( n 2 ) O(n^2) O ( n 2 ) .
As for Rule (R3), by scanning the ordering ⪯ \preceq ⪯ twice, in opposite directions, in time O ( n ) O(n) O ( n ) we may compute the following two counts for every vertex w w w : the number of elements of X X X lying between w w w and the ⪯ \preceq ⪯ -smallest s ∈ S s \in S s ∈ S satisfying w ⪯ s w \preceq s w ⪯ s (or + ∞ +\infty + ∞ if such s s s does not exist), and the number of elements of X X X lying between w w w and the ⪯ \preceq ⪯ -largest s ∈ S s \in S s ∈ S satisfying s ⪯ w s \preceq w s ⪯ w (or + ∞ +\infty + ∞ if such s s s does not exist). Finding w w w to which Rule (R3) can be applied boils down to finding w w w for which both those counts are at least ζ \zeta ζ . So verifying the applicability of this rule can be done in O ( n ) O(n) O ( n ) time.
Finally, a straightforward implementation of Rule (R2) — for every pair of vertices ( u , s ) ∈ V ( G ) × S (u,s) \in V(G) \times S ( u , s ) ∈ V ( G ) × S compute ham R ( u , s ) \operatorname{ham}_{\mathcal{R}}(u,s) ham R ( u , s ) in time O ( n ) O(n) O ( n ) — runs in total time O ( n 3 ) O(n^3) O ( n 3 ) . We now show how this complexity can be reduced to O ( q β γ n 2 ) O(q\beta\gamma n^2) O ( q β γ n 2 ) .
First, we will need the following data structure result.
Claim 6.6 ([5 Theorem 16] ). Given k ∈ N k \in\mathbb{N} k ∈ N and a list A A A consisting of n n n binary strings of length n n n each, one can in O ( n 2 ) O(n^2) O ( n 2 ) time construct a data structure that allows answering the following query in O ( k ) O(k) O ( k ) time: given two strings a , a ′ ∈ A a, a' \in A a , a ′ ∈ A , decide whether ham ( a , a ′ ) ≤ k \operatorname{ham}(a,a') \le k ham ( a , a ′ ) ≤ k . Here, ham ( a , a ′ ) \operatorname{ham}(a,a') ham ( a , a ′ ) is the Hamming distance between strings a a a and a ′ a' a ′ : the number of positions on which a a a and a ′ a' a ′ differ.
We remark that in [5 ] , this result is formulated in graph-theoretic terms, but the formulation there easily implies the above.
Second, we also need the following data structure observation.
Claim 6.7. We may in time O ( n 2 ) O(n^2) O ( n 2 ) construct a data structure that allows answering the following query in O ( 1 ) O(1) O ( 1 ) time: for given u , v ∈ V ( G ) u,v \in V(G) u , v ∈ V ( G ) and part R ∈ R R \in\mathcal{R} R ∈ R , decide whether N ( u ) ∩ R = N ( v ) ∩ R N(u) \cap R = N(v) \cap R N ( u ) ∩ R = N ( v ) ∩ R .
Proof of the claim. For every vertex u ∈ V ( G ) u \in V(G) u ∈ V ( G ) and part R ∈ R R \in\mathcal{R} R ∈ R , compute a binary vector x u , R x_{u,R} x u , R of length ∣ R ∣ |R| ∣ R ∣ representing the neighborhood of u u u in R R R . For every part R ∈ R R \in\mathcal{R} R ∈ R , sort all the vectors { x u , R : u ∈ V ( G ) } \{x_{u,R}: u \in V(G)\} { x u , R : u ∈ V ( G )} using radix sort in time O ( n ∣ R ∣ ) O(n|R|) O ( n ∣ R ∣ ) , partition the obtained list into groups of consecutive duplicates (also in time O ( n ∣ R ∣ ) O(n|R|) O ( n ∣ R ∣ ) ), and for every u u u record the group on the list of R R R to which x u , R x_{u,R} x u , R belongs. Now, deciding whether N ( u ) ∩ R = N ( v ) ∩ R N(u) \cap R = N(v) \cap R N ( u ) ∩ R = N ( v ) ∩ R boils down to verifying whether x u , R x_{u,R} x u , R and x v , R x_{v,R} x v , R belong to the same group on the list of R R R .
Armed with Claims 6.6 and 6.7, we proceed as follows. Similarly to the proof of Lemma 5.6 , in total time O ( n 2 ) O(n^2) O ( n 2 ) we may compute, for every u ∈ V ( G ) u \in V(G) u ∈ V ( G ) and part R ∈ R R \in\mathcal{R} R ∈ R , the number of neighbors of u u u in R R R . This allows us to deduce whether u u u is anticomplete, complete, or non-homogeneous to R R R . Note that for every vertex u u u there are at most 1 + q ′ γ 1+q'\gamma 1 + q ′ γ parts R ∈ R R \in\mathcal{R} R ∈ R to which u u u is non-homogeneous: the one part to which u u u belongs, and the at most q ′ γ q'\gamma q ′ γ parts that u u u crosses. (Otherwise, the lower-indexed Rule (R1) would be applicable.) For each vertex u u u we compute the set Z u ⊆ R Z_u \subseteq\mathcal{R} Z u ⊆ R consisting of those at most 1 + q ′ γ 1+q'\gamma 1 + q ′ γ parts. Also, we compute a Boolean vector a u a_u a u of length ∣ R ∣ |\mathcal{R}| ∣ R ∣ where the coordinate corresponding to a part R ∈ R R \in\mathcal{R} R ∈ R is equal to 1 if and only if u ∉ R u \notin R u ∈ / R and u u u is complete to R R R .
Consider now any two vertices u , v ∈ V ( G ) u,v \in V(G) u , v ∈ V ( G ) ; we design a procedure to efficiently decide whether ham R ( u , v ) ≤ μ : = 5 q ′ β γ \operatorname{ham}_{\mathcal{R}}(u,v) \leq\mu:= 5q'\beta\gamma ham R ( u , v ) ≤ μ := 5 q ′ β γ . This can be done as follows:
If u = v u=v u = v , then ham R ( u , v ) = 0 \operatorname{ham}_{\mathcal{R}}(u,v)=0 ham R ( u , v ) = 0 , so assume u ≠ v u \ne v u = v below.
Inspect every part R ∈ Z u ∪ Z v R \in Z_u \cup Z_v R ∈ Z u ∪ Z v and determine whether R R R intersects Δ [ u , v ] \Delta[u,v] Δ [ u , v ] by checking whether u ∈ R u \in R u ∈ R , or v ∈ R v \in R v ∈ R , or N ( u ) ∩ R ≠ N ( v ) ∩ R N(u) \cap R \ne N(v) \cap R N ( u ) ∩ R = N ( v ) ∩ R . The last check can be done in constant time provided we set up the data structure of Claim 6.7 beforehand. Since ∣ Z u ∪ Z v ∣ ≤ O ( q ′ γ ) |Z_u \cup Z_v| \leq O(q'\gamma) ∣ Z u ∪ Z v ∣ ≤ O ( q ′ γ ) , this can be done in time O ( q ′ γ ) O(q'\gamma) O ( q ′ γ ) . We let c u , v c_{u,v} c u , v be the number of parts R ∈ Z u ∪ Z v R \in Z_u \cup Z_v R ∈ Z u ∪ Z v that intersect Δ [ u , v ] \Delta[u,v] Δ [ u , v ] .
Similarly to the above, by inspecting the parts of Z u ∪ Z v Z_u \cup Z_v Z u ∪ Z v one by one we can, in time O ( q ′ γ ) O(q'\gamma) O ( q ′ γ ) , compute the number of parts R ∈ Z u ∪ Z v R \in Z_u \cup Z_v R ∈ Z u ∪ Z v such that exactly one of u u u and v v v is complete to R R R . Call this number d u , v d_{u,v} d u , v .
We now observe that
ham R ( u , v ) = ∣ { R ∈ R : Δ [ u , v ] ∩ R ≠ ∅ } ∣ = ham ( a u , a v ) − d u , v + c u , v (8) \operatorname{ham}_{\mathcal{R}}(u,v)=|\{R \in\mathcal{R}: \Delta[u,v] \cap R \ne\varnothing\}|=\operatorname{ham}(a_u,a_v)-d_{u,v}+c_{u,v} \tag*{(8)} ham R ( u , v ) = ∣ { R ∈ R : Δ [ u , v ] ∩ R = ∅ } ∣ = ham ( a u , a v ) − d u , v + c u , v (8)
where again, ham ( a u , a v ) \operatorname{ham}(a_u,a_v) ham ( a u , a v ) is the Hamming distance between strings a u a_u a u and a v a_v a v . Indeed, the quantity ham ( a u , a v ) \operatorname{ham}(a_u,a_v) ham ( a u , a v ) counts the number of parts R ∈ R R \in\mathcal{R} R ∈ R such that exactly one of u u u and v v v is complete to R R R . For parts R ∉ Z u ∪ Z v R \notin Z_u \cup Z_v R ∈ / Z u ∪ Z v , both u u u and v v v are homogeneous to R R R , so exactly one of u , v u,v u , v being complete to R R R is equivalent to R R R having a non-empty intersection with Δ [ u , v ] \Delta[u,v] Δ [ u , v ] . For parts R ∈ Z u ∪ Z v R \in Z_u \cup Z_v R ∈ Z u ∪ Z v , subtracting d u , v d_{u,v} d u , v and adding c u , v c_{u,v} c u , v rectifies the contribution of those parts so that it corresponds to the number of parts in Z u ∪ Z v Z_u \cup Z_v Z u ∪ Z v that intersect Δ [ u , v ] \Delta[u,v] Δ [ u , v ] .
By (8) , determining whether ham R ( u , v ) ≤ μ \operatorname{ham}_{\mathcal{R}}(u,v) \leq\mu ham R ( u , v ) ≤ μ reduces to determining whether ham ( a u , a v ) ≤ k \operatorname{ham}(a_u,a_v) \leq k ham ( a u , a v ) ≤ k , where k : = μ + d u , v − c u , v k := \mu+d_{u,v}-c_{u,v} k := μ + d u , v − c u , v . Noting that k ≤ μ + 2 ( 1 + q ′ γ ) ≤ 2 μ k \leq\mu+2(1+q'\gamma) \leq2\mu k ≤ μ + 2 ( 1 + q ′ γ ) ≤ 2 μ , this query can be answered in time O ( μ ) O(\mu) O ( μ ) provided we set up the data structures of Claim 6.6 for A : = { a u : u ∈ V ( G ) } \mathcal{A}:=\{a_u:u \in V(G)\} A := { a u : u ∈ V ( G )} and all k ∈ { 1 , … , 2 μ } k \in\{1,\ldots,2\mu\} k ∈ { 1 , … , 2 μ } beforehand. (Formally, the strings in A \mathcal{A} A are of length ∣ R ∣ ≤ n |\mathcal{R}| \leq n ∣ R ∣ ≤ n , but we can pad them to length n n n with zeroes.)
The above procedure determines whether ham R ( u , v ) ≤ μ \operatorname{ham}_{\mathcal{R}}(u,v) \leq\mu ham R ( u , v ) ≤ μ in time O ( μ ) O(\mu) O ( μ ) , so applying it for every u ∈ V ( G ) u \in V(G) u ∈ V ( G ) and v ∈ S v \in S v ∈ S allows verifying the applicability of Rule (R2) in time O ( μ n 2 ) = O ( q β γ n 2 ) O(\mu n^2)=O(q\beta\gamma n^2) O ( μ n 2 ) = O ( q β γ n 2 ) . This is conditioned on the data structures of Claims 6.6 and 6.7 being initialized beforehand (the former for every k ∈ { 1 , … , 2 μ } k \in\{1,\ldots,2\mu\} k ∈ { 1 , … , 2 μ } ), which can be again done in time O ( μ n 2 ) = O ( q β γ n 2 ) O(\mu n^2)=O(q\beta\gamma n^2) O ( μ n 2 ) = O ( q β γ n 2 ) .
Finding the flip
In this section we make the second step towards the proof of the Damping Theorem (Theorem 4.1 ). Lemma 6.1 already provides a suitable set S S S ; now the goal is to find a suitable S S S -flip. However, instead of talking directly about S S S -flips, we find it convenient to express the goal of the current step using the following terminology.
Let G G G be a graph and Q , R \mathcal{Q},\mathcal{R} Q , R be partitions of the vertex set of G G G such that R \mathcal{R} R is a refinement of Q \mathcal{Q} Q . (Later, it will typically be the case that Q = T 1 ( G , S ) \mathcal{Q}=\mathcal{T}_1(G,S) Q = T 1 ( G , S ) and R = P ( G , A ∪ S ) \mathcal{R}=\mathcal{P}(G,A\cup S) R = P ( G , A ∪ S ) for some A , S ⊆ V ( G ) A,S\subseteq V(G) A , S ⊆ V ( G ) and a monotone, respectful partition selector P \mathcal{P} P .) For a binary relation ρ ⊆ Q × Q \rho\subseteq\mathcal{Q}\times\mathcal{Q} ρ ⊆ Q × Q and a part Q ∈ Q Q\in\mathcal{Q} Q ∈ Q , we denote
N ρ ( Q ) : = ⋃ { Q ′ ∈ Q ∣ ( Q , Q ′ ) ∈ ρ } . N_{\rho}(Q):=\bigcup\{Q'\in\mathcal{Q}\mid(Q,Q')\in\rho\}. N ρ ( Q ) := ⋃ { Q ′ ∈ Q ∣ ( Q , Q ′ ) ∈ ρ } .
Note that in this definition we do not require ρ \rho ρ to be symmetric. The intuition is that N ρ ( Q ) N_{\rho}(Q) N ρ ( Q ) is the out-neighborhood of Q Q Q with respect to ρ \rho ρ . We define the mismatch of ρ \rho ρ with respect to R \mathcal{R} R as the smallest integer m m m satisfying the following:
For every part Q Q Q of Q \mathcal{Q} Q and vertex v ∈ Q v\in Q v ∈ Q , the set N ( v ) △ N ρ ( Q ) N(v)\mathbin{\triangle}N_{\rho}(Q) N ( v ) △ N ρ ( Q ) intersects at most m m m parts of R \mathcal{R} R .
We first observe that Lemma 6.1 yields the following statement expressed in the terminology of mismatch.
Lemma 7.1. Let P \mathcal{P} P be a monotone and respectful partition selector, G G G be a graph, and α , β , γ ∈ N \alpha,\beta,\gamma\in\mathbb{N} α , β , γ ∈ N be such that
P \mathcal{P} P has growth ratio at most γ \gamma γ on G G G ;
G G G has packing ratio at most β \beta β ; and
G G G admits a vertex ordering ⪯ \preceq ⪯ of alternation at most α \alpha α .
Then for every q ∈ N q\in\mathbb{N} q ∈ N and a non-empty set A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) there exists a set S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) with ∣ S ∣ ≤ ∣ A ∣ / q |S|\le|A|/q ∣ S ∣ ≤ ∣ A ∣/ q and a relation ρ ⊆ T 1 ( G , S ) × T 1 ( G , S ) \rho\subseteq\mathcal{T}_1(G,S)\times\mathcal{T}_1(G,S) ρ ⊆ T 1 ( G , S ) × T 1 ( G , S ) such that the mismatch of ρ \rho ρ with respect to P ( G , A ∪ S ) \mathcal{P}(G,A\cup S) P ( G , A ∪ S ) is at most 88 q ⋅ ( α + β ) γ 88q\cdot(\alpha+\beta)\gamma 88 q ⋅ ( α + β ) γ .
Moreover, assuming that P \mathcal{P} P is computable in time t ( n ) t(n) t ( n ) , there is an O ( ( β + γ ) ∣ A ∣ ⋅ ( β γ n 2 + t ( n ) ) ) O((\beta+\gamma)|A|\cdot(\beta\gamma n^2+t(n))) O (( β + γ ) ∣ A ∣ ⋅ ( β γ n 2 + t ( n ))) -time algorithm computing such a set S S S and relation ρ \rho ρ , given q q q , G G G , A A A , and ⪯ \preceq ⪯ .
Proof. We start by considering the corner case when ∣ A ∣ < 6 ( q + 1 ) |A|<6(q+1) ∣ A ∣ < 6 ( q + 1 ) . Then we set S : = ∅ S:=\varnothing S := ∅ and ρ : = ∅ \rho:=\varnothing ρ := ∅ . Note that since the growth ratio of P \mathcal{P} P on G G G is at most γ \gamma γ , we have ∣ P ( G , A ∪ S ) ∣ = ∣ P ( G , A ) ∣ ≤ γ ∣ A ∣ < 6 ( q + 1 ) γ |\mathcal{P}(G,A\cup S)|=|\mathcal{P}(G,A)|\le\gamma|A|<6(q+1)\gamma ∣ P ( G , A ∪ S ) ∣ = ∣ P ( G , A ) ∣ ≤ γ ∣ A ∣ < 6 ( q + 1 ) γ . As 6 ( q + 1 ) γ < 44 ( q + 1 ) ⋅ ( α + β ) γ 6(q+1)\gamma<44(q+1)\cdot(\alpha+\beta)\gamma 6 ( q + 1 ) γ < 44 ( q + 1 ) ⋅ ( α + β ) γ , the postulated bound on the mismatch of ρ \rho ρ with respect to P ( G , A ∪ S ) \mathcal{P}(G,A\cup S) P ( G , A ∪ S ) holds trivially. Hence, from now on we may assume that ∣ A ∣ ≥ 6 ( q + 1 ) |A|\ge6(q+1) ∣ A ∣ ≥ 6 ( q + 1 ) .
Let S S S be the set obtained by applying Lemma 6.1 to A A A . For every 1-type Q ∈ T 1 ( G , S ) Q\in\mathcal{T}_1(G,S) Q ∈ T 1 ( G , S ) , we fix an arbitrary vertex x Q ∈ Q x_Q\in Q x Q ∈ Q . By Assertion (A2) of Lemma 6.1, we may find a vertex s Q ∈ S s_Q\in S s Q ∈ S such that
ham R ( x Q , s Q ) ≤ 15 ( q + 1 ) ⋅ β γ , (9) \operatorname{ham}_{\mathcal{R}}(x_Q,s_Q)\le15(q+1)\cdot\beta\gamma, \tag*{(9)} ham R ( x Q , s Q ) ≤ 15 ( q + 1 ) ⋅ β γ , (9)
where R : = P ( G , A ∪ S ) \mathcal{R}:=\mathcal{P}(G,A\cup S) R := P ( G , A ∪ S ) . Note that computing R \mathcal{R} R takes time t ( n ) t(n) t ( n ) , while computing the vertices s Q s_Q s Q can be done in total time O ( q β γ n 2 ) ≤ O ( ∣ A ∣ ⋅ β γ n 2 ) O(q\beta\gamma n^2)\le O(|A|\cdot\beta\gamma n^2) O ( q β γ n 2 ) ≤ O ( ∣ A ∣ ⋅ β γ n 2 ) using the method for verifying the applicability of Rule (R2) presented at the end of the proof of Lemma 6.1.
We define a relation ρ ⊆ T 1 ( G , S ) × T 1 ( G , S ) \rho\subseteq\mathcal{T}_1(G,S)\times\mathcal{T}_1(G,S) ρ ⊆ T 1 ( G , S ) × T 1 ( G , S ) as follows: For any Q , Q ′ ∈ T 1 ( G , S ) Q,Q'\in\mathcal{T}_1(G,S) Q , Q ′ ∈ T 1 ( G , S ) , set
( Q , Q ′ ) ∈ ρ if and only if s Q is complete to Q ′ . (Q,Q')\in\rho\qquad\text{if and only if}\qquad s_Q\text{ is complete to }Q'. ( Q , Q ′ ) ∈ ρ if and only if s Q is complete to Q ′ .
Since verifying whether s Q s_Q s Q is complete to Q ′ Q' Q ′ can be done in time O ( ∣ Q ′ ∣ ) O(|Q'|) O ( ∣ Q ′ ∣ ) , the relation ρ \rho ρ can be computed in total time O ( ∣ T 1 ( G , S ) ∣ ⋅ ∑ Q ′ ∈ T 1 ( G , S ) ∣ Q ′ ∣ ) ≤ O ( n 2 ) O(|\mathcal{T}_1(G,S)|\cdot\sum_{Q'\in\mathcal{T}_1(G,S)}|Q'|)\le O(n^2) O ( ∣ T 1 ( G , S ) ∣ ⋅ ∑ Q ′ ∈ T 1 ( G , S ) ∣ Q ′ ∣ ) ≤ O ( n 2 ) . Also note that since s Q ∈ S s_Q\in S s Q ∈ S and Q ′ Q' Q ′ is a 1-type over S S S , we have that Q ′ = { s Q } Q'=\{s_Q\} Q ′ = { s Q } or s Q s_Q s Q is homogeneous to Q ′ Q' Q ′ . Therefore, N ( s Q ) N(s_Q) N ( s Q ) consists of the union of those 1-types Q ′ ∈ T 1 ( G , S ) Q' \in\mathcal{T}_1(G,S) Q ′ ∈ T 1 ( G , S ) to which s Q s_Q s Q is complete. By combining this observation with the definition of ρ \rho ρ we conclude that
N ρ ( Q ) = N ( s Q ) . (10) N_\rho(Q)=N(s_Q). \tag*{(10)} N ρ ( Q ) = N ( s Q ) . (10)
We claim that the relation ρ \rho ρ defined in this way satisfies the postulated bound on the mismatch with respect to R \mathcal{R} R . For this, consider any vertex v v v and let Q ∈ T 1 ( G , S ) Q \in\mathcal{T}_1(G,S) Q ∈ T 1 ( G , S ) be the 1-type over S S S to which v v v belongs. By assertion (A3) of Lemma 6.1 , we have
ham R ( v , x Q ) ≤ 44 ( q + 1 ) ⋅ α γ . \operatorname{ham}_{\mathcal{R}}(v,x_Q) \le44(q+1)\cdot\alpha\gamma. ham R ( v , x Q ) ≤ 44 ( q + 1 ) ⋅ α γ .
By (9) and the triangle inequality, we infer that
ham R ( v , s Q ) ≤ ham R ( v , x Q ) + ham R ( x Q , s Q ) ≤ 44 ( q + 1 ) ⋅ α γ + 15 ( q + 1 ) ⋅ β γ ≤ 44 ( q + 1 ) ⋅ ( α + β ) γ . \operatorname{ham}_{\mathcal{R}}(v,s_Q) \le\operatorname{ham}_{\mathcal{R}}(v,x_Q)+\operatorname{ham}_{\mathcal{R}}(x_Q,s_Q) \le44(q+1)\cdot\alpha\gamma+15(q+1)\cdot\beta\gamma\le44(q+1)\cdot(\alpha+\beta)\gamma. ham R ( v , s Q ) ≤ ham R ( v , x Q ) + ham R ( x Q , s Q ) ≤ 44 ( q + 1 ) ⋅ α γ + 15 ( q + 1 ) ⋅ β γ ≤ 44 ( q + 1 ) ⋅ ( α + β ) γ .
This means that the set Δ [ v , s Q ] ⊇ N ( v ) △ N ( s Q ) \Delta[v,s_Q] \supseteq N(v)\mathbin{\triangle}N(s_Q) Δ [ v , s Q ] ⊇ N ( v ) △ N ( s Q ) intersects at most 44 ( q + 1 ) ⋅ ( α + β ) γ ≤ 88 q ⋅ ( α + β ) γ 44(q+1)\cdot(\alpha+\beta)\gamma\le88q\cdot(\alpha+\beta)\gamma 44 ( q + 1 ) ⋅ ( α + β ) γ ≤ 88 q ⋅ ( α + β ) γ parts of R \mathcal{R} R . As N ( s Q ) = N ρ ( Q ) N(s_Q)=N_\rho(Q) N ( s Q ) = N ρ ( Q ) by (10) , this proves the desired bound on the mismatch of ρ \rho ρ .
Recall that to define an S S S -flip of the considered graph G G G , we have to provide a symmetric binary relation σ ⊆ T 1 ( G , S ) × T 1 ( G , S ) \sigma\subseteq\mathcal{T}_1(G,S)\times\mathcal{T}_1(G,S) σ ⊆ T 1 ( G , S ) × T 1 ( G , S ) . The relation ρ \rho ρ provided by Lemma 7.1 is not necessarily symmetric, and hence it does not immediately define an S S S -flip. Fortunately, it turns out that in the context of bounding the mismatch, any relation can be adjusted to a symmetric one at the cost of a minor loss in the mismatch. We prove this in the following lemma.
Lemma 7.2 (Symmetrization Lemma). Let G G G be a graph and Q , R \mathcal{Q},\mathcal{R} Q , R be partitions of the vertex set of G G G such that R \mathcal{R} R is a refinement of Q \mathcal{Q} Q . Let ρ ⊆ Q × Q \rho\subseteq\mathcal{Q}\times\mathcal{Q} ρ ⊆ Q × Q be a relation such that the mismatch of ρ \rho ρ with respect to R \mathcal{R} R is at most m m m , for some m ∈ N m\in\mathbb{N} m ∈ N . Then there is also a symmetric relation σ ⊆ Q × Q \sigma\subseteq\mathcal{Q}\times\mathcal{Q} σ ⊆ Q × Q such that the mismatch of σ \sigma σ with respect to R \mathcal{R} R is at most 3 m 3m 3 m .
Moreover, given G G G , Q \mathcal{Q} Q , R \mathcal{R} R , and ρ \rho ρ , such a relation σ \sigma σ can be computed in time O ( n 2 ) O(n^2) O ( n 2 ) .
Proof. Call a pair of parts Q , Q ′ ∈ Q Q,Q' \in\mathcal{Q} Q , Q ′ ∈ Q compatible if
( Q , Q ′ ) ∈ ρ if and only if ( Q ′ , Q ) ∈ ρ , (Q,Q')\in\rho\quad\text{if and only if}\quad(Q',Q)\in\rho, ( Q , Q ′ ) ∈ ρ if and only if ( Q ′ , Q ) ∈ ρ ,
and incompatible otherwise. Note that if Q , Q ′ Q,Q' Q , Q ′ are incompatible, then Q ≠ Q ′ Q\ne Q' Q = Q ′ .
For every part R ∈ R R\in\mathcal{R} R ∈ R we choose an arbitrary vertex x R ∈ R x_R\in R x R ∈ R and call it the representative of R R R . For a part Q ∈ Q Q\in\mathcal{Q} Q ∈ Q , by R [ Q ] \mathcal{R}[Q] R [ Q ] we denote the set of all parts R ∈ R R\in\mathcal{R} R ∈ R such that R ⊆ Q R\subseteq Q R ⊆ Q ; thus { R [ Q ] : Q ∈ Q } \{\mathcal{R}[Q]:Q\in\mathcal{Q}\} { R [ Q ] : Q ∈ Q } is a partition of R \mathcal{R} R . For parts Q , Q ′ ∈ Q Q,Q'\in\mathcal{Q} Q , Q ′ ∈ Q , R ∈ R [ Q ] R\in\mathcal{R}[Q] R ∈ R [ Q ] , and R ′ ∈ R [ Q ′ ] R'\in\mathcal{R}[Q'] R ′ ∈ R [ Q ′ ] , say that ( R , R ′ ) (R,R') ( R , R ′ ) agrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) if
x R and x R ′ are adjacent in G if and only if ( Q , Q ′ ) ∈ ρ , x_R\text{ and }x_{R'}\text{ are adjacent in }G \quad\text{if and only if}\quad(Q,Q')\in\rho, x R and x R ′ are adjacent in G if and only if ( Q , Q ′ ) ∈ ρ ,
and ( R , R ′ ) (R,R') ( R , R ′ ) disagrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) otherwise.
We note the following two observations about this definition.
Claim 7.3. Suppose Q , Q ′ ∈ Q Q,Q'\in\mathcal{Q} Q , Q ′ ∈ Q , R ∈ R [ Q ] R\in\mathcal{R}[Q] R ∈ R [ Q ] , and R ′ ∈ R [ Q ′ ] R'\in\mathcal{R}[Q'] R ′ ∈ R [ Q ′ ] are such that R ≠ R ′ R\ne R' R = R ′ and ( R , R ′ ) (R,R') ( R , R ′ ) disagrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) . Then
R ′ ∩ ( N ( x R ) △ N ρ ( Q ) ) ≠ ∅ . R' \cap\left(N(x_R)\mathbin{\triangle}N_\rho(Q)\right)\ne\varnothing. R ′ ∩ ( N ( x R ) △ N ρ ( Q ) ) = ∅ .
Proof of the claim. Since ( R , R ′ ) (R,R') ( R , R ′ ) disagrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) , exactly one of the assertions “x R x_R x R and x R ′ x_{R'} x R ′ are adjacent in G G G ” and “( Q , Q ′ ) ∈ ρ (Q,Q')\in\rho ( Q , Q ′ ) ∈ ρ ” holds true. The first assertion is equivalent to x R ′ ∈ N ( x R ) x_{R'}\in N(x_R) x R ′ ∈ N ( x R ) and the second assertion is equivalent to Q ′ ⊆ N ρ ( Q ) Q'\subseteq N_\rho(Q) Q ′ ⊆ N ρ ( Q ) . As x R ′ ∈ R ′ ⊆ Q ′ x_{R'}\in R'\subseteq Q' x R ′ ∈ R ′ ⊆ Q ′ , we thus have x R ′ ∈ R ′ ∩ ( N ( x R ) △ N ρ ( Q ) ) x_{R'}\in R'\cap\left(N(x_R)\mathbin{\triangle}N_\rho(Q)\right) x R ′ ∈ R ′ ∩ ( N ( x R ) △ N ρ ( Q ) ) .
Claim 7.4. Suppose Q , Q ′ ∈ Q Q,Q'\in\mathcal{Q} Q , Q ′ ∈ Q are incompatible. Then for every pair of parts R ∈ R [ Q ] R\in\mathcal{R}[Q] R ∈ R [ Q ] and R ′ ∈ R [ Q ′ ] R'\in\mathcal{R}[Q'] R ′ ∈ R [ Q ′ ] , exactly one of the following assertions holds:
( R , R ′ ) (R,R') ( R , R ′ ) agrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) ;
( R ′ , R ) (R',R) ( R ′ , R ) agrees with ( Q ′ , Q ) (Q',Q) ( Q ′ , Q ) .
Proof of the claim. As Q , Q ′ Q,Q' Q , Q ′ are incompatible, exactly one of the assertions ( Q , Q ′ ) ∈ ρ (Q,Q') \in\rho ( Q , Q ′ ) ∈ ρ and ( Q ′ , Q ) ∈ ρ (Q',Q) \in\rho ( Q ′ , Q ) ∈ ρ holds. So exactly one of them has the same truth value as the assertion “x R x_R x R and x R ′ x_{R'} x R ′ are adjacent in G G G ”.
We now construct the desired symmetric relation σ ⊆ Q × Q \sigma\subseteq\mathcal{Q} \times\mathcal{Q} σ ⊆ Q × Q . Consider any pair of parts Q , Q ′ ∈ Q Q,Q' \in\mathcal{Q} Q , Q ′ ∈ Q .
If Q , Q ′ Q,Q' Q , Q ′ are compatible, then add ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) and ( Q ′ , Q ) (Q',Q) ( Q ′ , Q ) to σ \sigma σ if and only if ( Q , Q ′ ) ∈ ρ (Q,Q') \in\rho ( Q , Q ′ ) ∈ ρ (or equivalently, ( Q ′ , Q ) ∈ ρ (Q',Q) \in\rho ( Q ′ , Q ) ∈ ρ ).
If Q , Q ′ Q,Q' Q , Q ′ are incompatible, say ( Q , Q ′ ) ∈ ρ (Q,Q') \in\rho ( Q , Q ′ ) ∈ ρ and ( Q ′ , Q ) ∉ ρ (Q',Q) \notin\rho ( Q ′ , Q ) ∈ / ρ , then consider the two numbers:
w Q , Q ′ w_{Q,Q'} w Q , Q ′ : the number of pairs ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] (R,R') \in\mathcal{R}[Q] \times\mathcal{R}[Q'] ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] such that ( R , R ′ ) (R,R') ( R , R ′ ) agrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) ;
w Q ′ , Q w_{Q',Q} w Q ′ , Q : the number of pairs ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] (R,R') \in\mathcal{R}[Q] \times\mathcal{R}[Q'] ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] such that ( R ′ , R ) (R',R) ( R ′ , R ) agrees with ( Q ′ , Q ) (Q',Q) ( Q ′ , Q ) .
Note that by Claim 7.4 , we have w Q , Q ′ + w Q ′ , Q = ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ w_{Q,Q'} + w_{Q',Q} = |\mathcal{R}[Q]| \cdot|\mathcal{R}[Q']| w Q , Q ′ + w Q ′ , Q = ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ . Then add ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) and ( Q ′ , Q ) (Q',Q) ( Q ′ , Q ) to σ \sigma σ if w Q , Q ′ > w Q ′ , Q w_{Q,Q'} > w_{Q',Q} w Q , Q ′ > w Q ′ , Q , and do not add them if w Q , Q ′ < w Q ′ , Q w_{Q,Q'} < w_{Q',Q} w Q , Q ′ < w Q ′ , Q . If w Q , Q ′ = w Q ′ , Q w_{Q,Q'} = w_{Q',Q} w Q , Q ′ = w Q ′ , Q , break the tie arbitrarily.
If ( Q , Q ′ ) ∉ ρ (Q,Q') \notin\rho ( Q , Q ′ ) ∈ / ρ and ( Q ′ , Q ) ∈ ρ (Q',Q) \in\rho ( Q ′ , Q ) ∈ ρ , proceed symmetrically with the roles of Q Q Q and Q ′ Q' Q ′ swapped.
Note that for any given Q , Q ′ ∈ Q Q,Q' \in\mathcal{Q} Q , Q ′ ∈ Q , the numbers w Q , Q ′ w_{Q,Q'} w Q , Q ′ , w Q ′ , Q w_{Q',Q} w Q ′ , Q can be computed in time O ( ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ ) O(|\mathcal{R}[Q]| \cdot|\mathcal{R}[Q']|) O ( ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ ) by inspecting all the pairs ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] (R,R') \in\mathcal{R}[Q] \times\mathcal{R}[Q'] ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] one by one. Hence, the relation σ \sigma σ can be computed in time O ( ∑ ( Q , Q ′ ) ∈ Q 2 ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ ) = O ( ∣ R ∣ 2 ) ≤ O ( n 2 ) O(\sum_{(Q,Q')\in\mathcal{Q}^2} |\mathcal{R}[Q]| \cdot|\mathcal{R}[Q']|) = O(|\mathcal{R}|^2) \le O(n^2) O ( ∑ ( Q , Q ′ ) ∈ Q 2 ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ ) = O ( ∣ R ∣ 2 ) ≤ O ( n 2 ) , as promised.
From the construction we immediately derive the following claim, which roughly says the following: pairs of parts of Q \mathcal{Q} Q on which ρ \rho ρ and σ \sigma σ differ are heavily loaded with disagreeing pairs of parts of R \mathcal{R} R .
Claim 7.5. Suppose ( Q , Q ′ ) ∈ Q × Q (Q,Q') \in\mathcal{Q} \times\mathcal{Q} ( Q , Q ′ ) ∈ Q × Q is such that ( Q , Q ′ ) ∈ ρ △ σ (Q,Q') \in\rho\mathbin{\triangle} \sigma ( Q , Q ′ ) ∈ ρ △ σ . Then Q ≠ Q ′ Q \ne Q' Q = Q ′ and there are at least ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ / 2 |\mathcal{R}[Q]| \cdot|\mathcal{R}[Q']|/2 ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣/2 pairs ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] (R,R') \in\mathcal{R}[Q] \times\mathcal{R}[Q'] ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] such that ( R , R ′ ) (R,R') ( R , R ′ ) disagrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) .
Proof of the claim. Since ( Q , Q ′ ) ∈ ρ △ σ (Q,Q') \in\rho\mathbin{\triangle} \sigma ( Q , Q ′ ) ∈ ρ △ σ , we must have that Q , Q ′ Q,Q' Q , Q ′ are incompatible, hence in particular Q ≠ Q ′ Q \ne Q' Q = Q ′ . Moreover, we must have w Q ′ , Q ≥ w Q , Q ′ w_{Q',Q} \ge w_{Q,Q'} w Q ′ , Q ≥ w Q , Q ′ , which due to w Q , Q ′ + w Q ′ , Q = ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ w_{Q,Q'} + w_{Q',Q} = |\mathcal{R}[Q]| \cdot|\mathcal{R}[Q']| w Q , Q ′ + w Q ′ , Q = ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ entails w Q , Q ′ ≤ ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣ / 2 w_{Q,Q'} \le|\mathcal{R}[Q]| \cdot|\mathcal{R}[Q']|/2 w Q , Q ′ ≤ ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ′ ] ∣/2 . This means that at most half of the pairs ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] (R,R') \in\mathcal{R}[Q] \times\mathcal{R}[Q'] ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] agree with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) , which leaves at least half of them disagreeing.
By combining Claims 7.3 and 7.5 we may now establish an upper bound on the total number of parts of R \mathcal{R} R contained in N ρ △ σ ( Q ) N_{\rho\mathbin{\triangle} \sigma}(Q) N ρ △ σ ( Q ) , for any part Q Q Q of Q \mathcal{Q} Q .
Claim 7.6. For every Q ∈ Q Q \in\mathcal{Q} Q ∈ Q we have
∣ { R ′ ∈ R ∣ R ′ ⊆ N ρ △ σ ( Q ) } ∣ ≤ 2 m . |\{R' \in\mathcal{R} \mid R' \subseteq N_{\rho\mathbin{\triangle} \sigma}(Q)\}| \le2m. ∣ { R ′ ∈ R ∣ R ′ ⊆ N ρ △ σ ( Q )} ∣ ≤ 2 m .
Proof of the claim. Fix any Q ∈ Q Q \in\mathcal{Q} Q ∈ Q . Denote
N : = { Q ′ ∈ Q ∣ Q ′ ⊆ N ρ △ σ ( Q ) } and S : = { R ′ ∈ R ∣ R ′ ⊆ N ρ △ σ ( Q ) } = ⋃ Q ′ ∈ N R [ Q ′ ] . \mathcal{N} := \{Q' \in\mathcal{Q} \mid Q' \subseteq N_{\rho\mathbin{\triangle} \sigma}(Q)\}
\qquad\text{and}\qquad
\mathcal{S} := \{R' \in\mathcal{R} \mid R' \subseteq N_{\rho\mathbin{\triangle} \sigma}(Q)\} = \bigcup_{Q' \in\mathcal{N}} \mathcal{R}[Q']. N := { Q ′ ∈ Q ∣ Q ′ ⊆ N ρ △ σ ( Q )} and S := { R ′ ∈ R ∣ R ′ ⊆ N ρ △ σ ( Q )} = Q ′ ∈ N ⋃ R [ Q ′ ] .
For every R ∈ R [ Q ] R \in\mathcal{R}[Q] R ∈ R [ Q ] , define
W R : = { R ′ ∈ R − { R } ∣ ( R , R ′ ) disagrees with ( Q , Q ′ ) , where Q ′ ∈ Q is such that R ′ ∈ R [ Q ′ ] } . W_R := \{R' \in\mathcal{R} - \{R\} \mid(R,R') \text{ disagrees with } (Q,Q'),\text{ where } Q' \in\mathcal{Q} \text{ is such that } R' \in\mathcal{R}[Q']\}. W R := { R ′ ∈ R − { R } ∣ ( R , R ′ ) disagrees with ( Q , Q ′ ) , where Q ′ ∈ Q is such that R ′ ∈ R [ Q ′ ]} .
By Claim 7.3 , every R ′ ∈ W R R' \in W_R R ′ ∈ W R is intersected by N ( x R ) △ N ρ ( Q ) N(x_R) \mathbin{\triangle} N_{\rho}(Q) N ( x R ) △ N ρ ( Q ) . Since the mismatch of ρ \rho ρ with respect to R \mathcal{R} R is at most m m m , we conclude that
∣ W R ∣ ≤ m for every R ∈ R [ Q ] . (11) |W_R| \le m \qquad\text{for every } R \in\mathcal{R}[Q]. \tag*{(11)} ∣ W R ∣ ≤ m for every R ∈ R [ Q ] . (11)
Writing ( R , R ′ ) ζ̸ ( Q , Q ′ ) (R,R') \not\zeta(Q,Q') ( R , R ′ ) ζ ( Q , Q ′ ) as a shorthand for ( R , R ′ ) (R,R') ( R , R ′ ) disagrees with ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) , we have:
∣ S ∣ = ∑ Q ′ ∈ N ∣ R [ Q ′ ] ∣ ≤ ∑ Q ′ ∈ N 2 ∣ R [ Q ] ∣ ⋅ ∣ { ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] ∣ ( R , R ′ ) ζ̸ ( Q , Q ′ ) } ∣ \begin{aligned}
|S| = \sum_{Q' \in\mathcal{N}} |\mathcal{R}[Q']| \\
&\le\sum_{Q' \in\mathcal{N}} \frac{2}{|\mathcal{R}[Q]|} \cdot|\{(R,R') \in\mathcal{R}[Q] \times\mathcal{R}[Q'] \mid(R,R') \not\zeta(Q,Q')\}|
\end{aligned} ∣ S ∣ = Q ′ ∈ N ∑ ∣ R [ Q ′ ] ∣ ≤ Q ′ ∈ N ∑ ∣ R [ Q ] ∣ 2 ⋅ ∣ {( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] ∣ ( R , R ′ ) ζ ( Q , Q ′ )} ∣
(by Claim 7.5 )
= ∑ Q ′ ∈ Q − { Q } 2 ∣ R [ Q ] ∣ ⋅ ∣ { ( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] ∣ ( R , R ′ ) ζ̸ ( Q , Q ′ ) } ∣ = \sum_{Q' \in\mathcal{Q} - \{Q\}} \frac{2}{|\mathcal{R}[Q]|} \cdot|\{(R,R') \in\mathcal{R}[Q] \times\mathcal{R}[Q'] \mid(R,R') \not\zeta(Q,Q')\}| = Q ′ ∈ Q − { Q } ∑ ∣ R [ Q ] ∣ 2 ⋅ ∣ {( R , R ′ ) ∈ R [ Q ] × R [ Q ′ ] ∣ ( R , R ′ ) ζ ( Q , Q ′ )} ∣
(as Q ∉ N Q \notin\mathcal{N} Q ∈ / N )
which by double counting (see Figure 6 ) is equal to:
Figure 6. An illustration of the double counting argument in Claim 7.6 . Depicted is a directed graph whose vertices are the parts of R \mathcal{R} R , where there is a directed edge between vertices R R R and R ′ R' R ′ if ( R , R ′ ) (R,R') ( R , R ′ ) disagrees with the containing parts ( Q , Q ′ ) (Q,Q') ( Q , Q ′ ) of Q \mathcal{Q} Q . In Claim 7.6 , the number of outgoing edges of Q Q Q is counted in two ways: 1) Summing over the incoming edges of each part Q ′ Q' Q ′ (depicted left; colors group edges by parts Q ′ Q' Q ′ ). 2) Summing over the outgoing edges of each R ∈ R [ Q ] R \in\mathcal{R}[Q] R ∈ R [ Q ] (depicted right; colors group edges by vertices R R R ).
2 ∣ R [ Q ] ∣ ⋅ ∑ R ∈ R [ Q ] ∣ { R ′ ∈ R ∣ R ′ ∈ R [ Q ′ ] for some Q ′ ≠ Q and ( R , R ′ ) ζ̸ ( Q , Q ′ ) } ∣ ≤ 2 ∣ R [ Q ] ∣ ⋅ ∑ R ∈ R [ Q ] ∣ { R ′ ∈ R − { R } ∣ ( R , R ′ ) ζ̸ ( Q , Q ′ ) where Q ′ ∈ Q is s.t. R ′ ∈ R [ Q ′ ] } ∣ = 2 ∣ R [ Q ] ∣ ⋅ ∑ R ∈ R [ Q ] ∣ W R ∣ ≤ 2 ∣ R [ Q ] ∣ ⋅ ∣ R [ Q ] ∣ ⋅ m = 2 m . \begin{aligned}
\frac{2}{|\mathcal{R}[Q]|} \cdot\sum_{R \in\mathcal{R}[Q]} |\{R' \in\mathcal{R} \mid R' \in\mathcal{R}[Q'] \text{ for some } Q' \ne Q \text{ and } (R,R') \not\zeta(Q,Q')\}| \\
&\le\frac{2}{|\mathcal{R}[Q]|} \cdot\sum_{R \in\mathcal{R}[Q]} |\{R' \in\mathcal{R} - \{R\} \mid(R,R') \not\zeta(Q,Q') \text{ where } Q' \in\mathcal{Q} \text{ is s.t. } R' \in\mathcal{R}[Q']\}| \\
&= \frac{2}{|\mathcal{R}[Q]|} \cdot\sum_{R \in\mathcal{R}[Q]} |\mathcal{W}_R| \le\frac{2}{|\mathcal{R}[Q]|} \cdot|\mathcal{R}[Q]| \cdot m = 2m.
\end{aligned} ∣ R [ Q ] ∣ 2 ⋅ R ∈ R [ Q ] ∑ ∣ { R ′ ∈ R ∣ R ′ ∈ R [ Q ′ ] for some Q ′ = Q and ( R , R ′ ) ζ ( Q , Q ′ )} ∣ ≤ ∣ R [ Q ] ∣ 2 ⋅ R ∈ R [ Q ] ∑ ∣ { R ′ ∈ R − { R } ∣ ( R , R ′ ) ζ ( Q , Q ′ ) where Q ′ ∈ Q is s.t. R ′ ∈ R [ Q ′ ]} ∣ = ∣ R [ Q ] ∣ 2 ⋅ R ∈ R [ Q ] ∑ ∣ W R ∣ ≤ ∣ R [ Q ] ∣ 2 ⋅ ∣ R [ Q ] ∣ ⋅ m = 2 m .
(by (11) )
The last claim links the mismatch of σ \sigma σ with respect to R \mathcal{R} R and the symmetric difference of ρ \rho ρ and σ \sigma σ .
Claim 7.7. Let v , w v,w v , w be distinct vertices of G G G and let Q , Q ′ ∈ Q Q,Q' \in\mathcal{Q} Q , Q ′ ∈ Q , R ∈ R [ Q ] R \in\mathcal{R}[Q] R ∈ R [ Q ] , and R ′ ∈ R [ Q ′ ] R' \in\mathcal{R}[Q'] R ′ ∈ R [ Q ′ ] be such that v ∈ R ⊆ Q v \in R \subseteq Q v ∈ R ⊆ Q and w ∈ R ′ ⊆ Q ′ w \in R' \subseteq Q' w ∈ R ′ ⊆ Q ′ . Suppose further that w ∈ N ( v ) △ N σ ( Q ) w \in N(v) \mathbin{\triangle} N_\sigma(Q) w ∈ N ( v ) △ N σ ( Q ) . Then at least one of the following conditions holds:
Proof of the claim. Suppose that the first condition fails: w ∉ N ( v ) △ N ρ ( Q ) w \notin N(v) \mathbin{\triangle} N_{\rho}(Q) w ∈ / N ( v ) △ N ρ ( Q ) . As w ∈ N ( v ) △ N σ ( Q ) w \in N(v) \mathbin{\triangle} N_{\sigma}(Q) w ∈ N ( v ) △ N σ ( Q ) , it follows that w ∈ N ρ ( Q ) △ N σ ( Q ) w \in N_{\rho}(Q) \mathbin{\triangle} N_{\sigma}(Q) w ∈ N ρ ( Q ) △ N σ ( Q ) . Since w ∈ Q ′ w \in Q' w ∈ Q ′ , this is equivalent to Q ′ ⊆ N ρ ( Q ) △ N σ ( Q ) Q' \subseteq N_{\rho}(Q) \mathbin{\triangle} N_{\sigma}(Q) Q ′ ⊆ N ρ ( Q ) △ N σ ( Q ) , which is again equivalent to ( Q , Q ′ ) ∈ ρ △ σ (Q,Q') \in\rho\mathbin{\triangle} \sigma ( Q , Q ′ ) ∈ ρ △ σ .
We may now bound the mismatch of σ \sigma σ with respect to R \mathcal{R} R . Consider any vertex v v v of G G G and let Q ∈ Q Q \in\mathcal{Q} Q ∈ Q be such that v ∈ Q v \in Q v ∈ Q . By Claim 7.7, every part of R \mathcal{R} R that is intersected by N ( v ) △ N σ ( Q ) N(v) \mathbin{\triangle} N_{\sigma}(Q) N ( v ) △ N σ ( Q ) is also intersected by N ( v ) △ N ρ ( Q ) N(v) \mathbin{\triangle} N_{\rho}(Q) N ( v ) △ N ρ ( Q ) or is contained in N ρ △ σ ( Q ) N_{\rho\mathbin{\triangle} \sigma}(Q) N ρ △ σ ( Q ) . There are at most m m m parts of R \mathcal{R} R intersected by N ( v ) △ N ρ ( Q ) N(v) \mathbin{\triangle} N_{\rho}(Q) N ( v ) △ N ρ ( Q ) , due to the assumed bound on the mismatch of ρ \rho ρ , and at most 2 m 2m 2 m parts of R \mathcal{R} R contained in N ρ △ σ ( Q ) N_{\rho\mathbin{\triangle} \sigma}(Q) N ρ △ σ ( Q ) , by Claim 7.6 . This gives us at most 3 m 3m 3 m parts of R \mathcal{R} R that are intersected by N ( v ) △ N σ ( Q ) N(v) \mathbin{\triangle} N_{\sigma}(Q) N ( v ) △ N σ ( Q ) .
By combining Lemmas 7.1 and 7.2 we immediately get the following symmetric variant of Lemma 7.1 .
Corollary 7.8. Let P \mathcal{P} P be a monotone and respectful partition selector, G G G be a graph, and α , β , γ ∈ N \alpha,\beta,\gamma\in\mathbb{N} α , β , γ ∈ N be such that
P \mathcal{P} P has growth ratio at most γ \gamma γ on G G G ;
G G G has packing ratio at most β \beta β ; and
G G G admits a vertex ordering ⪯ \preceq ⪯ of alternation at most α \alpha α .
Then for every q ∈ N q \in\mathbb{N} q ∈ N and non-empty set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) there exists a set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) with ∣ S ∣ ≤ ∣ A ∣ / q |S| \leq|A|/q ∣ S ∣ ≤ ∣ A ∣/ q and a symmetric relation σ ⊆ T 1 ( G , S ) × T 1 ( G , S ) \sigma\subseteq\mathcal{T}_1(G,S) \times\mathcal{T}_1(G,S) σ ⊆ T 1 ( G , S ) × T 1 ( G , S ) such that the mismatch of σ \sigma σ with respect to P ( G , A ∪ S ) \mathcal{P}(G,A \cup S) P ( G , A ∪ S ) is at most 264 q ⋅ ( α + β ) γ 264q \cdot(\alpha+\beta)^{\gamma} 264 q ⋅ ( α + β ) γ .
Moreover, assuming that P \mathcal{P} P is computable in time t ( n ) t(n) t ( n ) , there is an O ( ( β + γ ) ∣ A ∣ ⋅ ( β γ n 2 + t ( n ) ) ) O((\beta+\gamma)|A| \cdot(\beta\gamma n^2+t(n))) O (( β + γ ) ∣ A ∣ ⋅ ( β γ n 2 + t ( n ))) -time algorithm computing such a set S S S and relation σ \sigma σ , given q q q , G G G , A A A , and ⪯ \preceq ⪯ .
Proof of the Damping Theorem
Finally, we gather all the tools and complete the proof of the Damping Theorem (Theorem 4.1 ). The strategy is as expected: We take the set S S S provided by Lemma 6.1 and the S S S -flip defined by the symmetric relation given by Corollary 7.8 , and verify that these two objects satisfy all the required properties. The only technical check missing is the translation of the mismatch condition asserted in Corollary 7.8 to the language of distance-r r r reachability in the S S S -flip, used in the statement of Theorem 4.1 . We execute this translation in the following lemma.
For a graph G G G , partition Q \mathcal{Q} Q of its vertex set, and symmetric binary relation σ ⊆ Q × Q \sigma\subseteq\mathcal{Q} \times\mathcal{Q} σ ⊆ Q × Q , let G ⊕ σ G \oplus\sigma G ⊕ σ be the Q \mathcal{Q} Q -flip of G G G such that for all X , Y ∈ Q X,Y \in\mathcal{Q} X , Y ∈ Q and distinct vertices x ∈ X , y ∈ Y x \in X,y \in Y x ∈ X , y ∈ Y we have that:
x y ∈ E ( G ) ⇔ x y ∈ E ( G ⊕ σ ) xy \in E(G) \Leftrightarrow xy \in E(G \oplus\sigma) x y ∈ E ( G ) ⇔ x y ∈ E ( G ⊕ σ ) if ( X , Y ) ∉ σ (X,Y) \notin\sigma ( X , Y ) ∈ / σ ,
x y ∈ E ( G ) ⇔ x y ∉ E ( G ⊕ σ ) xy \in E(G) \Leftrightarrow xy \notin E(G \oplus\sigma) x y ∈ E ( G ) ⇔ x y ∈ / E ( G ⊕ σ ) if ( X , Y ) ∈ σ (X,Y) \in\sigma ( X , Y ) ∈ σ .
Lemma 8.1. Let r ∈ N r \in\mathbb{N} r ∈ N , G G G be a graph, and B B B be a subset of vertices of G G G . Denote P : = T r + 1 ( G , B ) \mathcal{P} := \mathcal{T}_{r+1}(G,B) P := T r + 1 ( G , B ) and Q : = T 1 ( G , B ) \mathcal{Q} := \mathcal{T}_1(G,B) Q := T 1 ( G , B ) . Further, let σ ⊆ Q × Q \sigma\subseteq\mathcal{Q} \times\mathcal{Q} σ ⊆ Q × Q be a symmetric binary relation and m m m be the mismatch of σ \sigma σ with respect to P \mathcal{P} P . Then for every vertex v v v of G G G , there are at most ( m + 1 ) r (m+1)^r ( m + 1 ) r parts of Q \mathcal{Q} Q that contain a vertex that is at distance at most r r r from v v v in the graph G ⊕ σ G \oplus\sigma G ⊕ σ .
Proof. Denote H : = G ⊕ σ H := G \oplus\sigma H := G ⊕ σ and P i : = T i ( G , B ) \mathcal{P}_i := \mathcal{T}_i(G,B) P i := T i ( G , B ) , for i ∈ [ r + 1 ] i \in[r+1] i ∈ [ r + 1 ] . Thus
Q = P 1 ⪰ P 2 ⪰ ⋯ ⪰ P r ⪰ P r + 1 = P . \mathcal{Q} = \mathcal{P}_1 \succeq\mathcal{P}_2 \succeq\cdots\succeq\mathcal{P}_r \succeq\mathcal{P}_{r+1} = \mathcal{P}. Q = P 1 ⪰ P 2 ⪰ ⋯ ⪰ P r ⪰ P r + 1 = P .
The core observation is captured by the following statement.
Claim 8.2. For each i ∈ [ r ] i \in[r] i ∈ [ r ] and part P ∈ P i + 1 P \in\mathcal{P}_{i+1} P ∈ P i + 1 , there are at most m + 1 m+1 m + 1 parts R ∈ P i R \in\mathcal{P}_i R ∈ P i that intersect N H [ P ] N_H[P] N H [ P ] .
Proof of the claim. Let P ′ ∈ P i P' \in\mathcal{P}_i P ′ ∈ P i be the unique part of P i \mathcal{P}_i P i that contains P P P . Consider any part R ∈ P i R \in\mathcal{P}_i R ∈ P i that intersects N H [ P ] N_H[P] N H [ P ] and is different from P ′ P' P ′ . Thus P ′ ∩ R = ∅ P' \cap R = \varnothing P ′ ∩ R = ∅ , for R R R and P ′ P' P ′ are different parts of P i \mathcal{P}_i P i .
Since R R R is an i i i -type over B B B and P P P is an ( i + 1 ) (i+1) ( i + 1 ) -type over B B B , by the definition of ( i + 1 ) (i+1) ( i + 1 ) -types we have that one of the following three cases holds:
all vertices of P P P are complete to R R R ;
all vertices of P P P are anticomplete to R R R ; or
all vertices of P P P are non-homogeneous to R R R .
In the first two cases, P P P and R R R are homogeneous to each other in G G G , and as each of them is contained in a single part of Q = P 1 Q=\mathcal{P}_1 Q = P 1 , they are also homogeneous to each other in H = G ⊕ σ H=G\oplus\sigma H = G ⊕ σ . Since R ∩ N H [ P ] ≠ ∅ R\cap N_H[P]\ne\varnothing R ∩ N H [ P ] = ∅ , we must in fact have that P P P and R R R are complete to each other in H H H . In the third case, since each of P P P and R R R is contained in a single part of Q = P 1 Q=\mathcal{P}_1 Q = P 1 , that a vertex x ∈ P x\in P x ∈ P is non-homogeneous to R R R in G G G implies that x x x is also non-homogeneous to R R R in H H H .
The reasoning above shows that in each of the three cases, for every vertex x ∈ P x\in P x ∈ P there exists some vertex x ′ ∈ R x'\in R x ′ ∈ R such that x x x and x ′ x' x ′ are adjacent in H H H . This implies that some part of P \mathcal{P} P contained in R R R — precisely, the part that contains x ′ x' x ′ — is intersected by N ( x ) △ N σ ( Q ) N(x)\mathbin{\triangle}N_\sigma(Q) N ( x ) △ N σ ( Q ) , where Q Q Q is the unique part of Q \mathcal{Q} Q that contains P P P . The bound on the mismatch of σ \sigma σ with respect to P \mathcal{P} P implies that there can be at most m m m such parts of P \mathcal{P} P in total, for any x ∈ P x\in P x ∈ P . Hence, there are no more than m m m parts R ∈ P i R\in\mathcal{P}_i R ∈ P i satisfying R ∩ N H [ P ] ≠ ∅ R\cap N_H[P]\ne\varnothing R ∩ N H [ P ] = ∅ and R ≠ P ′ R\ne P' R = P ′ . Taking into account also the single part P ′ P' P ′ finishes the proof of the claim. ⌟
With Claim 8.2 established, a straightforward induction on j j j proves the following statement:
For every u ∈ V ( G ) u\in V(G) u ∈ V ( G ) and j ∈ { 0 , 1 , … , r } j\in\{0,1,\ldots,r\} j ∈ { 0 , 1 , … , r } , there are at most ( m + 1 ) j (m+1)^j ( m + 1 ) j parts of P r + 1 − j \mathcal{P}_{r+1-j} P r + 1 − j that intersect Ball H j [ u ] \operatorname{Ball}_H^j[u] Ball H j [ u ] .
Applying this statement for j = r j=r j = r completes the proof. □
We may now complete the proof of the Damping Theorem. We prove the following formulation that makes the dependence on α \alpha α , β \beta β , γ \gamma γ explicit.
Theorem 8.3 (Damping Theorem with explicit bounds). Let r ∈ N r\in\mathbb{N} r ∈ N , G G G be a graph, and α , β , γ ∈ N \alpha,\beta,\gamma\in\mathbb{N} α , β , γ ∈ N be such that
T r + 1 \mathcal{T}_{r+1} T r + 1 has growth ratio at most γ \gamma γ on G G G ;
G G G has packing ratio at most β \beta β ; and
G G G admits a vertex ordering ⪯ \preceq ⪯ of alternation at most α \alpha α .
Then for every q ∈ N q\in\mathbb{N} q ∈ N and a non-empty vertex subset A ⊆ V ( G ) A\subseteq V(G) A ⊆ V ( G ) , there exist a set S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) and an S S S -flip H H H of G G G satisfying the following properties:
∣ S ∣ ≤ ∣ A ∣ / q |S|\le|A|/q ∣ S ∣ ≤ ∣ A ∣/ q ; and
for every vertex u ∈ V ( G ) u\in V(G) u ∈ V ( G ) , Ball H r [ u ] \operatorname{Ball}_H^r[u] Ball H r [ u ] intersects at most ( 265 q ⋅ ( α + β ) γ ) r (265q\cdot(\alpha+\beta)\gamma)^r ( 265 q ⋅ ( α + β ) γ ) r parts of T 1 ( G , A ∪ S ) \mathcal{T}_1(G,A\cup S) T 1 ( G , A ∪ S ) .
Moreover, there is an algorithm computing such a set S S S and an S S S -flip H H H , given r r r , q q q , G G G , A A A , and ⪯ \preceq ⪯ , in time O ( ( β + γ ) ( β γ + r ) ⋅ ∣ A ∣ n 2 ) O((\beta+\gamma)(\beta\gamma+r)\cdot|A|n^2) O (( β + γ ) ( β γ + r ) ⋅ ∣ A ∣ n 2 ) .
Proof. Apply Corollary 7.8 to G G G , A A A , ⪯ \preceq ⪯ , and the partition selector T r + 1 \mathcal{T}_{r+1} T r + 1 . Since T r + 1 \mathcal{T}_{r+1} T r + 1 is computable in time O ( r n 2 ) O(rn^2) O ( r n 2 ) by Lemma 5.6 , in this way we construct, within the promised time complexity, a set S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) and a symmetric relation σ ⊆ T 1 ( G , S ) × T 1 ( G , S ) \sigma\subseteq\mathcal{T}_1(G,S)\times\mathcal{T}_1(G,S) σ ⊆ T 1 ( G , S ) × T 1 ( G , S ) such that ∣ S ∣ ≤ ∣ A ∣ / q |S|\le|A|/q ∣ S ∣ ≤ ∣ A ∣/ q and the mismatch of σ \sigma σ with respect to T r + 1 ( G , A ∪ S ) \mathcal{T}_{r+1}(G,A\cup S) T r + 1 ( G , A ∪ S ) is bounded by m = 264 q ⋅ ( α + β ) γ m=264q\cdot(\alpha+\beta)\gamma m = 264 q ⋅ ( α + β ) γ .
Denote B : = A ∪ S B := A \cup S B := A ∪ S and define a symmetric relation σ ′ \sigma' σ ′ ⊆ \subseteq ⊆ T 1 ( G , B ) × T 1 ( G , B ) T_1(G, B) \times T_1(G, B) T 1 ( G , B ) × T 1 ( G , B ) as in the proof of Observation 3.4 : include a pair ( P , P ′ ) ∈ T 1 ( G , B ) × T 1 ( G , B ) (P, P') \in T_1(G, B) \times T_1(G, B) ( P , P ′ ) ∈ T 1 ( G , B ) × T 1 ( G , B ) in σ ′ \sigma' σ ′ if and only if ( Q , Q ′ ) ∈ σ (Q, Q') \in\sigma ( Q , Q ′ ) ∈ σ , where Q Q Q and Q ′ Q' Q ′ are the unique parts of T 1 ( G , S ) T_1(G, S) T 1 ( G , S ) that contain P P P and P ′ P' P ′ , respectively. Note that for every vertex v v v we have N σ ( Q ) = N σ ′ ( P ) N_\sigma(Q) = N_{\sigma'}(P) N σ ( Q ) = N σ ′ ( P ) , where Q Q Q and P P P are the parts of T 1 ( G , S ) T_1(G, S) T 1 ( G , S ) and T 1 ( G , B ) T_1(G, B) T 1 ( G , B ) that contain v v v , respectively. So the mismatch of σ ′ \sigma' σ ′ with respect to T r + 1 ( G , B ) T_{r+1}(G, B) T r + 1 ( G , B ) is exactly the same as that of σ \sigma σ ; that is, m m m .
Let H : = G ⊕ σ = G ⊕ σ ′ H := G \oplus\sigma= G \oplus\sigma' H := G ⊕ σ = G ⊕ σ ′ . Thus H H H is an S S S -flip of G G G . By Lemma 8.1 we conclude that for every vertex u u u of G G G , there are at most ( m + 1 ) r ≤ ( 265 q ⋅ ( α + β ) γ ) r (m+1)^r \le(265q \cdot(\alpha+\beta)\gamma)^r ( m + 1 ) r ≤ ( 265 q ⋅ ( α + β ) γ ) r parts of T 1 ( G , A ∪ S ) T_1(G, A \cup S) T 1 ( G , A ∪ S ) that intersect Ball H r [ u ] \operatorname{Ball}_H^r[u] Ball H r [ u ] . This means that S S S and H H H satisfy all the required properties.
Theorem 4.1 (Damping Theorem). Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a monadically dependent graph class. Then there exists a function h : N → N h\colon\mathbb{N} \to\mathbb{N} h : N → N with h ( n ) ≤ subpoly C , r ( n ) h(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) h ( n ) ≤ subpoly C , r ( n ) such that for any q ∈ N q \in\mathbb{N} q ∈ N , n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , and vertex subset A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , there exist a set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) and an S S S -flip H H H of G G G satisfying the following properties:
∣ S ∣ ≤ ∣ A ∣ / q |S| \le|A|/q ∣ S ∣ ≤ ∣ A ∣/ q ; and
for every vertex u ∈ V ( G ) u \in V(G) u ∈ V ( G ) , Ball H r [ u ] \operatorname{Ball}_H^r[u] Ball H r [ u ] intersects at most q r ⋅ h ( n ) q^r \cdot h(n) q r ⋅ h ( n ) parts of T 1 ( G , A ∪ S ) T_1(G, A \cup S) T 1 ( G , A ∪ S ) .
Also, there is an algorithm that, given q q q , r r r , G G G , and A A A , computes such a set S S S and an S S S -flip H H H in time O ~ C , r ( n 3 ) \widetilde{O}_{\mathcal{C},r}(n^3) O C , r ( n 3 ) .
Proof. By Theorem 5.5 and Corollaries 5.10 and 5.14, there are subpolynomial functions α ( n ) \alpha(n) α ( n ) , β ( n ) \beta(n) β ( n ) , γ ( n ) ≤ subpoly C , r ( n ) \gamma(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) γ ( n ) ≤ subpoly C , r ( n ) such that
T r + 1 T_{r+1} T r + 1 has growth ratio at most γ ( n ) \gamma(n) γ ( n ) on G G G ;
G G G has packing ratio at most β ( n ) \beta(n) β ( n ) ; and
G G G admits a vertex ordering ⪯ \preceq ⪯ of alternation at most α ( n ) \alpha(n) α ( n ) .
Moreover, a vertex ordering ⪯ \preceq ⪯ as above can be computed deterministically in time O ~ C ( n 3 ) \widetilde{O}_{\mathcal{C}}(n^3) O C ( n 3 ) . With this, it suffices to apply Theorem 8.3 and note that ( 265 q ⋅ ( α ( n ) + β ( n ) ) ⋅ γ ( n ) ) r ≤ q r ⋅ h ( n ) (265q \cdot(\alpha(n) + \beta(n)) \cdot\gamma(n))^r \le q^r \cdot h(n) ( 265 q ⋅ ( α ( n ) + β ( n )) ⋅ γ ( n ) ) r ≤ q r ⋅ h ( n ) , for some h ( n ) ≤ subpoly C , r ( n ) h(n) \le\operatorname{subpoly}_{\mathcal{C},r}(n) h ( n ) ≤ subpoly C , r ( n ) .
Conclusions
Theorem 1.1 provides an algorithm to compute a merge sequence of subpolynomial radius-r r r width for any given graph G G G drawn from a monadically dependent graph class C \mathcal{C} C . One may ask what can be guaranteed about the output of the algorithm provided we assume something more about C \mathcal{C} C . For instance, if C \mathcal{C} C itself has bounded merge-width, what is the width of the merge sequence output by the algorithm of Theorem 1.1? It will be convenient to ask this question in the greater generality of graph classes that are translinear .
Definition 9.1. A graph class C \mathcal{C} C is translinear if every graph class D \mathcal{D} D transducible from C \mathcal{C} C has linear neighborhood complexity : There is a constant γ D \gamma_{\mathcal{D}} γ D such that T 1 T_1 T 1 has growth ratio at most γ D \gamma_{\mathcal{D}} γ D on every H ∈ D H \in\mathcal{D} H ∈ D .
Dreier and Toruńczyk [16 ] proved that whenever a graph class D \mathcal{D} D is transducible from a graph class C \mathcal{C} C of bounded merge-width, D \mathcal{D} D again has bounded merge-width. Also, Bonamy and Geniet [3 ] proved that classes of bounded merge-width have linear neighborhood complexity. Thus, the combination of these two results proves that classes of bounded merge-width are translinear. It would be consistent with our knowledge if the two concepts (bounded merge-width and translinearity) actually coincided. This is conjectured by Bonamy and Geniet [3 Conjecture 1.7] and is implied by the conjecture of Dreier and Toruńczyk [16 Conjecture 1.17, full version] .
Consider any translinear class of graphs C \mathcal{C} C . In Section B.1 we present an alternative proof of Lemma 5.1 which allows us to deduce that assuming translinearity of C \mathcal{C} C , for every r ∈ N r \in\mathbb{N} r ∈ N there is a constant γ r ≤ O C , r ( 1 ) \gamma_r \le O_{\mathcal{C},r}(1) γ r ≤ O C , r ( 1 ) such that T r T_r T r has growth ratio at most γ r \gamma_r γ r on any G ∈ C G \in\mathcal{C} G ∈ C (see Corollary B.2). Also, following the bounds of Lemma 5.9 and Corollary 5.13, we conclude that any graph G ∈ C G \in\mathcal{C} G ∈ C has packing ratio bounded by a constant β ≤ O C ( 1 ) \beta\le\mathcal{O}_{\mathcal{C}}(1) β ≤ O C ( 1 ) and admits a vertex ordering ≼ \preccurlyeq ≼ of alternation α ≤ O C ( log n ) \alpha\le\mathcal{O}_{\mathcal{C}}(\log n) α ≤ O C ( log n ) , and this bound cannot be improved in general10 . Note that such an ordering ≼ \preccurlyeq ≼ can be computed deterministically in O C ( n 3 log 2 n ) \mathcal{O}_{\mathcal{C}}(n^{3}\log^{2} n) O C ( n 3 log 2 n ) time by Corollary 5.13, and this can be done only once at the beginning of the whole argument. By plugging these bounds into the explicit formulation of the Damping Theorem (Theorem 8.3 , with q = 2 q=2 q = 2 for simplicity), we obtain an O C , r ( n 3 ) \mathcal{O}_{\mathcal{C},r}(n^{3}) O C , r ( n 3 ) -time algorithm to compute, for a given n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C (provided with a suitable ≼ \preccurlyeq ≼ ) and a non-empty A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , a set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) and an S S S -flip H H H of G G G such that
∣ S ∣ ≤ ∣ A ∣ / 2 |S| \le|A|/2 ∣ S ∣ ≤ ∣ A ∣/2 ; and
for every u ∈ V ( G ) u \in V(G) u ∈ V ( G ) , Ball H r [ u ] \operatorname{Ball}^{r}_{H}[u] Ball H r [ u ] intersects O C , r ( log r n ) \mathcal{O}_{\mathcal{C},r}(\log^{r} n) O C , r ( log r n ) parts of T 1 ( G , A ∪ S ) \mathcal{T}_{1}(G,A \cup S) T 1 ( G , A ∪ S ) .
With these bounds in place, the argument from the proof of Theorem 4.3 produces, in time O C , r ( n 3 log n ) \mathcal{O}_{\mathcal{C},r}(n^{3}\log n) O C , r ( n 3 log n ) , a partition sequence of radius-r r r width bounded by k ≤ O C , r ( log r + 1 n ) k \le\mathcal{O}_{\mathcal{C},r}(\log^{r+1} n) k ≤ O C , r ( log r + 1 n ) . The additional log n \log n log n factor is incurred by the length of the sequence m ≤ 1 + log 2 n m \le1+\log_{2} n m ≤ 1 + log 2 n . As in the proof of Theorem 1.1, if we apply the whole reasoning above for radius r ′ : = 6 r + 1 r' := 6r+1 r ′ := 6 r + 1 instead, then we can use Theorem 3.5 to turn the obtained partition sequence into a merge sequence of radius-r r r width bounded by k ⋅ π G ( k ) ≤ γ 1 ⋅ k 2 ≤ O C , r ( log 12 r + 4 n ) k \cdot\pi_{G}(k) \le\gamma_{1} \cdot k^{2} \le\mathcal{O}_{\mathcal{C},r}(\log^{12r+4} n) k ⋅ π G ( k ) ≤ γ 1 ⋅ k 2 ≤ O C , r ( log 12 r + 4 n ) .
Thus, the above discussion proves the following.
Theorem 9.2. Let r ∈ N r \in\mathbb{N} r ∈ N and C \mathcal{C} C be a translinear class of graphs. Then there exists an O C , r ( n 3 log 2 n ) \mathcal{O}_{\mathcal{C},r}(n^{3}\log^{2} n) O C , r ( n 3 log 2 n ) -time algorithm that given an n n n -vertex graph G ∈ C G \in\mathcal{C} G ∈ C , constructs a merge sequence for G G G of radius-r r r width bounded by O C , r ( log 12 r + 4 n ) \mathcal{O}_{\mathcal{C},r}(\log^{12r+4} n) O C , r ( log 12 r + 4 n ) .
Note that Theorem 9.2 can be used to compute merge sequences of polylogarithmic width in graph classes of bounded merge-width. It would be interesting to investigate whether this polylogarithmic approximation factor can be improved.
AI methodology
We obtained a first proof of the main result without AI assistance. Our original proof used an equivalent formulation of the Predamping Lemma, proved using an alternative algorithmic construction of online ε \varepsilon ε -nets, and a different proof of the Symmetrization Lemma. We subsequently used Claude Opus 5.5, Claude Fable 5.1, and GPT-6 to seek alternative proofs of these lemmas, providing a list of mathematical tools to consider. The suggestions included the present formulation of the Predamping Lemma (Lemma 6.1 ), the replacement of ε \varepsilon ε -nets by Welzl’s vertex orderings of low alternation in its proof, and the present proof of the Symmetrization Lemma (Lemma 7.2 ). AI also suggested the amortization argument presented in Section A. We adapted these suggestions and wrote all technical content ourselves. We also used AI to improve the presentation and for proofreading. The authors verified the correctness and originality of all content, including references.
Algorithmic aspects of Theorem 3.5
In this appendix we provide a brief discussion of the algorithmic claim of Theorem 3.5 , showing how to implement the method presented in [10 ] in O ( n 3 ) O(n^3) O ( n 3 ) time. We assume the reader’s familiarity with the proof of [10 ] , Theorem 5.1.
The key element of the proof is the refinement procedure described in [10 ] , Lemma 5.2. A naive implementation of this refinement procedure works in O ( n 2 ) O(n^2) O ( n 2 ) time provided we have access to the following information about the input partition P \mathcal{P} P :
For every part X ∈ P X \in\mathcal{P} X ∈ P , the diameter of G [ X ] G[X] G [ X ] and of its complement G ‾ [ X ] \overline{G}[X] G [ X ] .
For every pair of distinct parts X , X ′ ∈ P X, X' \in\mathcal{P} X , X ′ ∈ P , the diameter of G [ X , X ′ ] G[X,X'] G [ X , X ′ ] and of its bipartite complement G ‾ [ X , X ′ ] \overline{G}[X,X'] G [ X , X ′ ] .
For graphs G [ X , X ′ ] G[X,X'] G [ X , X ′ ] and G ‾ [ X , X ′ ] \overline{G}[X,X'] G [ X , X ′ ] , we only need to maintain the maximum distance between a vertex x ∈ X x \in X x ∈ X and a vertex x ′ ∈ X ′ x' \in X' x ′ ∈ X ′ . (We call these cross distances .) This is because at the end, we are only interested in whether the diameter is at most 6, which is equivalent to the maximum cross distance being at most 5.
We now show that these values can be maintained efficiently along the construction of the partition sequence in the proof of [10 ] , Theorem 5.1 so that the total work associated with maintaining them is bounded by O ( n 3 ) O(n^3) O ( n 3 ) . In fact, we maintain all the relevant distances:
For every part X ∈ P X \in\mathcal{P} X ∈ P , we maintain dist G [ X ] ( x , x ′ ) \operatorname{dist}_{G[X]}(x,x') dist G [ X ] ( x , x ′ ) and dist G ‾ [ X ] ( x , x ′ ) \operatorname{dist}_{\overline{G}[X]}(x,x') dist G [ X ] ( x , x ′ ) for all x , x ′ ∈ X x,x' \in X x , x ′ ∈ X .
For every pair of distinct parts X , X ′ ∈ P X, X' \in\mathcal{P} X , X ′ ∈ P , we maintain dist G [ X , X ′ ] ( x , x ′ ) \operatorname{dist}_{G[X,X']}(x,x') dist G [ X , X ′ ] ( x , x ′ ) and dist G ‾ [ X , X ′ ] ( x , x ′ ) \operatorname{dist}_{\overline{G}[X,X']}(x,x') dist G [ X , X ′ ] ( x , x ′ ) for all x ∈ X x \in X x ∈ X and x ′ ∈ X ′ x' \in X' x ′ ∈ X ′ .
The construction of the merge sequence in the proof of [10 ] , Theorem 5.1 can be expanded into a sequence of binary merges, where each binary merge replaces two distinct parts of the current partition with their union. Therefore, it suffices to show how to efficiently update the distances specified above during a single binary merge. We focus on distances in G [ X ] G[X] G [ X ] and G [ X , X ′ ] G[X,X'] G [ X , X ′ ] ; the distances in G ‾ [ X ] \overline{G}[X] G [ X ] and G ‾ [ X , X ′ ] \overline{G}[X,X'] G [ X , X ′ ] can be updated similarly by working in the complement G ‾ \overline{G} G .
Consider a single merge of two parts A A A and B B B into a new part A ∪ B A \cup B A ∪ B . Let a : = ∣ A ∣ a := |A| a := ∣ A ∣ and b : = ∣ B ∣ b := |B| b := ∣ B ∣ , and by swapping A A A and B B B if necessary, assume that a ≤ b a \le b a ≤ b . To compute the all-pairs distances in G [ A ∪ B ] G[A \cup B] G [ A ∪ B ] , we start with G [ B ] G[B] G [ B ] (for which the all-pairs distances are already computed) and iteratively insert the vertices of A A A into this graph. With each vertex u u u inserted, we first compute the distances from u u u to all the already present vertices (in time O ( ( a + b ) 2 ) ≤ O ( b 2 ) O((a+b)^2) \le O(b^2) O (( a + b ) 2 ) ≤ O ( b 2 ) ), and then update the distances between the already present vertices by checking if there is a shorter path going through u u u (this takes O ( 1 ) O(1) O ( 1 ) time per pair of already present vertices, so again O ( ( a + b ) 2 ) ≤ O ( b 2 ) O((a+b)^2) \le O(b^2) O (( a + b ) 2 ) ≤ O ( b 2 ) time in total). By this method, the all-pairs distances in G [ A ∪ B ] G[A \cup B] G [ A ∪ B ] can be computed in time O ( a b 2 ) O(ab^2) O ( a b 2 ) . Next, for every other part C ∉ { A , B } C \notin\{A,B\} C ∈ / { A , B } , we compute the cross distances in G [ A ∪ B , C ] G[A \cup B,C] G [ A ∪ B , C ] by starting with the graph G [ B , C ] G[B,C] G [ B , C ] (for which the cross distances are already computed) and iteratively add the vertices of A A A one by one. As before, updating the cross distances upon insertion of a new vertex u ∈ A u \in A u ∈ A takes time O ( b c ) O(bc) O ( b c ) where c : = ∣ C ∣ c := |C| c := ∣ C ∣ , so we can compute the cross distances in G [ A ∪ B , C ] G[A \cup B,C] G [ A ∪ B , C ] in total time O ( a b c ) O(abc) O ( ab c ) . Summing over all parts C C C , the total time complexity of updating the maintained distances during the merge of A A A and B B B is bounded by O ( a b 2 ) + O ( a b n ) ≤ O ( a b n ) O(ab^2) + O(abn) \le O(abn) O ( a b 2 ) + O ( abn ) ≤ O ( abn ) .
It now remains to observe that summing the values a b ab ab over all the binary merges in a merge sequence yields exactly ( n 2 ) \binom{n}{2} ( 2 n ) , because each pair of distinct vertices falls into the same part exactly once during the sequence. Therefore, the total work associated with updating the distances can be bounded by O ( n 3 ) O(n^3) O ( n 3 ) .
Counting types of formulas
In this appendix, we prove Lemma 5.3 , which is used in the proof of Lemma 5.1 . In Section B.1 we also provide an alternative proof of Lemma 5.1 , which also applies to translinear classes, discussed in the conclusions in § 10 .
For a positive integer k k k , let C k ( G ) C_k(G) C k ( G ) be the graph formed from k k k disjoint copies of G G G by joining the copies of each vertex into a clique. Thus its vertex set is V ( G ) × [ k ] V(G) \times[k] V ( G ) × [ k ] , and the additional matching edges are ( u , i ) ( u , j ) (u,i)(u,j) ( u , i ) ( u , j ) for u ∈ V ( G ) u \in V(G) u ∈ V ( G ) and distinct i , j ∈ [ k ] i,j \in[k] i , j ∈ [ k ] . For every fixed k k k , if C \mathcal{C} C is monadically dependent, then so is { C k ( G ) : G ∈ C } \{C_k(G): G \in\mathcal{C}\} { C k ( G ) : G ∈ C } [14 Corollary 19.10, full version] .
Proof of Lemma 5.3 . If Γ = ∅ \Gamma= \varnothing Γ = ∅ , then T Γ ( G + , B ) T_\Gamma(G^+, B) T Γ ( G + , B ) has at most one part, so we may take γ Γ ( n ) = 1 \gamma_\Gamma(n) = 1 γ Γ ( n ) = 1 . Hence assume that Γ = { φ 1 , … , φ m } \Gamma= \{\varphi_1, \ldots, \varphi_m\} Γ = { φ 1 , … , φ m } with m ≥ 1 m \ge1 m ≥ 1 . Given an expansion G + G^+ G + of G ∈ C G \in\mathcal{C} G ∈ C by the colors occurring in Γ \Gamma Γ , take m + 1 m+1 m + 1 copies V 0 , V 1 , … , V m V_0, V_1, \ldots, V_m V 0 , V 1 , … , V m of V ( G ) V(G) V ( G ) , writing u i u_i u i for the copy of u u u in V i V_i V i . Construct a graph H H H by putting, for i ∈ [ m ] i \in[m] i ∈ [ m ] and u , v ∈ V ( G ) u,v \in V(G) u , v ∈ V ( G ) ,
u 0 v i ∈ E ( H ) if and only if φ i ( u , v ) holds in G + , u_0v_i \in E(H) \qquad\text{if and only if} \qquad\varphi_i(u,v)\text{ holds in }G^+, u 0 v i ∈ E ( H ) if and only if φ i ( u , v ) holds in G + ,
and no other edges. On C m + 1 ( G ) C_{m+1}(G) C m + 1 ( G ) , distinguish the copies by colors and encode the colors of G + G^+ G + on V 0 V_0 V 0 . The adjacency of H H H is then defined by a fixed first-order formula ψ Γ \psi_\Gamma ψ Γ : restrict the quantifiers of each φ i \varphi_i φ i to V 0 V_0 V 0 and identify the copy-zero representative of v i v_i v i as its unique neighbor in V 0 V_0 V 0 . Let D \mathcal{D} D be the class of all graphs H H H obtained this way. Then D \mathcal{D} D is transducible from { C m + 1 ( G ) : G ∈ C } \{C_{m+1}(G): G \in\mathcal{C}\} { C m + 1 ( G ) : G ∈ C } , so it is monadically dependent and depends only on C \mathcal{C} C and Γ \Gamma Γ .
Let B i : = { b i : b ∈ B } B_i := \{b_i : b \in B\} B i := { b i : b ∈ B } and R : = ⋃ i = 1 m B i R := \bigcup_{i=1}^{m} B_i R := ⋃ i = 1 m B i , so ∣ R ∣ = m ∣ B ∣ |R| = m|B| ∣ R ∣ = m ∣ B ∣ . For u , v ∈ V ( G ) u,v \in V(G) u , v ∈ V ( G ) , the neighborhoods of u 0 u_0 u 0 and v 0 v_0 v 0 in R R R are equal if and only if u u u and v v v have the same Γ \Gamma Γ -type over B B B in G + G^+ G + . Since V 0 ∩ R = ∅ V_0 \cap R = \varnothing V 0 ∩ R = ∅ , it follows from Theorem 3.3 that
∣ T Γ ( G + , B ) ∣ ≤ ∣ T 1 ( H , R ) ∣ ≤ m ∣ B ∣ ⋅ γ D ( m ∣ B ∣ ) . |T_\Gamma(G^+,B)| \le|T_1(H,R)| \le m|B| \cdot\gamma_{\mathcal{D}}(m|B|). ∣ T Γ ( G + , B ) ∣ ≤ ∣ T 1 ( H , R ) ∣ ≤ m ∣ B ∣ ⋅ γ D ( m ∣ B ∣ ) .
where γ D \gamma_{\mathcal{D}} γ D is a subpolynomial function depending only on D \mathcal{D} D . We may thus set γ Γ ( n ) : = m γ D ( m n ) \gamma_\Gamma(n) := m\gamma_{\mathcal{D}}(mn) γ Γ ( n ) := m γ D ( mn ) , which is subpolynomial, as required. □
A reduction without copying
For the application to translinear classes in § 10 , we provide an alternative proof of Lemma 5.1 , based directly on transducibility (without copying). This reduction allows us to deduce bounds on the growth ratios of T r T_r T r in the case of translinear classes.
For s ≥ 1 s \ge1 s ≥ 1 , let γ s ∗ ( G ) \gamma_s^*(G) γ s ∗ ( G ) denote the growth ratio of T s T_s T s on a non-empty graph G G G , and set γ 0 ∗ ( G ) : = 1 \gamma_0^*(G) := 1 γ 0 ∗ ( G ) := 1 .
Lemma B.1. For every r ∈ N r \in\mathbb{N} r ∈ N , there is a first-order formula φ r ∗ ( x , y ) \varphi_r^*(x,y) φ r ∗ ( x , y ) in the signature of 5-colored graphs, with unary predicates A A A , R 0 R_0 R 0 , R + R^+ R + , R − R^- R − , and R ∈ R^\in R ∈ , with the following property. For every graph G G G and non-empty set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , there exist a 5-coloring G + G^+ G + of G G G , interpreting the predicate A A A as the given set, and a non-empty set R ⊆ V ( G ) R \subseteq V(G) R ⊆ V ( G ) such that, for H : = φ r ∗ ( G + ) H := \varphi_r^*(G^+) H := φ r ∗ ( G + ) , the partition T 1 ( H , R ) T_1(H,R) T 1 ( H , R ) refines T r ( G , A ) T_r(G,A) T r ( G , A ) and
∣ T r ( G , A ) ∣ ≤ ∣ T 1 ( H , R ) ∣ and ∣ R ∣ ≤ 3 γ r − 1 ∗ ( G ) ∣ A ∣ . |T_r(G,A)| \le|T_1(H,R)| \qquad\text{and}\qquad|R| \le3\gamma_{r-1}^*(G)|A|. ∣ T r ( G , A ) ∣ ≤ ∣ T 1 ( H , R ) ∣ and ∣ R ∣ ≤ 3 γ r − 1 ∗ ( G ) ∣ A ∣. For r ≥ 2 r \ge2 r ≥ 2 , one can moreover ensure ∣ R ∣ ≤ 3 ∣ T r − 1 ( G , A ) ∣ |R| \le3|T_{r-1}(G,A)| ∣ R ∣ ≤ 3∣ T r − 1 ( G , A ) ∣ .
Proof. For r = 1 r = 1 r = 1 , take φ 1 ∗ ( x , y ) : = adj ( x , y ) \varphi_1^*(x,y) := \operatorname{adj}(x,y) φ 1 ∗ ( x , y ) := adj ( x , y ) and R : = A R := A R := A , so that H = G H = G H = G and the conclusion is immediate. Hence assume r ≥ 2 r \ge2 r ≥ 2 , fix G G G and a non-empty set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , and write Q : = T r − 1 ( G , A ) \mathcal{Q} := T_{r-1}(G,A) Q := T r − 1 ( G , A ) . Let Q ≤ 2 \mathcal{Q}_{\le2} Q ≤ 2 and Q ≥ 3 \mathcal{Q}_{\ge3} Q ≥ 3 be the sets of parts of Q \mathcal{Q} Q of size at most two and at least three, respectively, and set R 0 : = ⋃ Q ≤ 2 R_0 := \bigcup\mathcal{Q}_{\le2} R 0 := ⋃ Q ≤ 2 . For each Q ∈ Q ≥ 3 Q \in\mathcal{Q}_{\ge3} Q ∈ Q ≥ 3 , choose three distinct vertices r Q + , r Q − , r Q ∈ Q r_Q^+, r_Q^-, r_Q^\in Q r Q + , r Q − , r Q ∈ Q . For t ∈ { + , − , ∈ } t \in\{+, -, \in\} t ∈ { + , − , ∈ } , let R t : = { r Q t : Q ∈ Q ≥ 3 } R^t := \{r_Q^t : Q \in\mathcal{Q}_{\ge3}\} R t := { r Q t : Q ∈ Q ≥ 3 } , and define
R : = R 0 ∪ R + ∪ R − ∪ R ∈ . R := R_0 \cup R^+ \cup R^- \cup R^\in. R := R 0 ∪ R + ∪ R − ∪ R ∈ .
These four sets are pairwise disjoint. Every part of Q \mathcal{Q} Q contributes at least one and at most three vertices to R R R , so 0 < ∣ R ∣ ≤ 3 ∣ Q ∣ 0 < |R| \le3|\mathcal{Q}| 0 < ∣ R ∣ ≤ 3∣ Q ∣ .
Construct a bipartite graph H H H on V ( G ) V(G) V ( G ) with sides R R R and V ( G ) − R V(G)-R V ( G ) − R as follows. For u ∉ R u \notin R u ∈ / R and v ∈ R v \in R v ∈ R , put u v ∈ E ( H ) uv \in E(H) uv ∈ E ( H ) according to the following rules:
If v ∈ R 0 v \in R_0 v ∈ R 0 , then u v ∈ E ( H ) uv \in E(H) uv ∈ E ( H ) if and only if u v ∈ E ( G ) uv \in E(G) uv ∈ E ( G ) .
If v = r Q + ∈ R + v = r_Q^+ \in R^+ v = r Q + ∈ R + , then u v ∈ E ( H ) uv \in E(H) uv ∈ E ( H ) if and only if u u u is complete to Q − { u } Q-\{u\} Q − { u } in G G G .
If v = r Q − ∈ R − v = r_Q^- \in R^- v = r Q − ∈ R − , then u v ∈ E ( H ) uv \in E(H) uv ∈ E ( H ) if and only if u u u is anticomplete to Q − { u } Q-\{u\} Q − { u } in G G G .
If v = r Q ∈ ∈ R ∈ v = r_Q^\in\in R^\in v = r Q ∈ ∈ R ∈ , then u v ∈ E ( H ) uv \in E(H) uv ∈ E ( H ) if and only if u ∈ Q u \in Q u ∈ Q .
There are no other edges in H H H .
To express this construction by a first-order formula, expand G G G by five colors distinguishing A A A , R 0 R_0 R 0 , R + R^+ R + , R − R^- R − , and R ∈ R^\in R ∈ , and let τ r − 1 \tau_{r-1} τ r − 1 be the formula from Claim 5.2 . Membership in R R R abbreviates membership in the union of the four corresponding colors. Define
φ r ∗ ( x , y ) : = ( x ∉ R ) ∧ ( y ∈ R ) ∧ ( y ∈ R 0 → adj ( x , y ) ) ∧ ( y ∈ R + → ∀ z ( ( z ≠ x ∧ τ r − 1 ( y , z ) ) → adj ( x , z ) ) ) ∧ ( y ∈ R − → ∀ z ( ( z ≠ x ∧ τ r − 1 ( y , z ) ) → ¬ adj ( x , z ) ) ) ∧ ( y ∈ R ∈ → τ r − 1 ( x , y ) ) . \begin{aligned}
\varphi_r^*(x,y) :={}& (x \notin R) \land(y \in R) \land\\
& (y \in R_0 \to\operatorname{adj}(x,y)) \land\\
& (y \in R^+ \to\forall z ((z \ne x \land\tau_{r-1}(y,z)) \to\operatorname{adj}(x,z))) \land\\
& (y \in R^- \to\forall z ((z \ne x \land\tau_{r-1}(y,z)) \to\neg\operatorname{adj}(x,z))) \land\\
& (y \in R^\in\to\tau_{r-1}(x,y)).
\end{aligned} φ r ∗ ( x , y ) := ( x ∈ / R ) ∧ ( y ∈ R ) ∧ ( y ∈ R 0 → adj ( x , y )) ∧ ( y ∈ R + → ∀ z (( z = x ∧ τ r − 1 ( y , z )) → adj ( x , z ))) ∧ ( y ∈ R − → ∀ z (( z = x ∧ τ r − 1 ( y , z )) → ¬ adj ( x , z ))) ∧ ( y ∈ R ∈ → τ r − 1 ( x , y )) .
Writing G + G^+ G + for this expansion, we have H = φ r ∗ ( G + ) H = \varphi_r^*(G^+) H = φ r ∗ ( G + ) . Note that the formula φ r ∗ \varphi_r^* φ r ∗ depends only on r r r .
We next verify that T 1 ( H , R ) \mathcal{T}_1(H,R) T 1 ( H , R ) refines T r ( G , A ) \mathcal{T}_r(G,A) T r ( G , A ) . Every vertex in R R R is a singleton part of T 1 ( H , R ) \mathcal{T}_1(H,R) T 1 ( H , R ) , so it suffices to consider u , u ′ ∉ R u,u' \notin R u , u ′ ∈ / R with N H ( u ) ∩ R = N H ( u ′ ) ∩ R N_H(u) \cap R = N_H(u') \cap R N H ( u ) ∩ R = N H ( u ′ ) ∩ R .
Each of u , u ′ u,u' u , u ′ belongs to a part of Q ≥ 3 \mathcal{Q}_{\ge3} Q ≥ 3 , since all vertices of smaller parts lie in R 0 R_0 R 0 . For every Q ∈ Q ≥ 3 Q \in\mathcal{Q}_{\ge3} Q ∈ Q ≥ 3 , adjacency to r Q ∈ r_Q^\in r Q ∈ records membership in Q Q Q . Thus u , u ′ u,u' u , u ′ belong to the same part of Q \mathcal{Q} Q , that is, have the same ( r − 1 ) (r-1) ( r − 1 ) -type over A A A .
If Q ∈ Q ≤ 2 Q \in\mathcal{Q}_{\le2} Q ∈ Q ≤ 2 , then Q ⊆ R 0 Q \subseteq R_0 Q ⊆ R 0 , and the construction gives
N G ( u ) ∩ Q = N H ( u ) ∩ Q = N H ( u ′ ) ∩ Q = N G ( u ′ ) ∩ Q . N_G(u) \cap Q = N_H(u) \cap Q = N_H(u') \cap Q = N_G(u') \cap Q. N G ( u ) ∩ Q = N H ( u ) ∩ Q = N H ( u ′ ) ∩ Q = N G ( u ′ ) ∩ Q .
Since u , u ′ ∉ Q u,u' \notin Q u , u ′ ∈ / Q , this implies that u u u is complete to Q − { u } Q-\{u\} Q − { u } if and only if u ′ u' u ′ is complete to Q − { u ′ } Q-\{u'\} Q − { u ′ } , and likewise for anticompleteness.
If Q ∈ Q ≥ 3 Q \in\mathcal{Q}_{\ge3} Q ∈ Q ≥ 3 , equality of adjacency to r Q + r_Q^+ r Q + shows that u u u is complete to Q − { u } Q-\{u\} Q − { u } if and only if u ′ u' u ′ is complete to Q − { u ′ } Q-\{u'\} Q − { u ′ } . Equality of adjacency to r Q − r_Q^- r Q − gives the analogous equivalence for anticompleteness.
These are exactly the three conditions defining equality of r r r -types, proving the refinement and hence the claimed inequality between the numbers of parts. Finally,
∣ R ∣ ≤ 3 ∣ T r − 1 ( G , A ) ∣ ≤ 3 γ r − 1 ∗ ( G ) ∣ A ∣ , |R| \le3|\mathcal{T}_{r-1}(G,A)| \le3\gamma_{r-1}^*(G)|A|, ∣ R ∣ ≤ 3∣ T r − 1 ( G , A ) ∣ ≤ 3 γ r − 1 ∗ ( G ) ∣ A ∣ ,
which completes the proof.
We now make the resulting bounds explicit. Let C \mathcal{C} C be a graph class and for each r ≥ 2 r \ge2 r ≥ 2 , let D r \mathcal{D}_r D r be the class of all graphs defined by φ r ∗ \varphi_r^* φ r ∗ from arbitrary 5-colored expansions of graphs in C \mathcal{C} C . This class is transducible from C \mathcal{C} C and contains every graph H H H supplied by Lemma B.1. If C \mathcal{C} C is monadically dependent, then so is D r \mathcal{D}_r D r . By Theorem 3.3, there is a non-decreasing subpolynomial function ξ r \xi_r ξ r , depending only on C \mathcal{C} C and r r r , such that
∣ T 1 ( H , B ) ∣ ≤ ∣ B ∣ ⋅ ξ r ( ∣ B ∣ ) |T_1(H,B)| \le|B| \cdot\xi_r(|B|) ∣ T 1 ( H , B ) ∣ ≤ ∣ B ∣ ⋅ ξ r ( ∣ B ∣ )
for every H ∈ D r H \in\mathcal{D}_r H ∈ D r and non-empty B ⊆ V ( H ) B \subseteq V(H) B ⊆ V ( H ) .
Let γ 1 \gamma_1 γ 1 be a non-decreasing function supplied by Theorem 3.3 for C \mathcal{C} C , and define inductively, for r ≥ 2 r \ge2 r ≥ 2 ,
γ r ( n ) : = 3 γ r − 1 ( n ) ⋅ ξ r ( 3 γ r − 1 ( n ) n ) . \gamma_r(n) := 3\gamma_{r-1}(n) \cdot\xi_r(3\gamma_{r-1}(n)n). γ r ( n ) := 3 γ r − 1 ( n ) ⋅ ξ r ( 3 γ r − 1 ( n ) n ) .
Writing a : = ∣ A ∣ a := |A| a := ∣ A ∣ , Lemma B.1 and the induction hypothesis give
∣ T r ( G , A ) ∣ ≤ ∣ T 1 ( H , R ) ∣ ≤ ∣ R ∣ ⋅ ξ r ( ∣ R ∣ ) ≤ 3 γ r − 1 ( a ) a ⋅ ξ r ( 3 γ r − 1 ( a ) a ) = a ⋅ γ r ( a ) . |T_r(G,A)| \le|T_1(H,R)| \le|R| \cdot\xi_r(|R|)
\le3\gamma_{r-1}(a)a \cdot\xi_r(3\gamma_{r-1}(a)a) = a \cdot\gamma_r(a). ∣ T r ( G , A ) ∣ ≤ ∣ T 1 ( H , R ) ∣ ≤ ∣ R ∣ ⋅ ξ r ( ∣ R ∣ ) ≤ 3 γ r − 1 ( a ) a ⋅ ξ r ( 3 γ r − 1 ( a ) a ) = a ⋅ γ r ( a ) .
For each fixed r r r , this recurrence preserves subpolynomiality and hence also proves the bound in Lemma 5.1.
If C \mathcal{C} C is translinear, then γ 1 \gamma_1 γ 1 can be chosen constant, and linear neighborhood complexity of D r \mathcal{D}_r D r allows us to choose ξ r \xi_r ξ r to be a constant c r c_r c r . The recurrence then reduces to
γ r = 3 c r γ r − 1 . \gamma_r = 3c_r\gamma_{r-1}. γ r = 3 c r γ r − 1 .
Consequently, for every fixed r r r , the growth ratio of T r T_r T r on C \mathcal{C} C is bounded by a constant depending only on C \mathcal{C} C and r r r , as used in § 10 .
Corollary B.2. Let C \mathcal{C} C be a translinear graph class and r ∈ N r \in\mathbb{N} r ∈ N . Then the growth ratio of T r T_r T r on C \mathcal{C} C is bounded by a constant γ r ≤ O C , r ( 1 ) \gamma_r \le O_{\mathcal{C},r}(1) γ r ≤ O C , r ( 1 ) .
Algorithmic claim of Theorem 5.12
In this section we argue that the proof of Theorem 5.12 presented in [6 ] gives rise to an O ( α 2 n 3 ) O(\alpha^2 n^3) O ( α 2 n 3 ) -time algorithm that given a graph G G G , computes a vertex ordering ≼ \preccurlyeq ≼ with alternation bounded by α \alpha α , where α \alpha α is the quantity specified in the statement of Theorem 5.12. The part relevant to us is the method presented in the proof of [6 Theorem 26] . This proof works in the generality of set systems; here, we specialize it to the set system of closed neighborhoods in a graph.
The method presented in [6 ] follows the classic approach of Welzl [31 ] ; the contribution of [6 ] lies in analyzing the construction to derive the explicit bounds stated in Theorem 5.12. The method first constructs a tree T T T on the vertex set of G G G whose crossing number is bounded by α ′ : = log 2 n + 5 d ⋅ ∑ i = 1 n 1 f − 1 ( i / 2 ) \alpha' := \log_2 n + 5d \cdot\sum_{i=1}^{n} \frac{1}{f^{-1}(i/2)} α ′ := log 2 n + 5 d ⋅ ∑ i = 1 n f − 1 ( i /2 ) 1 in the following sense: every vertex x x x of G G G crosses at most α ′ \alpha' α ′ edges u v ∈ E ( T ) uv \in E(T) uv ∈ E ( T ) , where x x x crosses u v uv uv if exactly one of u u u and v v v belongs to N [ x ] N[x] N [ x ] . The vertex ordering ≼ \preccurlyeq ≼ is then obtained by running depth-first search on T T T and taking ≼ \preccurlyeq ≼ to be the preorder of T T T yielded by this search. As argued in [6 ] , the crossing number of ≼ \preccurlyeq ≼ (interpreted as a path consisting of edges joining vertices that are consecutive in ≼ \preccurlyeq ≼ ) is at most doubled compared to T T T . This implies a bound of 2 α ′ 2\alpha' 2 α ′ on the crossing number of ≼ \preccurlyeq ≼ , which translates to a bound of α = 2 + 2 α ′ \alpha= 2 + 2\alpha' α = 2 + 2 α ′ on the alternation of ≼ \preccurlyeq ≼ in our terminology (the additive + 2 +2 + 2 comes from accounting for the two neighbors of a vertex x x x in ≼ \preccurlyeq ≼ ). As running a depth-first search on T T T can be done in O ( n ) O(n) O ( n ) time, it remains to recall the procedure constructing T T T and argue that it can be implemented in O ( α 2 n 3 ) O(\alpha^2n^3) O ( α 2 n 3 ) time.
The procedure performs n − 1 n-1 n − 1 steps, where the i i i th step adds one new edge u i v i u_iv_i u i v i to T T T . During the procedure we maintain a weight function w : V ( G ) → N w: V(G) \to\mathbb{N} w : V ( G ) → N that satisfies the following invariant after every i i i th step:
w ( x ) = 2 k , where k is the number of edges in { u 1 v 1 , … , u i v i } crossed by x . (12) w(x) = 2^k,\qquad\text{where } k \text{ is the number of edges in } \{u_1v_1,\ldots,u_iv_i\} \text{ crossed by } x. \tag*{(12)} w ( x ) = 2 k , where k is the number of edges in { u 1 v 1 , … , u i v i } crossed by x . (12)
Note that since at the end, every vertex x x x crosses at most α ′ \alpha' α ′ edges of T T T , the weights are bounded by 2 α ′ 2^{\alpha'} 2 α ′ at all times.
The i i i th step proceeds as follows:
Select a pair of distinct vertices u , v ∈ V ( G ) − { u 1 , … , u i − 1 } u,v \in V(G) - \{u_1,\ldots,u_{i-1}\} u , v ∈ V ( G ) − { u 1 , … , u i − 1 } that, among such pairs, minimizes the value
ξ u v : = ∑ x ∈ V ( G ) : x crosses u v w ( x ) . \xi_{uv} := \sum_{\substack{x\in V(G):\\ x\text{ crosses }uv}} \mathrm{w}(x). ξ uv := x ∈ V ( G ) : x crosses uv ∑ w ( x ) .
Observe that the condition u , v ∉ { u 1 , … , u i − 1 } u,v \notin\{u_1,\ldots,u_{i-1}\} u , v ∈ / { u 1 , … , u i − 1 } guarantees that orienting the edges of T T T towards their u u u -endpoints yields an acyclic orientation in which every vertex has indegree at most 1 1 1 ; so at the end, after adding n − 1 n-1 n − 1 edges, T T T becomes a tree spanning the whole vertex set of G G G . As argued in [6 ] , the crossing number of the final tree T T T is bounded by α ′ \alpha' α ′ . Note that the algorithm works with access to G G G only and is oblivious to the function f f f .
To implement the algorithm efficiently, we explicitly maintain the weights w ( x ) \mathrm{w}(x) w ( x ) for x ∈ V ( G ) x \in V(G) x ∈ V ( G ) and the values ξ u v \xi_{uv} ξ uv for u v ∈ ( V ( G ) 2 ) uv \in\binom{V(G)}{2} uv ∈ ( 2 V ( G ) ) . Note that every value ξ u v \xi_{uv} ξ uv is bounded by 2 α ′ ⋅ n 2^{\alpha'} \cdot n 2 α ′ ⋅ n at all times, and assuming the RAM model with words of length O ( log n ) O(\log n) O ( log n ) , we can perform additions and comparisons on numbers of such magnitude in time O ( α ′ ) O(\alpha') O ( α ′ ) per operation. Initially all the weights w ( x ) \mathrm{w}(x) w ( x ) are set to 1 1 1 (this takes O ( n ) O(n) O ( n ) time) and initializing the values ξ u v \xi_{uv} ξ uv can be done in O ( n ) O(n) O ( n ) time per value, so in O ( n 3 ) O(n^3) O ( n 3 ) time in total.
In the i i i th step of the procedure, we first choose a suitable pair u v uv uv using O ( n 2 ) O(n^2) O ( n 2 ) arithmetic operations by iterating through all the relevant pairs and choosing one that minimizes ξ u v \xi_{uv} ξ uv . Next, we construct a list L i L_i L i consisting of all the vertices x x x that cross u v uv uv ; this takes time O ( n ) O(n) O ( n ) . For every vertex x ∈ L i x \in L_i x ∈ L i , we double the weight of x x x and update the values ξ u ′ v ′ \xi_{u'v'} ξ u ′ v ′ for all pairs u ′ v ′ ∈ ( V ( G ) 2 ) u'v' \in\binom{V(G)}{2} u ′ v ′ ∈ ( 2 V ( G ) ) that are crossed by x x x ; the latter is done by adding the pre-update weight of x x x to ξ u ′ v ′ \xi_{u'v'} ξ u ′ v ′ . This requires O ( n 2 ) O(n^2) O ( n 2 ) arithmetic operations per vertex x x x on L i L_i L i ; hence O ( ∣ L i ∣ ⋅ n 2 ) O(|L_i|\cdot n^2) O ( ∣ L i ∣ ⋅ n 2 ) arithmetic operations in total.
Here is the key observation of the analysis. The sum of the lengths of the lists L i L_i L i counts the total number of times the crossing number of some vertex increases; but at the end, every vertex x x x crosses at most α ′ \alpha' α ′ edges of T T T . Therefore we have ∑ i = 1 n − 1 ∣ L i ∣ ≤ α ′ n \sum_{i=1}^{n-1}|L_i| \le\alpha' n ∑ i = 1 n − 1 ∣ L i ∣ ≤ α ′ n . It follows that the whole iteration uses O ( n 2 ⋅ ∑ i = 1 n − 1 ∣ L i ∣ ) ≤ O ( α ′ ⋅ n 3 ) O(n^2\cdot\sum_{i=1}^{n-1}|L_i|) \le O(\alpha'\cdot n^3) O ( n 2 ⋅ ∑ i = 1 n − 1 ∣ L i ∣ ) ≤ O ( α ′ ⋅ n 3 ) time and arithmetic operations in total. As every arithmetic operation takes O ( α ′ ) O(\alpha') O ( α ′ ) time and α ′ ≤ α \alpha' \le\alpha α ′ ≤ α , we arrive at the promised time complexity of O ( α 2 n 3 ) O(\alpha^2 n^3) O ( α 2 n 3 ) .