Manuscript Offprint
arXiv:2611.06804Monadically Dependent Graph Classes Have Almost Bounded Merge-Width
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
A graph class is monadically dependent if one cannot interpret all graphs in vertex-colored graphs from using a fixed formula of first-order logic. We prove that every monadically dependent graph class has almost bounded merge-width, thereby confirming a conjecture of the first and the last author [STOC '25]. Our proof is algorithmic and the witnessing decompositions in the form of merge sequences can be computed in nearly-cubic time. This is a step towards the proof of fixed-parameter tractability of model checking first-order logic on monadically dependent graph classes, which is achieved in a companion paper.
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.
Contents
1 Introduction 1
2 Overview 3
3 Preliminaries 11
4 Damping Theorem, and derivation of the main result 15
5 Ingredients 17
6 Predamping Lemma 22
7 Finding the flip 28
8 Proof of the Damping Theorem 32
9 Conclusions 34
10 AI methodology 35
A Algorithmic aspects of Theorem 3.5 38
B Counting types of formulas 39
C Algorithmic claim of Theorem 5.12 41
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 be a monadically dependent class of graphs. Then the model checking problem for first-order logic on is fixed-parameter tractable: There exists an algorithm that given a graph and a first-order sentence , verifies whether holds in in time , for some constant .
As observed by Adler and Adler [1] following a result of Podewski and Ziegler [28], on monotone graph classes monadic dependence coincides with the concept of nowhere denseness of Nešetril 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 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 , and conjectured the following two assertions that together would amount to a proof of Conjecture 1:
(1) Monadically dependent graph classes have almost bounded merge-width: for every , the radius- merge-width of any graph is bounded by a subpolynomial function of the size of . (The function may depend on and .) Moreover, suitable decompositions (called merge sequences) witnessing the almost boundedness of merge-width can be efficiently constructed.
A graph class is monotone if it is closed under taking subgraphs, and hereditary if it is closed under taking induced subgraphs. A function is subpolynomial if for every , .
Note that there are monadically dependent classes that have unbounded merge-width , 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 merge-width of any member of the class is bounded by a constant depending on 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. In this paper, we implement Step (1) in full by proving the following result.
Theorem 1.1. For every and monadically dependent graph class , there is a subpolynomial function such that for every n-vertex graph , the radius-r merge-width of G is bounded by .
Moreover, given , a merge sequence for G of radius-r width bounded by can be computed in time .
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:
Examples are all classes that are nowhere dense but have unbounded expansion [16], such as the class of graphs whose girth is bigger than their maximum degree [27, Lem. 8].
The notation hides subpolynomial factors.
- is monadically dependent,
- is dependent [9],
- has almost bounded merge-width [16],
- has almost bounded flip-width [29],
- is flip-breakable [14],
- is flip-separable [4],
- first-order model checking is fixed-parameter tractable on [14, 15]. (The implication (7)→(1) assumes )
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. We thank Rose McCarty for insightful discussions and contributions to the early development of the ideas in this paper.
2 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.
2.1 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 be a graph. The notion of a decomposition underlying partition merge-width is called a partition sequence: it is a sequence
of partitions of the vertex set of such that
-
is the partition into singletons;
-
has one part ; and
-
every next partition is a coarsening of (which is denoted by ).
The intuition is that the partitions should describe a process of iterative merging of various parts of the graph , 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 provides good control over the “information flow” in . This control is measured by the width of the partition sequence; a notion whose definition is quite subtle.
Let be a partition of the vertex set of . (Think: for some .) A -flip of is any graph that can be obtained from as follows: For any pair of parts , either leave all the edges between and intact, or complement the adjacency relation between and ; that is, replace all the edges with and with non-edges, and vice versa. In this definition we allow , which corresponds to either leaving the adjacency relation within intact or complementing it.
With this definition, we introduce the -metric [19] on the vertex set of : for , we set
where is the standard shortest-path distance metric in . The intuition behind this definition is that measures how well controls short connections between and by verifying whether these connections can be destroyed in a -flip. As observed in [19], is indeed a metric on the vertex set of .
Now, for a radius parameter , the radius- width of a partition sequence is the smallest integer satisfying the following:
For every and vertex of , there are at most parts with .
Thus, the intuition is that every vertex of the graph is well-separated in the -metric from all but at most parts of . The +1 in the indices is important: While we measure distances with respect to the coarser partition (so the distances in the -metric can be larger than in the -metric), we measure the number of close parts in the finer partition . This allows a smooth control of the properties of partitions along the whole partition sequence.
We remark that in the original definition of merge-width [16], distances are measured in “error graphs” that accumulate more and more error edges along the partition sequence, and each error graph must be “compatible” with a single -flip . Intuitively, working with partition merge-width allows us to consider all such -flips at the same time thanks to the flexibility of the -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 of the current partition are neither complete nor anticomplete to each other, then we consider this an “error edge” between whole parts and that affects all the vertices of and . In merge-width, error edges (i.e., edges of the graphs as above) occur and are measured at the level of individual vertices, and thus vertices of a single part can be incident to error edges leading to many other parts of 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 -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 to denote an unspecified subpolynomial function of variable that may depend on parameters .)
Theorem 2.1 (Theorem 4.3, simplified). Let and be a monadically dependent graph class. Then there is an -time algorithm that given an -vertex graph , outputs a partition sequence of of radius- width bounded by subpoly.
Theorem 1.1 then follows from combining the statement above with the results of Drabik et al. [10].
2.2 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 and a subset of vertices , we define the partition of into 1-types over as follows:
-
every vertex of is placed into a singleton 1-type; and
-
vertices outside of are partitioned into 1-types according to their neighborhood in : have the same 1-type over if and only if .
Note that in general graphs, there can be as many as 1-types over : singleton types of the vertices , and corresponding to the different subsets of . By the Sauer–Shelah Lemma, this bound can be reduced to polynomial in assuming that the set system of neighborhoods in 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 is almost linear in the size of . This was proved very recently by the authors and Rose McCarty [12].
Theorem 2.2 ([12, Theorem 2]). Let be a monadically dependent graph class. Then for every graph and non-empty vertex subset , we have
Note that there are only 1-types corresponding to the vertices of , hence Theorem 2.2 implies that (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.
2.3 Reduction to the Damping Theorem
In the proof of Theorem 2.1, we will actually construct a sequence of vertex subsets
and put
Thus, it is clear that is a partition into singletons, has one part , and every next partition is a coarsening of ; so is a partition sequence. Our goal is to construct the sequence so that this partition sequence has subpolynomial radius- width.
For the rest of this overview it is convenient to phrase the width in terms of balls. For a partition of , a vertex , and , let ; that is, is the set of vertices that are at distance at most from in every -flip of . Similarly, for a graph , we let be the

Figure 2: Construction of the sets and on a complete binary tree , where and each set is obtained from by removing the lowest level. In this example, the sets are nested, so . (In general, the sets need not be nested.) The panels show the resulting partition sequence . In the fourth panel, the -marked set is for every ; it intersects three parts of , so it contributes three to the radius- width of this partition sequence.
set of vertices at distance at most from in . The radius- width of the partition sequence above is then the least such that for every and every vertex , the ball intersects at most parts of . Hence Theorem 2.1 follows immediately from the following statement.
Theorem 2.3 (Theorem 4.3, simplified). Let and be a monadically dependent graph class. Then for every -vertex graph one can compute in time a sequence of vertex subsets such that for every and vertex , the ball intersects at most subpoly parts of . In particular, is a partition sequence of radius- width bounded by subpoly.
We construct this sequence in steps, and each step contributes subpoly to the width. Hence, the final width grows linearly in . The key is to make every step halve the remaining work, leading to , which is absorbed by subpoly. More precisely, we maintain a set of vertices that still need to be processed. Initially, . In a single step, we replace by a new set of vertices that still need to be processed, with , so that after at most steps no vertices are left. The sets need not be nested, that is, a vertex may need to be processed again later. Accordingly, we let be the set of all vertices that were processed at step 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 and yields .
Theorem 2.4 (Damping Theorem; Theorem 4.1, simplified). Let and be a monadically dependent graph class. Then for every -vertex graph and , one can compute in time a set with and a -flip of such that for every vertex , the ball intersects at most subpoly parts of .
Note that two different partitions appear in the statement. The flip is taken with respect to the coarser partition , but the parts intersected by the balls are counted in a finer one, . This mirrors the +1 offset in the definition of radius- width, where distances are measured in the coarser -metric and close parts are counted in the finer partition .
We call the output a damper of the input . Figure 3 shows an example of , the flip , and the partitions and . The proof of the Damping Theorem is the key technical substance of this paper, and we sketch it in the next subsection.
Proof sketch of Theorem 2.3 using Theorem 2.4 (Damping Theorem). We let each be a damper of , witnessed by a -flip . Since dampers have at most half the size, .

Figure 3: An example of the Damping Theorem. The graph consists of three rows of vertices of equal length , with edges joining vertices in different columns and adjacent rows; additionally a vertex adjacent to the middle row is added. The input set is the bottom row and the output is . The shaded sets are the parts of , and the dashed sets are the parts of . The flip complements the adjacency between and the middle row, and between the middle row and the union of the top and bottom rows. While the original ball (marked ) intersects parts of , the flipped ball (marked ) intersects only three parts of , for every .
Fix and a vertex , and let . (For and , this is the -marked set in Figure 2.) For every we have , so is also a -flip, and therefore . By the Damping Theorem, intersects at most subpoly parts of , and hence also of the coarser partition . However, to prove the theorem, it remains to show that intersects at most subpoly parts of , which is the common refinement of the partitions for . This is not immediate: a priori the number of parts of intersected by is bounded only by the product of the numbers of parts of the partitions intersected by . 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 intersects parts of , for each , then intersects at most subpoly parts of . Since each is bounded by subpoly and there are at most indices , this is subpoly, as desired. For the full proof see Section 4.
2.4 Proving the Damping Theorem
We now discuss the proof of the Damping Theorem (Sections 5 to 8). Its key building block is the following routine.
Neighborhood Damping routine Input: a set . Output: a set with and a -flip of in which the neighborhood of every vertex intersects few parts of a partition satisfying certain properties.
For instance, is allowed, which gives the Damping Theorem for . For larger , this is not enough, as few parts per neighborhood do not imply few parts per ball: in Figure 4, the neighborhood of intersects a single part of , but its neighbors lead to different parts, so 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 (Lemma 6.1 and Corollary 7.8). So we look for a partition that exposes such conflicts already at distance 1: few parts of per neighborhood should imply few parts of per ball of radius . A natural way to achieve this is for to separate vertices that lead to different parts, as the dashed partition in Figure 4 does for the neighbors of .

Figure 4: A -flip of . The neighborhood of intersects only a single part of , while unfortunately intersects many. The finer partition into 2-types (dashed, shown within , defined below) exposes this conflict already at distance 1.

Figure 5: The 1-types over a set , and the 2-types over within the top 1-type. In the middle row, and 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 is anticomplete to the left one and mixed to the other two.
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 of vertices and . A vertex attaches to an -type over in one of three ways:
• is complete to : it is adjacent to all vertices of ;
• v is anticomplete to Q: it is adjacent to no vertex of Q; or
• v is mixed to Q: neither of the above.
Two vertices have the same -type over if they have the same -type over and attach in the same way to every -type over . Thus the partition of into -types over refines . See Figure 5 for an example.
The -types are exactly what we were looking for in the Neighborhood Damping routine (Lemma 8.1): For every set , every -flip of , and every , we have
Hence, running the Neighborhood Damping routine with and applying (2.1) with to the resulting -flip (which is in particular a -flip, as ) proves the Damping Theorem.
Predampers. The Neighborhood Damping routine is implemented in two steps: first we construct the set , using the following lemma, and then we construct the flip . The lemma measures how differently two vertices look from the perspective of a partition of : let for distinct , and , and let be the number of parts of that intersect .
Lemma 2.5 (Predamping Lemma; Lemma 6.1, simplified). Let and be a monadically dependent graph class. Then for every -vertex graph and every sufficiently large set , one can compute in time a set such that, denoting :
(A1) ;
(A2) every vertex has a vertex with ; and
(A3) any two vertices in the same 1-type over satisfy .
A set as above shall be called a predamper of .
Proof sketch of Theorem 2.4 (Damping Theorem) using Lemma 2.5 (Predamping Lemma).
Let be a predamper of . We construct a -flip in which the neighborhood of every vertex intersects only parts of . This is the output of the Neighborhood Damping routine, so together with (2.1), it proves the Damping Theorem. For every 1-type over , pick and let . By (A2), (A3), and the triangle inequality, for all . As , the set is a union of parts of , so we may flip the adjacency between and every 1-type over contained in . This turns the neighborhood of every into , which intersects only parts of . The choices for and may disagree on whether to flip the pair ; a majority vote over the pairs of parts of with and resolves this at the cost of a factor 3 (Lemma 7.2). Let be the resulting flip. For the full proof, see Sections 7 and 8.
2.5 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 , we construct a predamper of . We start with and add vertices to according to three rules (R1)–(R3), as long as one of them applies. The rules refer to the current partition , which gets finer as grows. We fix an arbitrary ordering of , call the minimum of each part of its representative, and let be the set of representatives. When a part is split, its representative remains the representative of one of the new parts, so only grows as 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 times, where is the final set. This gives , and hence .
Crossing. Let be the least number such that for every non-empty . For 1-types, Theorem 3.3 gives a bound . This bound can actually be lifted to -types (Lemma 5.1) because they are first-order definable (Claim 5.2): the -type of a vertex over is determined by three fixed first-order formulas evaluated against a set containing one representative of each -type over , 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 , we get (Lemma 5.1). As we are ultimately interested in , denote ; then .
The subpolynomial bound on implies an almost linear bound on in terms of , which is the main property of that the Neighborhood Damping routine needs. A vertex crosses a part if and is neither complete nor anticomplete to . The first rule is the following.
(R1, simplified) If a vertex crosses more than parts of , add to .
Observe that each application of this rule splits all the crossed parts, because refines , so it increases the number of parts of by more than . Since only gets finer as grows, if (R1) is applied times, then the final partition has more than parts. As it also has at most parts, we get , which implies .
Rule (R1) lets us ignore crossed parts. Precisely, let be the number of parts of entirely contained in . Every other part that intersects contains or , or is crossed by or by . So once (R1) no longer applies,
Hence it suffices to establish the following revised assertions:
(A2') Every vertex has a vertex with .
(A3') Any two vertices in the same 1-type over satisfy .
Packing. Towards ensuring (A2'), we introduce the following rule:
(R2, simplified) If a vertex satisfies for all , add to .
Once (R2) no longer applies, (A2') holds with the bound (which we will soon set to the desired ). To bound the number of applications, let be the set of vertices added by (R2). Let and be the final sets. As contains one representative of each part of , we have . Consider distinct , where was added after . When was added, we had , and as refining can only increase , this also holds for the final partition. So contains more than parts of the final partition, and hence also more than of their representatives: . Bounding is therefore a packing problem. The packing ratio of is the least such that for every and with and for all distinct , we have . Combined with the almost linear bound on the number of 1-types, Haussler's Packing Lemma [21] yields (Lemma 5.9). Hence . So if we choose , we conclude that (R2) is applied at most times.
Hitting symmetric differences. Two vertices have the same 1-type over if and only if is disjoint from . So (A3') asks that hits whenever , for a threshold chosen below. As contains one representative of each part of , such a set contains at least vertices of ; so it suffices that hits every set containing at least vertices of . That is, should be an -net for these sets with respect to the uniform measure on , with . If were fixed, a random sample would do: including every vertex of with probability yields about vertices and, with high probability, hits every set with vertices of , provided . However, this argument is circular, for adding the sample to refines , and the new representatives were never sampled. What we need is an online version of -nets.
(Online -net) Let be a set system on a set , and let . An adversary repeatedly adds elements to a set . After each addition, we may add elements of to a set , but never remove any, so that again intersects every with at least elements of . The goal is to keep for a small factor .
In our setting, consists of the sets , and . Every vertex added to , whether by (R1), by (R2), or by the net itself, refines and may thereby add new representatives to . 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 -net with . The third rule follows this net.
(R3, simplified) If the online -net, given the current set , adds a vertex , add to .
Once (R3) no longer applies, hits every set with at least vertices of , which gives (A3'). By the guarantee of the online -net, and as in the end, (R3) is applied at most times. Choosing , this is at most .
We remark that the above description using an online -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) -nets, see e.g. [2, Theorem 1.3].
3 Preliminaries
Basic notation. We write for the set of positive integers. For we denote . The symmetric difference of sets and is the set . For two partitions and of the same set, we say that is finer than, or is a refinement of , and that is coarser than, or is a coarsening of , if every part of is contained in a single part of . We denote it by .
Asymptotics. We use the standard notation that hides constant multiplicative factors. For a tuple of objects , we may decorate this notation as to signify that the hidden factors may depend on . Typically, will consist of a monadically dependent graph class and a distance parameter , both fixed in the context.
Call a function subpolynomial if for every real , we have
We write subpoly() for an anonymous subpolynomial function, and in particular means that is bounded by a subpolynomial function of . If satisfy , then also and . We sometimes use the notation to denote a subpolynomial function that may depend on a tuple of objects . Also, we use notation to hide subpolynomial multiplicative factors, and we may write to signify that those factors may depend on .
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 of a graph , by we denote the open neighborhood, which is the set of all neighbors of in , and by we denote the closed neighborhood, defined as . We also write . Further, the open and closed symmetric difference of distinct vertices and are defined as
We define . In this notation, we may drop the graph in the subscript if it is clear from the context.
The (shortest path) distance between vertices and in a graph is denoted by . The ball with center of radius in is the set of all the vertices that are at distance at most from in . We denote it by .
A vertex in a graph is complete to a vertex subset if and is adjacent to every member of . Similarly, is anticomplete to if and is non-adjacent to every member of . We say that is homogeneous to if is either complete or anticomplete to . Note that if , then cannot be homogeneous to . More generally, for disjoint , we say that and are complete (resp. anticomplete) to each other if every vertex of is complete (resp. anticomplete) to ; and are homogeneous to each other if they are complete or anticomplete to each other.
A vertex ordering of a graph is a total order on the vertices of .
VC dimension. A set system over a set is a family of subsets of . The VC dimension of a set system over is the maximum cardinality of a set that is shattered by in the following sense: For every there exists such that .
Transducibility and monadic dependence. We use first-order logic on graphs, with adjacency represented by the relation adj. For , a -colored graph is a graph equipped with unary predicates . A -coloring, or expansion, of a graph assigns interpretations of these predicates on ; the predicates need not be disjoint.
For a -colored graph and a first-order formula in its signature, define to be the graph with vertex set in which distinct vertices are adjacent if and only if holds in .
For two graph classes , we say that transduces , or that is transducible from , if there are and a first-order formula in the signature of -colored graphs such that every graph can be obtained from some graph by first choosing a -coloring of and then taking an induced subgraph of . The central concept studied in this paper is the following.
Definition 3.1. A graph class is monadically dependent if 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 there is a constant such that for every , the set system over has VC dimension at most .
Proof. Suppose that the set system for some graph shatters a set . Pick any graph with vertex set . For every edge , choose a vertex such that , and color all chosen vertices with a distinguished predicate , obtaining a 1-coloring of . Let be the first-order formula with one unary predicate asserting that there is a vertex with . Then is the subgraph of induced by . If the VC dimensions of these set systems over graphs in were unbounded, the fixed formula would therefore witness that transduces the class of all graphs, contradicting monadic dependence.
1-types. Let be a graph and a set of its vertices. We say that two vertices have the same 1-type over if either , or and (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 the partition into 1-types over , and denote it by . Note that if then is coarser than .
Neighborhood complexity. As mentioned in Section 2, 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 is almost linear in the cardinality of .
Theorem 3.3 ([12]). For every monadically dependent graph class , there is a function with such that for any graph and non-empty set , we have
Theorem 3.3 is closely related to the following concept: the shatter function or the neighborhood complexity of a graph is the function that maps every to the maximum of among vertex subsets of cardinality . Thus, Theorem 3.3 asserts that in monadically dependent classes, the shatter function is always bounded by for a subpolynomial function that depends only on the class .
Flips and definable flips. Let be a graph with vertex set and be a partition of its vertex set. A -flip of is a graph with the same vertex set as such that for every pair of parts (possibly ) one of the following cases holds:
Thus, a -flip of can be fully described by and a symmetric binary relation which distinguishes those pairs for which the second case above occurs; then is obtained by complementing the adjacency relation between and , for every pair of parts with .
For , an -definable flip – or more briefly, an -flip of – is a -flip of , where is the partition of into 1-types over . The following observation is immediate.
Observation 3.4. Let be a graph and be partitions of the vertex set of such that is a refinement of . Then every -flip of is also a -flip of . Consequently, if are two vertex subsets, then every -flip of is also a -flip of .
Flip metric. Next, we recall the concept of flip-metric, introduced by Gajarsky et al. in [19]. Let be a graph and be a partition of the vertex set of . For vertices , we define
The idea behind this definition is to measure the distance between and relative to a partition , but instead of committing to doing so in a single -flip, to consider all the possible -flips at once.
As observed in [19], is a quasi-metric on the vertex set of . Note that radius- balls in this quasi-metric take the following form:
In the literature, the shatter function/neighborhood complexity typically counts the number of distinct neighborhoods of the form for . Here, we find it more convenient to measure instead. The two quantities differ by an additive term of at most , which is immaterial for our purposes.
A quasi-metric is a metric that can take value .
Merge-width
We first recall the definition of merge-width as introduced by Dreier and Toruńczyk [16]. Let be a graph with vertex set . By we denote the set of unordered pairs of distinct vertices of . A merge sequence for is a sequence
such that
-
is a sequence of ever coarser partitions of the vertex set of , where is the partition into singletons and has one part ;
-
is an inclusion chain of sets of pairs of vertices of ;
-
for every and pair of parts (possibly ), either all pairs with , are edges in , or they are all non-edges in .
For , the radius- width of the merge sequence is the smallest integer satisfying the following property:
For every and , intersects at most parts of .
Note the +1 in this definition: It is important that while radius- balls are considered with respect to the larger edge set , we measure the number of intersected parts of the finer partition .
The radius- merge-width of is the smallest such that admits a merge sequence of radius- width at most . A graph class has almost bounded merge-width if for every , every -vertex graph in has radius- merge-width bounded by for some function . Having bounded merge-width is more restrictive: we require that the radius- merge-width of any is bounded by a constant depending only on and .
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 , and works with balls in the flip-metric instead.
A partition sequence for a graph is a sequence
of ever coarser partitions of the vertex set of such that is the partition into singletons and has one part . For , the radius- width of is the smallest integer satisfying the following:
For every and , intersects at most parts of .
Again, the radius- partition merge-width of is the least such that admits a partition sequence of radius- width at most .
The radius- partition merge-width of a graph is never larger than its radius- merge-width: The last condition in the definition of a merge sequence is equivalent to saying that there is a -flip of that is a subgraph of , so the bound on the reachable parts of 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 , be a graph, and be the shatter function of . Let be the radius-(6) partition merge-width of . Then has radius- merge-width at most .
Moreover, given a partition sequence for of radius-(6) width , a merge sequence for of radius- width at most can be computed in time, where is the vertex count of .
We note that for the algorithmic statement, Drabik et al. [10] only claim that the running time is polynomial. The bound stated above follows from a careful inspection of the proof combined with a simple amortization argument; we outline this in Section A.
4 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 and be a monadically dependent graph class. Then there exists a function with such that for any , -vertex graph , and vertex subset , there exist a set and an -flip of satisfying the following properties:
-
; and
-
for every vertex , intersects at most parts of .
Also, there is an algorithm that, given , and , computes such a set and an -flip in time .
The set and the flip act as a “damper” for , by reducing its impact on outside vertices . Crucially, is only a fixed fraction of the size of . We note that for the purpose of proving Theorem 1.1, it is sufficient to focus on the case in Theorem 4.1; that is, require that is at least twice smaller than . 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 and the quality of the flip . 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 .
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 be a graph and be such that for every non-empty . Let be vertex subsets. Further, for every , let be the number of 1-types over that are intersected by . Then the number of 1-types over intersected by is bounded by .
Proof. Consider any . We claim that there exists with such that whenever two elements of have different 1-types over , they also have different 1-types over . Let be a subset of containing one representative of each 1-type over intersected by ; thus . It suffices to find with such that the elements of have pairwise different 1-types over . Start with and as long as there exist two distinct vertices with the same 1-type over , add to any vertex that distinguishes and ; that is, or is non-homogeneous to . (Such a vertex always exists because have different 1-types over .) Every vertex added to strictly increases the number of 1-types over intersected by , hence after at most iterations we obtain the desired set .
Let ; thus and . We claim that if vertices have different 1-types over , then they also have different 1-types over . Indeed, since have different 1-types over , there exists that distinguishes and in the sense from the previous paragraph. Then for some . Consequently, and have different 1-types over , so they also have different 1-types over . As , it follows that and have different 1-types over .
From the observation above it follows that the number of 1-types over intersected by is equal to the number of 1-types over intersected by . We conclude by noting that the total number of 1-types over is bounded by .
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 and be a monadically dependent graph class. Then there is a function with such that for any integer and any -vertex graph , there exists a sequence of vertex subsets
with satisfying the following condition. For every and ,
where . In particular, is a partition sequence for of radius- width at most .
Moreover, given , , and , such a sequence can be computed in time.
Proof of Theorem 4.3 assuming Theorem 4.1. Let be the functions provided by Theorems 3.3 and 4.1 for the class and radius . Thus, and . Denote and , where is the vertex count of the considered graph .
We iteratively define sets and graphs as follows:
-
Set .
-
For , apply Theorem 4.1 with parameter to the set . Thus, in time we obtain a set satisfying and an -flip such that for every , intersects at most parts of . If , we finish the iteration and set . Otherwise, we proceed to the next step with the set defined.
Note that we have for every , hence the iteration must stop after at most steps, yielding . In particular we have due to , so sets and graphs can be computed in total time .
For , define
Thus , and sets can be computed from the sets in time. Denote .
Consider any and . Let . Note that is a subset of for every , hence by Observation 3.4, is also a -flip of . Consequently, we have
Since intersects at most parts of , it also intersects at most parts of , for this partition can only be coarser. We conclude that
We now apply Lemma 4.2 to the sets . Noting that , we thus conclude that
Therefore, we may set and note that .
Theorem 1.1 now follows from a straightforward combination of Theorems 3.5 and 4.3.
Theorem 1.1. For every and monadically dependent graph class , there is a subpolynomial function such that for every -vertex graph , the radius- merge-width of is bounded by .
Moreover, given , a merge sequence for of radius- width bounded by can be computed in time.
Proof. Applying Theorem 4.3 for and radius to the considered graph yields, in time, a partition sequence for of radius- width bounded by . We may now apply Theorem 3.5 to this sequence and thus obtain, in time, a merge sequence for of radius- width bounded by . By Theorem 3.3, is bounded by a polynomial (even almost linear) function, hence .
Finally, we derive a variant of Theorem 1.1 that will be used in [15].
Theorem 4.4. Let and be a monadically dependent graph class. Then for any rational and any -vertex graph , there is a sequence of vertex subsets
with , which satisfies the following condition. For every and ,
Moreover, there is an algorithm (independent of and ) which, given , and , computes such a sequence , and runs in time for graphs .
Proof. We may assume . We apply Theorem 4.3 with and radius parameter . This yields the desired sequence of vertex subsets with . The bound on the number of 1-types over intersected by a radius- ball in the -metric becomes
Since , this quantity is bounded by . Finally, the running time is bounded by by Theorem 4.3.
5 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.
The notation hides subpolynomial factors.
5.1 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 and , two vertices of have the same 1-type over if either , or and .
For an integer , we define the partition into -types over inductively as follows. Two vertices have the same -type if and only if the following conditions are satisfied:
• u and have the same -type over A;
• for each , is complete to if and only if is complete to ; and
• for each , is anticomplete to if and only if is anticomplete to .
Note that the exclusion of or from in the definition is relevant only if ; otherwise, the conditions just speak about (anti)completeness to . Also observe that if then is coarser than .
In the next lemma we extend Theorem 3.3 to r-types. The proof is a reduction to Theorem 3.3 that exploits first-order definability of the partition into r-types.
Lemma 5.1. For every monadically dependent graph class and , there is a function with such that for any graph and non-empty set , we have
Proof. We first observe that the partitions into r-types are definable in the following sense.
Claim 5.2. For every there is a first-order formula over -colored graphs such that for any graph , vertex subset , and vertices , we have
Proof of the claim. This follows from a straightforward encoding of the inductive definition of r-types in first-order logic. Precisely, for r = 1 we may use the formula
For , formula can be constructed from as follows:
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 of first-order formulas over colored graphs, a colored graph , and a set , let denote the partition of into -types over : vertices belong to the same part if and only if, for every and , we have that holds in .
Lemma 5.3. Fix a finite set of first-order formulas , possibly using a fixed finite set of vertex colors, and a monadically dependent graph class . There is a function with such that, for every graph , every expansion of by the colors occurring in , and every non-empty set , we have
The proof of Lemma 5.3 proceeds by lifting Theorem 3.3 in a standard way, and is deferred to Section B.
For , let consist of the three formulas asserting, in the colored graph , that
• x and y have the same -type over A;
• x is complete to the -type of y over A, with x itself removed; and
• x is anticomplete to the -type of y over A, with x itself removed.
These formulas exist by Claim 5.2 and depend only on . For each , choose a set containing exactly one representative of each -type over . Then
the first formula identifies the -type of a vertex, while the other two record its attachments to every -type. For , Theorem 3.3 gives . Applying Lemma 5.3 inductively now yields
as required.
Partition selectors. We introduce some terminology to conveniently capture some of the key properties of the partitions . A partition selector is a function that to a graph and a set of vertices assigns a partition of the vertex set of . We will only be interested in the partition selectors for in this paper.
We call a partition selector monotone if is a coarsening of whenever . Also, is -time computable if there is a -time algorithm computing given and , where is the number of vertices of .
It is clear from the definition that is monotone and it is always the case that is a refinement of . More generally, we call a partition selector respectful if for any graph and , is a refinement of ; thus is respectful.
Definition 5.4. The growth ratio of a partition selector on a graph is the least integer such that
In particular, Lemma 5.1 immediately implies the following.
Theorem 5.5. For every monadically dependent graph class and , there is a function with such that for any -vertex graph , has growth ratio at most on .
Proof. It suffices to note that in the context of Lemma 5.1, and we may assume without loss of generality that is non-decreasing.
Finally, we note that the partition selectors are computable in quadratic time.
Lemma 5.6. There is an -time algorithm that given , an -vertex graph , and a vertex subset , computes the partition .
Proof. For , we may compute partition in time by first computing for every vertex a Boolean vector of length representing its neighborhood in , and then applying radix sort to those vectors. For larger , it suffices to show how to compute from in time, for any . For this, we compute, for every vertex and part , the number of vertices that are adjacent to ; call this number . This can be done in total time by considering every edge of and incrementing numbers and , where are such that and . Once the numbers are computed, we may easily determine, for every vertex and part , whether is anticomplete, complete, or non-homogeneous to . This yields, for every vertex , a vector of length that describes for every part one of six possible states: (i) whether belongs to or not, and (ii) whether is anticomplete, complete, or non-homogeneous to . Sorting these vectors using radix sort and grouping consecutive duplicates yields the desired partition in time .
5.2 Packing ratio
We will use the well-known result due to Haussler [21]. The bound in the following formulation follows from the proof in [23].
Theorem 5.7 (Haussler's Packing Lemma). Let be a set system over a finite set with such that the following properties hold for some reals and numbers :
• has VC dimension at most d, and
• for all distinct .
Then
It will be convenient to encapsulate Haussler's Packing Lemma in the following definition.
Definition 5.8. The packing ratio of a graph G is the least integer with the following property:
For all sets with and every such that for all distinct , we have .
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 be a graph, be the growth ratio of on , and be the maximum of 1 and the VC dimension of the set system . Then the packing ratio of is at most
Proof. We first show . This is immediate if . Otherwise, let be a shattered set of size . Then
Using the elementary inequality , we obtain , and hence .
Denote . Consider vertex subsets with and such that for all distinct . Note that since is positive, for all distinct we have , so
The constant on page 158 of [23] can be taken to be in our notation, and the last inequality on page 159, for , translates to the inequality (5.1).
In particular, the bound holds whenever , since . So from now on we may assume that .
Let
Note that the assumption for distinct implies that the sets for are pairwise different (so ) and
For every non-empty , we have
and the VC dimension of is at most . Thus we may apply Theorem 5.7 to over with , and separation parameter , using (5.2). This gives
where the second inequality follows from .
By combining Theorem 3.3 with Lemma 5.9 we immediately get the following.
Corollary 5.10. For every monadically dependent graph class there is a function with such that every -vertex graph has packing ratio at most .
5.3 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 be a graph and be a vertex ordering of . The alternation of is the least integer with the following property:
For every vertex of , there are at most pairs of vertices that are consecutive in and satisfy .
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 [6, Theorem 20]). Let be an -vertex graph and be a strictly increasing function such that for every non-empty . Further, let be the VC dimension of , treated as a set system over . Then there exists a vertex ordering of with alternation bounded by
Moreover, there is an -time algorithm that given , 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 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 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 ; it can be employed on any graph and it produces a vertex ordering satisfying the alternation bound for any function that satisfies the prerequisites. Also, when for some , we have
Then, the bound of Theorem 5.12 can be upper bounded by
Together with Theorem 3.3 and Observation 3.2, we immediately conclude the following.
Corollary 5.13. Let be an -vertex graph, be the growth ratio of on , and be the VC dimension of the set system . Then admits a vertex ordering of alternation bounded by , and such a vertex ordering can be computed in time.
Corollary 5.14. For every monadically dependent graph class there is a function with subpoly such that every -vertex graph admits a vertex ordering of alternation at most . Further, such a vertex ordering can be computed in time , given alone.
6 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 that is already suitable, but whose relevant properties are expressed in the language of -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 be a graph and be a set of its vertices. We say that a vertex crosses if and is not homogeneous to . For a partition of and two vertices of , we define their Hamming distance with respect to as
Note that for any two vertices , we have that if and only if , by our definition. It follows that if and only if . Moreover, since for any triple of vertices , we have that is symmetric and satisfies the triangle inequality; thus it defines a metric. Observe also that if is a refinement of , then we have
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 Section 2, we choose to express all the bounds in terms of three parameters:
- : the growth ratio of the considered partition selector;
• : the packing ratio; and
• : the alternation of a given vertex ordering.
The point of this is to make the formulation more robust with respect to various applications of the method; see the discussion in Section 9.
Lemma 6.1 (Predamping Lemma). Let be a monotone and respectful partition selector, be a graph, and be such that
• has growth ratio at most on ;
• G has packing ratio at most ; and
• G admits a vertex ordering of alternation at most .
Then for every and set with there exists a set such that
(A1)
(A2) for every there exists such that ; and
(A3) for any two vertices belonging to the same 1-type over S, we have
Moreover, assuming that is computable in time , there is an -time algorithm computing such a set given , , , and . The algorithm does not need to be provided the values of .
Proof. We describe an algorithmic procedure that constructs a suitable set . 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 . For this is clear, since the alternation of the provided vertex ordering can be easily computed in time. For and , the procedure we are going to present has the following feature: It can be run for any supposed values of and , and either it succeeds in finding a set satisfying the postulated properties for these supposed values, or it produces a witness that the growth ratio of on is larger than the supposed value of , or a witness that the packing ratio of is larger than the supposed value of . Therefore, we apply the procedure starting with and each time a witness is found, we increment the corresponding parameter or and run the procedure again. As a result, within at most re-runs we eventually find a set that satisfies the postulated bounds for the supposed values of and upper-bounded by their actual values. Consequently, from now on our goal is to design an -time procedure that is given the values of .
With the assumption above made, we proceed to the description of the procedure. Throughout the proof we denote
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 and iteratively add vertices to one by one according to rules that we will explain in a moment. During this process, we maintain the partition , which, due to the monotonicity of , can only get finer with each vertex added to . Moreover, for every part we let be the -minimum vertex belonging to , and call the representative of . We define the set of representatives
Note that when a vertex is added to during the procedure, every part of can possibly break into several new parts. The new part that contains retains as its representative, while every other new part is assigned a new representative. Therefore, can only grow by addition of new vertices.
We now describe the rules according to which vertices are added to . As long as any of the following rules can be applied, apply the first one which is applicable.
(R1) If there is a vertex that crosses more than parts of , then add to .
(R2) If there is a vertex such that for all , then add to .
(R3) If there is a vertex such that for every , there are at least vertices of lying strictly between and in , then add to .
Observe that in any application of any of the rules above, we must have . Indeed, to argue this for Rules (R2) and (R3) it suffices to consider supposing , while for Rule (R1), we note that a vertex of crosses no parts of due to being respectful. Thus, grows by one vertex with every application of a rule, and clearly no rule is applicable when . Therefore, the procedure eventually reaches a state in which no rule is applicable, yielding the final set , which we shall denote by . Our claim is that satisfies all the assertions from the lemma statement. Denote and .
Assertion (A2) follows immediately from the inapplicability of Rule (R2). Assertion (A3) is verified by the following claim and the observation that .
Claim 6.2. Suppose vertices and have the same 1-type over . Then
Proof of the claim. We may assume that , for otherwise the assumption that and have the same 1-type over implies that and the claim is trivial.
Suppose for contradiction that , which means that there are more than parts of that intersect . At most two parts of contain or , and, by the inapplicability of Rule (R1), at most parts of are crossed by or by . Therefore, there are more than parts such that , both and are homogeneous to , and intersects ; so in fact . Let be the set of those parts.
Since the alternation of is at most , there are at most pairs of vertices that are consecutive in and satisfy or . Therefore, the vertex set of can be partitioned into at most intervals in such that for every interval of the partition, either consists of a single vertex or , or both and are homogeneous to . Since , by the pigeonhole principle there exists an interval of the partition such that
Note that due to , so both and are homogeneous to . However, since for each , it must be that is complete to and is anticomplete to or vice versa; so in particular . Since and have the same 1-type over , no vertex of belongs to . We conclude that
From (6.1) and (6.2) it follows that there exists a vertex such that for every , there are at least vertices of lying strictly between and in . Indeed, one can take for instance to be a median vertex of in . This means that Rule (R3) is applicable to , a contradiction.
We are left with verifying Assertion (A1), that is, bounding the size of . Note that 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 has growth ratio at most on , we have
Claim 6.3. Rule (R1) is applied at most times.
Proof of the claim. Observe that since is respectful and monotone, every time Rule (R1) is applied on some vertex , every part of that is crossed by breaks into two or more new parts. Consequently, the number of parts of increases by at least . So if Rule (R1) is applied times in total during the procedure, then we have
Combining this with (6.3) yields .
Claim 6.4. Rule (R2) is applied at most times.
Proof of the claim. Let be the set of vertices added to by Rule (R2).
We first prove that for every two distinct vertices , we have
Indeed, assuming without loss of generality that was added to after , let us consider the time moment just before was added. At this point we already have , so since Rule (R2) adds to , we must have
where denotes the partition at the considered time moment. This means that there are more than parts of that intersect . Among these, at most two parts contain or , and at most parts may be crossed by or , because otherwise the lower-indexed Rule (R1) would be triggered instead of (R2). This leaves us with a set consisting of more than
parts of that do not contain or and intersect while being homogeneous both to and to ; so they are, in fact, contained in . In particular, . We conclude that
this establishes (6.4).
Noting that is non-empty, the assumption that the packing ratio of G is at most implies that
By combining this with (6.3), we get
Claim 6.5. Rule (R3) is applied at most times.
Proof of the claim. Let be the set of vertices added to by Rule (R3). Observe that for any two distinct vertices , there are at least vertices of lying strictly between and in . Indeed, assuming without loss of generality that was added later than , at the time of adding there were at least vertices of lying strictly between and , and . Therefore, if we consider the vertices of ordered by , then between any two consecutive such vertices there are at least vertices of . It follows that
By combining this with (6.3) we conclude that
where the last inequality follows from the assumption .
By Claims 6.3 to 6.5, the total number of applications of any of the rules is at most . Hence
This verifies Assertion (A1) and finishes the verification of the requested properties of .
Runtime. We are left with showing that the procedure can be implemented so that it runs in time. As argued, the number of times the procedure applies any of Rules (R1), (R2), (R3) is . Hence, it suffices to argue that finding an applicable rule and applying it can be done in time, because then the total running time will be bounded by
as promised. Applying a rule always amounts to adding a vertex to , recomputing the partition , and augmenting the set of representatives , which takes time . So we only need to show how to find an applicable rule in time . For this, we consider the rules one by one.
As for Rule (R1), for any given vertex , we may easily count the number of parts of crossed by in time by counting the number of neighbors of in every part of . Hence, finding a vertex to which Rule (R1) is applicable can be done in time .
As for Rule (R3), by scanning the ordering twice, in opposite directions, in time we may compute the following two counts for every vertex : the number of elements of lying between and the -smallest satisfying (or if such does not exist), and the number of elements of lying between and the -largest satisfying (or if such does not exist). Finding to which Rule (R3) can be applied boils down to finding for which both those counts are at least . So verifying the applicability of this rule can be done in time.
Finally, a straightforward implementation of Rule (R2) – for every pair of vertices compute in time – runs in total time . We now show how this complexity can be reduced to .
First, we will need the following data structure result.
Claim 6.6 ([5, Theorem 16]). Given and a list consisting of binary strings of length each, one can in time construct a data structure that allows answering the following query in time: given two strings , decide whether . Here, is the Hamming distance between strings and : the number of positions on which and 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.
Precisely, if this bound were ever to be exceeded, then the procedure must have detected a witness that the supposed value of or is too small. This results in restarting the procedure with the appropriate value incremented. Note that this requires detecting which of the two bounds or was violated. If (R1) or (R3) were executed too often, we know that needs to be increased. If (R2) was executed too often, then we increase when has the desired size, and otherwise.
Claim 6.7. We may in time construct a data structure that allows answering the following query in time: for given and part , decide whether .
Proof of the claim. For every vertex and part , compute a binary vector of length representing the neighborhood of in . For every part , sort all the vectors using radix sort in time , partition the obtained list into groups of consecutive duplicates (also in time ), and for every record the group on the list of to which belongs. Now, deciding whether boils down to verifying whether and belong to the same group on the list of .
Armed with Claims 6.6 and 6.7, we proceed as follows. Similarly to the proof of Lemma 5.6, in total time we may compute, for every and part , the number of neighbors of in . This allows us to deduce whether is anticomplete, complete, or non-homogeneous to . Note that for every vertex there are at most parts to which is non-homogeneous: the one part to which belongs, and the at most parts that crosses. (Otherwise, the lower-indexed Rule (R1) would be applicable.) For each vertex we compute the set consisting of those at most parts. Also, we compute a Boolean vector of length where the coordinate corresponding to a part is equal to 1 if and only if and is complete to .
Consider now any two vertices ; we design a procedure to efficiently decide whether . This can be done as follows:
-
If , then , so assume below.
-
Inspect every part and determine whether intersects by checking whether , or , or . The last check can be done in constant time provided we set up the data structure of Claim 6.7 beforehand. Since , this can be done in time . We let be the number of parts that intersect .
-
Similarly to the above, by inspecting the parts of one by one we can, in time , compute the number of parts such that exactly one of and is complete to . Call this number .
-
We now observe that
where again, is the Hamming distance between strings and . Indeed, the quantity counts the number of parts such that exactly one of and is complete to . For parts , both and are homogeneous to , so exactly one of being complete to is equivalent to having a non-empty intersection with . For parts , subtracting and adding rectifies the contribution of those parts so that it corresponds to the number of parts in that intersect .
- By (6.5), determining whether reduces to determining whether , where . Noting that , this query can be answered in time provided we set up the data structures of Claim 6.6 for and all beforehand. (Formally, the strings in are of length , but we can pad them to length with zeroes.)
The above procedure determines whether in time , so applying it for every and allows verifying the applicability of Rule (R2) in time . This is conditioned on the data structures of Claims 6.6 and 6.7 being initialized beforehand (the former for every ), which can be again done in time .
7 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 ; now the goal is to find a suitable -flip. However, instead of talking directly about -flips, we find it convenient to express the goal of the current step using the following terminology.
Let be a graph and be partitions of the vertex set of such that is a refinement of . (Later, it will typically be the case that and for some and a monotone, respectful partition selector .) For a binary relation and a part , we denote
Note that in this definition we do not require to be symmetric. The intuition is that is the out-neighborhood of with respect to . We define the mismatch of with respect to as the smallest integer satisfying the following:
For every part of and vertex , the set intersects at most parts of .
We first observe that Lemma 6.1 yields the following statement expressed in the terminology of mismatch.
Lemma 7.1. Let be a monotone and respectful partition selector, be a graph, and be such that
-
has growth ratio at most on ;
-
has packing ratio at most ; and
-
admits a vertex ordering of alternation at most .
Then for every and a non-empty set there exists a set with and a relation such that the mismatch of with respect to is at most .
Moreover, assuming that is computable in time , there is an -time algorithm computing such a set and relation , given , and .
Proof. We start by considering the corner case when . Then we set and . Note that since the growth ratio of on is at most , we have . As , the postulated bound on the mismatch of with respect to holds trivially. Hence, from now on we may assume that .
Let be the set obtained by applying Lemma 6.1 to . For every 1-type , we fix an arbitrary vertex . By Assertion (A2) of Lemma 6.1, we may find a vertex such that
where . Note that computing takes time , while computing the vertices can be done in total time 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 as follows: For any , set
Since verifying whether is complete to can be done in time , the relation can be computed in total time . Also note that since and is a 1-type over , we have that or is homogeneous to . Therefore, consists of the union of those 1-types to which is complete. By combining this observation with the definition of we conclude that
We claim that the relation defined in this way satisfies the postulated bound on the mismatch with respect to . For this, consider any vertex and let be the 1-type over to which belongs. By assertion (A3) of Lemma 6.1, we have
By (7.1) and the triangle inequality, we infer that
This means that the set intersects at most parts of . As by (7.2), this proves the desired bound on the mismatch of .
Recall that to define an -flip of the considered graph , we have to provide a symmetric binary relation . The relation provided by Lemma 7.1 is not necessarily symmetric, and hence it does not immediately define an -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 be a graph and be partitions of the vertex set of such that is a refinement of . Let be a relation such that the mismatch of with respect to is at most , for some . Then there is also a symmetric relation such that the mismatch of with respect to is at most .
Moreover, given , and , such a relation can be computed in time .
Proof. Call a pair of parts compatible if
and incompatible otherwise. Note that if are incompatible, then .
For every part we choose an arbitrary vertex and call it the representative of . For a part , by we denote the set of all parts such that ; thus is a partition of . For parts , and , say that agrees with if
and disagrees with otherwise.
We note the following two observations about this definition.
Claim 7.3. Suppose , and are such that and disagrees with . Then
Proof of the claim. Since disagrees with , exactly one of the assertions “ and are adjacent in and “” holds true. The first assertion is equivalent to and the second assertion is equivalent to . As , we thus have .
Claim 7.4. Suppose are incompatible. Then for every pair of parts and , exactly one of the following assertions holds:
• agrees with ;
• agrees with .
Proof of the claim. As are incompatible, exactly one of the assertions and holds. So exactly one of them has the same truth value as the assertion “ and are adjacent in ”.
We now construct the desired symmetric relation . Consider any pair of parts .
-
If are compatible, then add and to if and only if (or equivalently, ).
-
If are incompatible, say and , then consider the two numbers:
-
: the number of pairs such that agrees with ;
-
: the number of pairs such that agrees with .
Note that by Claim 7.4, we have . Then add and to if , and do not add them if . If , break the tie arbitrarily.
If and , proceed symmetrically with the roles of and swapped.
Note that for any given , the numbers , can be computed in time by inspecting all the pairs one by one. Hence, the relation can be computed in time , as promised.
From the construction we immediately derive the following claim, which roughly says the following: pairs of parts of on which and differ are heavily loaded with disagreeing pairs of parts of .
Claim 7.5. Suppose is such that . Then and there are at least pairs such that disagrees with .
Proof of the claim. Since , we must have that are incompatible, hence in particular . Moreover, we must have , which due to entails . This means that at most half of the pairs agree with , 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 contained in , for any part of .
Claim 7.6. For every we have
Proof of the claim. Fix any . Denote
For every , define
By Claim 7.3, every is intersected by . Since the mismatch of with respect to is at most , we conclude that
Writing as a shorthand for disagrees with , we have:
(by Claim 7.5)
(as )
which by double counting (see Figure 6) is equal to:
(by (7.3))
」


Figure 6: An illustration of the double counting argument in Claim 7.6. Depicted is a directed graph whose vertices are the parts of , where there is a directed edge between vertices and if disagrees with the containing parts of . In Claim 7.6, the number of outgoing edges of is counted in two ways:
-
Summing over the incoming edges of each part (depicted left; colors group edges by parts ).
-
Summing over the outgoing edges of each (depicted right; colors group edges by vertices ).
The last claim links the mismatch of with respect to and the symmetric difference of and .
Claim 7.7. Let be distinct vertices of and let , , and be such that and . Suppose further that . Then at least one of the following conditions holds:
• ; or
• .
Proof of the claim. Suppose that the first condition fails: . As , it follows that . Since , this is equivalent to , which is again equivalent to .
We may now bound the mismatch of with respect to . Consider any vertex of and let be such that . By Claim 7.7, every part of that is intersected by is also intersected by or is contained in . There are at most parts of intersected by , due to the assumed bound on the mismatch of , and at most parts of contained in , by Claim 7.6. This gives us at most parts of that are intersected by .
By combining Lemmas 7.1 and 7.2 we immediately get the following symmetric variant of Lemma 7.1.
Corollary 7.8. Let be a monotone and respectful partition selector, be a graph, and be such that
• has growth ratio at most on ;
• has packing ratio at most ; and
• admits a vertex ordering of alternation at most .
Then for every and non-empty set there exists a set with and a symmetric relation such that the mismatch of with respect to is at most .
Moreover, assuming that is computable in time , there is an -time algorithm computing such a set and relation , given , and .
8 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 provided by Lemma 6.1 and the -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- reachability in the -flip, used in the statement of Theorem 4.1. We execute this translation in the following lemma.
For a graph , partition of its vertex set, and symmetric binary relation , let be the -flip of such that for all and distinct vertices we have that:
Lemma 8.1. Let , be a graph, and be a subset of vertices of . Denote and . Further, let be a symmetric binary relation and be the mismatch of with respect to . Then for every vertex of , there are at most parts of that contain a vertex that is at distance at most from in the graph .
Proof. Denote and , for . Thus
The core observation is captured by the following statement.
Claim 8.2. For each and part , there are at most parts that intersect .
Proof of the claim. Let be the unique part of that contains . Consider any part that intersects and is different from . Thus , for and are different parts of .
Since is an -type over and is an -type over , by the definition of -types we have that one of the following three cases holds:
-
all vertices of are complete to ;
-
all vertices of are anticomplete to ; or
-
all vertices of are non-homogeneous to .
In the first two cases, and are homogeneous to each other in , and as each of them is contained in a single part of , they are also homogeneous to each other in . Since , we must in fact have that and are complete to each other in . In the third case, since each of and is contained in a single part of , that a vertex is non-homogeneous to in implies that is also non-homogeneous to in .
The reasoning above shows that in each of the three cases, for every vertex there exists some vertex such that and are adjacent in . This implies that some part of contained in – precisely, the part that contains is intersected by , where is the unique part of that contains . The bound on the mismatch of with respect to implies that there can be at most such parts of in total, for any . Hence, there are no more than parts satisfying and . Taking into account also the single part finishes the proof of the claim.
With Claim 8.2 established, a straightforward induction on proves the following statement:
For every and , there are at most parts of that intersect .
Applying this statement for completes the proof.
We may now complete the proof of the Damping Theorem. We prove the following formulation that makes the dependence on explicit.
Theorem 8.3 (Damping Theorem with explicit bounds). Let , be a graph, and be such that
-
has growth ratio at most on ;
-
has packing ratio at most ; and
-
admits a vertex ordering of alternation at most .
Then for every and a non-empty vertex subset , there exist a set and an -flip of satisfying the following properties:
-
; and
-
for every vertex , intersects at most parts of .
Moreover, there is an algorithm computing such a set and an -flip , given , and , in time .
Proof. Apply Corollary 7.8 to , and the partition selector . Since is computable in time by Lemma 5.6, in this way we construct, within the promised time complexity, a set and a symmetric relation such that and the mismatch of with respect to is bounded by .
Denote and define a symmetric relation as in the proof of Observation 3.4: include a pair in if and only if , where and are the unique parts of that contain and , respectively. Note that for every vertex we have , where and are the parts of and that contain , respectively. So the mismatch of with respect to is exactly the same as that of ; that is, .
Let . Thus is an -flip of . By Lemma 8.1 we conclude that for every vertex of , there are at most parts of that intersect . This means that and satisfy all the required properties.
Theorem 4.1 (Damping Theorem). Let and be a monadically dependent graph class. Then there exists a function with such that for any , -vertex graph , and vertex subset , there exist a set and an -flip of satisfying the following properties:
-
; and
-
for every vertex , intersects at most parts of .
Also, there is an algorithm that, given , and , computes such a set and an -flip in time .
Proof. By Theorem 5.5 and Corollaries 5.10 and 5.14, there are subpolynomial functions such that
-
has growth ratio at most on ;
-
has packing ratio at most ; and
-
admits a vertex ordering of alternation at most .
Moreover, a vertex ordering as above can be computed deterministically in time. With this, it suffices to apply Theorem 8.3 and note that , for some .
9 Conclusions
Theorem 1.1 provides an algorithm to compute a merge sequence of subpolynomial radius- width for any given graph drawn from a monadically dependent graph class . One may ask what can be guaranteed about the output of the algorithm provided we assume something more about . For instance, if 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 is translinear if every graph class transducible from has linear neighborhood complexity: There is a constant such that has growth ratio at most on every .
Dreier and Toruńczyk [16] proved that whenever a graph class is transducible from a graph class of bounded merge-width, 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 . In Section B.1 we present an alternative proof of Lemma 5.1 which allows us to deduce that assuming translinearity of , for every there is a constant such that has growth ratio at most on any (see Corollary B.2). Also, following the bounds of Lemma 5.9 and Corollary 5.13, we conclude that any graph has packing ratio bounded by a constant and admits a vertex ordering of alternation , and this bound cannot be improved in general. Note that such an ordering can be computed deterministically in 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 for simplicity), we obtain an -time algorithm to compute, for a given -vertex graph (provided with a suitable ) and a non-empty , a set and an -flip of such that
-
; and
-
for every , intersects parts of .
With these bounds in place, the argument from the proof of Theorem 4.3 produces, in time , a partition sequence of radius- width bounded by . The additional factor is incurred by the length of the sequence . As in the proof of Theorem 1.1, if we apply the whole reasoning above for radius instead, then we can use Theorem 3.5 to turn the obtained partition sequence into a merge sequence of radius- width bounded by .
Thus, the above discussion proves the following.
Theorem 9.2. Let and be a translinear class of graphs. Then there exists an -time algorithm that given an -vertex graph , constructs a merge sequence for of radius- width bounded by .
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.
10 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 -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 -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.
References
[1] Hans Adler and Isolde Adler. Interpreting nowhere dense graph classes as a classical notion of model theory. European Journal of Combinatorics, 36:322–330, 2014.
[2] Noga Alon, Bruno Jartoux, Chaya Keller, Shakhar Smorodinsky, and Yelena Yuditsky. The -t-net problem. Discrete and Computational Geometry, 68(2):618–644, 2022.
The class of cographs has bounded merge-width, so is translinear, but contains -vertex graphs for which the smallest admissible alternation of a vertex ordering is [22].
[3] Marthe Bonamy and Colin Geniet. -boundedness and neighbourhood complexity of bounded merge-width graphs. ArXiv preprint, 2504.08266, 2025.
[4] Édouard Bonnet, Samuel Braunfeld, Ioannis Eleftheriadis, Colin Geniet, Nikolas Mählmann, Michal Pilipczuk, Wojciech Przybyszewski, and Szymon Toruńczyk. Separability properties of monadically dependent graph classes. In 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, volume 334 of LIPIcs, pages 147:1–147:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025.
[5] Édouard Bonnet, Julien Duron, Marcin Pilipczuk, Marek Sokolowski, and Szymon Toruńczyk. Time-optimal APSP and matrix multiplication in classes of linear neighborhood complexity. ArXiv preprint, 2608.25212, 2026.
[6] Édouard Bonnet, Julien Duron, John Sylvester, and Viktor Zamaraev. Adjacency labeling schemes for small classes. In 16th Innovations in Theoretical Computer Science Conference, ITCS 2025, volume 325 of LIPIcs, pages 21:1–21:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025.
[7] Édouard Bonnet, Ugo Giocanti, Patrice Ossona de Mendez, Pierre Simon, Stéphan Thomassé, and Szymon Toruńczyk. Twin-width IV: ordered graphs and matrices. Journal of the ACM, 71(3):21:1–21:45, 2024.
[8] Samuel Braunfeld and Michael Laskowski. Characterizations of monadic NIP. Transactions of the American Mathematical Society, Series B, 8(30):948–970, 2021.
[9] Samuel Braunfeld and Michael Laskowski. Existential characterizations of monadic NIP. Communications of the American Mathematical Society, 6:244–267, 2026.
[10] Karolina Drabik, Maël Dumas, Colin Geniet, Jakub Nowakowski, Michal Pilipczuk, and Szymon Toruńczyk. Variants of merge-width and applications. ArXiv preprint, 2602.23867, 2026.
[11] Jan Dreier, Ioannis Eleftheriadis, Nikolas Mählmann, Rose McCarty, Michal Pilipczuk, and Szymon Toruńczyk. First-order model checking on monadically stable graph classes. In 65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024, pages 21–30. IEEE, 2024.
[12] Jan Dreier, Nikolas Mählmann, Rose McCarty, Michał Pilipczuk, and Szymon Toruńczyk. Neighborhood complexity and radius-1 merge-width in monadically dependent graph classes. ArXiv preprint, 2607.10941, 2026. To appear in the proceedings of SODA 2027.
[13] Jan Dreier, Nikolas Mählmann, and Sebastian Siebertz. First-order model checking on structurally sparse graph classes. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 567–580, 2023.
[14] Jan Dreier, Nikolas Mählmann, and Szymon Toruńczyk. Flip-breakability: A combinatorial dichotomy for monadically dependent graph classes. In 56th Annual ACM Symposium on Theory of Computing, STOC 2024, pages 1550–1560. ACM, 2024.
[15] Jan Dreier, Nikolas Mählmann, and Szymon Toruńczyk. First-order model checking on monadically dependent graph classes, 2026. Manuscript.
[16] Jan Dreier and Szymon Toruńczyk. Merge-width and first-order model checking. In 57th Annual ACM Symposium on Theory of Computing, STOC 2025, pages 1944–1955. ACM, 2025.
[17] Kord Eickmeyer, Archontia C. Giannopoulou, Stephan Kreutzer, O-joung Kwon, Michal Pilipczuk, Roman Rabinovich, and Sebastian Siebertz. Neighborhood complexity and kernelization for nowhere dense classes of graphs. In 44th International Colloquium on Automata, Languages, and Programming, ICALP 2017, volume 80 of LIPIcs, pages 63:1–63:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017.
[18] Jakub Gajarský, Petr Hliněný, Jan Obdrzálek, Daniel Lokshtanov, and M. S. Ramanujan. A new perspective on FO model checking of dense graph classes. ACM Transactions on Computational Logic, 21(4):28:1–28:23, 2020.
[19] Jakub Gajarský, Nikolas Mählmann, Rose McCarty, Pierre Ohlmann, Michal Pilipczuk, Wojciech Przybyszewski, Sebastian Siebertz, Marek Sokolowski, and Szymon Toruńczyk. Flipper games for monadically stable graph classes. In 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, volume 261 of LIPIcs, pages 128:1–128:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023.
[20] Martin Grohe, Stephan Kreutzer, and Sebastian Siebertz. Deciding first-order properties of nowhere dense graphs. Journal of the ACM, 64(3):17:1–17:32, 2017.
[21] David Haussler. Sphere packing numbers for subsets of the Boolean n-cube with bounded Vapnik-Chervonenkis dimension. Journal of Combinatorial Theory, Series A, 69(2):217–232, 1995.
[22] Clemens Kuske and Codex (OpenAI). Welzl orders of cographs. Lax Archive, lax-214022, 2026.
[23] Jiří Matoušek. Geometric Discrepancy: An Illustrated Guide, volume 18 of Algorithms and Combinatorics. Springer, 1999.
[24] Jaroslav Nešetril and Patrice Ossona de Mendez. On nowhere dense graphs. European Journal of Combinatorics, 32(4):600–617, 2011.
[25] Jaroslav Nešetril and Patrice Ossona de Mendez. Sparsity – Graphs, Structures, and Algorithms, volume 28 of Algorithms and Combinatorics. Springer, 2012.
[26] Michal Pilipczuk. Graph classes through the lens of logic. ArXiv preprint, 2501.04166, 2025.
[27] Michal Pilipczuk and Sebastian Siebertz. Chapter 1: Measuring sparsity. Lecture notes for the course Sparsity, winter term 2017/18, University of Warsaw, 2017.
[28] Klaus-Peter Podewski and Martin Ziegler. Stable graphs. Fundamenta Mathematicae, 100(2):101–107, 1978.
[29] Szymon Toruńczyk. Flip-width: Cops and robber on dense graphs. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, pages 663–700. IEEE, 2023.
[30] Open problems from the workshop on algorithms, logic and structure, University of Warwick, 2016. https://warwick.ac.uk/fac/sci/maths/people/staff/daniel_kral/alglogstr/openproblems.pdf.
[31] Emo Welzl. Partition trees for triangle counting and other range searching problems. In 4th Annual Symposium on Computational Geometry, SoCG 1988, pages 23–33. ACM, 1988.
A 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 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 time provided we have access to the following information about the input partition :
-
For every part , the diameter of and of its complement .
-
For every pair of distinct parts , the diameter of and of its bipartite complement .
For graphs and , we only need to maintain the maximum distance between a vertex and a vertex . (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 . In fact, we maintain all the relevant distances:
-
For every part , we maintain and for all .
-
For every pair of distinct parts , we maintain and for all and .
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 and ; the distances in and can be updated similarly by working in the complement .
Consider a single merge of two parts and into a new part . Let and , and by swapping and if necessary, assume that . To compute the all-pairs distances in , we start with (for which the all-pairs distances are already computed) and iteratively insert the vertices of into this graph. With each vertex inserted, we first compute the distances from to all the already present vertices (in time ), and then update the distances between the already present vertices by checking if there is a shorter path going through (this takes time per pair of already present vertices, so again time in total). By this method, the all-pairs distances in can be computed in time . Next, for every other part , we compute the cross distances in by starting with the graph (for which the cross distances are already computed) and iteratively add the vertices of one by one. As before, updating the cross distances upon insertion of a new vertex takes time where , so we can compute the cross distances in in total time . Summing over all parts , the total time complexity of updating the maintained distances during the merge of and is bounded by .
It now remains to observe that summing the values over all the binary merges in a merge sequence yields exactly , 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 .
B 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 Section 9.
For a positive integer , let be the graph formed from disjoint copies of by joining the copies of each vertex into a clique. Thus its vertex set is , and the additional matching edges are for and distinct . For every fixed , if is monadically dependent, then so is [14, Corollary 19.10, full version].
Proof of Lemma 5.3. If , then has at most one part, so we may take . Hence assume that with . Given an expansion of by the colors occurring in , take copies of , writing for the copy of in . Construct a graph by putting, for and ,
and no other edges. On , distinguish the copies by colors and encode the colors of on . The adjacency of is then defined by a fixed first-order formula : restrict the quantifiers of each to and identify the copy-zero representative of as its unique neighbor in . Let be the class of all graphs obtained this way. Then is transducible from , so it is monadically dependent and depends only on and .
Let and , so . For , the neighborhoods of and in are equal if and only if and have the same -type over in . Since , it follows from Theorem 3.3 that
where is a subpolynomial function depending only on . We may thus set , which is subpolynomial, as required.
B.1 A reduction without copying
For the application to translinear classes in Section 9, 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 in the case of translinear classes.
For , let denote the growth ratio of on a non-empty graph , and set .
Lemma B.1. For every , there is a first-order formula in the signature of 5-colored graphs, with unary predicates , and , with the following property. For every graph and non-empty set , there exist a 5-coloring of , interpreting the predicate as the given set, and a non-empty set such that, for , the partition refines and
For , one can moreover ensure .
Proof. For , take and , so that and the conclusion is immediate. Hence assume , fix and a non-empty set , and write .
Let and be the sets of parts of of size at most two and at least three, respectively, and set . For each , choose three distinct vertices . For , let , and define
These four sets are pairwise disjoint. Every part of Q contributes at least one and at most three vertices to R, so .
Construct a bipartite graph on with sides and as follows. For and , put according to the following rules:
• If , then if and only if .
• If , then if and only if is complete to in .
• If , then if and only if is anticomplete to in .
• If , then if and only if .
There are no other edges in H.
To express this construction by a first-order formula, expand by five colors distinguishing , , , , and , and let be the formula from Claim 5.2. Membership in abbreviates membership in the union of the four corresponding colors. Define
Writing for this expansion, we have . Note that the formula depends only on .
We next verify that refines . Every vertex in is a singleton part of , so it suffices to consider with .
-
Each of belongs to a part of , since all vertices of smaller parts lie in . For every , adjacency to records membership in . Thus belong to the same part of , that is, have the same -type over .
-
If , then , and the construction gives
Since , this implies that is complete to if and only if is complete to , and likewise for anticompleteness.
- If , equality of adjacency to shows that is complete to if and only if is complete to . Equality of adjacency to gives the analogous equivalence for anticompleteness.
These are exactly the three conditions defining equality of r-types, proving the refinement and hence the claimed inequality between the numbers of parts. Finally,
which completes the proof.
We now make the resulting bounds explicit. Let be a graph class and for each , let be the class of all graphs defined by from arbitrary 5-colored expansions of graphs in . This class is transducible from and contains every graph supplied by Lemma B.1. If is monadically dependent, then so is . By Theorem 3.3, there is a non-decreasing subpolynomial function , depending only on and , such that
Let be a non-decreasing function supplied by Theorem 3.3 for , and define inductively, for ,
Writing , Lemma B.1 and the induction hypothesis give
For each fixed , this recurrence preserves subpolynomiality and hence also proves the bound in Lemma 5.1.
If is translinear, then can be chosen constant, and linear neighborhood complexity of allows us to choose to be a constant . The recurrence then reduces to
Consequently, for every fixed , the growth ratio of on is bounded by a constant depending only on and , as used in Section 9.
Corollary B.2. Let be a translinear graph class and . Then the growth ratio of on is bounded by a constant .
C 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 -time algorithm that given a graph , computes a vertex ordering with alternation bounded by , where 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 on the vertex set of whose crossing number is bounded by in the following sense: every vertex of crosses at most edges , where crosses if exactly one of and belongs to . The vertex ordering is then obtained by running depth-first search on and taking to be the preorder of yielded by this search. As argued in [6], the crossing number of (interpreted as a path consisting of edges joining vertices that are consecutive in ) is at most doubled compared to . This implies a bound of on the crossing number of , which translates to a bound of on the alternation of in our terminology (the additive +2 comes from accounting for the two neighbors of a vertex in ). As running a depth-first search on can be done in time, it remains to recall the procedure constructing and argue that it can be implemented in time.
The procedure performs steps, where the th step adds one new edge to . During the procedure we maintain a weight function that satisfies the following invariant after every th step:
Note that since at the end, every vertex crosses at most edges of , the weights are bounded by at all times.
The th step proceeds as follows:
- Select a pair of distinct vertices that, among such pairs, minimizes the value
- Set and update the weight function by doubling the weight of every vertex that crosses , so that invariant (C.1) is maintained.
Observe that the condition guarantees that orienting the edges of towards their -endpoints yields an acyclic orientation in which every vertex has indegree at most 1; so at the end, after adding edges, becomes a tree spanning the whole vertex set of . As argued in [6], the crossing number of the final tree is bounded by . Note that the algorithm works with access to only and is oblivious to the function .
To implement the algorithm efficiently, we explicitly maintain the weights for and the values for . Note that every value is bounded by at all times, and assuming the RAM model with words of length , we can perform additions and comparisons on numbers of such magnitude in time per operation. Initially all the weights are set to 1 (this takes time) and initializing the values can be done in time per value, so in time in total.
In the th step of the procedure, we first choose a suitable pair using arithmetic operations by iterating through all the relevant pairs and choosing one that minimizes . Next, we construct a list consisting of all the vertices that cross ; this takes time . For every vertex , we double the weight of and update the values for all pairs that are crossed by ; the latter is done by adding the pre-update weight of to . This requires arithmetic operations per vertex on , hence arithmetic operations in total.
Here is the key observation of the analysis. The sum of the lengths of the lists counts the total number of times the crossing number of some vertex increases; but at the end, every vertex crosses at most edges of . Therefore we have . It follows that the whole iteration uses time and arithmetic operations in total. As every arithmetic operation takes time and , we arrive at the promised time complexity of .