Cat Herding Game Played on Infinite Trees
Abstract
The game of Cat Herding is played on a graph between two players, the cat and the herder. The game setup consists of the cat choosing a starting vertex for their cat token. Then, both players alternate turns, beginning with the herder: they delete (any) one edge, called a cut, and the cat moves along a path to a new vertex. While this game has been studied on finite graph arenas regarding how optimally herder wins, we shift our attention to an infinite version of the game where the cat may now survive indefinitely. We show that cat winning positions in an infinite tree can be characterized by a second-order monadic statement, also amounting to having a complete infinite binary tree minor, or having uncountably many distinct rays. We take advantage of the logical characterization of cat winning positions to generalize a measure known as the cat number, to ordinals.
Keywords and phrases:
Pursuit-evasion games, Cat Herding, Cat number, Infinite trees, Monadic Second Order Logic, OrdinalsFunding:
Rylo Ashmore: Rennes Métrople, Incoming International Mobility Grant for doctoral researchers.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Higher order logic ; Theory of computation Verification by model checking ; Theory of computation Automata over infinite objects ; Theory of computation Tree languagesEditors:
C. Aiswarya, Ruta Mehta, and Subhajit RoySeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Pursuit-evasion games is a family of games played on graphs that allow for modeling problems arising from piratical applications, such as Robotics, Network Security, and Traffic Management to mention a few. Many results on those games exist, that mostly focus on algorithms and computational complexity of the problem. For a few examples, the quintessential pursuit-evasion game of cops and robbers is known to be EXP -complete [11], the game of firefighting is NP -hard [1], and a broader survey of complexity of pursuit-evasion games can be found [6]. Some of these games also extend naturally to infinite versions, either directly or with slight rules adjustments [15, 12, 14, 4], which are typically analyzed through a lens of structural classifications, rather than algorithmic complexity. In the case of firefighting, this gives open problems, such as whether one firefighter suffices to contain a fire on a hexagonal infinite grid [9]. Such infinite games yield natural difficulties with finding algorithmic results (what is the size of the input?). This paper introduces a novel approach to tackling these difficulties, by taking a logical approach from theoretical computer science to yield deeper insight to a particular pursuit-evasion game: the Cat Herding game.
The game of Cat Herding, introduced in [2], is played on a graph between two players, the cat and the herder. The game setup consists of the cat choosing a starting vertex for their cat token, which we also refer to as the cat. After this, both players alternate turns, beginning with the herder: they delete (any) one edge, called a cut, and the cat moves along a path to a new vertex. Note that in this context, a cut refers to a single edge cut, which may or may not disconnect the graph. Note also that the cat may not stay still. Once the cat is on an isolated vertex and cannot move (which must happen within cuts), the game terminates. The objective of the herder is to minimize the number of cuts required to isolate the cat, while the objective of the cat is to maximize the number of cuts required to isolate them. We also refer to the cat having no moves available as being captured.
While the introductory paper [2] introduces the game and analyzes it primarily on complete graphs, in this paper we shift our attention to an infinite version of the game. Here, we are concerned with if the cat can survive indefinitely. We will later find that this is not equivalent to the cat surviving arbitrarily long, and we will also provide some analysis of that. We will restrict our attention to trees due to our techniques being essentially with tree automata. For a more complete picture of general infinite Cat Herding, we direct the reader’s attention to [3]. This paper’s main objective is to show that a certain monadic second order logic statement is satisfied on a given tree if, and only if, the cat can win on that tree . We note that [5] analyzes infinite (locally finite) graphs and their localization numbers, and their results are similarly related to ends and rays. We also show that cat-win trees and trees that satisfy our Monadic Second Order Logic (MSO) statement are also equivalent to having a complete infinite binary tree minor, or having uncountably many distinct rays. Our argument allows us to also extract an explicit herder strategy on graphs that are herder-win, and this strategy involves a notion of transfinite cat numbers. We show that there are graphs with unbounded transfinite cat number (up to the countable ordinal). Our argument also allows us to extract a decision procedure for deciding if regular trees (those with a structure representable by a regular language) are cat-win or not.
The paper is organized as follows. In Section 2 we introduce the context of our study and recall some known results on the Cat Herding game on finite arenas. Then Section 3 contains our first contribution where we make use of MSO for solving the Cat Herding game on infinite tree arenas. Our second contribution on transfinite cat numbers is developed in Section 4. We end this paper with perspectives on studying the Cat Herding on other kinds of infinite arenas than trees.
2 The Cat Herding game
2.1 Basics on graphs and trees
For standard graph definitions of degree, paths, cycles, and complete graphs, we defer to [20], as well as for other more technical notions that we briefly recall here. Given a finite (undirected) graph , where is the set of vertices and is the set of edges, a subgraph is a minor of when it is obtainable through a sequence of vertex and edge deletions, along with edge contractions (where the edge is deleted, vertices are identified and their neighbourhoods are merged). Minors can also be defined for infinite graphs by relaxing the former definition: we allow any set of edges and vertices to be deleted, along with any connected set of vertices to be contracted to a point analogously, etc. We also recall that any (finite or infinite) connected graph which does not contain cycles is a tree graph. Formally, we define a tree as a structure , that arises from some tree graph , where is a particular vertex called the root and is given by: if and is closer to than vertex . For finite trees, the height is the length of a longest branch.
When working on trees, we may use the word “node” instead of ”vertex”. In the following, we will write instead of , and we will write for the reflexive and transitive closure of the binary relation . Namely, means either , or and are on a same path from the root in the underlying tree graph and node is closer to than node ; we say that is an ancestor of (and is a descendant of ). In an infinite tree , a ray (infinite branch) is an infinite sequence of vertices such that , for all .
2.2 Cat Herding game on finite graphs
The game of Cat Herding is played on a graph, where the cat begins by choosing a vertex to start on. Then the players take turns, with the herder permanently deleting any edge from the graph, and the cat moving along any nontrivial path to a new vertex. In a finite graph, the game ends when the cat cannot move, and the score is the number of edges deleted over the course of the game. The cat is trying to maximize this number, while the herder is trying to minimize it. We will explore the infinite case on trees, but first we recall the main results on the Cat Herding game when played on finite graphs as studied in [2].
Definition 1.
Let be a graph. For each , we define to be the minimum number of cuts to terminate the game (e.g., isolate the cat) played on arena when the cat starts at , and we let .
Example 2.
Actually, it can be shown by induction on the height of binary trees111a tree is binary if it is non-empty and its internal nodes have at most two children. that the cat number of any vertex is equal to its height in vertices, counting itself. For example, consider playing on the graph (the complete binary tree of height of vertices). In Figure 1, diagrammed herder cuts of edges correspond to the following play where the initial position of the cat is . The herder makes any move, say deleting . The cat responds by moving to the root of the subtree that was not cut, say . The herder may cut , forcing the cat down a level again, say to . Finally the herder cuts , isolating the cat in cuts.
Regarding known results on the cat number, we know that it is monotonic with respect to subgraphs.
Theorem 3 ([2]).
If is a subgraph of , then . Further, if , then .
Next, we recall some preliminary values for the cat number of some known classes of graphs. As we will be interested in trees, we start with paths and stars. Let us write for a path with vertices.
Theorem 4 ([2]).
For all ,
Paths roughly correspond to binary search, providing some intuition for the term. After one cut, cycles are paths. Let us write the cycle graph with vertices and the wheel graph with a cycle of vertices and an extra vertex “in the middle” connected to all of them.
Since the cat must move after a herder’s cut, we have the following result on stars. Let us write for the star graph with vertices.
Theorem 6 ([2]).
For all , .
The reader interested in more details may refer to [2].
3 Cat Herding played on Infinite Trees
In this section, we classify the cat-win infinite trees. Without loss of generality, for any non-empty tree, fixing a node as the root does not change the game of Cat Herding (since the cat can travel both ways along edges of the graph).
Since our analysis will rely on monadic second-order logic, we preliminarily recall which logic we mean to use.
3.1 Monadic Second Order Logic on Trees
The Monadic Second-Order Logic (MSO) formulas we consider are meant to be interpreted on trees of arbitrary degree. Our presentation is inspired from [19].
The syntax of our monadic second-order logic (MSO) is based on a set composed of first-order variables and of second-order variables which are meant to represent elements and sets, respectively. The full syntax of the logic MSO is given by :
We also allow for the usual syntactic sugar for , and . Also is a short-cut for , and is a short cut for .
Further, we interpret MSO-formulas on an arbitrary tree . We will use symbols for elements ranging over and symbols for subsets of .
Given an MSO-formula and a valuation of the first-order and second-order variables we write to express that formula holds in tree for valuation , and define it by induction over as follows – we take the convention to write for the valuation that is as but that maps first-order variable onto vertex , and similarly for .
-
whenever in
-
whenever
-
whenever
-
whenever and
-
whenever there exists such that
-
whenever there exists such that
With a very standard construction, and thanks to second-order quantification, one can define a formula written , whose semantics is the reflexive and transitive closure of the binary relation (see Section 3.3).
In the following, and for succinctness of MSO-statements, we use formulas of the form with the following semantics.
-
whenever in
Finally, we let the formula .
As for a closed222that is all variables are under the scope of a quantifier. MSO-formula , the valuation plays no role, we simply write . Also we loosely write to set the value of free occurrences of variable to in , and similarly for second-order variables.
We end this section by recalling the major result on MSO over infinite trees, namely Rabin’s Theorem, that holds for the class of infinite complete trees with a countable degree333the degree of a tree is the maximum number of children of the nodes in the tree.. This theorem will be useful to establish that solving the Cat Herding game over an infinite countable-degree regular tree arena is decidable, as studied in the next section.
Theorem 7 ([17, 10]).
For every , one can decide if an input MSO-formula holds in , the complete tree of degree .
We now focus on playing the Cat Herding on infinite graphs that have a tree structure.
3.2 MSO for Cat Herding game on infinite tree arenas
We present the core MSO-formulas over trees we will need to analyze the Cat Herding game. In our explanation for each of them, the term “path” relates to a path in the tree graph underlying the tree under concern.
| // is a descendant of and contains the unique path | |||
| from to | |||
| // since is the minimal set achieving HasDiPath, is | |||
| // exactely composed of the vertices between (and including). | |||
| // and . | |||
| // is a set of vertices that includes a path from to . | |||
| // there are edge-disjoint - and -paths | |||
| //(DB means “disjoint branches”). |
We finally introduce the main formula whose meaning will be further investigated and that plays a central role in characterizing cat winning positions in an infinite tree.
| (1) |
We now establish a few lemmas for the proof of our main result (Theorem 15) of a logical characterization of all trees where the cat has a winning strategy (that is, the cat can survive indefinitely). From now on and up to Lemma 14 included, we fix a tree .
For each natural number , we define as follows.
-
, and
-
for each , .
Lemma 8.
For every and , we have if, and only if, is the root of a binary tree minor of of height .
Proof.
We proceed by induction on . The case is trivial, as a vertex itself is a binary tree minor of height . Let .
Suppose is the root of a complete binary tree minor of height . We must show . We proceed by observing the left and right children from in this minor, say . These nodes are both a root of complete binary tree minor of height . Nodes and are the good candidates to set the two existential quantified variables and in formula : indeed, they are both descendants of with edge-disjoint paths (by construction), and by induction, we have , giving us that .
Suppose that . There must be such that , , and there are edge-disjoint and -paths. By induction, since , both must be roots of complete binary tree minors of height . Combined with edge-disjoint and -paths, must be the root of a binary tree minor of height .
We now extend our semantics to capture what we loosely call here “transfinite iterations” of DBChildin, and that corresponds to the fix-point of a well-identified function in Lemma 12.
Definition 9.
As earlier, let . Then, for every successor ordinal , let , and for every limit ordinal , let .
Lemma 10.
For evry ordinal , we have if, and only if, for all , has edge-disjoint descendant paths to a pair of vertices in .
Proof.
We proceed by transfinite induction on .
This is vacuously true for . If is a successor ordinal, then implies there are edge-disjoint descendant paths to vertices in . But vertices in must have descendant paths to vertices in for every . Composing these paths, we obtain edge-disjoint paths to every , as well as edge-disjoint paths to a pair of vertices in , thus giving every ordinal . Conversely, if has edge-disjoint paths to pairs of vertices in for all , then in particular has edge-disjoint paths to a pair of vertices in since , and thus .
If is a limit ordinal, then gives the paths to vertices in , for any . Conversely, if has a pair of edge-disjoint paths to all , then it is in all by induction, and thus is in the intersection, so is in .
With the sets and the preliminary properties expressed, we can consider the following function over the complete lattice .
One can verify that the function is -monotonic. By the Knaster-Tarski Theorem [18], the function has a greatest fix-point, that we write 444a classical notation, as for mu-calculus [13]..
Lemma 11.
If , then .
Proof.
We show that is contained within all for by transfinite induction on .
If is a limit ordinal or , this is trivial. Otherwise, we only need to show that , as this implies for all , the same as all . As such, we must show that . For , we know that there are two edge-disjoint descendant paths to . Each of these must have edge-disjoint paths to vertices in for all by Lemma 10. By combining these paths, we obtain that as was to be desired.
With no surprise, we obtain the following.
Lemma 12.
For every , . Further, .
Proof.
This a fairly standard proof, one may skip reading.
Since there is no set of all ordinals, we must bound the ordinals. However, each non-stabilizing iteration of removes at least one vertex, thus need only be computed up and including to the order of , making this a well-defined set.
We show for all ordinals by transfinite induction. Observe is trivial. If is a successor ordinal, then we observe that implies has edge-disjoint paths to also in the fix-point. But then by induction. Thus . Finally if is a limit ordinal, then implies for all by induction. Thus in the fix-point implies in the limit ordinal. Now, follows immediately from the first argument.
We now show . We show , so that is a fix-point, and by being a greatest fix-point, we obtain the subset relation. If , then has edge-disjoint descendant path pairs to vertices in for all (using ). Thus . Conversely, if , then has edge-disjoint descendant paths to . Trivially . Next, implies since has paths to . Finally, for limit ordinal , if for all , then by definition . Thus , and is a fix-point of . We will show that property characterizes the herder-win trees, namely trees where herder has a strategy to capture the cat (whichever node the cat starts at). In service of this, we will provide herder strategies when a given rooted subtree has bounded ordinal vertices. To do so, we will make frequent use of a herder strategy to force the cat off of a ray.
Lemma 13.
If is a ray in tree , then within finitely many moves, the herder may capture the cat, or force the cat off of .
Proof.
If the cat is not initially on , then the herder disconnects from the cat. On a cat move to along this ray, the herder deletes the next vertex along the ray, isolating the cat to finitely many vertices of . After finitely many moves, the herder may separate all of these vertices, and then make a passing move if necessary to force the cat off of the last one the cat has access to, and finally make a cut separating the cat from that vertex. Observe that as only the cat’s initial move may choose how many vertices of remain accessible after the herder’s cut, removing the cat’s access to this ray must be attainable within cuts – recall that is the least infinite ordinal greater than all the finite ordinals. We further explain how herder captures the cat on subtrees of bounded .
Lemma 14.
Let be an ordinal, and let . If for all , , then the herder can capture the cat starting at .
Proof.
Regardless of ’s type, the herder begins by cutting from its parent if any, otherwise herder cuts an edge outgoing . If the game does not terminate here, on the cat move to , we split the argument on the type of ordinal .
If , the property trivially holds as it cannot be that .
If is a successor ordinal, then consider where descendants in lie in the subtree below . If ever two incomparable , then their deepest common ancestor necessarily below or equal to would be in , a contradiction. Thus all elements of are comparable, and thus lie on a single ray (or path). Apply Lemma 13 to force the cat off of all elements of , and apply the (transfinite) induction hypothesis on the resulting tree the cat is on, since all its vertices are outside .
If is a limit ordinal, then consider the set of -rooted rays . If contains at least two distinct rays, then there must be a first vertex at which they deviate, say . By Lemma 10, must be in , a contradiction. Thus at most one ray may contain vertices in . We follow Lemma 13 to remove the cat’s access to this ray, and let , be the new cat position. Now, every descendant vertex is outside some , with . We show .
Suppose for contradiction . By Lemma 11, there must be infinitely many such that . Choose a representative with , so that is as close to the root as possible. Suppose have incomparable representatives . Then their least common ancestor should have been the candidate for . Thus every representative is comparable, and they must lie on the same ray. But then we have another cat-accessible ray with for all , a contradiction with the earlier herder-play. Thus is bounded, say by . We now use the transfinite induction where vertex can be used as the new root of Lemma 14.
Thus the ordinal has been reduced for the entire subtree and the cat’s location may again be interpreted as a root.
Note that these ray-themed arguments are reminiscent of the argument that the cat wins implies the existence of an infinite binary tree minor, but here the greatest fix-point characterization naturally leads us to reason about particular transfinite sets, yielding us a (transfinite) constructive herder strategy for capturing the cat.
We introduce the key formula (for “Exists Cat Winning”) that characterizes the nodes the cat can start at and win by only downwards moves in tree. We will then make use the formula (see formula in Equation 3) to describe the set of nodes the cat can start at and survive indefinitely.
| (2) |
We can now state our first main theorem.
Theorem 15.
Let be a tree with a designated root. The following are equivalent.
-
1.
The cat wins the game of Cat Herding on .
-
2.
.
-
3.
contains a complete infinite binary tree minor.
-
4.
has uncountably many distinct rays from the root.
Proof.
We show more directions than necessary, as some provide different clarity on the argument.
-
. Argue by contrapositive as follows. Negating the logical statement of cat-win graphs, we obtain . This property in particular would hold for (the greatest fix-point of ) if non-empty, so that we must have . The latter yields , a contradiction for the fix-point. Therefore . By Lemma 12, , so that that for every node , we have for some . Apply Lemma 14 with the root of , to conclude that herder can capture the cat. Observe that Lemma 14 provides an explicit herder strategy for capturing the cat.
-
. We must construct some injective mapping from the infinite binary tree on to a subtree of . Let be a vertex such that , and let be such that . We define the mapping such that , every .
We proceed by induction over .
-
–
– the full binary tree minor we construct is rooted at .
-
–
Let node be such that has already been defined and therefore . Then, we know that , which in particular entails . By definition of formula , node has descendant nodes in on two different branches, that we naturally use to define and respectively.
Note that by construction is injective, as and are disjoint and that we target vertices deeper and deeper in the tree. Say a node is -hit if it is in the image of . The complete infinite binary tree minor of is obtained by contracting all edges with at most one -hit node.
-
–
-
. Immediate from the uncountability of the set of all infinite binary sequences, corresponding to rays.
-
by contrapositive. We must show that if the herder wins, then the rays are countable. Observe the th cut may remove the cat from accessing infinitely much of a given ray . Let to be the set of rays which the cat could access infinitely much of before the th cut, but only finitely much after the th cut. We argue is countable and . By contradiction, if there exists an th cut that makes uncountable, then the cat made a bad move. Suppose the cat instead went to just on the other side of the herder cut. Then we get uncountably many rays available now, but the herder’s cut may change. If iterating this process to get successively better cat moves happens to move the cat’s choices upwards (towards the root), it must terminate, and is countable. If downwards (away from the root), get uncountably many rays with same prefix, for any prefix length. In the limit, obtain ray . Then enumerate all rays starting with , then ray deviating at depth , then . A given ray has or deviates from at depth . But depth deviations are countable, and our enumeration of checks depth infinitely many times, so is counted. Thus is countable, as was to be shown. Alternately, the cat can make a strategy that never lets be uncountable, so that is always countable, and there are finitely many of them. Thus is countable. But since clearly , and if , then since the herder won after steps, the cat must have access to at most one vertex of , and so the cat must have had access to infinitely many vertices of removed at some point, say . Thus for some . We have thus counted the set of all rays.
-
. We include this direction to make the cat’s winning strategy explicit. Since , we have a node and a set such that . Thus . The cat’s strategy will be to always play to a vertex and has all herder cuts incomparable or ancestors of the cat’s current position. This is possible, since on any herder cut when the cat is at and . By expanding formula , we get , so that that there are with . The latter implies that no single edge cut from the herder could remove the cat’s path to both and , and the herder only gets one cut as , and all previous cuts were ancestors or incomparable. Thus the cat can move to or , and are both promised, giving the invariant the cat seeks. Note this also corresponds to playing on a root of a complete infinite binary tree minor, so that could have been shown instead similarly.
As a final matter of logical completeness, we provide our second main theorem (Theorem 16), by considering the following formula that characteres all nodes that the cat can start at and still win.
| (3) |
It is clear that the formula always holds, but the reciprocal does not. To see this, consider a complete binary tree where the topmost edges are subdivided once; formally, the set of nodes is . The cat starting at node can win by moving to vertex or (depending on herder’s first cut), and because either if these two nodes satisfies , the cat can survive indefintely. However, the node the cat started from itself does not satisfy : indeed, any two branches from both cross edge and therefore cannot be disjoint as required by Equation 2 for .
Theorem 16.
if, and only if, the cat can win when starting at .
Proof.
In this proof, we may abuse notation and conflate as a set of nodes with the predicate.
() By contrapositive, suppose . Then . Since by assumption , and because , so that all vertices from ECW below are on a same branch. The herder’s strategy is to cut this branch from . The resulting tree fails condition 2 of Theorem 15, and so the herder wins now.
() Suppose . Then on the cat starting at , after any cut, the cat may move to a vertex satisfying ECW (using edge-disjointness of and -paths). Then the strategy of (2 implies 1) in Theorem 15 gives the cat a way to win once in ECW.
3.3 Decidable cases for infinite tree arenas
Note that the case where the arena is some complete -ary tree is solved immediately: For the tree is an infinite rooted path that herder in one initial cut can make finite, so that is herder-win. For where , there is an infinite binary tree minor and by Theorem 15, we necessarily have .
The setting becomes interesting for a tree arena A that is not a complete tree , but that a regular set of nodes of some complete tree : Suppose that the arena A is a regular subset of nodes of some tree . In such a case, A is definable by some unary MSO-predicate . Now, to decide whether the cat wins the game on A or not consists in evaluating the formula “inside” the A part of the tree . This is classically expressed by the relativization of w.r.t. .
Preliminary to formally defining it, we introduce convenient notations for first-order and second-order (existential) quantifiers. For every MSO-formula , we let:
Such quantifiers require the quantified object is confined within the set defined by the unary predicate . Using such quantifiers, Formally, the relativization of an MSO-formula w.r.t. a unary MSO-predicate , written , can be inductively defined as follows.
Notice that by the propagation of the formula down the syntactic tree of the original formula , the quantifier alternation depth (q.a.d for short) of the formula is at most the sum of the q.a.d of each formula, plus one since the outermost quantifier of the propagated formula might occur in the scope of a dual quantifier in the original formula.
We can now formally define the Cat Herding Problem we consider.
| Cat Herding Problem | |
|---|---|
| Input: | A degree and an MSO-formula . |
| Output: | ? |
By Rabin’s Theorem [17] we know that the Cat Herding Problem is decidable. We below provide an upper bound for it.
Note that when resorting to alternating automata constructions [16], model checking an MSO-formula on the tree requires some nested exponential-time operations that depend on its quantifier alternation depth (shortly written q.a.d in the remaining of the paper). The q.a.d of an MSO-formula is the maximum number of alternations between existential and universal quantifiers along any path in the formula’s parse tree.
In particular, when the MSO-formula with q.a.d has an existential outermost quantifier and is expressed only with atomic formulas based on the binary symbol , the model checking can be done in -EXPTIME. The original result comes from the logic SS, the monadic second-order theory with -successors, see [17].
It therefore remains to determine the q.a.d of our formula to obtain an upper bound complexity. However, we preliminary need to translate every occurrence of atomic formulas of the form in terms of the predicate. This is a classic translation that we recall here.
A formula holds of two nodes and in a tree if belongs to the descendants of in . We can characterize these descendants as the smallest set containing and that is closed by the relation – recall that set is -closed whenever . We can express the -closeness in MSO:
| (4) |
We now define the descendants of , namely the smallest -closed set that contains :
| (5) |
The atomic formula now translates as follows.
Note that the q.a.d of the formula is (this can be seen by drawing the its parse tree) with an exitential outermost quantifier.
Noticing that formula as written in (2) has q.a.d , it can be verified that by replacing in every occurrence of an atomic formula of the by its translation yields a formula with a q.a.d equal to . Assuming that the input formula expressed only with predicate (no occurrence of ) has q.a.d equal to , we get that the translation of the main formula has a q.a.d of at most .
Because this MSO-formula has an existential outermost quantifier, the Cat Herding Problem can be solved in -EXPTIME.
4 Transfinite Cat Numbers
We introduce some transfinite structures including ordinals, which loosely correspond to the cat number, or the height of binary minors (binary minors of height rooted at vertices in ). We show with a brief construction that for any given countable ordinal , there exists an infinite tree with vertices in , but still herder-win.
Consider the tree constructions as depicted in Figure 2. Note that all are herder-win, as every such tree allows the herder to have strategies to reduce the cat to a sub-tree with within finitely many moves. Further, the root of every tree is in . This is trivial for . For successor ordinals, the root contains at least two edge-disjoint paths to vertices in inductively. For limit ordinals , every has some with , and so the root having edge-disjoint paths to vertices in is sufficient to show the root is in for all , and thus the root is in . Because this argument does not rely on the particular sequence chosen, limit ordinals may enjoy distinct trees, but we may still conclude that the root of any tree constructed this way has a root in .
Recall that the supremum of all countable ordinals is . We observe that any tree construction from countable ordinal trees with no vertices of infinite degree must be countable (by breadth first search). Thus the construction involves a countable sequence of countable ordinals, which must be countable, and thus below . The only hope for more is to allow infinite degree vertices. Indeed, once this is allowed, providing a branch from the root to tree for every puts the root vertex in , for any limit ordinal . This allows for the construction of any given ordinal that is still herder-win (make a passing move, cut cat onto smaller ordinal tree), but we have to give up on having binary trees, so this construction is not viable for the automatic analysis we do later.
We may also investigate whether these constructions are regular. Write for the language of addresses in tree , and write for the prefix language of . Then, we observe that , , and . Thus this limit ordinal construction does not yield a regular language (as there are infinitely many non-isomorphic sub-trees).
We will push an interpretation of the set of nodes to a representation of the cat number. This requires generalizing our notion of cat number to ordinals. If is an infinite tree where the cat is captured in exactly cuts under optimal herder play, we say that . We generalize this notion to transfinite ordinals, which to our knowledge has never been investigated in the literature.
Definition 17.
Let be a tree for a game of Cat Herding, and be an ordinal. We define ordinal as follows – we write for the tree resulting from a single cut in .
If for every cut in and every , the cat can move to a vertex such that , then .
Conversely, if there exists a cut and such that all reachable vertices we have , then .
We observe that the transfinite ordinal cat numbers are loosely connected to the transfinite sets (the are not sensitive to rays, providing a factor of error of ).
Lemma 18.
Let be a tree, and be an ordinal. If , then , otherwise .
Proof.
If , then there are edge-disjoint descendant paths to for all . The herder cannot block both with their edge cut, so by Definition 17. Otherwise , then the herder’s strategy is to cut above the cat – write for the remaining tree. If there exists such that for all , , then by definition . If instead for every there is a reachable vertex such that , we have seen (proof of Lemma 14) that the set of all those vertices must lie on a single ray from . However, within finitely many moves ( from the ray argument in Lemma 13), the herder can force the cat to a vertex , for some . The resulting play involves the cat being captured in at most . Given that may be unbounded, or , the overall score for is at most . Changing the construction of Figure 2’s case of successor ordinal to the same as the limit ordinal with , we obtain a new family of trees witnessing the upper bound as tight, as all vertices along the two main rays are in , so the herder must take at least moves (using the lower bound) to remove the cat’s access to the , pushing them to the next lowest ordinal. The given construction also witnesses the lower bound, as the root of each is in , but no children vertices are.
Definition 19.
Let be a tree. We define .
Corollary 20.
If is a countable ordinal, then there exists a herder-win binary tree with . If is any ordinal, then there exists a (possibly locally infinite) herder-win tree with .
Proof.
5 Conclusion and Discussion
We have approached the recently introduced pursuit-evasion game Cat Herding [2] through the lens of logic, and demonstrated how logic can help in many respects.
First, the logic allows to extend the setting to particular infinite arenas, namely trees, and is amenable to finding decision procedures for the infinite class of regular infinite tree arenas. We have introduced the Cat Herding Problem and shown an upper bound for it. To our knowledge, these results are new. They pave the way to follow-up questions such as the complexity lower bounds – we currently are not aware of any concrete approach to tackle it. Also, one may consider variants where the “the cat may not stay sill” constraint is relaxed, and that do not reduce to the original problem.
Second, and interestingly, our construction involving the formula motivates a notion of transfinite cat numbers, and while we provided some rough bounds on the cat numbers of vertices, our arguments exhibit a factor of on the bounds, leaving a natural future direction to tighten up a procedure for labeling all nodes with their cat ordinal.
Beyond immediate future direction, it remains to better understand how the logical setting could be used beyond infinite-tree arenas. In a large class of infinite graphs, such as the Caucal Hierarchy [7], our logical approach does not help to solve Cat Herding on arbitrary graphs of this hierarchy: playing Cat Herding on a given graph of the hierarchy obviously cannot reduce to playing Cat Herding in the complete binary tree – recall that in the complete binary tree, the cat can survive indefinitely, while single rays do belong to the hierarchy. Since, playing a cut in a graph of the hierarchy can be reflected as a “regular” set of cuts in the complete binary tree, there might be well-tuned new games to study on the complete binary tree that would provide the missing counterpart of playing Cat herding in those graphs. Also, it might be the case that by using the logic MSO2 that also quantifies over edge sets, one may find a way to accurately trace back herder’s cut – note that links between MSO2 and MSO are tight for a large class of graphs [8].
References
- [1] Julius Althoetmar, Jamico Schade, and Torben Schürenberg. Complexity of firefighting on graphs, 2025. doi:10.48550/arXiv.2505.11082.
- [2] Rylo Ashmore, Danny Dyer, Trent Marbach, and Rebecca Milley. Cuts, cats, and complete graphs. Theoretical Computer Science, page 115393, 2025. doi:10.1016/j.tcs.2025.115393.
- [3] Rylo Ashmore, Danny Dyer, and Rebecca Milley. Extremal cat herding, 2025. doi:10.48550/arXiv.2505.07588.
- [4] Anthony Bonato, Florian Lehner, Trent Marbach, and Jd Nir. The localization game on locally finite trees. In European Conference on Combinatorics, Graph Theory and Applications, pages 149–155, January 2023. doi:10.5817/CZ.MUNI.EUROCOMB23-021.
- [5] Anthony Bonato, Florian Lehner, Trent G. Marbach, and JD Nir. Locally finite graphs and their localization numbers, 2024. doi:10.48550/arXiv.2404.02409.
- [6] Richard Borie, Craig Tovey, and Sven Koenig. Algorithms and complexity results for pursuit-evasion problems. In IJCAI International Joint Conference on Artificial Intelligence, pages 59–66, January 2009. URL: http://ijcai.org/Proceedings/09/Papers/021.pdf.
- [7] D. Caucal. On infinite terms having a decidable monadic theory. In International Symposium on Mathematical Foundations of Computer Science, pages 165–176. Springer, 2002.
- [8] Bruno Courcelle and Joost Engelfriet. Graph structure and monadic second-order logic: a language-theoretic approach, volume 138. Cambridge University Press, 2012.
- [9] Alexander Dean, Sean English, Tongyun Huang, Robert A. Krueger, Andy Lee, Mose Mizrahi, and Casey Wheaton-Werle. Firefighting on the hexagonal grid and on infinite trees. arXiv: Combinatorics, 2020. URL: https://api.semanticscholar.org/CorpusID:222291324.
- [10] Erich Grädel, Wolfgang Thomas, and Thomas Wilke, editors. Automata, Logics, and Infinite Games: A Guide to Current Research [outcome of a Dagstuhl seminar, February 2001], volume 2500 of Lecture Notes in Computer Science. Springer, 2002. doi:10.1007/3-540-36387-4.
- [11] William B. Kinnersley. Cops and robbers is exptime-complete. Journal of Combinatorial Theory, Series B, 111:201–220, 2015. doi:10.1016/j.jctb.2014.11.002.
- [12] Oddvar Kloster. A solution to the angel problem. Theoretical Computer Science, 389:152–161, December 2007. doi:10.1016/j.tcs.2007.08.006.
- [13] D. Kozen. Results on the propositional mu-calculus. Theoretical Computer Science, 27(3):333–354, 1983. Special Issue Ninth International Colloquium on Automata, Languages and Programming (ICALP) Aarhus, Summer 1982. doi:10.1016/0304-3975(82)90125-6.
- [14] Florian Lehner. Cops, robbers, and infinite graphs, 2015. doi:10.48550/arXiv.1410.8412.
- [15] ANDRÁS Máthé. The angel of power 2 wins. Combinatorics Probability and Computing., 16(3):363–374, May 2007. doi:10.1017/S0963548306008303.
- [16] D. Muller and P. Schupp. Simulating alternating tree automata by nondeterministic automata: New results and new proofs of the theorems of Rabin, McNaughton and Safra. Theoretical Computer Science, 141(1-2):69–107, 1995. doi:10.1016/0304-3975(94)00214-4.
- [17] Michael O. Rabin. Decidability of second-order theories and automata on infinite trees. Transactions of the American Mathematical Society, 141:1–35, 1969. URL: http://www.jstor.org/stable/1995086.
- [18] Alfred Tarski. A lattice-theoretical fixpoint theorem and its applications, 1955.
- [19] Igor Walukiewicz. Monadic second-order logic on tree-like structures. Theoretical Computer Science, 275(1):311–346, 2002. doi:10.1016/S0304-3975(01)00185-2.
- [20] Douglas B. West. Introduction to Graph Theory. Prentice Hall, 2nd edition, September 2000.
