Abstract 1 Introduction 2 The Cat Herding game 3 Cat Herding played on Infinite Trees 4 Transfinite Cat Numbers 5 Conclusion and Discussion References

Cat Herding Game Played on Infinite Trees

Rylo Ashmore ORCID Memorial University of Newfoundland, St. John’s, Canada Sophie Pinchinat ORCID IRISA/University of Rennes, France
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, Ordinals
Funding:
Rylo Ashmore: Rennes Métrople, Incoming International Mobility Grant for doctoral researchers.
Copyright and License:
[Uncaptioned image] © Rylo Ashmore and Sophie Pinchinat; licensed under Creative Commons License CC-BY 4.0
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 languages
Editors:
C. Aiswarya, Ruta Mehta, and Subhajit Roy

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 |E| 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 T if, and only if, the cat can win on that tree T. 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 G=(V(G),E(G)), where V(G) is the set of vertices and E(G)V(G)×V(G) is the set of edges, a subgraph H is a minor of G when it is obtainable through a sequence of vertex and edge deletions, along with edge contractions (where the edge uv is deleted, vertices u,v 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 T=(N,r,succ), that arises from some tree graph G=(N,E), where r is a particular vertex called the root and succN×N is given by: (u,v)succ if (u,v)E and u is closer to r than vertex v. 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 succ(u,v) instead of (u,v)succ, and we will write for the reflexive and transitive closure of the binary relation succ. Namely, uv means either u=v, or u and v are on a same path from the root r in the underlying tree graph and node u is closer to r than node v; we say that u is an ancestor of v (and v is a descendant of u). In an infinite tree T=(N,r,succ), a ray (infinite branch) is an infinite sequence of vertices (vi)i such that succ(vi,vi+1), for all i.

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 G=(V(G),E(G)) be a graph. For each vV(G), we define cat(G,v) to be the minimum number of cuts to terminate the game (e.g., isolate the cat) played on arena G when the cat starts at v, and we let cat(G)=maxvcat(G,v).

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 B3 (the complete binary tree of height of 3 vertices). In Figure 1, diagrammed herder cuts of edges correspond to the following play where the initial position of the cat is vϵ. The herder makes any move, say deleting (vϵ,v0). The cat responds by moving to the root of the subtree that was not cut, say v1. The herder may cut (vϵ,v1), forcing the cat down a level again, say to v10. Finally the herder cuts (v1,v10), isolating the cat in 3 cuts.

Figure 1: An optimal game on B3. Vertex ci denotes the cat’s position on turn i, and ei denotes the ith edge that the herder cut.

Regarding known results on the cat number, we know that it is monotonic with respect to subgraphs.

Theorem 3 ([2]).

If H is a subgraph of G, then cat(H)cat(G). Further, if vV(H), then cat(H,v)cat(G,v).

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 Pn for a path with n vertices.

Theorem 4 ([2]).

For all n2, cat(Pn)=log2n

Paths roughly correspond to binary search, providing some intuition for the log2n term. After one cut, cycles are paths. Let us write Cn the cycle graph with n vertices and Wn the wheel graph with a cycle of n1 vertices and an extra vertex “in the middle” connected to all of them.

Theorem 5 ([2]).

We have cat(C1)=0 and for k>1, cat(C2k+1)=cat(C2k)=log22k+1.

For n3, we have cat(Wn)=n+1.

Since the cat must move after a herder’s cut, we have the following result on stars. Let us write Sn for the star graph with n vertices.

Theorem 6 ([2]).

For all n2, cat(Sn)=2.

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 Var composed of first-order variables x,y,z,x,y and of second-order variables X,YZ, which are meant to represent elements and sets, respectively. The full syntax of the logic MSO is given by :

φ,ψ:=Succ(x,y)|X(x)|φψ|¬φ|X:φ|x:φ

We also allow for the usual syntactic sugar for φψ,φψ,φψ,x:φ, and X:φ. Also xy is a short-cut for x=yx<y, and XY is a short cut for x:X(x)Y(x).

Further, we interpret MSO-formulas on an arbitrary tree T=(N,r,succ). We will use symbols u,v, for elements ranging over N and symbols V,V, for subsets of N.

Given an MSO-formula φ and a valuation of the first-order and second-order variables ν:Var2N we write T,νφ to express that formula φ holds in tree T for valuation ν, and define it by induction over φ as follows – we take the convention to write ν[xv] for the valuation that is as ν but that maps first-order variable x onto vertex v, and similarly for ν[XV].

  • T,νSucc(x,y) whenever succ(ν(x),ν(y)) in T

  • T,νX(x) whenever ν(x)ν(X)

  • T,ν¬φ whenever T,ν⊧̸φ

  • T,νφψ whenever T,νφ and T,νψ

  • T,νx:φ whenever there exists vN such that T,ν[xv]φ

  • T,νX:φ whenever there exists VN such that T,ν[XV]φ

With a very standard construction, and thanks to second-order quantification, one can define a formula written xy, whose semantics is the reflexive and transitive closure of the binary relation succ (see Section 3.3).

In the following, and for succinctness of MSO-statements, we use formulas of the form xy with the following semantics.

  • T,νxy whenever ν(x)ν(y) in T

Finally, we let the formula x<y:=xy¬(yx).

As for a closed222that is all variables are under the scope of a quantifier. MSO-formula φ, the valuation plays no role, we simply write Tφ. Also we loosely write T,[xv]φ to set the value of free occurrences of variable x to v 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 d, one can decide if an input MSO-formula holds in Td, the complete tree of degree d.

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.

HasDiPath(X,x,y) :=xyz:(zyxzX(z))
// y is a descendant of x and X contains the unique path
from x to y
DiPath(X,x,y) :=HasDiPath(X,x,y)Y:(HasDiPath(Y,x,y)XY)
// since X is the minimal set achieving HasDiPath, X is
// exactely composed of the vertices between (and including).
// x and y.
Path(Z,x,y) :=XY:(z:Z(z)(X(z)Y(z)))
(z:DiPath(X,z,x)DiPath(Y,z,y))
//Z is a set of vertices that includes a path from x to y.
DB(x,y,z) :=XY:Path(X,x,y)Path(Y,x,z)
(x:X(x)Y(x)x=x)
// there are edge-disjoint x,y- and x,z-paths
//(DB means “disjoint branches”).

We finally introduce the main formula DBChildin(X,x) whose meaning will be further investigated and that plays a central role in characterizing cat winning positions in an infinite tree.

DBChildin(X,x):=yz:x<yx<zX(y)X(z)DB(x,y,z) (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 T=(N,r,succ).
For each natural number i, we define ViN as follows.

  • V0:=N, and

  • for each i>0, Vi:={vN|T,[XVi1,xv]DBChildin(X,x)}.

Lemma 8.

For every i0 and vN, we have vVi if, and only if, v is the root of a binary tree minor of T of height i.

Proof.

We proceed by induction on i. The case i=0 is trivial, as a vertex itself is a binary tree minor of height 0. Let i>0.

() Suppose vN is the root of a complete binary tree minor of height i. We must show vVi. We proceed by observing the left and right children from v in this minor, say u0,u1. These nodes are both a root of complete binary tree minor of height i1. Nodes u0 and u1 are the good candidates to set the two existential quantified variables y and z in formula DBChildin(X,x): indeed, they are both descendants of v with edge-disjoint paths (by construction), and by induction, we have u0,u1Vi1, giving us that vVi.

() Suppose that vVi. There must be u0,u1 such that v<u0,v<u1, u0,u1Vi1, and there are edge-disjoint v,u0 and v,u1-paths. By induction, since u0,u1Vi1, both u0,u1 must be roots of complete binary tree minors of height i1. Combined with edge-disjoint v,u0 and v,u1-paths, v must be the root of a binary tree minor of height i.

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 V0:=N. Then, for every successor ordinal α+1, let Vα+1:={vN|T,[XVα,xv]DBChildin(X,x)}, and for every limit ordinal α={β|β<α}, let Vα:=βαVβ.

Lemma 10.

For evry ordinal α, we have vVα if, and only if, for all β<α, v has edge-disjoint descendant paths to a pair of vertices in Vβ.

Proof.

We proceed by transfinite induction on α.

This is vacuously true for α=0. If α+1 is a successor ordinal, then vVα+1 implies there are edge-disjoint descendant paths to vertices in Vα. But vertices in Vα must have descendant paths to vertices in Vβ for every β<α. Composing these paths, we obtain edge-disjoint paths to every β<α, as well as edge-disjoint paths to a pair of vertices in Vα, thus giving every ordinal β<α+1. Conversely, if v has edge-disjoint paths to pairs of vertices in Vβ for all β<α+1, then in particular v has edge-disjoint paths to a pair of vertices in Vα since α<α+1, and thus vVα+1.

If α is a limit ordinal, then vVβ+1 gives the paths to vertices in Vβ, for any β<α. Conversely, if v has a pair of edge-disjoint paths to all β<α, then it is in all Vβ by induction, and thus is in the intersection, so is in Vα.

With the sets Vα and the preliminary properties expressed, we can consider the following function f over the complete lattice (2N,).

f:2N2NV{vN|T,[XV,xv]DBChildin(X,x)}

One can verify that the function f is -monotonic. By the Knaster-Tarski Theorem [18], the function f has a greatest fix-point, that we write νV.f(V)444a classical notation, as for mu-calculus [13]..

Lemma 11.

If βα, then VαVβ.

Proof.

We show that Vα is contained within all Vβ for βα by transfinite induction on α.

If α is a limit ordinal or 0, this is trivial. Otherwise, we only need to show that Vα+1Vα, as this implies Vα+1VαVβ for all βα, the same as all β<α+1. As such, we must show that f(Vα)Vα. For wf(Vα), we know that there are two edge-disjoint descendant paths to u,vVα. Each of these must have edge-disjoint paths to vertices in Vβ for all β<α by Lemma 10. By combining these paths, we obtain that wVα as was to be desired.

With no surprise, we obtain the following.

Lemma 12.

For every α|N|, νV.f(V)Vα. Further, α|N|Vα=νV.f(V).

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 f removes at least one vertex, thus Vα need only be computed up and including to the order of N, making this a well-defined set.

We show νV.f(V)Vα for all ordinals α by transfinite induction. Observe α=0 is trivial. If α+1 is a successor ordinal, then we observe that wνV.f(V) implies w has edge-disjoint paths to u,v also in the fix-point. But then u,vVα by induction. Thus wVα+1. Finally if α={β|β<α} is a limit ordinal, then vνV.f(V) implies vVβ for all β<α by induction. Thus v in the fix-point implies v in the limit ordinal. Now, α|N|VανV.f(V) follows immediately from the first argument.

We now show α|N|VανV.f(V). We show f(α|N|Vα)=α|N|Vα, so that α|N|Vα is a fix-point, and by νX being a greatest fix-point, we obtain the subset relation. If vα|N|Vα, then v has edge-disjoint descendant path pairs to vertices in Vα for all α (using vVα+1). Thus vf(α|N|Vα). Conversely, if vf(α|N|Vα), then v has edge-disjoint descendant paths to x,yα|N|Vα. Trivially vV0. Next, vVα implies vVα+1 since v has paths to x,yVα. Finally, for limit ordinal α, if vVβ for all β<α, then by definition vVα. Thus vα|N|Vα, and α|N|Vα is a fix-point of f. We will show that property νV.f(V)= 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 Vα vertices. To do so, we will make frequent use of a herder strategy to force the cat off of a ray.

Lemma 13.

If R is a ray in tree T, then within finitely many moves, the herder may capture the cat, or force the cat off of R.

Proof.

If the cat is not initially on R, then the herder disconnects R from the cat. On a cat move to x along this ray, the herder deletes the next vertex along the ray, isolating the cat to finitely many vertices of R. 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 R 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 Vα.

Lemma 14.

Let α be an ordinal, and let v0N. If for all vv0, vVα, then the herder can capture the cat starting at v0.

Proof.

Regardless of α’s type, the herder begins by cutting v0 from its parent if any, otherwise herder cuts an edge outgoing v0. If the game does not terminate here, on the cat move to v>v0, we split the argument on the type of ordinal α.

If α=0, the property trivially holds as it cannot be that vV0(=V).

If α is a successor ordinal, then consider where descendants in Vα1 lie in the subtree below v0. If ever two incomparable u,uVα1, then their deepest common ancestor necessarily below or equal to v0 would be in Vα, a contradiction. Thus all elements of Vα1 are comparable, and thus lie on a single ray (or path). Apply Lemma 13 to force the cat off of all elements of Vα1, and apply the (transfinite) induction hypothesis on the resulting tree the cat is on, since all its vertices are outside Vα1.

If α={β|β<α} is a limit ordinal, then consider the set of v0-rooted rays ={R|Risaray,VβRforallβ<α}. If contains at least two distinct rays, then there must be a first vertex at which they deviate, say r. By Lemma 10, r must be in Vα, a contradiction. Thus at most one ray may contain vertices in β<αVβ. We follow Lemma 13 to remove the cat’s access to this ray, and let xv0, be the new cat position. Now, every descendant vertex wx is outside some Vβw, with βw<α. We show supwx{βw}<α.

Suppose for contradiction supwv{βw}=α. By Lemma 11, there must be infinitely many β<α such that Vβ. Choose a representative wx with wβVβ, so that wβ is as close to the root as possible. Suppose β<β have incomparable representatives wβ,wβ. 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 r with RVβ for all β<α, a contradiction with the earlier herder-play. Thus {βw|wv} is bounded, say by β<α. We now use the transfinite induction where vertex xVβ can be used as the new root v0 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 ECW(x) (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 ECW(x) (see formula CatWin(x) in Equation 3) to describe the set of nodes the cat can start at and survive indefinitely.

ECW(x):=X:X(x)y:X(y)DBChildin(X,y) (2)

We can now state our first main theorem.

Theorem 15.

Let T be a tree with a designated root. The following are equivalent.

  1. 1.

    The cat wins the game of Cat Herding on T.

  2. 2.

    Tx:ECW(x).

  3. 3.

    T contains a complete infinite binary tree minor.

  4. 4.

    T has uncountably many distinct rays from the root.

Proof.

We show more directions than necessary, as some provide different clarity on the argument.

  • (1)(2). Argue by contrapositive as follows. Negating the logical statement of cat-win graphs, we obtain Tx:X:X(x)y:X(y)¬DBChildin(X,y). This property in particular would hold for XνV.f(V) (the greatest fix-point of f) if non-empty, so that we must have Ty:X(y)¬DBChildin(X,y). The latter yields νV.f(V)f(νV.f(V)), a contradiction for the fix-point. Therefore νV.f(V)=. By Lemma 12, α|N|Vα=, so that that for every node vN, we have vVαv for some αv. Apply Lemma 14 with v0 the root of T, to conclude that herder can capture the cat. Observe that Lemma 14 provides an explicit herder strategy for capturing the cat.

  • (2)(3). We must construct some injective mapping h from the infinite binary tree on {0,1} to a subtree of T. Let vN be a vertex such that T,[xv]ECW(x), and let VN be such that T,[xv,XV]X(x)y:X(y)DBChildin(X,y). We define the mapping h such that h(s)V, every s{0,1}.

    We proceed by induction over s{0,1}.

    • h(ϵ):=vV – the full binary tree minor we construct is rooted at v.

    • Let node s{0,1} be such that h(s) has already been defined and therefore h(s)V. Then, we know that T,[xh(s),XV]X(x)y:X(y)DBChildin(X,y), which in particular entails T,[xh(s),XV]DBChildin(X,x). By definition of formula DBChildin(X,x), node h(s) has descendant nodes u0,u1 in V on two different branches, that we naturally use to define h(s0) and h(s1) respectively.

    Note that by construction h is injective, as h(s0) and h(s1) are disjoint and that we target vertices deeper and deeper in the tree. Say a node is h-hit if it is in the image of h. The complete infinite binary tree minor of T is obtained by contracting all edges with at most one h-hit node.

  • (3)(4). Immediate from the uncountability of the set of all infinite binary sequences, corresponding to rays.

  • (4)(1) by contrapositive. We must show that if the herder wins, then the rays are countable. Observe the ith cut may remove the cat from accessing infinitely much of a given ray R. Let i to be the set of rays which the cat could access infinitely much of before the ith cut, but only finitely much after the ith cut. We argue i is countable and ii=. By contradiction, if there exists an ith cut that makes i 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 i 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 1 ray deviating at depth 1, then 1,2,1,2,3,. A given ray R has R=π or R deviates from π at depth d. But depth d deviations are countable, and our enumeration of checks depth d infinitely many times, so R is counted. Thus is countable, as was to be shown. Alternately, the cat can make a strategy that never lets i be uncountable, so that i is always countable, and there are finitely many of them. Thus ii is countable. But =ii since clearly i, and if R, then since the herder won after i steps, the cat must have access to at most one vertex of R, and so the cat must have had access to infinitely many vertices of R removed at some point, say i. Thus Ri for some i. We have thus counted the set of all rays.

  • (2)(1). We include this direction to make the cat’s winning strategy explicit. Since Tx:ECW(x), we have a node v0N and a set VN such that T,[xv0,XV]X(x)y:X(y)DBChildin(X,y). Thus V. The cat’s strategy will be to always play to a vertex vV 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 v and T,[xv,XV]DBChildin(X,x). By expanding formula DBChildin(X,x), we get T,[xv,XV]yz:x<yx<zX(y)X(z)DB(x,y,z), so that that there are u0,u1 with T,[xv,yu0,zu1,XV]DB(x,y,z). The latter implies that no single edge cut from the herder could remove the cat’s path to both u0 and u1, and the herder only gets one cut as u0,u1>x, and all previous cuts were ancestors or incomparable. Thus the cat can move to u0 or u1, and u0,u1V 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 (3)(1) could have been shown instead similarly.

It follows that conditions (1)-(4) are equivalent.

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.

CatWin(x):=yz:DB(x,y,z)ECW(y)ECW(z) (3)

It is clear that the formula ECW(x)CatWin(x) 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 (0+00+1+11)(01). The cat starting at node 0 can win by moving to vertex 00 or 11 (depending on herder’s first cut), and because either if these two nodes satisfies ECW(x), the cat can survive indefintely. However, the node 0 the cat started from itself does not satisfy ECW(x): indeed, any two branches from 0 both cross edge (0,00) and therefore cannot be disjoint as required by Equation 2 for ECW(x).

Theorem 16.

T,[xv0]CatWin(x) if, and only if, the cat can win when starting at v0.

Proof.

In this proof, we may abuse notation and conflate ECW,CatWinN as a set of nodes with the predicate.

() By contrapositive, suppose T,[xv0]¬CatWin(x). Then T,[xv0]yz:DB(x,y,z)(¬ECW(y)¬ECW(z)). Since by assumption v0CatWin, and because ECWCatWin, v0ECW so that all vertices from ECW below v0 are on a same branch. The herder’s strategy is to cut this branch from v0. The resulting tree fails condition 2 of Theorem 15, and so the herder wins now.

() Suppose v0CatWin. Then on the cat starting at v0, after any cut, the cat may move to a vertex satisfying ECW (using edge-disjointness of x,u and x,v-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 d-ary tree Td is solved immediately: For the tree T1 is an infinite rooted path that herder in one initial cut can make finite, so that T1 is herder-win. For Td where d2, there is an infinite binary tree minor and by Theorem 15, we necessarily have Tdx:ECW(x).

The setting becomes interesting for a tree arena A that is not a complete tree Td, but that a regular set of nodes of some complete tree Td: Suppose that the arena A is a regular subset of nodes of some tree Td. In such a case, A is definable by some unary MSO-predicate A(). Now, to decide whether the cat wins the game on A or not consists in evaluating the formula x:ECW(x) “inside” the A part of the tree Tα. This is classically expressed by the relativization of x:ECW(x) w.r.t. A().

Preliminary to formally defining it, we introduce convenient notations for first-order and second-order (existential) quantifiers. For every MSO-formula φ, we let:

  • ψ()xφ:=x:(ψ(x)φ)

  • ψ()Xφ:=X:((x:X(x)ψ(x))φ

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.

Succ(x,y)|ψ() :=Succ(x,y)
X(x)|ψ() :=X(x)
¬φ|ψ() :=¬φ|ψ()
φψ|ψ() :=φ|ψ()ψ|ψ()
x:φ|ψ() :=ψ()x:φ|ψ())
X:φ|ψ() :=ψ()X:φ|ψ())

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 d and an MSO-formula A().
Output: Td(x:ECW(x))|A()?

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 Td 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 k has an existential outermost quantifier and is expressed only with atomic formulas based on the binary symbol Succ, the model checking can be done in (k+1)-EXPTIME. The original result comes from the logic SdS, the monadic second-order theory with d-successors, see [17].

It therefore remains to determine the q.a.d of our formula x:ECW(x)|A() to obtain an upper bound complexity. However, we preliminary need to translate every occurrence of atomic formulas of the form xy in terms of the Succ predicate. This is a classic translation that we recall here.

A formula xy holds of two nodes u and v in a tree T=(N,r,succ) if v belongs to the descendants of u in T. We can characterize these descendants as the smallest set containing u and that is closed by the succ relation – recall that set VN is succ-closed whenever {wN|vV,succ(v,w)}V. We can express the succ-closeness in MSO:

isSuccClosed(X):=y:(x:X(x)Succ(x,y))X(y) (4)

We now define the descendants of x, namely the smallest succ-closed set that contains x:

isDescendantsOf(X,x):=X(x)isSuccClosed(X)Y:(Y(x)isSuccClosed(Y)y:(X(y)Y(y))) (5)

The atomic formula xy now translates as follows.

xy:=X(isDescendantsOf(X,x)X(y))

Note that the q.a.d of the formula xy is 2 (this can be seen by drawing the its parse tree) with an exitential outermost quantifier.

Noticing that formula x:ECW(x) as written in (2) has q.a.d 3, it can be verified that by replacing in x:ECW(x) every occurrence of an atomic formula of the yz by its translation yields a formula with a q.a.d equal to 6. Assuming that the input formula A() expressed only with predicate Succ (no occurrence of ) has q.a.d equal to a, we get that the translation of the main formula (x:ECW(x))|A() has a q.a.d of at most 6+a+1.

Because this MSO-formula has an existential outermost quantifier, the Cat Herding Problem can be solved in (a+8)-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 Vα). We show with a brief construction that for any given countable ordinal α, there exists an infinite tree with vertices in Vα, but still herder-win.

Figure 2: Binary tree constructions for every countable ordinal α.

Consider the tree constructions as depicted in Figure 2. Note that all Tα are herder-win, as every such tree allows the herder to have strategies to reduce the cat to a sub-tree Tα with α<α within finitely many moves. Further, the root of every tree Tα is in Vα. This is trivial for T0. For successor ordinals, the root contains at least two edge-disjoint paths to vertices in Vα1 inductively. For limit ordinals α=lim{βi}, every β<α has some βi with ββi, and so the root having edge-disjoint paths to vertices in Vβi is sufficient to show the root is in Vβ for all β<α, and thus the root is in Vα. Because this argument does not rely on the particular βi 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 Vα.

Recall that the supremum of all countable ordinals is ω1. 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 ω1. The only hope for more is to allow infinite degree vertices. Indeed, once this is allowed, providing a branch from the root to tree Tβ for every β<α puts the root vertex in Vα, 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 L(Tα) for the language of addresses in tree Tα, and write Pref(L) for the prefix language of L. Then, we observe that L(T0)=ϵ, L(Tα+1)=Pref((01)L(Tα)), and L(Tlim{βi})=Pref(0i1L(Tβi)1i0L(Tβi)). 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 Vα to a representation of the cat number. This requires generalizing our notion of cat number to ordinals. If T is an infinite tree where the cat is captured in exactly n cuts under optimal herder play, we say that cat(T)=n. We generalize this notion to transfinite ordinals, which to our knowledge has never been investigated in the literature.

Definition 17.

Let T=(N,r,succ) be a tree for a game of Cat Herding, vN and α be an ordinal. We define ordinal cat(T,v) as follows – we write Tc=(Nc,r,succ) for the tree resulting from a single cut c in T.

If for every cut c in T and every β<α, the cat can move to a vertex vNc such that cat(Tc,v)β, then cat(T,v)α.

Conversely, if there exists a cut c and β<α such that all reachable vertices vNc we have cat(Tc,v)<β, then cat(T,v)<α.

We observe that the transfinite ordinal cat numbers are loosely connected to the transfinite sets Vα (the Vα are not sensitive to rays, providing a factor of error of ω).

Lemma 18.

Let T=(N,r,succ) be a tree, vN and α be an ordinal. If vVα, then cat(T,v)α, otherwise cat(T,v)αω.

Proof.

If vVα, then there are edge-disjoint descendant paths to vVβ for all β<α. The herder cannot block both with their edge cut, so cat(T,v)α by Definition 17. Otherwise vVα, then the herder’s strategy is to cut above the cat – write T for the remaining tree. If there exists β<α such that for all vV(T), cat(T,v)<β, then by definition cat(T,v)<ααω. If instead for every β<α there is a reachable vertex vβ such that cat(T,vβ)β, we have seen (proof of Lemma 14) that the set {vβ}β<α of all those vertices must lie on a single ray from v. However, within finitely many moves (<ω from the ray argument in Lemma 13), the herder can force the cat to a vertex vVβ, for some β<α. The resulting play involves the cat being captured in at most βω. Given that β may be unbounded, or α=β+1, 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 βi=α, we obtain a new family of trees witnessing the upper bound as tight, as all vertices along the two main rays are in Vα+1, so the herder must take at least ω moves (using the lower bound) to remove the cat’s access to the Vα+1, pushing them to the next lowest ordinal. The given construction also witnesses the lower bound, as the root of each Tα is in Vα, but no children vertices are.

Definition 19.

Let T=(N,r,succ) be a tree. We define cat(T)=supvN{cat(T,v)}.

Corollary 20.

If α is a countable ordinal, then there exists a herder-win binary tree T with cat(T)α. If α is any ordinal, then there exists a (possibly locally infinite) herder-win tree T with cat(T)α.

Proof.

Consider building a binary tree Tα as done in Figure 2 (we recall that for a limit ordinal α the resulting tree is sensitive to the chosen {βi} that reaches α). Still whichever Tα is obtained, we have argued that its root belongs to Vα, so that, by Lemma 18, cat(T)α.

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 DBChildin(X,x) 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.