Forbidden Induced Subgraphs for Bounded Shrub-Depth and the Expressive Power of MSO
Abstract
The graph parameter shrub-depth is a dense analog of tree-depth. We characterize classes of bounded shrub-depth by forbidden induced subgraphs. The obstructions are well-controlled flips of large half-graphs and of disjoint unions of many long paths. Applying this characterization, we show that on every hereditary class of unbounded shrub-depth, MSO is more expressive than FO. This confirms a conjecture of [Gajarský and Hliněný; LMCS 2015] who proved that on classes of bounded shrub-depth FO and MSO have the same expressive power. Combined, the two results fully characterize the hereditary classes on which FO and MSO coincide, answering an open question by [Elberfeld, Grohe, and Tantau; LICS 2012].
Our work is inspired by the notion of stability from model theory. A graph class is MSO-stable, if no MSO-formula can define arbitrarily long linear orders in graphs from . We show that a hereditary graph class is MSO-stable if and only if it has bounded shrub-depth. As a key ingredient, we prove that every hereditary class of unbounded shrub-depth FO-interprets the class of all paths. This improves upon a result of [Ossona de Mendez, Pilipczuk, and Siebertz; Eur. J. Comb. 2025] who showed the same statement for FO-transductions instead of FO-interpretations.
Keywords and phrases:
Shrub-Depth, Forbidden Induced Subgraphs, MSO, Stability TheoryCategory:
Track B: Automata, Logic, Semantics, and Theory of Programming2012 ACM Subject Classification:
Theory of computation Finite Model TheoryAcknowledgements:
The author thanks Patrice Ossona de Mendez, Sebastian Siebertz, and Szymon Toruńczyk for fruitful discussions on the topic of this paper.Funding:
Supported by the German Research Foundation (DFG) with grant agreement No. 444419611.Editors:
Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele PuppisSeries and Publisher:

1 Introduction
The main result of this paper is the following Theorem 1 yielding various characterizations for hereditary graph classes of bounded shrub-depth, in terms of forbidden induced subgraphs, (counting) monadic second-order logic (MSO and CMSO), and first-order logic (FO). All appearing notions will be motivated and defined in the remainder of this introduction.
Theorem 1.
For every hereditary graph class , the following are equivalent.
-
1.
has bounded shrub-depth.
-
2.
There is a such that excludes all flipped half-graphs of order and all flipped .
-
3.
There is a such that excludes all flipped half-graphs of order and all flipped .
-
4.
is MSO-stable.
-
5.
is monadically MSO-stable.
-
6.
is CMSO-stable.
-
7.
is monadically CMSO-stable.
-
8.
does not -dimensionally FO-interpret the class of all paths.
-
9.
FO and MSO have the same expressive power on .
Stability
We start motivating Theorem 1 by introducing the model-theoretic notion of stability, a context in which the graph parameter shrub-depth will naturally arise. Originating in the 70s and pioneered by Shelah, stability theory is a prolific branch of model theory which seeks to classify the complexity of theories (or in our case: graph classes). There, stability is the most important dividing line, which separates the well-behaved stable classes from the complex unstable ones. Intuitively, a graph class is stable, if one cannot define arbitrarily large linear orders in using logical formulas. More precisely, for a logic , an -formula , and a graph class , we say has the order-property on , if for every there is a graph and a sequence of tuples of vertices of , such that for all
For example the FO-formula expressing “the neighborhood of is a superset of the neighborhood of ” has the order-property on the class of all half-graphs, as it orders the sequence in the half-graph of order for every , as depicted in Figure 1.
Similarly, the MSO-formula expressing “ and are not connected after deleting ” has the order-property on the class of all paths, as it orders the sequence of -tuples in the -vertex path for every . A graph class is -stable if no -formula has the order-property on , and -unstable otherwise. The class of all half-graphs (all paths) is the arguably simplest example of an FO-unstable (MSO-unstable) graph class.
Apart from its extensive study on infinite structures in model theory, FO-stability has recently gained a lot of attention in finite model theory, in particular in structural and algorithmic graph theory. Podewski and Ziegler [29] and Adler and Adler [1] observed that on monotone111A graph class is monotone, if it is closed under taking subgraphs. graph classes, FO-stability coincides with the combinatorial property of being nowhere dense. Nowhere dense classes are very general classes of sparse graphs [26], enjoying strong combinatorial and algorithmic properties, such as fixed-parameter tractable (fpt) FO model checking [18]. The equivalence of FO-stability and nowhere denseness in monotone classes elegantly bridges the fields of model theory and structural graph theory. It has prompted the question whether also hereditary222A graph class is hereditary, if it is closed under taking induced subgraphs. FO-stable graph classes are combinatorially well-behaved. In the hereditary setting, FO-stability significantly generalizes nowhere denseness: for example the class of all cliques and the class of all map graphs are both FO-stable but not nowhere dense. A current research program has uncovered multiple natural combinatorial characterizations of hereditary FO-stable classes [8, 10, 15, 5] and shown that they also admit fpt FO model checking [15, 8, 9].
In contrast to the rich literature on FO-stability, we are not aware of any previous works studying its natural restriction MSO-stability. We attribute this to the fact that the compactness theorem, which is the main tool for working on infinite structures where stability originates, fails for MSO. Now, the recent successes in the study of FO-stable classes of finite graphs raise the question whether also MSO-stability can be understood through the lens of structural graph theory. In this work we show that this is indeed the case, by proving the following.
Theorem 2.
A hereditary graph class is MSO-stable if and only if it has bounded shrub-depth.
The folklore fact that every monotone class of bounded shrub-depth also has bounded tree-depth yields the following corollary.
Corollary 3.
A monotone graph class is MSO-stable if and only if it has bounded tree-depth.
Shrub-Depth
Shrub-depth is a parameter for graph classes introduced in [16]. It generalizes tree-depth to dense classes and can be seen as a bounded depth analog of clique- and rank-width, similar to how tree-depth is a bounded depth analog of tree-width. Classes of bounded shrub-depth are extremely well-behaved from algorithmic, combinatorial, and logical points of view. For instance, they admit quadratic time isomorphism testing [27] and fpt MSO model checking with an elementary dependence on the size of the input formula [14, 16]; they can be characterized by vertex minors and FO-transductions [28]; and FO and MSO have the same expressive power on these classes [14].
The above examples show that the structure side of bounded shrub-depth is well charted. Indeed, we prove the direction “bounded shrub-depth implies MSO-stability” of Theorem 2 using mainly existing tools. In contrast, proving the “hereditary and unbounded shrub-depth implies MSO-instability” direction requires insights about the non-structure side of shrub-depth (i.e., the properties shared by all classes that have unbounded shrub-depth). Up until now, the picture here was much more vague: In [17] it is proved that for every there exists a finite set of graphs such that a graph has shrub-depth at most if and only if it excludes all of as induced subgraphs. This result is non-constructive and does not reveal the concrete sets . In [21] and [28] it is shown that the class of all paths can be produced from any class of unbounded shrub-depth by taking vertex-minors and also by an FO-transduction, respectively. The high expressive power and irreversibility of vertex-minors and transductions limits our ability to draw conclusions about the structure of the original class from these two results. In this paper, we improve the non-structure situation by providing a characterization of classes of bounded shrub-depth by explicitly listing forbidden induced subgraphs.
Forbidden Induced Subgraphs
We will briefly introduce the notions needed to state the obstructions. For two graphs and on the same vertex set and a partition of , we say is a -flip of if it can be obtained by complementing the edge relation between pairs of parts of (see Figure 2). We refer to the preliminaries for formal definitions. Our obstructions for bounded shrub-depth will be well-controlled flips of disjoint unions of long paths and of large half-graphs, as made precise in the following two definitions and their accompanying Figures 2 and 3.
Definition 4.
is the -vertex path and is the disjoint union of many , with vertices , where is the th vertex on the th path. A flipped is an -flip of for the partition of the paths into layers, where contains the th vertices of all the paths for .
Definition 5.
The half-graph of order (denoted as ) is the bipartite graph on vertices and where and are adjacent if and only if . A flipped is a -flip of , for the partition .
We are now ready to state our characterization.
Theorem 6.
A graph class has bounded shrub-depth if and only if there is such that excludes all flipped and all flipped as induced subgraphs.
Moreover, our proofs show that in Theorem 6, one can replace with . While the stated variant of the theorem is more useful for hardness proofs, the variant is a step towards finding the simplest obstructions that cause unbounded shrub-depth. It remains open whether the theorem also holds for , but we know it fails for , as every graph on vertices is a flipped .
Interpretations and Monadic Stability
In order to prove the stability characterization (Theorem 2) from the induced subgraph characterization (Theorem 6), we visit another model-theoretic concept called interpretations. For a logic a -dimensional333We will later also define and work with higher dimensional interpretations, whose formulas have tuples as free variables. -interpretation is defined by two -formulas: a domain formula and an irreflexive, symmetric edge formula . It maps each graph to the graph with vertex set and edges . We say a graph class interprets a graph class , if there is an interpretation such that . Building on our forbidden induced subgraph characterization, we show the following.
Theorem 7.
A hereditary graph class has unbounded shrub-depth if and only if it -dimensionally FO-interprets the class of all paths.
As we have already seen, the class of all paths is MSO-unstable. Theorem 7 can be used to lift instability to all hereditary classes of unbounded shrub-depth. This is a strengthening of a recent result by Ossona de Mendez, Pilipczuk, and Siebertz [28], which states that every class of unbounded shrub-depth FO-transduces444A transduction first colors the input graph non-deterministically, and then applies a fixed -dimensional interpretation that can access these colors. For a single input graph , it produces multiple (possibly isomorphic) output graphs: one for each coloring of . Due to the access to an arbitrary coloring, transductions are more expressive than interpretations. the class of all paths. Their result implies that every class of unbounded shrub-depth is monadically MSO-unstable: a graph class is monadically -stable if every coloring of is -stable. In general, monadic MSO-stability is more restrictive than MSO-stability. For instance the class of all -subdivided cliques is MSO-stable, but monadically MSO-unstable. When considering only hereditary classes, this example fails: the hereditary closure of contains every -subdivided graph and is FO-unstable (so in particular also monadically FO-unstable, MSO-unstable, and monadically MSO-unstable). Braunfeld and Laskowski showed that FO-stability and monadic FO-stability coincide in all hereditary classes [4]. We show that the same collapse happens for MSO and CMSO.
Theorem 8.
For hereditary graph classes, the notions MSO-stability, monadic MSO-stability, CMSO-stability, and monadic CMSO-stability are all equivalent.
The Expressive Power of MSO
For a graph class , we say FO and MSO have the same expressive power on if for every MSO-sentence , there exists an FO-sentence such that for every graph we have . Otherwise, we say MSO is more expressive than FO on .
It was shown by Elberfeld, Grohe, and Tantau that for all monotone classes , FO and MSO have the same expressive power if and only if has bounded tree-depth [12]. As an open question, they asked for a characterization of the hereditary classes where FO and MSO coincide. As a dense analog of bounded tree-depth, bounded shrub-depth is a natural candidate here. Indeed, Gajarský and Hliněný showed that FO and MSO have the same expressive power on every class of bounded shrub-depth [14, Thm. 5.14]. However, they could not prove the reverse direction, which they attributed to a lack of known obstructions for classes of bounded shrub-depth. As an application of our forbidden induces subgraph characterization, we provide the missing part of the puzzle by showing that MSO is more expressive than FO on every hereditary class of unbounded shrub-depth. Together with the result by Gajarský and Hliněný, this completely characterizes the hereditary classes on which FO and MSO coincide.
Theorem 9.
For every hereditary graph class , FO and MSO have the same expressive power on if and only if has bounded shrub-depth.
Overview of the Paper
We present an extended abstract of the paper. Proofs of statements marked with can be found in the full version [25] of the paper. Figure 4 shows the implications which comprise Theorem 1. The only notion in the figure that has not been discussed so far is -flip-flatness. This is another characterization of shrub-depth with strong ties to stability theory, recently proved by Dreier, Mählmann, and Toruńczyk [11], which we define in the upcoming preliminaries (Section 2). The proofs of the individual implications are presented in Sections 3, 4, 5, and 6. We conclude with an outlook in Section 7, where we discuss potential strengthenings of our induced subgraph characterization and a second major dividing line from model theory, named dependence.
2 Preliminaries
We use to refer to the set . For an -tuple , we use to refer to its length and to refer to its th component .
Colored Structures and Graphs.
A (relational) signature is a set of relation symbols, each with an implicitly assigned arity. A structure over is called a -structure. We denote by the expansion of by many new unary predicates, which we can think of as colors. A single element is allowed to have multiple colors, but this will not be important. A -structure is a -coloring of , if is the -structure obtained by forgetting the color predicates in . For a class of -structures , we denote by the class of -structures consisting of all the -colorings of structures from .
A graph is a -structure for the signature consisting of a single binary relation (called edge relation) that is interpreted symmetrically and irreflexive. For any structure , we use to refer to its universe: if is a graph, then is its vertex set.
Logic and Stability.
We assume familiarity with first-order logic (FO) and monadic second-order logic (MSO). As we model graphs as structures with a binary edge relation, MSO on graphs allows for quantification of vertex sets, but not of edge sets. This is also known as in the literature. Counting monadic second-order logic (CMSO) extends MSO for all set variables and by the cardinality constraint that holds true if and only if . For a logic and a signature . We use to refer to the set of -formulas over . An -formula has the -order-property on a -structure , if there exists a sequence of tuples of elements of , such that for all we have . The formula has the order-property on a class of -structures , if for every there is such that has the -order-property on . We call a class of -structures -stable, if no -formula has the order-property on . Moreover, is monadically -stable if for every , the class of -colorings from is -stable.
Interpretations.
For a logic , , and signatures and , a -dimensional -interpretation from to consists of
-
an -formula called the domain formula,
-
an -formula for every -ary relation in ,
where and all are -tuples. Given a -structure , we define the to be the -structure with the universe and relations for every -ary relation in .
We will use interpretations as a reduction mechanism. The following lemma is crucial for this purpose. It follows by a simple formula rewriting procedure. See, e.g., [20, Thm. 4.3.1].
Lemma 10.
For every -dimensional -interpretation from to , and -formula there exists an -formula such that for every -structure and tuple we have if and only if .
The above lemma also holds for MSO- and CMSO-interpretations, when restricted to a single dimension. See, e.g., [6, Thm. 7.10]. Higher dimensions are problematic because MSO and CMSO cannot quantify over sets of tuples.
Lemma 11.
Fix . For every -dimensional -interpretation from to , and -formula there exists an -formula such that for every -structure and tuple we have if and only if .
For an interpretation and a class , we write for the class . We say -dimensionally -interprets a class , if there exists a -dimensional -interpretation such that . We have already seen in the introduction, that the class of all paths is MSO-unstable. Lemma 11 lifts instability to all classes that -dimensionally MSO-interpret it.
Lemma 12.
Fix . Every class that -dimensionally -interprets the class of all paths is -unstable.
Flips.
Fix a graph and a partition of its vertices. For every vertex we denote by the unique part satisfying . Let be a symmetric relation. We define to be the graph with vertex set , and edges defined by the following condition, for distinct :
We call a -flip of . If has at most parts, we say that a -flip of . Flips are reversible: ; and hereditary: for every -flip of and , is also a -flip of .
It will be convenient to work with flip-partitions that are minimal in the following sense.
Definition 13.
Let and be two graphs on the same vertex set. We call a partition of and a relation irreducible -flip-witnesses if
-
,
-
is not a -flip of ,
-
does not include for any part with .
Clearly for every two graphs and on the same vertex set, there exist irreducible -flip-witnesses. In particular, as we work with loopless graphs, every flip-relation can be modified to satisfy the last condition stating that no singleton part is flipped with itself. We now argue that the irreducible flip-witnesses are uniquely determined.
Lemma 14.
Let and be two graphs on the same vertex set and and be irreducible -witnesses. For every two distinct parts there exists a part such that We say discerns and .
Proof.
Otherwise, we can merge and , which contradicts irreducibility.
Lemma 15 ().
Let and be two graphs on the same vertex set, let and be irreducible -flip-witnesses, and let and any partition and relation such that . Then is a coarsening of .
Lemma 16 ().
For every two graphs and on the same vertex set, the irreducible -flip-witnesses are uniquely determined.
For every two graph and on the same vertex set, we call the irreducible -flip-partition and the irreducible -flip-relation, if and are the unique irreducible -flip-witnesses, as justified by Lemma 16.
Shrub-Depth, Distances, and Flatness.
We will not work with the original definition of bounded shrub-depth, as given in [16], and which we omit from this paper. Instead, we will use an equivalent definition called -flip-flatness [11], which we will define in a moment.
The length of a path is the number of edges it contains, i.e., has length . For a graph and two vertices we define to be the length of a shortest path between and in . If no such path exists, then and are in different connected components of , and we define . For , a graph , and a vertex let be the (closed) radius- neighborhood of . We drop the superscript if it is clear from the context. For , we call a set distance- independent in if for every two distinct vertices . Similarly, is distance- independent in if no two vertices of are in the same connected component of .
Definition 17.
For and , a set of vertices in a graph is -flip-flat, if there exists a -flip of in which is distance- independent. A graph class is -flip-flat, if there are margins and , such that for every and , every set of size contains an -flip-flat subset of size .
3 Forbidden Induced Subgraphs
Flipped half-graphs and flipped s were defined in the introduction (Definitions 5 and 4). We say a graph class is pattern-free, if there is a such that excludes as induced subgraphs every flipped and every flipped . Our goal is to show the following.
Proposition 19.
Every pattern-free class is -flip-flat.
In the full paper, we also give a short proof showing that every class of bounded shrub-depth is pattern-free, using the SC-depth characterization of shrub-depth [16].
3.1 Establishing Monadic FO-Stability
As a first step, we will show that pattern-free classes are monadically FO-stable. This will follow from a known characterization of monadic FO-stability by forbidden induced subgraphs. We first introduce the required definitions.
For , the star -crossing of order is the -subdivision of (the biclique of order ). The clique -crossing of order is the graph obtained from the star -crossing of order by turning the neighborhood of each principle vertex (i.e., each original vertex of the ) into a clique. Examples are depicted in Figure 5, which also shows how the vertices of each star/clique -crossing are partitioned into layers . A flipped star/clique -crossing is a graph obtained from a star/clique -crossing by performing a flip where the parts of the flip-partition are the layers of the -crossing. The following characterization was originally proven in [8], but we use the notation from [24, 11].
Theorem 20 ([8]).
A graph class is monadically FO-stable if and only if for every there exists such that excludes as induced subgraphs
-
all flipped star -crossings of order , and
-
all flipped clique -crossings of order , and
-
all flipped .
Lemma 21.
For every and , the star -crossing and the clique -crossing of order both contain an induced .
Proof.
For star -crossings with and for clique -crossing with , this is easy to see in the left/middle panel of Figure 5. For the clique -crossing of order , note that its vertices induce the rook graph of order (also known as the cartesian square of ). This graph is defined as the graph on vertices , where the vertices and are adjacent if and only if or . The right panel of Figure 5 shows how embeds into the rook graph of order .
Lemma 22 ().
For every monadically FO-unstable graph class there exists such that contains as induced subgraphs either
-
a flipped for every , or
-
a -flip of for every .
Proofsketch.
By Theorem 20 and Lemma 21. See the full paper for details.
Lemma 23.
Every -flip of contains an induced flipped , for every .
Proof.
Choose any -flip of and let be a witnessing partition of size at most . We can color the vertices of the according to their membership in . This yields at most different ways to color a . By the pigeonhole principle, there must be a set of at least many that are colored in the same way. This means for every all the th vertices of paths in are in the same part of . Hence, the paths in induce a flipped .
By cutting a long path into multiple shorter ones, we observe that contains an induced for . Combining this observation with Lemma 23 yields the following Corollary 24. The combination of Corollary 24 and Lemma 22 yields Proposition 25.
Corollary 24.
Every -flip of contains an induced flipped for every and .
Proposition 25.
Every pattern-free class is monadically FO-stable.
3.2 Proving -Flip-Flatness
Lemma 26.
For every , graph , and distance- independent set of size in either
-
a size subset of is distance- independent in , or
-
contains an induced .
Proof.
By the assumption of the lemma, the radius- neighborhoods of the vertices in are pairwise disjoint, and every edge is incident to at most one of these neighborhoods. For each , let be the set of vertices that are at distance exactly from in . By the pigeonhole principle, there is a set of size such that either is empty for all or is non-empty for all (see Figure 6). In the first case this means for each , contains the entire connected component of in , and is distance- independent. In the second case for each , contains an induced (which starts at and ends in ), and contains an induced .
Using Lemma 23, the previous lemma lifts to flipped graphs.
Corollary 27.
For every , graph , -flip of , and distance- independent set of size in either
-
a size subset of is distance- independent in , or
-
contains an induced flipped .
We are now ready to prove Proposition 19, which we restate for convenience.
See 19
Proof.
Fix a pattern-free class . Then there is such that contains no induced flipped . By Proposition 25, is monadically FO-stable, and by Theorem 18, also -flip-flat for some margins and for every . We claim that is -flip-flat with margins and . Choose any , , and of size . By flip-flatness, there is a -flip of in which a size subset is distance- independent. By Corollary 27, either
-
a size subset of is distance- independent in , or
-
contains an induced flipped for some .
The second case contradicts pattern-freeness of , so we have successfully established -flip-flatness for .
4 Interpreting Paths
In this section we will prove the following.
Proposition 28.
There is a -dimensional FO-interpretation with the following property. If is a hereditary graph class that contains for every either a flipped or a flipped , then the class of all paths is contained in .
Notably, a single interpretation works for all classes that contain these patterns. We first show that the paths of length at most appear already as induced subgraphs.
Lemma 29.
Every flipped and every flipped contains as an induced subgraph.
Proof.
Exhaustive case distinctions are depicted in Figure 7.
4.1 Interpreting Paths in Flipped s
Two vertices and are twins in a graph , if . This relation is FO-definable: .
Observation 30.
Let be a -flip of . Two vertices that are contained in the same part of are twins in if and only if they are twins in .
Lemma 31.
There exists an FO-interpretation such that for every , every flipped contains an induced subgraph such that .
Proof of Lemma 31.
By assumption contains a graph that is an -flip of , where is the usual partition of the vertices of into layers. We will interpret in the induced subgraph where with
See Figure 8 for an example. In the non-flipped setting, taking the subgraph of induced on the same vertex set yields a graph that is the disjoint union of a single (formed by the vertices) and an independent set of size (formed by the vertices). Observe that is an -flip of , where is the restriction of to . Let and be the irreducible -flip-witnesses such that . By Lemma 15, is a coarsening of and, by Lemma 14, for every two distinct parts there exists a discerning part such that . In order to interpret from , it suffices to establish the following two claims.
Claim 32.
The set is definable in . This means there is a formula such that for all we have
Claim 33.
The edges of are definable in . This means there is a formula such that for all we have
Proof of Claim 32.
We choose to be the formula expressing that has no twins in . We first verify that no vertex in satisfies . Indeed, each vertex has a twin in in the graph : both vertices have no neighbors at all in . As both are in the same part of and its coarsening , they are also twins in by Observation 30.
We next verify that every vertex in satisfies . Fix a vertex and let be the part of containing it. Since we assumed , we know that has no twins in . Then, again by Observation 30, has no twins in that are also contained in the same part . Now let be a vertex contained in a different part. By Lemma 14, there exists a part such that . This means for every vertex , its adjacency was flipped towards exactly one of and from to . By construction, contains at least two vertices from , so at least one vertex . As is non-adjacent to both and in , we have that is adjacent to exactly one of and in , so and are not twins in .
To prove Claim 33 we will recover the partition using FO. Note that this is not possible for the partition , as it may contain distinct parts which behave the same. This is the reason why we work with the coarsening , where parts that behave the same have been merged.
Proof of Claim 33.
The previous claim also yields a formula that defines the set in . Consider the formula
expressing that and have the same neighborhood on . We claim that for all and , we have if and only if and are in the same part of . If and are in the same part of , we can verify that using Observation 30 on the graphs and . If and are in different parts, we can verify that using Lemma 14 as in the proof of the previous claim.
Next, consider the formula
asking whether there exists a vertex that is in the same part of as and which is adjacent to . We claim that detects between which vertices of the adjacency was flipped from to . More precisely, for all distinct vertices we want
To prove this property, let be distinct vertices. Assume first . Then there exists a vertex which is adjacent to in . As all the vertices of are isolated in , this means the adjacency between and must have been created by the flip, so we have . Assume now . By construction there exists a vertex . As is isolated in , it must be connected to in . Then witnesses . This proves that has the desired properties. We can finish the proof of the claim by setting . Combining the two claims yields the desired interpretation satisfying . We again stress that the construction of and was independent of (but requires ). This finishes the proof of the lemma.
4.2 Interpreting Paths in Flipped Half-Graphs
Lemma 34 ().
There exists an FO-interpretation such that for every , every flipped contains an induced subgraph such that .
Proofsketch.
Using hereditariness, we can insert twins, which we use to define the two sides and of the half-graph. We can order the elements of by their neighborhoods. The successor relation of the order forms the desired path.
In the full version, we show Proposition 28 by combining Lemmas 34, 31, and 29.
5 Monadic Stability
We quickly discuss the two implications from Figure 4 concerning monadic CMSO-stability.
Proposition 35 ().
Every bounded shrub-depth graph class is monadically CMSO-stable.
Proposition 36 ().
Every graph class, that for every contains as induced subgraphs either a flipped or a flipped , is monadically CMSO-unstable.
Proposition 35 follows mostly from existing techniques. It is known that no class of bounded shrub-depth CMSO-transduces the class of all half-graphs [17]. This implies that no CMSO-formula on free singleton variables has the order-property on any coloring of a class of bounded shrub-depth. Proving monadic CMSO-stability requires extending this fact to formulas with tuple variables. In the full version, we do so by finitizing a model-theoretic result by Simon [31] (related to [3, 2]) and extending it from FO to CMSO.
To prove Proposition 36, we give an FO-transduction that given a flipped produces (whose vertices are easy to order). This is similar to what we do in Lemma 31, but the more powerful transductions allow us to work in s instead of s.
6 The Expressive Power of MSO
Proposition 37 ().
MSO is more expressive than FO on every hereditary graph class, that for every contains either a flipped or a flipped .
Proofsketch.
Fix a graph class as in the statement By the pigeonhole principle and hereditariness, it is sufficient to prove the proposition in two separate cases: either contains arbitrarily large flipped or it contains arbitrarily large flipped .
Case 1.
By Lemma 34, there exists a fixed interpretation such that every flipped contains an induced subgraph on which interprets . Using this interpretation, we can show that there exists an MSO-sentence that distinguishing and for every . The sentence checks whether the interpreted has even length, a property that is easily expressible in MSO. To show that there is no FO-sentence equivalent to , we show that there is a fixed multi-dimensional FO-interpretation that produces from the linear order of size . It is known that for every there is such that no FO-sentence of quantifier rank can distinguish and [23, Thm. 3.6]. The interpretation lifts this result to and , which proves that no FO-sentence is equivalent to the MSO-sentence on .
Case 2.
If is a flipped with , we define to be the graph where the first vertex and last vertex of the first path are deleted, and to be the graph where the first vertex of the first path and the last vertex of the second path are deleted. Using techniques similar to Lemma 31 we can construct an interpretation which reverses the flips on . This means is the disjoint union of many s and a single ; and is the disjoint union of many s and two s. Using this interpretation , we can construct an MSO-sentence which for every graph , that is a flipped , distinguishes and . This sentence checks whether all paths of the interpretation have the same parity: they are either all of even or all of odd length. By construction and . To show that no FO-sentence is equivalent to on , we construct an FO-interpretation that produces from a coloring of for both . Here the colors mark the parts of the flip-partition, which means each path is colored the same way. For every FO-sentence , there is such that cannot distinguish between the colorings of and : it cannot tell whether two endpoints of the same or of different long paths are missing. Intuitively this is because FO cannot express connectivity. This is easiest to formalize using Hanf locality [19, 13], but the classic Ehrenfeucht-Fraïssé games also work. Again this inexpressibility can be lifted through , which proves that no FO-sentence is equivalent to the MSO-sentence on .
7 Outlook
In this work, we have characterized graph classes of bounded shrub-depth by forbidden induced subgraphs. This has allowed us to derive further characterizations through logic, for instance by the model theoretic property of MSO-stability, and by comparing the expressive power of FO and MSO. In this last section we will discuss possible future work.
Stronger Obstructions.
While the obstructions we found were sufficient to achieve our goal of characterizing MSO-stability, we initially had a stronger characterization in mind, which we could neither prove nor refute:
Conjecture 38.
For every graph class of unbounded shrub-depth there exists such that contains as induced subgraphs either
-
a flipped for every , or
-
a -flip of for every .
As we have seen in Lemma 22, this conjecture holds for every class that is monadically FO-unstable. Even stronger, the -flips of s appearing there can be assumed to be periodic. This means, the flip-partition splits the paths in a repeating pattern. This is due to the fact that we have extracted the -flips of , by “snaking” along the known obstructions characterizing monadic FO-stability (see Figure 5). The advantage of these periodic flips is that they can be finitely described: for every monadically FO-unstable class there exists an algorithm that given , returns a size- obstruction (a flipped or a -flip of ) that is contained in . We currently do not know whether classes of unbounded shrub-depth admit such algorithms, as we have little control over how the s are flipped. Having such a finite description would help to lift algorithmic hardness results from the class of all paths to every hereditary classes of unbounded shrub-depth. One such result is by Lampis, who shows that there is no fpt MSO model checking algorithm for the class of all paths whose runtime dependence is elementary on the size of the input formula, under the complexity theoretic assumption E NE [22]. Lifting this hardness result to hereditary classes of unbounded shrub-depth would yield another characterization, as it is known that every class of bounded shrub-depth admits elementary fpt MSO model checking [14, 16].
Relation to the SC-Depth Hierarchy.
Our Theorem 1 only characterizes shrub-depth on the coarse level, distinguishing between classes of bounded and unbounded shrub-depth. One can ask whether the individual levels of the shrub-depth hierarchy (i.e., classes of shrub-depth for ) can be characterized similarly. The answer to this is negative, as shrub-depth cannot be meaningfully measured on single graphs, but only on graph classes containing infinitely many arbitrarily large graphs. In particular, every graph class consisting only of a single finite graph has shrub-depth at most 1. A more refined parameter that can also be measured on single graphs is SC-depth. On the coarse level, SC-depth and shrub-depth are equivalent: A graph class has bounded shrub-depth if and only if it has bounded SC-depth [16]. We strongly believe that a more fine-grained analysis of our proofs and the proofs in [28, 11] would yield a functional equivalence between SC-depth and the size of the obstructions we have uncovered in this work. More precisely, for a graph define to be the size of the largest flipped or flipped contained as an induced subgraph in . We conjecture the following.
Conjecture 39.
There are functions such that for every graph holds
MSO-Dependence.
Our last question concerns the model theoretic notion of dependence, a second major dividing line that generalizes stability. Similar to FO-stable classes, also FO-dependent classes have recently been shown to admit nice combinatorial characterizations [11]. This raises the question whether also MSO-dependence can be combinatorially characterized. It is natural to conjecture the following.
Conjecture 40.
For every hereditary graph class , the following are equivalent.
-
1.
has bounded clique-width (or equivalently bounded rank-width).
-
2.
is MSO-dependent.
-
3.
is monadically MSO-dependent.
-
4.
is CMSO-dependent.
-
5.
is monadically CMSO-dependent.
It is already known that a class has bounded clique-width if and only if it does not CMSO-transduce the class of all graphs [7]. In the full paper we show that this confirms the equivalence of the conjecture. We remark that both of the two equivalence and would imply that every class of unbounded clique-width MSO-transduces the class of all graphs. In turn, this would imply the longstanding Seese’s conjecture stating that the MSO-theory of every graph class of unbounded clique-width is undecidable [30, 6]. This suggests that Conjecture 40 is a tough nut to crack.
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. doi:10.1016/J.EJC.2013.06.048.
- [2] Peter John Anderson. Tree-decomposable theories. Master’s thesis, Simon Fraser University, 1990.
- [3] John T. Baldwin and Saharon Shelah. Second-order quantifiers and the complexity of theories. Notre Dame Journal of Formal Logic, 26(3):229–303, 1985. doi:10.1305/NDJFL/1093870870.
- [4] Samuel Braunfeld and Michael C. Laskowski. Existential characterizations of monadic nip. arXiv preprint arXiv:2209.05120, 2022. arXiv:2209.05120.
- [5] Hector Buffière, Eun Jung Kim, and Patrice Ossona de Mendez. Shallow vertex minors, stability, and dependence. Innovations in Graph Theory, 1:87–112, 2024. doi:10.5802/igt.5.
- [6] Bruno Courcelle and Joost Engelfriet. Graph structure and monadic second-order logic: a language-theoretic approach, volume 138. Cambridge University Press, 2012.
- [7] Bruno Courcelle and Sang-il Oum. Vertex-minors, monadic second-order logic, and a conjecture by Seese. Journal of Combinatorial Theory, Series B, 97(1):91–126, 2007. doi:10.1016/j.jctb.2006.04.003.
- [8] Jan Dreier, Ioannis Eleftheriadis, Nikolas Mählmann, Rose McCarty, Michał Pilipczuk, and Szymon Toruńczyk. First-Order Model Checking on Monadically Stable Graph Classes . In 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 21–30, Los Alamitos, CA, USA, October 2024. IEEE Computer Society. doi:10.1109/FOCS61266.2024.00012.
- [9] 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, STOC 2023, pages 567–580, New York, NY, USA, 2023. Association for Computing Machinery. doi:10.1145/3564246.3585186.
- [10] Jan Dreier, Nikolas Mählmann, Sebastian Siebertz, and Szymon Toruńczyk. Indiscernibles and flatness in monadically stable and monadically NIP classes. In Kousha Etessami, Uriel Feige, and Gabriele Puppis, editors, 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, July 10-14, 2023, Paderborn, Germany, volume 261 of LIPIcs, pages 125:1–125:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.ICALP.2023.125.
- [11] Jan Dreier, Nikolas Mählmann, and Szymon Toruńczyk. Flip-breakability: A combinatorial dichotomy for monadically dependent graph classes. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, pages 1550–1560, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3618260.3649739.
- [12] Michael Elberfeld, Martin Grohe, and Till Tantau. Where first-order and monadic second-order logic coincide. ACM Trans. Comput. Logic, 17(4), September 2016. doi:10.1145/2946799.
- [13] Ronald Fagin, Larry J. Stockmeyer, and Moshe Y. Vardi. On monadic np vs monadic co-np. Information and Computation, 120(1):78–92, 1995. doi:10.1006/inco.1995.1100.
- [14] Jakub Gajarský and Petr Hliněný. Kernelizing mso properties of trees of fixed height, and some consequences. Logical Methods in Computer Science, Volume 11, Issue 1, April 2015. doi:10.2168/LMCS-11(1:19)2015.
- [15] Jakub Gajarský, Nikolas Mählmann, Rose McCarty, Pierre Ohlmann, Michał Pilipczuk, Wojciech Przybyszewski, Sebastian Siebertz, Marek Sokołowski, and Szymon Toruńczyk. Flipper Games for Monadically Stable Graph Classes. In Kousha Etessami, Uriel Feige, and Gabriele Puppis, editors, 50th International Colloquium on Automata, Languages, and Programming (ICALP 2023), volume 261 of Leibniz International Proceedings in Informatics (LIPIcs), pages 128:1–128:16, Dagstuhl, Germany, 2023. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2023.128.
- [16] Robert Ganian, Petr Hliněný, Jaroslav Nešetřil, Jan Obdržálek, Patrice Ossona de Mendez, and Reshma Ramadurai. When trees grow low: Shrubs and fast MSO1. In Branislav Rovan, Vladimiro Sassone, and Peter Widmayer, editors, Mathematical Foundations of Computer Science 2012, pages 419–430, Berlin, Heidelberg, 2012. Springer Berlin Heidelberg.
- [17] Robert Ganian, Petr Hliněný, Jaroslav Nesetril, Jan Obdrzálek, and Patrice Ossona de Mendez. Shrub-depth: Capturing height of dense graphs. Log. Methods Comput. Sci., 15(1), 2019. doi:10.23638/LMCS-15(1:7)2019.
- [18] Martin Grohe, Stephan Kreutzer, and Sebastian Siebertz. Deciding first-order properties of nowhere dense graphs. Journal of the ACM (JACM), 64(3):1–32, 2017. doi:10.1145/3051095.
- [19] William Hanf. Model-theoretic methods in the study of elementary logic. In The Theory of Models, Studies in Logic and the Foundations of Mathematics, pages 132–145. North-Holland, 1965. doi:10.1016/B978-0-7204-2233-7.50020-4.
- [20] Wilfrid Hodges. A Shorter Model Theory. Cambridge University Press, 1997.
- [21] O-joung Kwon, Rose McCarty, Sang il Oum, and Paul Wollan. Obstructions for bounded shrub-depth and rank-depth. Journal of Combinatorial Theory, Series B, 149:76–91, 2021. doi:10.1016/j.jctb.2021.01.005.
- [22] Michael Lampis. Model checking lower bounds for simple graphs. Logical Methods in Computer Science, Volume 10, Issue 1, March 2014. doi:10.2168/LMCS-10(1:18)2014.
- [23] Leonid Libkin. Elements of finite model theory, volume 41. Springer, 2004. doi:10.1007/978-3-662-07003-1.
- [24] Nikolas Mählmann. Monadically Stable and Monadically Dependent Graph Classes: Characterizations and Algorithmic Meta-Theorems. PhD thesis, University of Bremen, 2024.
- [25] Nikolas Mählmann. Forbidden induced subgraphs for bounded shrub-depth and the expressive power of mso. arXiv preprint arXiv:2501.13903, 2025. doi:10.48550/arXiv.2501.13903.
- [26] Jaroslav Nešetřil and Patrice Ossona de Mendez. On nowhere dense graphs. European Journal of Combinatorics, 32(4):600–617, 2011. doi:10.1016/J.EJC.2011.01.006.
- [27] Pierre Ohlmann, Michał Pilipczuk, Wojciech Przybyszewski, and Szymon Toruńczyk. Canonical Decompositions in Monadically Stable and Bounded Shrubdepth Graph Classes. In Kousha Etessami, Uriel Feige, and Gabriele Puppis, editors, 50th International Colloquium on Automata, Languages, and Programming (ICALP 2023), volume 261 of Leibniz International Proceedings in Informatics (LIPIcs), pages 135:1–135:17, Dagstuhl, Germany, 2023. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2023.135.
- [28] Patrice Ossona de Mendez, Michał Pilipczuk, and Sebastian Siebertz. Transducing paths in graph classes with unbounded shrubdepth. European Journal of Combinatorics, 123:103660, 2025. SI: Sparsity in Algorithms, Combinatorics and Logic. doi:10.1016/j.ejc.2022.103660.
- [29] Klaus-Peter Podewski and Martin Ziegler. Stable graphs. Fundamenta Mathematicae, 100(2):101–107, 1978. URL: http://eudml.org/doc/210953.
- [30] Detlef Seese. The structure of the models of decidable monadic theories of graphs. Annals of Pure and Applied Logic, 53(2):169–195, 1991. doi:10.1016/0168-0072(91)90054-P.
- [31] Pierre Simon. A note on stability and nip in one variable. arXiv preprint arXiv:2103.15799, 2021. arXiv:2103.15799.