This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

The Game of Arrows on 3-legged spider graphs

Bryant G. Mathews bmathews@apu.edu Department of Mathematics, Physics, and Statistics
Azusa Pacific University
701 E. Foothill Blvd., Azusa, CA 91702 USA
Abstract

The Game of Cycles is a combinatorial game introduced by Francis Su in 2020 in which players take turns marking arrows on the edges of a simple plane graph, avoiding the creation of sinks and sources and seeking to complete a “cycle cell.” Su and his collaborators (2021) found winning strategies on graphs with certain types of symmetry using reverse mirroring.

In this paper, we for the first time determine the winning player in the Game of Cycles on an infinite family of graphs lacking symmetry. In particular, we use the Sprague-Grundy Theorem to show that player two has a winning strategy for the Game of Cycles on any 33-legged spider graph with legs of odd length. Because the cycle cell victory condition is extraneous for tree graphs (including spiders), we drop it from the rules and call the result the Game of Arrows. Our proof leans heavily on a notion of state isomorphism that allows us to decompose a game state into states of smaller pieces of a graph, leading to nim-sum calculations with Grundy values.

keywords:
combinatorial game theory , Game of Cycles , Sprague-Grundy Theorem , graph theory , spider graphs
MSC:
[2020] 91A46 , 05C57
111This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors. Declarations of interest: none.

1 Introduction

In Francis Su’s Game of Cycles [1, 2], two players take turns marking arrows on edges of a simple plane graph, avoiding the creation of sinks and sources. We will assume that the graph has no isolated vertices, but we do not require it to be connected. The winner is the first player to complete a “cycle cell” (a cycle around a bounded face of the graph) or the last player to mark an arrow. Previous work on the Game of Cycles has avoided tree graphs, which admit no cycles. Nevertheless, the game can be played on a tree, and many game positions on non-trees are equivalent to game positions on trees or forests. For example, the game position on the graph to the left in Figure 1 is equivalent to the game position on the tree to the right.

Figure 1: Equivalent game positions in the Game of Cycles.

The Game of Cycles is easily solved for trees of maximum degree at most two, which are just path graphs. Player two has a winning strategy on a path graph if and only if the number of edges is even. Trees with exactly one vertex of degree greater than two are called spider graphs. We call a spider graph nn-legged if its maximum degree is nn. In this paper, we show that player two has a winning strategy for the Game of Cycles on any 33-legged spider graph with legs of odd length.

Because our particular interest is in trees, we can drop the cycle cell victory condition from the game rules and forget the particular embedding of the graph in the plane. The resulting game, which we call the Game of Arrows, can be played on any simple graph without isolated vertices, whether planar or not. The Game of Arrows on a tree is of course equivalent to the Game of Cycles on any planar embedding of that tree.

Note that with the usual sink/source rule, it is forbidden to mark a leaf edge. In order to simplify calculations, we apply a “trimming” operation to graphs in such a way that the Game of Arrows on a graph GG is equivalent to the “Trimmed Game of Arrows” on the trimmed graph T(G)T(G), with sinks and sources now permitted at leaves. For a spider graph with legs of length at least two, trimming simply reduces the length of each leg by one. Our analysis will therefore focus on the Trimmed Game of Arrows on 3-legged spider graphs with legs of even length.

Section 2 introduces terminology and notation, and Section 3 explains our “graph trimming” operation. After reviewing the definition and properties of Grundy values, Section 4 defines our notion of state isomorphism and explains how to verify it locally, one vertex at a time. Finally, Sections 5–12 apply a variety of techniques to progressively compute Grundy values of states of spider graphs with fewer and fewer marks, eventually arriving at the Grundy value of the empty state.

In what follows, we assume that all graphs are simple, with no isolated vertices.

2 States, Followers, and Descendents

After defining “arrows” and “decorations” of a graph GG, we introduce “states” of GG to represent possible positions in the Trimmed Game of Arrows on GG. Successive possible positions in the game are represented by the “followers” and “descendents” of a state.

Definition 2.1.

The set of arrows of a graph GG is the set A(G)={(v,w){v,w}E(G)}A(G)=\{(v,w)\mid\{v,w\}\in E(G)\} of arrows that can be drawn on the edges of GG.

A decoration XX of a graph GG is a subset of A(G)A(G) such that if (v,w)X(v,w)\in X, then (w,v)X(w,v)\notin X (at most one mark per edge).

  • 1.

    A vertex ww of GG is a sink of a decoration XX if {v(v,w)X}={v{v,w}E(G)}\{v\mid(v,w)\in X\}=\{v\mid\{v,w\}\in E(G)\}.

  • 2.

    A vertex vv of GG is a source of a decoration XX if {w(v,w)X}={w{v,w}E(G)}\{w\mid(v,w)\in X\}=\{w\mid\{v,w\}\in E(G)\}.

These definitions are illustrated in Figure 2.

wwvv
Figure 2: A decoration XX of a graph GG, with a sink at ww and a source at vv.

A leaf of a graph is a vertex of degree 11. Vertices which are not leaves are called internal vertices. We denote the sets of leaves and internal vertices of a graph GG by L(G)L(G) and Int(G)\operatorname{Int}(G), respectively. A sink or source of XX is internal if it is an internal vertex of GG.

Definition 2.2.

A decoration XX of a graph GG is called a state of GG if it has no internal sinks or sources.

Definition 2.3.

A follower of a state XX of a graph GG is a state X{(v,w)}X\cup\{(v,w)\} of GG such that (v,w)X(v,w)\notin X. We denote the set of all followers of the state XX by G(X)\mathcal{F}_{G}(X), or by (X)\mathcal{F}(X) when the graph is clear from the context. We extend this notation to sets of states as follows:

({X1,X2,,Xk})=(X1)(X2)(Xk).\mathcal{F}(\{X_{1},X_{2},\ldots,X_{k}\})=\mathcal{F}(X_{1})\cup\mathcal{F}(X_{2})\cup\cdots\cup\mathcal{F}(X_{k}).

Then, for example, 2(X)=((X))\mathcal{F}^{2}(X)=\mathcal{F}(\mathcal{F}(X)) is the set of all followers of followers of XX. A state with no followers is called terminal. A descendent of a state XX is an element of n(X)\mathcal{F}^{n}(X) for some positive integer nn. The set of all descendents of XX is denoted by (X)\mathcal{F}^{\bullet}(X).

When we view a state XX of a graph GG as a position in the Trimmed Game of Arrows on GG, the game tree of this position has vertex set {X}(X)\{X\}\cup\mathcal{F}^{\bullet}(X) and directed edges of the form (X,X′′)(X^{\prime},X^{\prime\prime}), where X{X}(X)X^{\prime}\in\{X\}\cup\mathcal{F}^{\bullet}(X) and X′′(X)X^{\prime\prime}\in\mathcal{F}(X^{\prime}).

3 Dormant States and Graph Trimming

We prove that the Game of Arrows on a graph GG is equivalent to the Trimmed Game of Arrows on the “trimming” of GG. This will justify our focus in the remainder of the paper on the Trimmed Game of Arrows.

We have already introduced states to represent possible positions in the Trimmed Game of Arrows. We now define “dormant” states to represent possible positions in the Game of Arrows.

Definition 3.1.

A state XX of a graph GG is dormant if it has no sinks or sources at the leaves of GG (and therefore no sinks or sources at all). We write 𝒟(X)\mathcal{DF}(X) for the set of dormant followers of XX and 𝒟(X)\mathcal{DF}^{\bullet}(X) for the set of dormant descendents of XX.

When we view a dormant state XX of a graph GG as a position in the Game of Arrows on GG, the game tree of this position has vertex set {X}𝒟(X)\{X\}\cup\mathcal{DF}^{\bullet}(X), and directed edges of the form (X,X′′)(X^{\prime},X^{\prime\prime}), where X{X}𝒟(X)X^{\prime}\in\{X\}\cup\mathcal{DF}^{\bullet}(X) and X′′𝒟(X)X^{\prime\prime}\in\mathcal{DF}(X^{\prime}).

“Trimming” a graph GG involves first removing the leaves and leaf edges, and then “splitting apart” the resulting graph at each of the vertices that were adjacent to the leaves of GG. We formalize this notion of splitting apart in the following definition.

Definition 3.2.

Suppose GG is a graph and KK is a set of vertices of GG. We define the ramification of GG at KK, denoted RK(G)R_{K}(G), to be the graph with vertex set

(V(G)K){axaK and {a,x}E(G)}(V(G)\setminus K)\cup\{a_{x}\mid a\in K\text{ and }\{a,x\}\in E(G)\}

and edge set

E(GK)\displaystyle E(G-K) {{ax,x}aK,xK and {a,x}E(G)}\displaystyle\cup\{\{a_{x},x\}\mid a\in K,x\notin K\text{ and }\{a,x\}\in E(G)\}
{{ab,ba}a,bK and {a,b}E(G)},\displaystyle\cup\{\{a_{b},b_{a}\}\mid a,b\in K\text{ and }\{a,b\}\in E(G)\},

where GKG-K is the subgraph of GG induced by V(G)KV(G)\setminus K. For example, a graph GG and its ramification at the vertex set K={a,b}K=\{a,b\} are illustrated in Figure 3.

xxyyzzaabb
xxyyzzaxa_{x}aya_{y}byb_{y}bzb_{z}aba_{b}bab_{a}
Figure 3: A graph GG and its ramification RK(G)R_{K}(G) at K={a,b}K=\{a,b\}.

There is a natural graph homomorphism from RK(G)R_{K}(G) to GG which is the identity on V(G)KV(G)\setminus K and drops the subscript from any vertex of the form axa_{x}. This homomorphism induces a bijection between the sets of arrows of the two graphs.

Definition 3.3.

Let GG be a graph, let GG^{\prime} be the subgraph of GG induced by Int(G)\mathrm{Int}(G), and let KK be the set of internal vertices of GG adjacent to leaves of GG. We define the trimming of GG to be the ramification of GG^{\prime} at KK. We denote the trimming of GG by T(G)T(G). Note that when GG has no leaves, T(G)=GT(G)=G. Furthermore, the trimming of a graph has no isolated vertices.

The surjective homomorphism e:T(G)=RK(G)Ge:T(G)=R_{K}(G^{\prime})\to G^{\prime} that drops all subscripts from the names of the vertices of T(G)T(G) induces a bijection between the sets of arrows of T(G)T(G) and GG^{\prime}, which in turn gives a bijection e+e^{+} between decorations of T(G)T(G) and decorations of GG^{\prime}. The next theorem shows that this bijection on decorations restricts to a bijection between states of T(G)T(G) and dormant states of GG. As an example, Figure 4 displays the dormant state e+(X)e^{+}(X) of the graph GG, together with the corresponding state XX of the trimming T(G)T(G).

zzccbbwwxxyyaadd
zzczc_{z}bwb_{w}wwxxyyawa_{w}bcb_{c}cbc_{b}dzd_{z}dyd_{y}
Figure 4: A dormant state e+(X)e^{+}(X) of a graph GG and the corresponding state XX of T(G)T(G).
Theorem 3.4.

The Game of Arrows on a graph GG is equivalent to the Trimmed Game of Arrows on T(G)T(G).

Proof.

Let GG^{\prime}, KK, ee, and e+e^{+} be defined as above. We will show that e+e^{+} restricts to a bijection between states of T(G)T(G) and dormant states of GG. This bijection respects the inclusion relation on states, so it will restrict further to a bijection between the descendents of a state XX of T(G)T(G) and the dormant descendents of e+(X)e^{+}(X). This bijection respects the follower relation, so it will induce an isomorphism between the game trees of the Trimmed Game of Arrows on T(G)T(G) and the Game of Cycles on GG.

Suppose XX is a decoration of T(G)T(G) such that e+(X)e^{+}(X) is not a dormant state of GG. Because e+(X)e^{+}(X) is a decoration of GG^{\prime}, we may assume, without loss of generality, that e+(X)e^{+}(X) has a sink at some vertex xInt(G)KV(T(G))x\in\mathrm{Int}(G)\setminus K\subset V(T(G)). That is, for every vertex vv of GG adjacent to xx, (v,x)e+(X)(v,x)\in e^{+}(X). In particular, for any vertex uu of T(G)T(G) adjacent to xx, (e(u),x)e+(X)(e(u),x)\in e^{+}(X). This implies that (u,x)X(u,x)\in X, since ee induces a bijection between the sets of arrows of T(G)T(G) and GG^{\prime}. Therefore, XX has a sink at xx, so XX is not a state of T(G)T(G).

Next, we prove the converse. Suppose XX is not a state of T(G)T(G). We may assume, without loss of generality, that XX has a sink at some vertex xInt(T(G))=Int(G)Kx\in\mathrm{Int}(T(G))=\mathrm{Int}(G)\setminus K. Let vv be any vertex of GG adjacent to xx. Then vInt(G)v\in\mathrm{Int}(G), so there exists some vertex uu of T(G)T(G) adjacent to xx for which e(u)=ve(u)=v. Because (u,x)X(u,x)\in X, it follows that (v,x)e+(X)(v,x)\in e^{+}(X). This implies that e+(X)e^{+}(X) has a sink at xx, so e+(X)e^{+}(X) is not a dormant state. ∎

It is worth noting that every graph HH is the trimming of some graph GG. We can take the vertex set of GG to be V(H){xxL(G)}V(H)\cup\{x^{\prime}\mid x\in L(G)\} and the edge set of GG to be E(H){{x,x}xL(G)}E(H)\cup\{\{x^{\prime},x\}\mid x\in L(G)\}. This means that solving the Trimmed Game of Arrows for every graph is equivalent to solving the Game of Arrows for every graph. Figure 5 shows a graph HH together with the graph GG constructed as described above.

yyxx
yyyy^{\prime}xxxx^{\prime}
Figure 5: A graph HH together with a graph GG constructed so that T(G)=HT(G)=H.

Note also that the trimming of a forest is a forest, and every forest is the trimming of some forest. Therefore, solving the Game of Cycles for all forests is equivalent to solving the Trimmed Game of Arrows for all forests.

4 Grundy Values and State Isomorphisms

The Sprague-Grundy Theorem states that any perfect-information, impartial, finite two-player game in which the last player to make a move wins is equivalent to a game of Nim with a single heap of a certain size, known as the Grundy value of the game [3, 4]. When the Grundy value is nonzero, the first player has a winning strategy, and when the Grundy value is zero, the second player has a winning strategy.

Applying this result to each position in the Trimmed Game of Arrows on a graph, we can think of each state of the graph as having its own Grundy value. The “Sprague-Grundy function” of a graph then computes the Grundy values of the graph’s states recursively, working backwards from terminal states towards those with fewer marks (see [5] or [6] for a recent exposition). Ultimately, we aim to compute the Grundy value of the empty state of a graph in order to determine which player has a winning strategy on that graph.

Grundy values behave well with respect to disjunctive sums of games (disjoint unions of states). In order to take advantage of this fact to compute Grundy values, we need a way of decomposing a state of a graph into a disjoint union of states of smaller pieces of the original graph. To serve this purpose, we introduce the notion of state isomorphism and show how to verify these isomorphisms locally, one vertex at a time.

Definition 4.1.

The Sprague-Grundy function gg of a graph GG is a function from the set of all states of GG to the nonnegative integers assigning a Grundy value to each state XX. The function gg is zero on each terminal state and is defined recursively by setting

g(X)=mexg((X)),g(X)=\mathrm{mex}\,g(\mathcal{F}(X)),

the minimum excluded Grundy value among the followers of XX. According to the Sprague-Grundy Theorem, a state XX is a winning state for the player whose turn it is to make a mark if and only if g(X)0g(X)\neq 0.

Definition 4.2.

We write xyx\oplus y for the nim sum of nonnegative integers xx and yy, defined to be “binary addition without carrying.”

We write G+HG+H for the disjoint union of two graphs GG and HH. When XX and YY are states of graphs GG and HH, respectively, we write XYX\sqcup Y for the state of the disjoint union G+HG+H induced by XX and YY, and we refer to this state as the disjoint union of XX and YY.

By the Sprague-Grundy Theorem,

g(XY)=g(X)g(Y).g(X\sqcup Y)=g(X)\oplus g(Y).
Definition 4.3.

For any state XX of a graph GG, we let UG(X)U_{G}(X) or U(X)U(X) denote the subgraph of GG induced by the edges of GG that are unmarked in XX, that is, by the set E(G){{v,w}(v,w)X}E(G)\setminus\{\{v,w\}\mid(v,w)\in X\}.

Definition 4.4.

For any graph GG, the flip operation on the set A(G)A(G) of arrows of GG maps each arrow (v,w)(v,w) to (w,v)(w,v). The flip of a decoration XX of a graph GG is the decoration containing the flips of all of the arrows in XX. We denote the flip of XX by \textstyle\vec{}\mkern 4.0mu X\textstyle X . Note that XX is a state if and only if its flip is a state.

Definition 4.5.

A state isomorphism from a state XX of a graph GG to a state YY of a graph HH is a bijection a:A(U(X))A(U(Y))a:A(U(X))\to A(U(Y)) that commutes with the flip operation and induces a bijection from the descendents of XX to the descendents of YY. To make the last condition precise, let a+a^{+} denote the bijection from the decorations of GG containing XX to the decorations of HH containing YY defined by a+(X)=Ya(XX)a^{+}(X^{*})=Y\cup a(X^{*}\setminus X). We require that a+a^{+} restrict to a bijection from (X)\mathcal{F}^{\bullet}(X) to (Y)\mathcal{F}^{\bullet}(Y). In other words, we require that a+a^{+} and (a+)1(a^{+})^{-1} both be state-preserving, that is, that they map states to states. The requirement that aa commute with the flip operation ensures that aa induces a bijection between the edge sets of U(X)U(X) and U(Y)U(Y).

We say that a state XX is isomorphic to a state YY if there exists a state isomorphism from XX to YY. With this definition, state isomorphism is clearly an equivalence relation.

For any state XX, the flip operation aa on A(U(X))=A(U(

X
)
)
A(U(X))=A(U({\mathchoice{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\displaystyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\displaystyle X$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\textstyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\textstyle X$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptstyle\vec{}\mkern 4.0mu$}\cr\kern-3.01389pt\cr$\scriptstyle X$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptscriptstyle\vec{}\mkern 4.0mu$}\cr\kern-2.15277pt\cr$\scriptscriptstyle X$\cr}}}}))
is a state isomorphism from XX to \textstyle\vec{}\mkern 4.0mu X\textstyle X . In this context, a+a^{+} is the flip operation on decorations, and we have already noted above that a decoration is a state if and only if its flip is a state.

Proposition 4.6.

Isomorphic states XX and YY of graphs GG and HH, respectively, have equal Grundy values: g(X)=g(Y)g(X)=g(Y).

Proof.

Suppose there exists a state isomorphism aa from XX to YY. Then aa induces a bijection from {X}(X)\{X\}\cup\mathcal{F}^{\bullet}(X) to {Y}(Y)\{Y\}\cup\mathcal{F}^{\bullet}(Y) which respects the follower relation. (This can be understood as providing an isomorphism between the game trees associated with the states XX and YY.) By the definition of the Sprague-Grundy function, g(X)=g(Y)g(X)=g(Y). ∎

In practice, the isomorphisms we employ between states XX and YY will usually be induced by graph homomorphisms f:U(X)U(Y)f:U(X)\to U(Y).

Definition 4.7.

Suppose XX and YY are states of graphs GG and HH, respectively, and f:U(X)U(Y)f:U(X)\to U(Y) is a graph homomorphism. Then the function af:A(U(X))A(U(Y))a_{f}:A(U(X))\to A(U(Y)) on arrows given by af((v,w))=(f(v),f(w))a_{f}((v,w))=(f(v),f(w)) automatically commutes with the flip operation. If afa_{f} defines a state isomorphism from XX to YY, we call it the state isomorphism induced by ff.

As an example, Figure 6 displays isomorphic states XX and YY of graphs GG and HH, respectively. A state isomorphism from XX to YY is induced by the graph homomorphism f:U(X)U(Y)f:U(X)\to U(Y) that is the identity on {s,u,v,w}\{s,u,v,w\} and maps t1t_{1} and t2t_{2} to tt. Note that the inverse of this particular state isomorphism is not induced by any graph homomorphism from U(Y)U(Y) to U(X)U(X).

sst1t_{1}uut2t_{2}vvww
ssttuuvvww
Figure 6: Isomorphic states XX and YY of graphs GG and HH, respectively.

It would not be sufficient, in the definition of state isomorphism, to require merely that a+a^{+} restrict to a bijection from (X)\mathcal{F}(X) to (Y)\mathcal{F}(Y). With that definition, the states in Figure 7 would be isomorphic via identification of the vertices v1v_{1} and v2v_{2}, even though the corresponding game trees are clearly not isomorphic.

uuv1v_{1}v2v_{2}ww
uuvvww
Figure 7: Two non-isomorphic states.

Fortunately, it does suffice to check that a+a^{+} and (a+)1(a^{+})^{-1} are well behaved on a small class of descendents of XX and YY which we call “flowers.”

Definition 4.8.

Let XX be any state of a graph GG. For any vU(X)v\in U(X), we call the following two decorations of GG the tail-flower and the head-flower of XX at vv, respectively:

Xt(v)\displaystyle X_{t}(v) =X{(v,v){v,v}E(U(G))},\displaystyle=X\cup\{(v,v^{\prime})\mid\{v,v^{\prime}\}\in E(U(G))\},
Xh(v)\displaystyle X_{h}(v) =X{(v,v){v,v}E(U(G))}.\displaystyle=X\cup\{(v^{\prime},v)\mid\{v,v^{\prime}\}\in E(U(G))\}.

These definitions are illustrated in Figure 8.

uuvv
XX
uuvv
Xt(u)X_{t}(u)
uuvv
Xh(v)X_{h}(v)
Figure 8: A state XX of a graph GG along with two of its flowers Xt(u)X_{t}(u) and Xh(v)X_{h}(v).

Note that there exists a decoration XXX^{*}\supset X of GG with a source at vv if and only if Xt(v)X_{t}(v) has a source at vv. Similarly, that there exists a decoration XXX^{*}\supset X of GG with a sink at vv if and only if Xh(v)X_{h}(v) has a sink at vv.

Definition 4.9.

Let XX and YY be states of graphs GG and HH, respectively. Suppose a:A(U(X))A(U(Y))a:A(U(X))\to A(U(Y)) is a bijection that commutes with the flip operation. We say that a+a^{+} is locally state-preventing at the vertex xx of U(X)U(X) provided that whenever a flower of XX at xx is not a state, its image under a+a^{+} is also not a state.

Similarly, we say that (a+)1(a^{+})^{-1} is locally state-preventing at the vertex yy of U(Y)U(Y) provided that whenever a flower of YY at yy is not a state, its image under (a+)1(a^{+})^{-1} is also not a state.

Theorem 4.10 (Local Criterion for State Isomorphism).

Let XX and YY be states of graphs GG and HH, respectively. Suppose a:A(U(X))A(U(Y))a:A(U(X))\to A(U(Y)) is a bijection that commutes with the flip operation. Then aa is a state isomorphism from XX to YY if and only if a+a^{+} and (a+)1(a^{+})^{-1} are locally state-preventing at every vertex of U(X)U(X) and U(Y)U(Y), respectively.

Proof.

Suppose, first, that a+a^{+} and (a+)1(a^{+})^{-1} are locally state-preventing at every vertex of U(X)U(X) and U(Y)U(Y), respectively. We show that aa is a state isomorphism.

Let XX^{*} be any decoration of GG containing XX which is not a descendent of XX. Without loss of generality, we may assume that XX^{*} has a source at some vertex xx of U(X)U(X) that is not a leaf of GG. It follows that Xt(x)X_{t}(x) is not a state and is a subset of XX^{*}. Because a+a^{+} is locally state-preventing, a+(Xt(x))a^{+}(X_{t}(x)) is not a state of HH, and therefore a+(X)a^{+}(X^{*}) is not a descendent of YY.

The proof that a+(X)(Y)a^{+}(X^{*})\notin\mathcal{F}^{\bullet}(Y) implies X(X)X^{*}\notin\mathcal{F}^{\bullet}(X) is analogous.

Next, suppose aa is a state isomorphism from XX to YY. Because a+a^{+} induces a bijection from the descendents of XX to the descendents of YY, a+a^{+} and (a+)1(a^{+})^{-1} are automatically locally state-preventing at every vertex of U(X)U(X) and U(Y)U(Y), respectively. ∎

In certain circumstances, the conditions for a+a^{+} and (a+)1(a^{+})^{-1} to be locally state-preventing can be stated more simply.

Definition 4.11.

Suppose a=af:A(U(X))A(U(Y))a=a_{f}:A(U(X))\to A(U(Y)) is a bijection induced by a graph homomorphism f:U(X)U(Y)f:U(X)\to U(Y), and suppose the vertex xx of U(X)U(X) is the unique ff-preimage of f(x)f(x). In this situation, we have af+(Xt(x))=Yt(f(x))a_{f}^{+}(X_{t}(x))\allowbreak=Y_{t}(f(x)) and af+(Xh(x))=Yh(f(x))a_{f}^{+}(X_{h}(x))=Y_{h}(f(x)). Therefore, the conditions for af+a_{f}^{+} and (af+)1(a_{f}^{+})^{-1} to be locally state-preventing at xx and f(x)f(x), respectively, can be combined into a single criterion: each flower of XX at xx is a state if and only if its image under af+a_{f}^{+} is a state. When this criterion holds, we say that afa_{f} is a local state isomorphism at xx.

When ff is a graph isomorphism, this simpler criterion can be applied at every vertex of U(X)U(X).

Corollary 4.12.

Suppose afa_{f} is a bijection induced by a graph isomorphism f:U(X)U(Y)f:U(X)\to U(Y). Then afa_{f} is a state isomorphism if and only if it is a local state isomorphism at every vertex xx of U(X)U(X).

We also establish a sufficient condition for afa_{f} to be a state isomorphism which, when it applies, is quicker to verify.

Definition 4.13.

Given a state XX of a graph GG and a vertex vv of U(X)U(X), we say that vv is a head of XX if there exists some arrow (w,v)X(w,v)\in X. Similarly, we say that vv is a tail of XX if there exists some arrow (v,w)X(v,w)\in X. We write h(X)h(X) and t(X)t(X) for the sets of heads and tails of XX, respectively.

Theorem 4.14.

Suppose afa_{f} is a bijection induced by a graph isomorphism f:U(X)U(Y)f:U(X)\to U(Y). If the following conditions hold, then afa_{f} is a state isomorphism from XX to YY.

  • 1.

    f(h(X)L(G))=h(Y)L(H)f(h(X)\cup L(G))=h(Y)\cup L(H).

  • 2.

    f(t(X)L(G))=t(Y)L(H)f(t(X)\cup L(G))=t(Y)\cup L(H).

Proof.

Suppose these two conditions hold, and let XX^{*} be any decoration of GG containing XX which is not a descendent of XX. Without loss of generality, we may assume that XX^{*} has a source at some vertex xx of U(X)U(X) that is not a leaf of GG. It follows that xh(X)L(G)x\notin h(X)\cup L(G). By the first condition in the theorem, we have f(x)h(Y)L(H)f(x)\notin h(Y)\cup L(H). This implies that af+(X)a_{f}^{+}(X^{*}) has a source at the vertex f(x)f(x) which is not a leaf of HH, so af+(X)a_{f}^{+}(X^{*}) is not a descendent of YY.

The proof that af+(X)(Y)a_{f}^{+}(X^{*})\notin\mathcal{F}^{\bullet}(Y) implies X(X)X^{*}\notin\mathcal{F}^{\bullet}(X) is analogous. ∎

For example, consider the states XX and YY of graphs GG and HH displayed in Figure 9. The graph isomorphism f:U(X)U(Y)f:U(X)\to U(Y) which is the identity on uu, vv, and ww induces a state isomorphism afa_{f} from XX to YY, because h(X)L(G)={u,w}=h(Y)L(H)h(X)\cup L(G)=\{u,w\}=h(Y)\cup L(H) and t(X)L(G)={u}=t(Y)L(H)t(X)\cup L(G)=\{u\}=t(Y)\cup L(H).

uuvvww
uuvvww
Figure 9: Isomorphic states XX and YY of graphs GG and HH.

The sufficient conditions in Theorem 4.14 for afa_{f} to be a state isomorphism are not necessary. For example, the states XX and YY of graphs GG and HH in Figure 10 are clearly isomorphic via the identity on uu, vv, and ww, even though vh(X)v\in h(X) and vh(Y)L(H)v\notin h(Y)\cup L(H).

uuvvww
uuvvww
Figure 10: Isomorphic states XX and YY of graphs GG and HH with vh(X)v\in h(X) and vh(Y)L(H)v\notin h(Y)\cup L(H).

5 Flows, Crashes, Twigs, and Rods

For any nonnegative integer nn, we write n¯\overline{n} for the remainder when nn is divided by 22.

Definition 5.1.

For any positive integer nn, the nn-path, denoted PnP_{n}, is the graph with vertex set {0,1,2,,n1}\{0,1,2,\ldots,n-1\} and edge set {{0,1},{1,2},,{n2,n1}}\{\{0,1\},\{1,2\},\ldots,\{n-2,n-1\}\}. Any graph isomorphic to PnP_{n} for some nn is called a path graph.

For any nonnegative integer, the nn-flow state FnF_{n} of the path graph with vertex set {1,0,1,,n,n+1}\{-1,0,1,\allowbreak\ldots,n,n+1\} is defined to be {(1,0),(n,n+1)}\{(-1,0),(n,n+1)\}. For any positive integer, the nn-crash state CnC_{n} of the same path graph is defined to be {(1,0),(n+1,n)}\{(-1,0),(n+1,n)\}. Note that FnF_{n} and CnC_{n} both have nn unmarked edges. We disallow n=0n=0 for CnC_{n} because the resulting decoration would not be a state.

1-1011223344
1-1011223344
Figure 11: The states F3F_{3} and C3C_{3} of a path graph with 66 vertices.
Proposition 5.2.

g(Fn)=n¯g(F_{n})=\overline{n} for n0n\geq 0, and g(Cn)=n¯1g(C_{n})=\overline{n}\oplus 1 for n1n\geq 1.

Proof.

We prove both claims simultaneously by induction on nn. The states F0F_{0} and C1C_{1} are terminal, so g(F0)=g(C1)=0g(F_{0})=g(C_{1})=0.

Assume the result is known for all FkF_{k} and CkC_{k} with k<nk<n, where nn is a positive integer.

Each follower of FnF_{n} is isomorphic either to some FkFn1kF_{k}\sqcup F_{n-1-k}, for k{0,,n1}k\in\{0,\ldots,n-1\}, or to some CkCn1kC_{k}\sqcup C_{n-1-k}, for k{1,,n2}k\in\{1,\ldots,n-2\}. By assumption, g(FkFn1k)=k¯n1k¯=n¯1g(F_{k}\sqcup F_{n-1-k})=\overline{k}\oplus\overline{n-1-k}=\overline{n}\oplus 1, and g(CkCn1k)=(k¯1)(n1k¯1)=n¯1g(C_{k}\sqcup C_{n-1-k})=(\overline{k}\oplus 1)\oplus(\overline{n-1-k}\oplus 1)=\overline{n}\oplus 1. Therefore, g(Fn)=n¯g(F_{n})=\overline{n}.

Similarly, each follower of CnC_{n} is isomorphic either to some FkCn1kF_{k}\sqcup C_{n-1-k}, for k{0,,n2}k\in\{0,\ldots,n-2\}, or to some CkFn1kC_{k}\sqcup F_{n-1-k}, for k{1,,n1}k\in\{1,\ldots,n-1\}. By assumption, g(FkCn1k)=k¯(n1k¯1)=n¯g(F_{k}\sqcup C_{n-1-k})=\overline{k}\oplus(\overline{n-1-k}\oplus 1)=\overline{n}, and g(CkFn1k)=(k¯1)n1k¯=n¯g(C_{k}\sqcup F_{n-1-k})=(\overline{k}\oplus 1)\oplus\overline{n-1-k}=\overline{n}. Therefore, g(Cn)=n¯1g(C_{n})=\overline{n}\oplus 1. ∎

Definition 5.3.

The nn-twig state TnT_{n} of the path graph Pn+2P_{n+2} with vertex set {0,1,2,,n+1}\{0,1,2,\ldots,\allowbreak n+1\} is defined to be {(n,n+1)}\{(n,n+1)\}.

011223344
Figure 12: The state T3T_{3} of the path graph P5P_{5}.
Proposition 5.4.

g(Tn)=ng(T_{n})=n for n0n\geq 0.

Proof.

We use induction. The state T0T_{0} is terminal, so g(T0)=0g(T_{0})=0. For n1n\geq 1, each follower of TnT_{n} is isomorphic either to some TkFn1kT_{k}\sqcup F_{n-1-k}, for k{0,,n1}k\in\{0,\ldots,n-1\}, or to some TkCn1kT_{k}\sqcup C_{n-1-k}, for k{0,,n2}k\in\{0,\ldots,n-2\}. By induction, g(TkFn1k)=kn1k¯g(T_{k}\sqcup F_{n-1-k})=k\oplus\overline{n-1-k}, and g(TkCn1k)=k(nk¯)g(T_{k}\sqcup C_{n-1-k})=k\oplus(\overline{n-k}). Therefore, g((Tn))={0,1,,n1}g(\mathcal{F}(T_{n}))=\{0,1,\ldots,n-1\}, so g(Tn)=ng(T_{n})=n. ∎

Definition 5.5.

The nn-rod state RnR_{n} of the path graph Pn+1P_{n+1} with vertex set {0,1,2,,n}\{0,1,2,\ldots,n\} is defined to be the empty set, for any n1n\geq 1.

0112233
Figure 13: The state R3R_{3} of the path graph P4P_{4}.
Proposition 5.6.

g(Rn)=n¯g(R_{n})=\overline{n} for n1n\geq 1.

Proof.

We use induction. Both followers of R1R_{1} are isomorphic to T0T_{0}, so g(R1)=1g(R_{1})=1. For n1n\geq 1, each follower of RnR_{n} is isomorphic to some TkTn1kT_{k}\sqcup T_{n-1-k}, for k{0,,n1}k\in\{0,\ldots,n-1\}. By induction, g(TkTn1k)=k(n1k)g(T_{k}\sqcup T_{n-1-k})=k\oplus(n-1-k). When nn is even, the elements of g((Tn))g(\mathcal{F}(T_{n})) are all odd, so g(Tn)=0=n¯g(T_{n})=0=\overline{n}. When nn is odd, the elements of g((Tn))g(\mathcal{F}(T_{n})) are all even, and 0=(n1)/2(n1)/2g((Tn))0=(n-1)/2\oplus(n-1)/2\in g(\mathcal{F}(T_{n})), so g(Tn)=1=n¯g(T_{n})=1=\overline{n}. ∎

6 3-Legged Spider Graphs

Definition 6.1.

Let aa, bb, and cc be nonnegative integers with abc0abc\neq 0. Then the 33-legged spider graph S(a,b,c)S(a,b,c) has vertex set {u0=v0=w0,u1,,ua,v1,,vb,w1,,wc}\{u_{0}=v_{0}=w_{0},u_{1},\ldots,u_{a},v_{1},\ldots,v_{b},\allowbreak w_{1},\ldots,w_{c}\} and edge set

{{u0,u1},,{ua1,ua},{v0,v1)},,{vb1,vb},{w0,w1},,{wc1,wc}}.\{\{u_{0},u_{1}\},\ldots,\{u_{a-1},u_{a}\},\{v_{0},v_{1})\},\ldots,\{v_{b-1},v_{b}\},\{w_{0},w_{1}\},\ldots,\{w_{c-1},w_{c}\}\}.

The vertex u0=v0=w0u_{0}=v_{0}=w_{0} is the hub of S(a,b,c)S(a,b,c). The subgraphs induced by the sets {u0,,ua}\{u_{0},\ldots,u_{a}\}, {v0,,vb}\{v_{0},\ldots,v_{b}\}, and {w0,,wc}\{w_{0},\ldots,w_{c}\} of vertices are the legs of S(a,b,c)S(a,b,c). The length of a leg is its number of edges. A leg is even or odd if it has even or odd length. Note that we allow legs to have length 0, but not all three legs at the same time, lest the hub be an isolated vertex.

u0=v0=w0u_{0}=v_{0}=w_{0}u1u_{1}ua1u_{a-1}uau_{a}v1v_{1}vb1v_{b-1}vbv_{b}w1w_{1}wc1w_{c-1}wcw_{c}
Figure 14: The 33-legged spider graph S(a,b,c)S(a,b,c).

It will be convenient to introduce notation for decorations of a spider graph with arrows marked only on the leaf edges.

Definition 6.2.

For any a,b,c0a,b,c\geq 0, the decoration S[a^,b^,c^]S[\hat{a},\hat{b},\hat{c}] of the graph S(a+1,b+1,c+1)S(a+1,b+1,c+1) is defined to be {(a,a+1),(b,b+1),(c,c+1)}\{(a,a+1),(b,b+1),(c,c+1)\}. Note that all three arrows point away from the hub, and the legs have aa, bb, and cc unmarked edges, respectively. In order to change the direction of an arrow, we turn the corresponding accent upside down. For example, S[a^,bˇ,c^]S[\hat{a},\check{b},\hat{c}] denotes the state {(a,a+1),(b+1,b),(c,c+1)}\{(a,a+1),(b+1,b),(c,c+1)\}.

If we want to remove an arrow along with the corresponding edge of the graph, we write no accent. For example, S[a,b,c^]S[a,b,\hat{c}] denotes the state {(c,c+1)}\{(c,c+1)\} of the spider graph S(a,b,c+1)S(a,b,c+1). Note that aa, bb, and cc still give the number of unmarked edges of each of the legs. Figure 15 displays the state S[2,2ˇ,3^]S[2,\check{2},\hat{3}] of the graph S(2,3,4)S(2,3,4).

u2u_{2}v3v_{3}w4w_{4}
Figure 15: The state S[2,2ˇ,3^]S[2,\check{2},\hat{3}] of the spider graph S(2,3,4)S(2,3,4).

If we do not wish to specify the direction of a particular arrow, perhaps because the outcome of a calculation does not depend on it, then we use a tilde. For example, S[a~,b,c~]S[\tilde{a},b,\tilde{c}] represents any of the four decorations S[a^,b,c^]S[\hat{a},b,\hat{c}], S[a^,b,cˇ]S[\hat{a},b,\check{c}], S[aˇ,b,c^]S[\check{a},b,\hat{c}], or S[aˇ,b,cˇ]S[\check{a},b,\check{c}] of the spider graph S(a+1,b,c+1)S(a+1,b,c+1).

In order to specify a relationship between the directions of certain arrows without specifying the individual directions, we use double accents. For example, S[a^ˇ,b,cˇ^]S[\check{\hat{a}},b,\hat{\check{c}}] represents either the second or third decoration listed above.

Proposition 6.3.

For any positive integer nn, we have the following state isomorphism and Grundy value:

S[0ˇ,0ˇ,nˇ]\displaystyle S[\check{0},\check{0},\check{n}] Cn\displaystyle\cong C_{n} g(S[0ˇ,0ˇ,nˇ])\displaystyle g(S[\check{0},\check{0},\check{n}]) =n¯1.\displaystyle=\overline{n}\oplus 1.

Likewise, for any nonnegative integer nn, we have:

S[0ˇ,0ˇ,n^]\displaystyle S[\check{0},\check{0},\hat{n}] Fn\displaystyle\cong F_{n} g(S[0ˇ,0ˇ,n^])\displaystyle g(S[\check{0},\check{0},\hat{n}]) =n¯\displaystyle=\overline{n}
S[0ˇ,0^,n~]\displaystyle S[\check{0},\hat{0},\tilde{n}] Tn\displaystyle\cong T_{n} g(S[0ˇ,0^,n~])\displaystyle g(S[\check{0},\hat{0},\tilde{n}]) =n\displaystyle=n
S[0ˇ,1ˇ,nˇ]\displaystyle S[\check{0},\check{1},\check{n}] Cn+1\displaystyle\cong C_{n+1} g(S[0ˇ,1ˇ,nˇ])\displaystyle g(S[\check{0},\check{1},\check{n}]) =n¯\displaystyle=\overline{n}
S[0ˇ,1ˇ,n^]\displaystyle S[\check{0},\check{1},\hat{n}] Fn+1\displaystyle\cong F_{n+1} g(S[0ˇ,1ˇ,n^])\displaystyle g(S[\check{0},\check{1},\hat{n}]) =n¯1\displaystyle=\overline{n}\oplus 1
S[0ˇ,1^,nˇ]\displaystyle S[\check{0},\hat{1},\check{n}] T1

T
n
\displaystyle\cong T_{1}\sqcup{\mathchoice{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\displaystyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\displaystyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\textstyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\textstyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptstyle\vec{}\mkern 4.0mu$}\cr\kern-3.01389pt\cr$\scriptstyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptscriptstyle\vec{}\mkern 4.0mu$}\cr\kern-2.15277pt\cr$\scriptscriptstyle T$\cr}}}}_{n}
g(S[0ˇ,1^,nˇ])\displaystyle g(S[\check{0},\hat{1},\check{n}]) =n1\displaystyle=n\oplus 1
S[0ˇ,1^,n^]\displaystyle S[\check{0},\hat{1},\hat{n}] T1Tn\displaystyle\cong T_{1}\sqcup T_{n} g(S[0ˇ,1^,n^])\displaystyle g(S[\check{0},\hat{1},\hat{n}]) =n1\displaystyle=n\oplus 1
S[1ˇ,1^,nˇ]\displaystyle S[\check{1},\hat{1},\check{n}] F2

T
n
\displaystyle\cong F_{2}\sqcup{\mathchoice{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\displaystyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\displaystyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\textstyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\textstyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptstyle\vec{}\mkern 4.0mu$}\cr\kern-3.01389pt\cr$\scriptstyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptscriptstyle\vec{}\mkern 4.0mu$}\cr\kern-2.15277pt\cr$\scriptscriptstyle T$\cr}}}}_{n}
g(S[1ˇ,1^,nˇ])\displaystyle g(S[\check{1},\hat{1},\check{n}]) =n\displaystyle=n
S[1ˇ,1^,n^]\displaystyle S[\check{1},\hat{1},\hat{n}] F2Tn\displaystyle\cong F_{2}\sqcup T_{n} g(S[1ˇ,1^,n^])\displaystyle g(S[\check{1},\hat{1},\hat{n}]) =n.\displaystyle=n.
Proof.

The isomorphism from S[0ˇ,0ˇ,nˇ]S[\check{0},\allowbreak\check{0},\allowbreak\check{n}] to CnC_{n} is induced by the graph isomorphism U(S[0ˇ,0ˇ,nˇ])=S(0,0,n)U(Cn)=Pn+1U(S[\check{0},\check{0},\allowbreak\check{n}])\allowbreak=S(0,0,n)\to U(C_{n})=P_{n+1} which maps wkw_{k} to kk, for k{0,1,,n}k\in\{0,1,\ldots,n\}. We have h(S[0ˇ,0ˇ,nˇ])L(S(1,1,n+1))={w0,wn}h(S[\check{0},\check{0},\check{n}])\cup L(S(1,1,n+1))=\{w_{0},w_{n}\} and h(Cn)L(Pn+3)={0,n}h(C_{n})\cup L(P_{n+3})=\{0,n\}, with t(S[0ˇ,0ˇ,nˇ])L(S(1,1,n+1))t(S[\check{0},\check{0},\check{n}])\cup L(S(1,1,n+1)) and t(Cn)L(Pn+3)t(C_{n})\cup L(P_{n+3}) both empty, so Theorem 4.14 applies.

This same graph isomorphism induces state isomorphisms S[0ˇ,0ˇ,n^]FnS[\check{0},\check{0},\hat{n}]\to F_{n}, S[0ˇ,0^,nˇ]

Tn
S[\check{0},\allowbreak\hat{0},\check{n}]\to{\mathchoice{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\displaystyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\displaystyle T_{n}$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\textstyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\textstyle T_{n}$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptstyle\vec{}\mkern 4.0mu$}\cr\kern-3.01389pt\cr$\scriptstyle T_{n}$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptscriptstyle\vec{}\mkern 4.0mu$}\cr\kern-2.15277pt\cr$\scriptscriptstyle T_{n}$\cr}}}}
, and S[0ˇ,0^,n^]TnS[\check{0},\hat{0},\hat{n}]\to T_{n}.

The isomorphism from S[0ˇ,1ˇ,nˇ]S[\check{0},\check{1},\check{n}] to Cn+1C_{n+1} is induced by the graph isomorphism f:U(S[0ˇ,1ˇ,nˇ])=S(0,1,n)U(Cn+1)=Pn+2f:U(S[\check{0},\check{1},\check{n}])=S(0,1,n)\to U(C_{n+1})=P_{n+2} which maps v1v_{1} to 0 and wkw_{k} to k+1k+1, for k{0,1,,n}k\in\{0,1,\ldots,n\}. The only flowers of S[0ˇ,1ˇ,nˇ]S[\check{0},\check{1},\check{n}] which are states are the tail-flowers at v1v_{1} and wnw_{n}. The only flowers of Cn+1C_{n+1} which are states are the tail-flowers at 0 and n+1n+1. Therefore, afa_{f} is a local state isomorphism at every vertex of S(0,1,n)S(0,1,n), and Corollary 4.12 implies that afa_{f} is a state isomorphism.

v1v_{1}w0w_{0}w1w_{1}wn1w_{n-1}wnw_{n}
01122nnn+1n+1
Figure 16: The isomorphic states S[0ˇ,1ˇ,nˇ]S[\check{0},\check{1},\check{n}] and Cn+1C_{n+1}.

The same graph isomorphism induces a state isomorphism S[0ˇ,1ˇ,n^]Fn+1S[\check{0},\check{1},\hat{n}]\to F_{n+1}.

An isomorphism from X=T1TnX=T_{1}\sqcup T_{n} to Y=S[0ˇ,1^,n^]Y=S[\check{0},\hat{1},\hat{n}] is induced by the graph homomorphism f:U(T1Tn)=P2+Pn+1U(S[0ˇ,1^,n^])=S(0,1,n)f:U(T_{1}\sqcup T_{n})=P_{2}+P_{n+1}\to U(S[\check{0},\hat{1},\hat{n}])=S(0,1,n) which maps vertex kk in P2P_{2} to vkv_{k} and vertex ll in Pn+1P_{n+1} to wlw_{l}. We observe that afa_{f} is a local state isomorphism at the vertex 11 of P2P_{2} and at the vertices 1,2,,n1,2,\ldots,n of Pn+1P_{n+1}. It remains to check that af+a_{f}^{+} is locally state-preventing at 0 in P2P_{2} and at 0 in Pn+1P_{n+1}, and that (af+)1(a_{f}^{+})^{-1} is locally state-preventing at w0w_{0}.

Of the flowers at these three vertices, only the head-flower at 0 in P2P_{2} and the head-flower at w0w_{0} in U(Y)U(Y) are not states. Applying af+a_{f}^{+} to the first of these flowers, we obtain Y{(v1,w0)}Y\cup\{(v_{1},w_{0})\}, which has a source at v1v_{1}. Furthermore, (af+)1Yh(w0)(a_{f}^{+})^{-1}Y_{h}(w_{0}) has a source at 11 in P2P_{2}. By Theorem 4.10, afa_{f} is a state isomorphism.

110011n1n-1nn
v1v_{1}w0w_{0}w1w_{1}wn1w_{n-1}wnw_{n}
Figure 17: The isomorphic states T1TnT_{1}\sqcup T_{n} and S[0ˇ,1^,n^]S[\check{0},\hat{1},\hat{n}].

The same graph homomorphism gives a state isomorphism T1

T
n
S[0ˇ,1^,nˇ]
T_{1}\sqcup{\mathchoice{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\displaystyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\displaystyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\textstyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\textstyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptstyle\vec{}\mkern 4.0mu$}\cr\kern-3.01389pt\cr$\scriptstyle T$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptscriptstyle\vec{}\mkern 4.0mu$}\cr\kern-2.15277pt\cr$\scriptscriptstyle T$\cr}}}}_{n}\to S[\check{0},\hat{1},\check{n}]

An isomorphism from X=F2TnX=F_{2}\sqcup T_{n} to Y=S[1ˇ,1^,n^]Y=S[\check{1},\hat{1},\hat{n}] is given by the graph homomorphism f:U(F2Tn)=P3+Pn+1U(S[1ˇ,1^,n^])=S(1,1,n)f:U(F_{2}\sqcup T_{n})=P_{3}+P_{n+1}\to U(S[\check{1},\hat{1},\hat{n}])=S(1,1,n) which maps vertex 0 in P3P_{3} to u1u_{1}, 11 to w0w_{0}, and 22 to v1v_{1}, and maps vertex kk in Pn+1P_{n+1} to wkw_{k}. We observe that afa_{f} is a local state isomorphism at 0 and 22 in P3P_{3} and at 1,2,,n1,2,\ldots,n in Pn+1P_{n+1}.

With respect to the vertex 11 of P3P_{3}, none of Xt(1)X_{t}(1), Xh(1)X_{h}(1), af+(Xt(1))a_{f}^{+}(X_{t}(1)), or af+(Xh(1))a_{f}^{+}(X_{h}(1)) are states, so af+a_{f}^{+} is locally state-preventing at 11 in P3P_{3}. Both of the flowers at 0 in Pn+1P_{n+1} are states, so af+a_{f}^{+} is locally state-preventing at 0 in Pn+1P_{n+1}. Finally, none of Yt(w0)Y_{t}(w_{0}), Yh(w0)Y_{h}(w_{0}), (af+)1Yt(w0)(a_{f}^{+})^{-1}Y_{t}(w_{0}), or (af+)1Yh(w0)(a_{f}^{+})^{-1}Y_{h}(w_{0}) are states, so (af+)1(a_{f}^{+})^{-1} is locally state-preventing at w0w_{0}. By Theorem 4.10, afa_{f} is a state isomorphism.

01122011n1n-1nn
u1u_{1}w0w_{0}v1v_{1}w1w_{1}wn1w_{n-1}wnw_{n}
Figure 18: The isomorphic states F2TnF_{2}\sqcup T_{n} and S[1ˇ,1^,n^]S[\check{1},\hat{1},\hat{n}].

The same graph homomorphism gives a state isomorphism F2

Tn
S[1ˇ,1^,nˇ]
F_{2}\sqcup{\mathchoice{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\displaystyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\displaystyle T_{n}$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\textstyle\vec{}\mkern 4.0mu$}\cr\kern-4.30554pt\cr$\textstyle T_{n}$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptstyle\vec{}\mkern 4.0mu$}\cr\kern-3.01389pt\cr$\scriptstyle T_{n}$\cr}}}{\vbox{\offinterlineskip\halign{#\cr\reflectbox{$\scriptscriptstyle\vec{}\mkern 4.0mu$}\cr\kern-2.15277pt\cr$\scriptscriptstyle T_{n}$\cr}}}}\to S[\check{1},\hat{1},\check{n}]
. ∎

7 Even- and Odd-Moves States

For some positions in the Trimmed Game of Arrows, the parity of the number of remaining moves is predetermined. The state corresponding to such a position always has Grundy value 0 or 11, depending on the aforementioned parity.

Definition 7.1.

A state XX is called an even-moves state if for every terminal descendent XX^{*} of XX, |XX|\lvert X^{*}\setminus X\rvert is even. Similarly, a state YY is called an odd-moves state if for every terminal descendent YY^{*} of YY, |YY|\lvert Y^{*}\setminus Y\rvert is odd. An even-moves state XX corresponds to a game position that will lead to a loss for the player whose turn it is, no matter which moves the two players make. In particular, g(X)=0g(X)=0. An odd-moves state YY corresponds to a game position that will lead to a win for the player whose turn it is, no matter which moves the two players make. Every follower of an odd-moves state YY is an even-moves state, so g((Y))={0}g(\mathcal{F}(Y))=\{0\} and g(Y)=1g(Y)=1.

We write p(n)p(n) for the parity (even or odd) of an integer nn, so that we can then write p(n)p(n)-moves state to mean even- or odd-moves state, respectively. With this notation, a p(n)p(n)-moves state XX has g(X)=n¯g(X)=\overline{n}.

If a state XX is a p(n)p(n)-moves state, then so is any state isomorphic to XX. A follower of a p(n)p(n)-moves state is a p(n1)p(n-1)-moves state. A disjoint union of a p(n)p(n)-moves state and a p(m)p(m)-moves state is a p(n+m)p(n+m)-moves state.

Proposition 7.2.

For n0n\geq 0, FnF_{n} and Cn+1C_{n+1} are p(n)p(n)-moves states.

Proof.

We use induction. F0F_{0} and C1C_{1} are terminal, so they are clearly p(0)p(0)-moves states.

Assume the result is known for all FkF_{k} and CkC_{k} with k<nk<n, where nn is a positive integer. Each follower of FnF_{n} is isomorphic to either FkFn1kF_{k}\sqcup F_{n-1-k}, for some k{0,,n1}k\in\{0,\ldots,n-1\}, or CkCn1kC_{k}\sqcup C_{n-1-k}, for some k{1,,n2}k\in\{1,\ldots,n-2\}. By assumption, these are both p(n1)p(n-1)-moves states, since k+(n1k)=n1k+(n-1-k)=n-1 and (k1)+(n2k)=n3(k-1)+(n-2-k)=n-3. Therefore, FnF_{n} is a p(n)p(n)-moves state. The argument for CnC_{n} is analogous. ∎

Definition 7.3.

We denote descendents of a state such as S[aˇ,bˇ,c]S[\check{a},\check{b},c] by indicating the positions and directions of additional arrows within parentheses. For example, we write S[aˇ(iˇ),bˇ,c(k^,lˇ)]S[\check{a}(\check{i}),\check{b},c(\hat{k},\check{l})] for the state S[aˇ,bˇ,c]{(ui,ui1),(wk1,wk),(wl,wl1)}S[\check{a},\check{b},c]\cup\{(u_{i},u_{i-1}),(w_{k-1},w_{k}),\allowbreak(w_{l},w_{l-1})\} of the graph S(a+1,b+1,c)S(a+1,b+1,c). As a second example, S[a^ˇ(iˇ^),b,c]S[\check{\hat{a}}(\hat{\check{i}}),b,c] represents either of the following two states of the graph S(a+1,b,c)S(a+1,b,c):

S[a^(iˇ),b,c]\displaystyle S[\hat{a}(\check{i}),b,c] ={(ua,ua+1),(ui,ui1)}\displaystyle=\{(u_{a},u_{a+1}),(u_{i},u_{i-1})\}
S[aˇ(i^),b,c]\displaystyle S[\check{a}(\hat{i}),b,c] ={(ua+1,ua),(ui1,ui)}.\displaystyle=\{(u_{a+1},u_{a}),(u_{i-1},u_{i})\}.

As a third example, S[a,b^(b^),c]S[a,\hat{b}(\hat{b}),c] denotes the state {(vb,vb+1),(vb1,vb)}\{(v_{b},v_{b+1}),(v_{b-1},v_{b})\} of the graph S(a,b+1,c)S(a,b+1,c). As a final example, the states S[a(a^),b(b^),c(c^)]S[a(\hat{a}),b(\hat{b}),c(\hat{c})] and S[a1^,b1^,c1^]S[\widehat{a-1},\allowbreak\widehat{b-1},\allowbreak\widehat{c-1}] of the graph S(a,b,c)S(a,b,c) are equal. The state S[2,2ˇ(2ˇ),1(1^)]S[2,\check{2}(\check{2}),1(\hat{1})] is displayed in Figure 19.

u2u_{2}v3v_{3}w1w_{1}
Figure 19: The state S[2,2ˇ(2ˇ),1(1^)]S[2,\check{2}(\check{2}),1(\hat{1})] of the spider graph S(2,3,1)S(2,3,1).

The next proposition computes the Grundy values of the states that were missing from Proposition 6.3.

Proposition 7.4.

S[1ˇ,1ˇ,nˇ]S[\check{1},\check{1},\check{n}] is a p(n+1)p(n+1)-moves state, while S[1ˇ,1ˇ,n^]S[\check{1},\check{1},\hat{n}] is a p(n)p(n)-moves state. As a result,

g(S[1ˇ,1ˇ,nˇ])\displaystyle g(S[\check{1},\check{1},\check{n}]) =n¯1,\displaystyle=\overline{n}\oplus 1,
g(S[1ˇ,1ˇ,n^])\displaystyle g(S[\check{1},\check{1},\hat{n}]) =n¯.\displaystyle=\overline{n}.
Proof.

A terminal descendent ZZ of S[1ˇ,1ˇ,nˇ]S[\check{1},\check{1},\check{n}] must be a descendent of one of the two states S[1ˇ,1ˇ,nˇ(1ˇ)]S[\check{1},\check{1},\check{n}(\check{1})] and S[1ˇ,1ˇ,nˇ(1^)]S[\check{1},\check{1},\check{n}(\hat{1})] or of neither.

u1u_{1}v1v_{1}wnw_{n}
u1u_{1}v1v_{1}wnw_{n}
Figure 20: The states S[1ˇ,1ˇ,nˇ(1ˇ)]S[\check{1},\check{1},\check{n}(\check{1})] and S[1ˇ,1ˇ,nˇ(1^)]S[\check{1},\check{1},\check{n}(\hat{1})].

If ZZ is a descendent of S[1ˇ,1ˇ,nˇ(1ˇ)]S[\check{1},\check{1},\check{n}(\check{1})], then ZZ is also a descendent of S[1ˇ(1ˇ),1ˇ,nˇ(1ˇ)]S[\check{1}(\check{1}),\check{1},\allowbreak\check{n}(\check{1})] or S[1ˇ,1ˇ(1ˇ),nˇ(1ˇ)]S[\check{1},\check{1}(\check{1}),\check{n}(\check{1})], each of which is isomorphic to C1Fn1C_{1}\sqcup F_{n-1}, a p(n+1)p(n+1)-moves state. If ZZ is a descendent of S[1ˇ,1ˇ,nˇ(1^)]S[\check{1},\check{1},\check{n}(\hat{1})], then ZZ is also a descendent of S[1ˇ(1ˇ),1ˇ(1ˇ),nˇ(1^)]S[\check{1}(\check{1}),\check{1}(\check{1}),\check{n}(\hat{1})], which is isomorphic to Cn1C_{n-1}, a p(n)p(n)-moves state. Finally, if ZZ is a descendent of neither S[1ˇ,1ˇ,nˇ(1ˇ)]S[\check{1},\check{1},\check{n}(\check{1})] nor S[1ˇ,1ˇ,nˇ(1^)]S[\check{1},\check{1},\check{n}(\hat{1})], then ZZ is a descendent of S[1ˇ(1ˇ),1ˇ(1ˇ),nˇ(2ˇ)]S[\check{1}(\check{1}),\check{1}(\check{1}),\check{n}(\check{2})], which is isomorphic to C1Fn2C_{1}\sqcup F_{n-2}, a p(n)p(n)-moves state.

In all three cases, |ZS[1ˇ,1ˇ,nˇ]|\lvert Z\setminus S[\check{1},\check{1},\check{n}]\rvert has parity opposite that of nn. Therefore, S[1ˇ,1ˇ,nˇ]S[\check{1},\check{1},\check{n}] is a p(n+1)p(n+1)-moves state and g(S[1ˇ,1ˇ,nˇ])=n¯1g(S[\check{1},\check{1},\check{n}])=\overline{n}\oplus 1.

The argument for S[1ˇ,1ˇ,n^]S[\check{1},\check{1},\hat{n}] is analogous. ∎

Definition 7.5.

We say that states XX and YY of a graph GG are associates if they have a common follower.

The unique common follower of distinct associates XX and YY is XYX\cup Y. If XX and YY are distinct associates, then X=(XY){x0}X=(X\cap Y)\cup\{x_{0}\} and Y=(XY){y0}Y=(X\cap Y)\cup\{y_{0}\} for some arrows x0x_{0} and y0y_{0}, which represent possible successive moves starting from the game position represented by XYX\cap Y.

Proposition 7.6.

If every follower of a state XX of a graph GG is an associate of an odd-moves state of GG, then g(X)=0g(X)=0. If every follower of a state XX of GG is an associate of an even-moves follower of XX, then g(X)=1g(X)=1.

Proof.

Suppose every follower of XX is an associate of an odd-moves state of GG. Then each such follower XX^{*} has a follower XX^{**} which is an even-moves state, so g(X)=0g(X^{**})=0 and g(X)0g(X^{*})\neq 0. Therefore, g(X)=0g(X)=0.

Next, suppose every follower of XX is an associate of an even-moves follower of XX. Then every follower of XR1X\sqcup R_{1} is an associate of an odd-moves state of G+P2G+P_{2}. By the first part of the proof, g(XR1)=0g(X\sqcup R_{1})=0. Because g(XR1)=g(X)g(R1)=g(X)1g(X\sqcup R_{1})=g(X)\oplus g(R_{1})=g(X)\oplus 1, we have g(X)=1g(X)=1. ∎

Proposition 7.7.

For b,c2b,c\geq 2,

g(S[0~,bˇ,cˇ])\displaystyle g(S[\tilde{0},\check{b},\check{c}]) =b¯c¯1\displaystyle=\overline{b}\oplus\overline{c}\oplus 1 g(S[1~,bˇ,cˇ])\displaystyle g(S[\tilde{1},\check{b},\check{c}]) =b¯c¯\displaystyle=\overline{b}\oplus\overline{c}
g(S[0~,bˇ,c^])\displaystyle g(S[\tilde{0},\check{b},\hat{c}]) =b¯c¯\displaystyle=\overline{b}\oplus\overline{c} g(S[1~,bˇ,c^])\displaystyle g(S[\tilde{1},\check{b},\hat{c}]) =b¯c¯1\displaystyle=\overline{b}\oplus\overline{c}\oplus 1
vbv_{b}wcw_{c}
vbv_{b}u1u_{1}wcw_{c}
Figure 21: The states S[0ˇ,bˇ,cˇ]S[\check{0},\check{b},\check{c}] and S[1ˇ,bˇ,cˇ]S[\check{1},\check{b},\check{c}].
Proof.

Suppose b¯c¯=1\overline{b}\oplus\overline{c}=1. Then any follower of S[0~,bˇ,cˇ]S[\tilde{0},\check{b},\check{c}] is an associate of either S[0^ˇ,bˇ(1^ˇ),cˇ]S[\check{\hat{0}},\check{b}(\check{\hat{1}}),\check{c}] or S[0^ˇ,bˇ,cˇ(1^ˇ)]S[\check{\hat{0}},\check{b},\check{c}(\check{\hat{1}})]. The former is isomorphic to one of the odd-moves states Fb1CcF_{b-1}\sqcup C_{c} or Cb1FcC_{b-1}\sqcup F_{c}, and the latter is isomorphic to one of the odd-moves states CbFc1C_{b}\sqcup F_{c-1} or FbCc1F_{b}\sqcup C_{c-1}. By Proposition 7.6, g(S[0~,bˇ,cˇ])=0=b¯c¯1g(S[\tilde{0},\check{b},\check{c}])=0=\overline{b}\oplus\overline{c}\oplus 1.

Suppose b¯c¯=0\overline{b}\oplus\overline{c}=0. Then any follower of S[0~,bˇ,cˇ]S[\tilde{0},\check{b},\check{c}] is an associate of either S[0^ˇ,bˇ(1^ˇ),cˇ]S[\check{\hat{0}},\check{b}(\check{\hat{1}}),\check{c}] or S[0^ˇ,bˇ,cˇ(1^ˇ)]S[\check{\hat{0}},\check{b},\check{c}(\check{\hat{1}})]. The former is isomorphic to one of the even-moves states Fb1CcF_{b-1}\sqcup C_{c} or Cb1FcC_{b-1}\sqcup F_{c}, and the latter is isomorphic to one of the even-moves states CbFc1C_{b}\sqcup F_{c-1} or FbCc1F_{b}\sqcup C_{c-1}. By Proposition 7.6, g(S[0~,bˇ,cˇ])=1=b¯c¯1g(S[\tilde{0},\check{b},\check{c}])=1=\overline{b}\oplus\overline{c}\oplus 1.

The proofs for S[0~,bˇ,c^]S[\tilde{0},\check{b},\hat{c}], S[1~,bˇ,cˇ]S[\tilde{1},\check{b},\check{c}], and S[1~,bˇ,c^]S[\tilde{1},\check{b},\hat{c}] are analogous. ∎

8 3-Legged Spiders with Three Marked Legs

Although our eventual goal is to find the Grundy value of an unmarked 33-legged spider graph, we begin by finding the Grundy value of a spider with a mark at the end of each leg.

Definition 8.1.

The order of a positive integer kk, denoted ord(k)\mathrm{ord}(k), is log2(k)+1\lfloor\log_{2}(k)\rfloor+1, the greatest positive integer rr such that 2r1k2^{r-1}\leq k. If nn has binary expansion krkr1k2k1k_{r}k_{r-1}\cdots k_{2}k_{1} with kr=1k_{r}=1, then ord(k)=r\mathrm{ord}(k)=r.

Theorem 8.2.

If a,b,c2a,b,c\geq 2, then g(S[a~,b~,c~])=((a2)(b2)(c2))+2g(S[\tilde{a},\tilde{b},\tilde{c}])=((a-2)\oplus(b-2)\oplus(c-2))+2.

Proof.

Suppose a,b,c2a,b,c\geq 2, and let x=((a2)(b2)(c2))x=((a-2)\oplus(b-2)\oplus(c-2)). We show that g((S[a~,b~,c~]))g(\mathcal{F}(S[\tilde{a},\tilde{b},\tilde{c}])) contains all nonnegative integers less than x+2x+2 but does not contain x+2x+2.

Grundy values 0 and 11 can be obtained from the following states, the first and last of which have value a¯b¯c¯\overline{a}\oplus\overline{b}\oplus\overline{c}, and the second and third of which have value a¯b¯c¯1\overline{a}\oplus\overline{b}\oplus\overline{c}\oplus 1:

S[a^ˇ(1^ˇ),bˇ,cˇ]\displaystyle S[\check{\hat{a}}(\check{\hat{1}}),\check{b},\check{c}] Fa1S[0^ˇ,bˇ,cˇ]\displaystyle\cong F_{a-1}\sqcup S[\check{\hat{0}},\check{b},\check{c}]
S[a^ˇ(1^ˇ),bˇ,c^]\displaystyle S[\check{\hat{a}}(\check{\hat{1}}),\check{b},\hat{c}] Fa1S[0^ˇ,bˇ,c^]\displaystyle\cong F_{a-1}\sqcup S[\check{\hat{0}},\check{b},\hat{c}]
S[a^ˇ(1ˇ^),bˇ,cˇ]\displaystyle S[\check{\hat{a}}(\hat{\check{1}}),\check{b},\check{c}] Ca1S[0ˇ^,bˇ,cˇ]\displaystyle\cong C_{a-1}\sqcup S[\hat{\check{0}},\check{b},\check{c}]
S[a^ˇ(1ˇ^),bˇ,c^]\displaystyle S[\check{\hat{a}}(\hat{\check{1}}),\check{b},\hat{c}] Ca1S[0ˇ^,bˇ,c^].\displaystyle\cong C_{a-1}\sqcup S[\hat{\check{0}},\check{b},\hat{c}].

Suppose next that k{2,3,,x+1}k\in\{2,3,\ldots,x+1\}. Then k2<xk-2<x. Let r=ord(x(k2))r=\mathrm{ord}(x\oplus(k-2)). Then xr=1x_{r}=1, so at least one of (a2)r(a-2)_{r}, (b2)r(b-2)_{r}, and (c2)r(c-2)_{r} equals 11. Suppose, without loss of generality, that (a2)r=1(a-2)_{r}=1. Then

(k2)(b2)(c2)=x(k2)(a2)<a2,(k-2)\oplus(b-2)\oplus(c-2)=x\oplus(k-2)\oplus(a-2)<a-2,

so S[a^ˇ(((k2)(b2)(c2))+3^ˇ),b~,c~]S[\check{\hat{a}}(\widecheck{\widehat{((k-2)\oplus(b-2)\oplus(c-2))+3}}),\tilde{b},\tilde{c}] is a follower of S[a^ˇ,b~,c~]S[\check{\hat{a}},\tilde{b},\tilde{c}]. Because this state is isomorphic to

S[((k2)(b2)(c2))+2~,b~,c~]Fa3((k2)(b2)(c2)),S[\widetilde{((k-2)\oplus(b-2)\oplus(c-2))+2},\tilde{b},\tilde{c}]\sqcup F_{a-3-((k-2)\oplus(b-2)\oplus(c-2))},

we see by induction that its Grundy value is kk¯a¯b¯c¯1k\oplus\overline{k}\oplus\overline{a}\oplus\overline{b}\oplus\overline{c}\oplus 1.

If k=x+1k=x+1, then this expression for the Grundy value reduces to kk. If k{2,3,,x}k\in\{2,3,\ldots,x\} and the Grundy value above is not kk, then the follower
S[a^ˇ(((k2)(b2)(c2))+3ˇ^),b~,c~]{S[\check{\hat{a}}(\widehat{\widecheck{((k-2)\oplus(b-2)\oplus(c-2))+3}}),\tilde{b},\tilde{c}]} is isomorphic to

S[((k2)(b2)(c2))+2~,b~,c~]Ca3((k2)(b2)(c2))S[\widetilde{((k-2)\oplus(b-2)\oplus(c-2))+2},\tilde{b},\tilde{c}]\sqcup C_{a-3-((k-2)\oplus(b-2)\oplus(c-2))}

and has Grundy value kk¯a¯b¯c¯=kk\oplus\overline{k}\oplus\overline{a}\oplus\overline{b}\oplus\overline{c}=k.

Finally, suppose for contradiction that there exists a follower of S[a~,b~,c~]S[\tilde{a},\tilde{b},\tilde{c}] with Grundy value x+2x+2. Assume, without loss of generality, that this follower is S[a^ˇ(m^ˇ),b~,c~]S[\check{\hat{a}}(\check{\hat{m}}),\tilde{b},\tilde{c}], with m{1,2,a}m\in\{1,2,\ldots a\}, or S[a^ˇ(mˇ^),b~,c~]S[\check{\hat{a}}(\hat{\check{m}}),\tilde{b},\tilde{c}], with m{1,2,a1}m\in\{1,2,\ldots a-1\}. Clearly m{1,2}m\notin\{1,2\}, because then the Grundy value would be 0 or 11.

The state S[a^ˇ(m^ˇ),b~,c~]S[\check{\hat{a}}(\check{\hat{m}}),\tilde{b},\tilde{c}] is isomorphic to S[m1~,b~,c~]FamS[\widetilde{m-1},\tilde{b},\tilde{c}]\sqcup F_{a-m}, with Grundy value (((m3)(b2)(c2))+2)a¯m¯(((m-3)\oplus(b-2)\oplus(c-2))+2)\oplus\overline{a}\oplus\overline{m}, which does not have the same parity as x+2x+2. The state S[a^ˇ(mˇ^),b~,c~]S[\check{\hat{a}}(\hat{\check{m}}),\tilde{b},\tilde{c}] is isomorphic to S[m1~,b~,c~]CamS[\widetilde{m-1},\tilde{b},\tilde{c}]\sqcup C_{a-m}, with Grundy value (((m3)(b2)(c2))+2)a¯m¯1(((m-3)\oplus(b-2)\oplus(c-2))+2)\oplus\overline{a}\oplus\overline{m}\oplus 1, which does have the same parity as x+2x+2. For this value to equal to x+2x+2, we would need to have

x=(m3)(b2)(c2)a¯m¯1¯,x=(m-3)\oplus(b-2)\oplus(c-2)\oplus\overline{a}\oplus\overline{m}\oplus\overline{1},

i.e.,

(a2)(m3)=a¯m¯1¯{0,1}.(a-2)\oplus(m-3)=\overline{a}\oplus\overline{m}\oplus\overline{1}\in\{0,1\}.

Because m<am<a, we know (a2)(m3)2(a-2)-(m-3)\geq 2, so (a2)(m3){0,1}(a-2)\oplus(m-3)\notin\{0,1\}, contradicting the assertion above. ∎

9 3-Legged Spiders with a Short Marked Leg

Next, we compute Grundy values of 33-legged spiders with a mark close to the hub on one leg, and with one or both of the other legs unmarked.

Proposition 9.1.

For a,b{0,1}a,b\in\{0,1\} and c2c\geq 2,

g(S[aˇ,bˇ,c])\displaystyle g(S[\check{a},\check{b},c]) =abc\displaystyle=a\oplus b\oplus c
g(S[aˇ,b^,c])\displaystyle g(S[\check{a},\hat{b},c]) =abc¯\displaystyle=a\oplus b\oplus\overline{c}
v1v_{1}u1u_{1}wcw_{c}
v1v_{1}u1u_{1}wcw_{c}
Figure 22: The states S[0ˇ,0ˇ,c]TcS[\check{0},\check{0},c]\cong T_{c} and S[0ˇ,0^,c]RcS[\check{0},\hat{0},c]\cong R_{c}.
Proof.

Assume c2c\geq 2 is even. Then we have the following state isomorphisms and Grundy values:

S[0ˇ,0ˇ,c]\displaystyle S[\check{0},\check{0},c] Tc\displaystyle\cong T_{c} g(S[0ˇ,0ˇ,c])\displaystyle g(S[\check{0},\check{0},c]) =c\displaystyle=c
S[0ˇ,1ˇ,c]S[1ˇ,0ˇ,c]\displaystyle S[\check{0},\check{1},c]\cong S[\check{1},\check{0},c] Tc+1\displaystyle\cong T_{c+1} g(S[0ˇ,1ˇ,c])=g(S[1ˇ,0ˇ,c])\displaystyle g(S[\check{0},\check{1},c])=g(S[\check{1},\check{0},c]) =c+1\displaystyle=c+1
g(S[1ˇ,1ˇ,c])\displaystyle g(S[\check{1},\check{1},c]) =c\displaystyle=c
S[0ˇ,0^,c]\displaystyle S[\check{0},\hat{0},c] Rc\displaystyle\cong R_{c} g(S[0ˇ,0^,c])\displaystyle g(S[\check{0},\hat{0},c]) =c¯\displaystyle=\overline{c}
S[0ˇ,1^,c]S[1ˇ,0^,c]\displaystyle S[\check{0},\hat{1},c]\cong S[\check{1},\hat{0},c] T1Rc\displaystyle\cong T_{1}\sqcup R_{c} g(S[0ˇ,1^,c])=g(S[1ˇ,0^,c])\displaystyle g(S[\check{0},\hat{1},c])=g(S[\check{1},\hat{0},c]) =c¯1\displaystyle=\overline{c}\oplus 1
S[1ˇ,1^,c]\displaystyle S[\check{1},\hat{1},c] F2Rc\displaystyle\cong F_{2}\sqcup R_{c} g(S[1ˇ,1^,c])\displaystyle g(S[\check{1},\hat{1},c]) =c¯\displaystyle=\overline{c}

In the case of S[1ˇ,1ˇ,c]S[\check{1},\check{1},c], Proposition 7.4 can be used to find that g((S[1ˇ,1ˇ,c])={0,1,,c1,c+1}g(\mathcal{F}(S[\check{1},\check{1},c])\allowbreak=\{0,1,\ldots,c-1,c+1\}, justifying the claim above that g(S[1ˇ,1ˇ,c])=cg(S[\check{1},\check{1},c])=c. ∎

Proposition 9.2.

For a{0,1}a\in\{0,1\}, b,c2b,c\geq 2, and cc even,

g(S[aˇ,bˇ,c])\displaystyle g(S[\check{a},\check{b},c]) =ab¯(c2)1\displaystyle=a\oplus\overline{b}\oplus(c-2)\oplus 1
g(S[aˇ,b^,c])\displaystyle g(S[\check{a},\hat{b},c]) =ab¯(c2)\displaystyle=a\oplus\overline{b}\oplus(c-2)
vbv_{b}wcw_{c}
vbv_{b}wcw_{c}
Figure 23: The states S[0ˇ,bˇ,c]S[\check{0},\check{b},c] and S[0ˇ,b^,c]S[\check{0},\hat{b},c].
Proof.

First, we compute g(S[0ˇ,bˇ,c])g(S[\check{0},\check{b},c]) by induction on bb. Assume the formulas in the proposition hold for all smaller values of bb greater than or equal to 22. The followers of the state S[0ˇ,bˇ,c]S[\check{0},\check{b},c], along with their Grundy values, are listed below, with kk representing any integer in {3,,b}\{3,\ldots,b\} and ll any integer in {3,,c}\{3,\ldots,c\}:

S[0ˇ,bˇ(1ˇ),c]\displaystyle S[\check{0},\check{b}(\check{1}),c] Fb1Tc\displaystyle\cong F_{b-1}\sqcup T_{c} g(S[0ˇ,bˇ(1ˇ),c])\displaystyle g(S[\check{0},\check{b}(\check{1}),c]) =b¯(c+1)\displaystyle=\overline{b}\oplus(c+1)
S[0ˇ,bˇ(2ˇ),c]\displaystyle S[\check{0},\check{b}(\check{2}),c] Fb2Tc+1\displaystyle\cong F_{b-2}\sqcup T_{c+1} g(S[0ˇ,bˇ(2ˇ),c])\displaystyle g(S[\check{0},\check{b}(\check{2}),c]) =b¯(c+1)\displaystyle=\overline{b}\oplus(c+1)
S[0ˇ,bˇ(kˇ),c]\displaystyle S[\check{0},\check{b}(\check{k}),c] FbkS[0ˇ,k1ˇ,c]\displaystyle\cong F_{b-k}\sqcup S[\check{0},\widecheck{k-1},c] g(S[0ˇ,bˇ(kˇ),c])\displaystyle g(S[\check{0},\check{b}(\check{k}),c]) =b¯(c2)\displaystyle=\overline{b}\oplus(c-2)
S[0ˇ,bˇ(1^),c]\displaystyle S[\check{0},\check{b}(\hat{1}),c] Cb1Rc\displaystyle\cong C_{b-1}\sqcup R_{c} g(S[0ˇ,bˇ(1^),c])\displaystyle g(S[\check{0},\check{b}(\hat{1}),c]) =b¯\displaystyle=\overline{b}
S[0ˇ,bˇ(2^),c]\displaystyle S[\check{0},\check{b}(\hat{2}),c] Cb2T1Rc\displaystyle\cong C_{b-2}\sqcup T_{1}\sqcup R_{c} g(S[0ˇ,bˇ(2^),c])\displaystyle g(S[\check{0},\check{b}(\hat{2}),c]) =b¯\displaystyle=\overline{b}
S[0ˇ,bˇ(k^),c]\displaystyle S[\check{0},\check{b}(\hat{k}),c] CbkS[0ˇ,k1^,c]\displaystyle\cong C_{b-k}\sqcup S[\check{0},\widehat{k-1},c] g(S[0ˇ,bˇ(k^),c])\displaystyle g(S[\check{0},\check{b}(\hat{k}),c]) =b¯(c2)\displaystyle=\overline{b}\oplus(c-2)
S[0ˇ,bˇ,c(1ˇ)]\displaystyle S[\check{0},\check{b},c(\check{1})] CbTc1\displaystyle\cong C_{b}\sqcup T_{c-1} g(S[0ˇ,bˇ,c(1ˇ)])\displaystyle g(S[\check{0},\check{b},c(\check{1})]) =b¯(c2)\displaystyle=\overline{b}\oplus(c-2)
S[0ˇ,bˇ,c(2ˇ)]\displaystyle S[\check{0},\check{b},c(\check{2})] Cb+1Tc2\displaystyle\cong C_{b+1}\sqcup T_{c-2} g(S[0ˇ,bˇ,c(2ˇ)])\displaystyle g(S[\check{0},\check{b},c(\check{2})]) =b¯(c2)\displaystyle=\overline{b}\oplus(c-2)
S[0ˇ,bˇ,c(lˇ)]\displaystyle S[\check{0},\check{b},c(\check{l})] S[0ˇ,bˇ,l1ˇ]Tcl\displaystyle\cong S[\check{0},\check{b},\widecheck{l-1}]\sqcup T_{c-l} g(S[0ˇ,bˇ,c(lˇ)])\displaystyle g(S[\check{0},\check{b},c(\check{l})]) =b¯l¯(cl)\displaystyle=\overline{b}\oplus\overline{l}\oplus(c-l)
S[0ˇ,bˇ,c(1^)]\displaystyle S[\check{0},\check{b},c(\hat{1})] TbTc1\displaystyle\cong T_{b}\sqcup T_{c-1} g(S[0ˇ,bˇ,c(1^)])\displaystyle g(S[\check{0},\check{b},c(\hat{1})]) =b(c1)\displaystyle=b\oplus(c-1)
S[0ˇ,bˇ,c(2^)]\displaystyle S[\check{0},\check{b},c(\hat{2})] TbT1Tc2\displaystyle\cong T_{b}\sqcup T_{1}\sqcup T_{c-2} g(S[0ˇ,bˇ,c(2^)])\displaystyle g(S[\check{0},\check{b},c(\hat{2})]) =b(c1)\displaystyle=b\oplus(c-1)
S[0ˇ,bˇ,c(l^)]\displaystyle S[\check{0},\check{b},c(\hat{l})] S[0ˇ,bˇ,l1^]Tcl\displaystyle\cong S[\check{0},\check{b},\widehat{l-1}]\sqcup T_{c-l} g(S[0ˇ,bˇ,c(l^)])\displaystyle g(S[\check{0},\check{b},c(\hat{l})]) =b¯l¯1(cl).\displaystyle=\overline{b}\oplus\overline{l}\oplus 1\oplus(c-l).

Altogether, we have

g((S[0ˇ,bˇ,c]))=\displaystyle g(\mathcal{F}(S[\check{0},\check{b},c]))={} {b¯0,b¯1,,b¯(c3),b¯(c2)}\displaystyle\{\overline{b}\oplus 0,\overline{b}\oplus 1,\ldots,\overline{b}\oplus(c-3),\overline{b}\oplus(c-2)\}
{b¯(c+1),b(c1)}\displaystyle\cup\{\overline{b}\oplus(c+1),b\oplus(c-1)\}
=\displaystyle={} {0,1,,c4,c3,b¯(c2),b¯(c+1),b(c1)}.\displaystyle\{0,1,\ldots,c-4,c-3,\overline{b}\oplus(c-2),\overline{b}\oplus(c+1),b\oplus(c-1)\}.

It is clear that none of these Grundy values are equal to b¯(c1)\overline{b}\oplus(c-1). When bb is even, b¯(c2)=c2\overline{b}\oplus(c-2)=c-2, and so b¯(c1)=c1=b¯(c2)1\overline{b}\oplus(c-1)=c-1=\overline{b}\oplus(c-2)\oplus 1 is the minimum excluded value. When bb is odd, b¯(c1)=c2=b¯(c2)1\overline{b}\oplus(c-1)=c-2=\overline{b}\oplus(c-2)\oplus 1 is the minimum excluded value. Therefore, g(S[0ˇ,bˇ,c])=b¯(c2)1g(S[\check{0},\check{b},c])=\overline{b}\oplus(c-2)\oplus 1.

The arguments for S[0ˇ,b^,c]S[\check{0},\hat{b},c], S[1ˇ,bˇ,c]S[\check{1},\check{b},c], and S[1ˇ,b^,c]S[\check{1},\hat{b},c] are analogous. ∎

Proposition 9.3.

For a{0,1}a\in\{0,1\}, b,c2b,c\geq 2, and b,cb,c even,

g(S[a~,b,c])=a(b2)(c2).g(S[\tilde{a},b,c])=a\oplus(b-2)\oplus(c-2).

Furthermore, S[a~,0,c]Ta+cS[\tilde{a},0,c]\cong T_{a+c}, so g(S[a~,0,c])=a+cg(S[\tilde{a},0,c])=a+c.

vbv_{b}wcw_{c}
vbv_{b}u1u_{1}wcw_{c}
Figure 24: The states S[0ˇ,b,c]S[\check{0},b,c] and S[1ˇ,b,c]S[\check{1},b,c].
Proof.

First, we consider the case a=0a=0. The followers of the state S[0ˇ,b,c]S[\check{0},b,c] with an arrow on the second leg, along with their Grundy values, are listed below, with kk representing any integer in {3,,b}\{3,\ldots,b\}:

S[0ˇ,b(1ˇ),c]\displaystyle S[\check{0},b(\check{1}),c] Tb1S[0ˇ,0ˇ,c]\displaystyle\cong T_{b-1}\sqcup S[\check{0},\check{0},c] f(S[0ˇ,b(1ˇ),c])\displaystyle f(S[\check{0},b(\check{1}),c]) =(b1)c\displaystyle=(b-1)\oplus c
S[0ˇ,b(2ˇ),c]\displaystyle S[\check{0},b(\check{2}),c] Tb2S[0ˇ,1ˇ,c]\displaystyle\cong T_{b-2}\sqcup S[\check{0},\check{1},c] f(S[0ˇ,b(2ˇ),c])\displaystyle f(S[\check{0},b(\check{2}),c]) =(b2)(c+1)\displaystyle=(b-2)\oplus(c+1)
S[0ˇ,b(kˇ),c]\displaystyle S[\check{0},b(\check{k}),c] TbkS[0ˇ,k1ˇ,c]\displaystyle\cong T_{b-k}\sqcup S[\check{0},\widecheck{k-1},c] f(S[0ˇ,b(kˇ),c])\displaystyle f(S[\check{0},b(\check{k}),c]) =(bk)(c2)k¯\displaystyle=(b-k)\oplus(c-2)\oplus\overline{k}
S[0ˇ,b(1^),c]\displaystyle S[\check{0},b(\hat{1}),c] Tb1S[0ˇ,0^,c]\displaystyle\cong T_{b-1}\sqcup S[\check{0},\hat{0},c] f(S[0ˇ,b(1^),c])\displaystyle f(S[\check{0},b(\hat{1}),c]) =(b1)0\displaystyle=(b-1)\oplus 0
S[0ˇ,b(2^),c]\displaystyle S[\check{0},b(\hat{2}),c] Tb2S[0ˇ,1^,c]\displaystyle\cong T_{b-2}\sqcup S[\check{0},\hat{1},c] f(S[0ˇ,b(2^),c])\displaystyle f(S[\check{0},b(\hat{2}),c]) =(b2)1\displaystyle=(b-2)\oplus 1
S[0ˇ,b(k^),c]\displaystyle S[\check{0},b(\hat{k}),c] TbkS[0ˇ,k1^,c]\displaystyle\cong T_{b-k}\sqcup S[\check{0},\widehat{k-1},c] f(S[0ˇ,b(k^),c])\displaystyle f(S[\check{0},b(\hat{k}),c]) =(bk)(c2)k¯1.\displaystyle=(b-k)\oplus(c-2)\oplus\overline{k}\oplus 1.

Note that each Grundy value in this list appears twice. For example, (b1)c=(b2)(c+1).(b-1)\oplus c=(b-2)\oplus(c+1). The Grundy values listed above are therefore (c2)0,(c2)1,,(c2)(b3)(c-2)\oplus 0,(c-2)\oplus 1,\ldots,(c-2)\oplus(b-3), along with (b2)1,(b2)(c+1)(b-2)\oplus 1,(b-2)\oplus(c+1). Analogously, the Grundy values of the followers of S[0~,b,c]S[\tilde{0},b,c] with a mark on the third leg are (b2)0,(b2)1,,(b2)(c3)(b-2)\oplus 0,(b-2)\oplus 1,\ldots,(b-2)\oplus(c-3), along with (c2)1,(c2)(b+1)(c-2)\oplus 1,(c-2)\oplus(b+1). Altogether,

g((S[0~,b,c])=\displaystyle g(\mathcal{F}(S[\tilde{0},b,c])={} {(b2)ll=0,1,,c3,c+1}\displaystyle\{(b-2)\oplus l\mid l=0,1,\ldots,c-3,c+1\}
{(c2)ll=0,1,,b3,b+1}.\displaystyle\cup\{(c-2)\oplus l\mid l=0,1,\ldots,b-3,b+1\}.

It is clear that none of these elements are equal to (b2)(c2)(b-2)\oplus(c-2). Suppose, for contradiction, that some nonnegative integer n<(b2)(c2)n<(b-2)\oplus(c-2) is not in g((S[0~,b,c])g(\mathcal{F}(S[\tilde{0},b,c]). Then n(b2)c2n\oplus(b-2)\geq c-2 and n(c2)(b2)n\oplus(c-2)\geq(b-2). Let r=ord(n(b2)(c2))r=\mathrm{ord}(n\oplus(b-2)\oplus(c-2)). The first of the three inequalities above implies that ((b2)(c2))r=1((b-2)\oplus(c-2))_{r}=1, the second that (c2)r=0(c-2)_{r}=0, and the third that (b2)r=0(b-2)_{r}=0. Because ((b2)(c2))r=(b2)r(c2)r((b-2)\oplus(c-2))_{r}=(b-2)_{r}\oplus(c-2)_{r}, we have a contradiction. We conclude that g((S[0~,b,c])=(b2)(c2)g(\mathcal{F}(S[\tilde{0},b,c])=(b-2)\oplus(c-2).

The analysis in the case a=1a=1 is similar. We find that

g((S[1~,b,c])=\displaystyle g(\mathcal{F}(S[\tilde{1},b,c])={} {(b2)ll=0,1,,c3,c}\displaystyle\{(b-2)\oplus l\mid l=0,1,\ldots,c-3,c\}
{(c2)ll=0,1,,b3,b}\displaystyle\cup\{(c-2)\oplus l\mid l=0,1,\ldots,b-3,b\}
{(b2)(c2)}.\displaystyle\cup\{(b-2)\oplus(c-2)\}.

It is clear that none of these elements are equal to (b2)(c2)1=(b1)(c2)=(b2)(c1)(b-2)\oplus(c-2)\oplus 1=(b-1)\oplus(c-2)=(b-2)\oplus(c-1). The argument above for the a=0a=0 case shows that all nonnegative integers less than (b2)(c2)(b-2)\oplus(c-2) are elements of g((S[1~,b,c])g(\mathcal{F}(S[\tilde{1},b,c]). Because (b2)(c2)g((S[1~,b,c])(b-2)\oplus(c-2)\in g(\mathcal{F}(S[\tilde{1},b,c]), we see that g(S[1~,b,c])=1(b2)(c2)g(S[\tilde{1},b,c])=1\oplus(b-2)\oplus(c-2). ∎

10 3-Legged Spiders with Two Marked Legs and One Even Unmarked Leg

This section uses induction to prove the key technical lemma characterizing the Grundy values of 33-legged spiders with marks at the ends of two legs, where the third, unmarked leg has even length.

Lemma 10.1.

For any even aa, bb, and cc with a+b0a+b\geq 0 and c2c\geq 2:

  1. 1.

    g(S[aˇ,b^,c])c2g(S[\check{a},\hat{b},c])\leq c-2 and is even.

  2. 2.

    If g(S[aˇ,b^,c])<c2g(S[\check{a},\hat{b},c])<c-2, then g(S[aˇ,bˇ,c])=g(S[aˇ,b^,c])g(S[\check{a},\check{b},c])=g(S[\check{a},\hat{b},c]).

  3. 3.

    If g(S[aˇ,b^,c])=c2g(S[\check{a},\hat{b},c])=c-2, then g(S[aˇ,bˇ,c]){c1,c}g(S[\check{a},\check{b},c])\in\{c-1,c\}.

  4. 4.

    g(S[aˇ,b+1^ˇ,c])=g(S[aˇ,b^ˇ,c])1g(S[\check{a},\widecheck{\widehat{b+1}},c])=g(S[\check{a},\check{\hat{b}},c])\oplus 1,
    g(S[a+1ˇ,b^ˇ,c])=g(S[aˇ,b^ˇ,c])1g(S[\widecheck{a+1},\check{\hat{b}},c])=g(S[\check{a},\check{\hat{b}},c])\oplus 1, and
    g(S[a+1ˇ,b+1^ˇ,c])=g(S[aˇ,b^ˇ,c])g(S[\widecheck{a+1},\widecheck{\widehat{b+1}},c])=g(S[\check{a},\check{\hat{b}},c]).

uau_{a}wcw_{c}vbv_{b}
uau_{a}wcw_{c}vbv_{b}
Figure 25: The states S[aˇ,b^,c]S[\check{a},\hat{b},c] and S[aˇ,bˇ,c]S[\check{a},\check{b},c].
Proof.

We use induction on aa and bb. The base cases are those with a=0a=0 or b=0b=0. It suffices to check the first of these. We have g(S[0ˇ,b^,c])=c2g(S[\check{0},\hat{b},c])=c-2 and g(S[0ˇ,bˇ,c])=c1g(S[\check{0},\check{b},c])=c-1 by Proposition 9.2. By the same proposition,

g(S[1ˇ,b^,c])=g(S[0ˇ,b+1^,c])\displaystyle g(S[\check{1},\hat{b},c])=g(S[\check{0},\widehat{b+1},c]) =c1=g(S[0ˇ,b^,c])1,\displaystyle=c-1=g(S[\check{0},\hat{b},c])\oplus 1,
g(S[1ˇ,bˇ,c])=g(S[0ˇ,b+1ˇ,c])\displaystyle g(S[\check{1},\check{b},c])=g(S[\check{0},\widecheck{b+1},c]) =c2=g(S[0ˇ,bˇ,c])1,\displaystyle=c-2=g(S[\check{0},\check{b},c])\oplus 1,
g(S[1ˇ,b+1^,c])\displaystyle g(S[\check{1},\widehat{b+1},c]) =c2=g(S[0ˇ,b^,c]),\displaystyle=c-2=g(S[\check{0},\hat{b},c]),
g(S[1ˇ,b+1ˇ,c])\displaystyle g(S[\check{1},\widecheck{b+1},c]) =c1=g(S[0ˇ,bˇ,c]).\displaystyle=c-1=g(S[\check{0},\check{b},c]).

Now, assume a,b2a,b\geq 2, and assume all four statements are true when either aa or bb is replaced by any smaller even number. First, we prove part (1). We have

g(S[aˇ(aˇ),b^,c])=g(S[a1ˇ,b^,c])=g(S[a2ˇ,b^,c])1,\displaystyle g(S[\check{a}(\check{a}),\hat{b},c])=g(S[\widecheck{a-1},\hat{b},c])=g(S[\widecheck{a-2},\hat{b},c])\oplus 1,

which is odd.

If m<am<a is odd,

g(S[aˇ(mˇ),b^,c])\displaystyle g(S[\check{a}(\check{m}),\hat{b},c]) =g(S[m1ˇ,b^,c])1,\displaystyle=g(S[\widecheck{m-1},\hat{b},c])\oplus 1, (1)
g(S[aˇ(m^),b^,c])\displaystyle g(S[\check{a}(\hat{m}),\hat{b},c]) =g(S[m1^,b^,c]).\displaystyle=g(S[\widehat{m-1},\hat{b},c]).

If m<am<a is even,

g(S[aˇ(mˇ),b^,c])\displaystyle g(S[\check{a}(\check{m}),\hat{b},c]) =g(S[m1ˇ,b^,c])=g(S[m2ˇ,b^,c])1,\displaystyle=g(S[\widecheck{m-1},\hat{b},c])=g(S[\widecheck{m-2},\hat{b},c])\oplus 1, (2)
g(S[aˇ(m^),b^,c])\displaystyle g(S[\check{a}(\hat{m}),\hat{b},c]) =g(S[m1^,b^,c])1=g(S[m2^,b^,c]).\displaystyle=g(S[\widehat{m-1},\hat{b},c])\oplus 1=g(S[\widehat{m-2},\hat{b},c]).

By the inductive assumptions, g(S[aˇ(mˇ),b^,c])g(S[\check{a}(\check{m}),\hat{b},c]) must be odd. Together, these two numbers must be either less than c2c-2 with nim sum 11, or both equal to c1c-1, or equal to c1c-1 and cc in that order.

The analogous results hold for g(S[aˇ,b^(b^),c])g(S[\check{a},\hat{b}(\hat{b}),c]), and for g(S[aˇ,b^(m^),c])g(S[\check{a},\hat{b}(\hat{m}),c]) and g(S[aˇ,b^(mˇ),c])g(S[\check{a},\allowbreak\hat{b}(\check{m}),c]) when m<bm<b.

Finally, g(S[aˇ,b^,c(m^ˇ)])=g(S[aˇ,b^,m1^ˇ])(cm).g(S[\check{a},\hat{b},c(\check{\hat{m}})])=g(S[\check{a},\hat{b},\widecheck{\widehat{m-1}}])\oplus(c-m). When m3m\geq 3, both numbers (obtained from choosing either of the accents on mm) are odd. When mm is 11 or 22, both numbers are still odd:

g(S[aˇ,b^,c(1^ˇ)])\displaystyle g(S[\check{a},\hat{b},c(\check{\hat{1}})]) =g(S[aˇ,b^,0^ˇ])(c1)=c1,\displaystyle=g(S[\check{a},\hat{b},\check{\hat{0}}])\oplus(c-1)=c-1,
g(S[aˇ,b^,c(2^ˇ)])\displaystyle g(S[\check{a},\hat{b},c(\check{\hat{2}})]) =g(S[aˇ,b^,1^ˇ])(c2)=c1.\displaystyle=g(S[\check{a},\hat{b},\check{\hat{1}}])\oplus(c-2)=c-1.

We have seen that elements of g((S[aˇ,b^,c]))g(\mathcal{F}(S[\check{a},\hat{b},c])) are either odd, or are less than c2c-2 and belong to a pair of elements with nim sum 11, or are equal to c1c-1 or cc. Therefore, the minimum excluded value of this set is an even number less than or equal to c2c-2.

Next, we prove parts (2) and (3). We have

g(S[aˇ(aˇ),bˇ,c])=g(S[a1ˇ,bˇ,c])=g(S[a2ˇ,bˇ,c])1.\displaystyle g(S[\check{a}(\check{a}),\check{b},c])=g(S[\widecheck{a-1},\check{b},c])=g(S[\widecheck{a-2},\check{b},c])\oplus 1.

If g(S[a2ˇ,b^,c])<c2g(S[\widecheck{a-2},\hat{b},c])<c-2, then the number above equals g(S[a2ˇ,b^,c])1g(S[\widecheck{a-2},\hat{b},c])\oplus 1, which is odd. If g(S[a2ˇ,b^,c])=c2g(S[\widecheck{a-2},\hat{b},c])=c-2, then the number above equals c2c-2 or c+1c+1.

If m<am<a,

g(S[aˇ(mˇ),bˇ,c])\displaystyle g(S[\check{a}(\check{m}),\check{b},c]) =g(S[m1ˇ,bˇ,c])m¯,\displaystyle=g(S[\widecheck{m-1},\check{b},c])\oplus\overline{m},
g(S[aˇ(m^),bˇ,c])\displaystyle g(S[\check{a}(\hat{m}),\check{b},c]) =g(S[m1^,bˇ,c])m¯1.\displaystyle=g(S[\widehat{m-1},\check{b},c])\oplus\overline{m}\oplus 1.

If g(S[aˇ(mˇ),b^,c])<c2g(S[\check{a}(\check{m}),\hat{b},c])<c-2, then we know from equations 1 and 2 that g(S[m1^ˇ,bˇ^,c])<c2g(S[\widecheck{\widehat{m-1}},\hat{\check{b}},c])<c-2. It follows by induction that g(S[m1^ˇ,b^ˇ,c])=g(S[m1^ˇ,bˇ^,c])g(S[\widecheck{\widehat{m-1}},\check{\hat{b}},c])=g(S[\widecheck{\widehat{m-\nolinebreak 1}},\hat{\check{b}},c]). Therefore, in this case,

g(S[aˇ(mˇ),bˇ,c])=g(S[aˇ(m^),bˇ,c])1=g(S[aˇ(mˇ),b^,c])=g(S[aˇ(m^),b^,c])1.g(S[\check{a}(\check{m}),\check{b},c])=g(S[\check{a}(\hat{m}),\check{b},c])\oplus 1=g(S[\check{a}(\check{m}),\hat{b},c])=g(S[\check{a}(\hat{m}),\hat{b},c])\oplus 1.

If g(S[aˇ(mˇ),b^,c])=c1g(S[\check{a}(\check{m}),\hat{b},c])=c-1, then g(S[aˇ(m^),bˇ,c])=c2g(S[\check{a}(\hat{m}),\check{b},c])\allowbreak=c-2, and g(S[aˇ(mˇ),bˇ,c])g(S[\check{a}(\check{m}),\check{b},c]) is equal to c2c-2 or c+1c+1. Note in particular that g(S[aˇ(1^),bˇ,c])=g(S[0^,bˇ,c])=c2g(S[\check{a}(\hat{1}),\check{b},c])=g(S[\hat{0},\check{b},c])=c-2.

The analogous results hold for g(S[aˇ,bˇ(bˇ),c])g(S[\check{a},\check{b}(\check{b}),c]), and for g(S[aˇ,bˇ(m^),c])g(S[\check{a},\check{b}(\hat{m}),c]) and g(S[aˇ,bˇ(mˇ),c])g(S[\check{a},\allowbreak\check{b}(\check{m}),c]) when m<bm<b.

Finally, g(S[aˇ,bˇ,c(m^ˇ)])=g(S[aˇ,bˇ,m1^ˇ])(cm).g(S[\check{a},\check{b},c(\check{\hat{m}})])=g(S[\check{a},\check{b},\widecheck{\widehat{m-1}}])\oplus(c-m). When m3m\geq 3, both numbers are odd. When mm is 11 or 22, both numbers are equal to c2c-2:

g(S[aˇ,bˇ,c(1^ˇ)])\displaystyle g(S[\check{a},\check{b},c(\check{\hat{1}})]) =g(S[aˇ,bˇ,0^ˇ])(c1)=c2,\displaystyle=g(S[\check{a},\check{b},\check{\hat{0}}])\oplus(c-1)=c-2,
g(S[aˇ,bˇ,c(2^ˇ)])\displaystyle g(S[\check{a},\check{b},c(\check{\hat{2}})]) =g(S[aˇ,bˇ,1^ˇ])(c2)=c2.\displaystyle=g(S[\check{a},\check{b},\check{\hat{1}}])\oplus(c-2)=c-2.

In summary, g((S[aˇ,bˇ,c])){0,,c3}g(\mathcal{F}(S[\check{a},\check{b},c]))\cap\{0,\ldots,c-3\} and g((S[aˇ,b^,c])){0,,c3}g(\mathcal{F}(S[\check{a},\hat{b},c]))\cap\{0,\ldots,c-3\} contain exactly the same even numbers, and for each such even number both sets contain the odd number that is one greater. Moreover, g((S[aˇ,bˇ,c]))g(\mathcal{F}(S[\check{a},\check{b},c])) contains c2c-2 but not cc. It follows that the minimum excluded value of g((S[aˇ,bˇ,c]))g(\mathcal{F}(S[\check{a},\check{b},c])) is either the same as that of g((S[aˇ,b^,c]))g(\mathcal{F}(S[\check{a},\hat{b},c])), when g(S[aˇ,b^,c])<c2g(S[\check{a},\hat{b},c])<c-2, or is equal to c1c-1 or cc, when g(S[aˇ,b^,c])=c2g(S[\check{a},\hat{b},c])=c-2.

To conclude, we prove part (4), beginning with g(S[aˇ,b+1^ˇ,c])=g(S[aˇ,b^ˇ,c])1g(S[\check{a},\widecheck{\widehat{b+1}},c])=g(S[\check{a},\check{\hat{b}},\allowbreak c])\oplus 1. For mam\leq a,

g(S[aˇ(mˇ),b+1^ˇ,c])\displaystyle g(S[\check{a}(\check{m}),\widecheck{\widehat{b+1}},c]) =g(S[m1ˇ,b+1^ˇ,c])m¯\displaystyle=g(S[\widecheck{m-1},\widecheck{\widehat{b+1}},c])\oplus\overline{m}
=g(S[m1ˇ,b^ˇ,c])m¯1\displaystyle=g(S[\widecheck{m-1},\check{\hat{b}},c])\oplus\overline{m}\oplus 1
=g(S[aˇ(mˇ),b^ˇ,c])1,\displaystyle=g(S[\check{a}(\check{m}),\check{\hat{b}},c])\oplus 1,

and for m<am<a,

g(S[aˇ(m^),b+1^ˇ,c])\displaystyle g(S[\check{a}(\hat{m}),\widecheck{\widehat{b+1}},c]) =g(S[m1^,b+1^ˇ,c])m¯1\displaystyle=g(S[\widehat{m-1},\widecheck{\widehat{b+1}},c])\oplus\overline{m}\oplus 1
=g(S[m1^,b^ˇ,c])m¯\displaystyle=g(S[\widehat{m-1},\check{\hat{b}},c])\oplus\overline{m}
=g(S[aˇ(m^),b^ˇ,c])1.\displaystyle=g(S[\check{a}(\hat{m}),\check{\hat{b}},c])\oplus 1.

Similarly, for mbm\leq b,

g(S[aˇ,b+1^ˇ(mˇ^),c])\displaystyle g(S[\check{a},\widecheck{\widehat{b+1}}(\hat{\check{m}}),c]) =g(S[aˇ,m1ˇ^,c])m¯\displaystyle=g(S[\check{a},\widehat{\widecheck{m-1}},c])\oplus\overline{m}\hskip-27.0pt =g(S[aˇ,b^ˇ(mˇ^),c])1,\displaystyle=g(S[\check{a},\check{\hat{b}}(\hat{\check{m}}),c])\oplus 1,
g(S[aˇ,b+1^ˇ(m^ˇ),c])\displaystyle g(S[\check{a},\widecheck{\widehat{b+1}}(\check{\hat{m}}),c]) =g(S[aˇ,m1^ˇ,c])m¯1\displaystyle=g(S[\check{a},\widecheck{\widehat{m-1}},c])\oplus\overline{m}\oplus 1\hskip-27.0pt =g(S[aˇ,b^ˇ(m^ˇ),c])1.\displaystyle=g(S[\check{a},\check{\hat{b}}(\check{\hat{m}}),c])\oplus 1.

Furthermore, g(S[aˇ,b+1^ˇ(b+1^ˇ),c])=g(S[aˇ,b^ˇ,c]).g(S[\check{a},\widecheck{\widehat{b+1}}(\widecheck{\widehat{b+1}}),c])=g(S[\check{a},\check{\hat{b}},c]). Finally,

g(S[aˇ,b+1^ˇ,c(mˇ)])\displaystyle g(S[\check{a},\widecheck{\widehat{b+1}},c(\check{m})]) =g(S[aˇ,b+1^ˇ,m1ˇ)])(cm)\displaystyle=g(S[\check{a},\widecheck{\widehat{b+1}},\widecheck{m-1})])\oplus(c-m)
=g(S[aˇ,b^ˇ,m1ˇ)])1(cm)\displaystyle=g(S[\check{a},\check{\hat{b}},\widecheck{m-1})])\oplus 1\oplus(c-m)
=g(S[aˇ,b^ˇ,c(mˇ)])1,\displaystyle=g(S[\check{a},\check{\hat{b}},c(\check{m})])\oplus 1,

and similarly for g(S[aˇ,b+1^ˇ,c(m^)])g(S[\check{a},\widecheck{\widehat{b+1}},c(\hat{m})]).

In summary, g((S[aˇ,b+1^ˇ,c]))=(g((S[aˇ,b^ˇ,c]))1){g(S[aˇ,b^ˇ,c])}.g(\mathcal{F}(S[\check{a},\widecheck{\widehat{b+1}},c]))=\left(g(\mathcal{F}(S[\check{a},\check{\hat{b}},c]))\oplus 1\right)\cup\{g(S[\check{a},\check{\hat{b}},c])\}. Whether g(S[aˇ,b^ˇ,c])g(S[\check{a},\check{\hat{b}},c]) is even or odd, this set equality implies that

g(S[aˇ,b+1^ˇ,c]))=g(S[aˇ,b^ˇ,c]))1.g(S[\check{a},\widecheck{\widehat{b+1}},c]))=g(S[\check{a},\check{\hat{b}},c]))\oplus 1.

The proof that g(S[a+1ˇ,b^ˇ,c])=g(S[aˇ,b^ˇ,c])1g(S[\widecheck{a+1},\check{\hat{b}},c])=g(S[\check{a},\check{\hat{b}},c])\oplus 1 is analogous.

Similar calculations show that

g((S[a+1ˇ,b+1^ˇ,c]))\displaystyle g(\mathcal{F}(S[\widecheck{a+1},\widecheck{\widehat{b+1}},c])) =(g((S[aˇ,b^ˇ,c]))){g(S[a+1ˇ,b^ˇ,c]),g(S[aˇ,b+1^ˇ,c])}\displaystyle=\left(g(\mathcal{F}(S[\check{a},\check{\hat{b}},c]))\right)\cup\{g(S[\widecheck{a+1},\check{\hat{b}},c]),g(S[\check{a},\widecheck{\widehat{b+1}},c])\}
=(g((S[aˇ,b^ˇ,c]))){g(S[aˇ,b^ˇ,c])1}.\displaystyle=\left(g(\mathcal{F}(S[\check{a},\check{\hat{b}},c]))\right)\cup\{g(S[\check{a},\check{\hat{b}},c])\oplus 1\}.

Therefore, g(S[a+1ˇ,b+1^ˇ,c])=g(S[aˇ,b^ˇ,c])g(S[\widecheck{a+1},\widecheck{\widehat{b+1}},c])=g(S[\check{a},\check{\hat{b}},c]). ∎

11 3-Legged Spiders with One Marked Leg and Two Even Unmarked Legs

We are now prepared to compute the parity of the Grundy value of a 33-legged spider with just a single mark, where the two unmarked legs have even lengths.

Lemma 11.1.

Suppose aa, bb, cc, and g(S[a~,b,c])g(S[\tilde{a},b,c]) are even. Then g(S[a+1~,b,c])g(S[\widetilde{a+1},b,c]) is odd.

Proof.

If bb or cc is 0, then S[a~,b,c]S[\tilde{a},b,c] is just a twig and the result is immediate, so we may assume that b,c2b,c\geq 2.

Beginning on the first leg, we have g(S[a+1ˇ(a+1ˇ),b,c])=g(S[aˇ,b,c]).g(S[\widecheck{a+1}(\widecheck{a+1}),b,c])=g(S[\check{a},b,c]). For mam\leq a,

g(S[a+1ˇ(mˇ),b,c])\displaystyle g(S[\widecheck{a+1}(\check{m}),b,c]) =g(S[m1ˇ,b,c])m¯1\displaystyle=g(S[\widecheck{m-1},b,c])\oplus\overline{m}\oplus 1\hskip-28.00006pt =g(S[aˇ(mˇ),b,c])1,\displaystyle=g(S[\check{a}(\check{m}),b,c])\oplus 1,
g(S[a+1ˇ(m^),b,c])\displaystyle g(S[\widecheck{a+1}(\hat{m}),b,c]) =g(S[m1^,b,c])m¯\displaystyle=g(S[\widehat{m-1},b,c])\oplus\overline{m}\hskip-28.00006pt =g(S[aˇ(m^),b,c])1.\displaystyle=g(S[\check{a}(\hat{m}),b,c])\oplus 1.

We proceed to the second leg. For mbm\leq b,

g(S[a+1ˇ,b(m^ˇ),c])\displaystyle g(S[\widecheck{a+1},b(\check{\hat{m}}),c]) =g(S[a+1ˇ,m1^ˇ,c])(bm)\displaystyle=g(S[\widecheck{a+1},\widecheck{\widehat{m-1}},c])\oplus(b-m)
=g(S[aˇ,m1^ˇ,c])(bm)1\displaystyle=g(S[\check{a},\widecheck{\widehat{m-1}},c])\oplus(b-m)\oplus 1
=g(S[aˇ,b(m^ˇ),c])1.\displaystyle=g(S[\check{a},b(\check{\hat{m}}),c])\oplus 1.

These calculations demonstrate that

g((S[a+1ˇ,b,c]))=(g((S[aˇ,b,c]))1)g(S[aˇ,b,c]).g(\mathcal{F}(S[\widecheck{a+1},b,c]))=\left(g(\mathcal{F}(S[\check{a},b,c]))\oplus 1\right)\cup g(S[\check{a},b,c]).

Because the even g(S[aˇ,b,c])g(S[\check{a},b,c]) was the minimum excluded value of g((S[aˇ,b,c]))g(\mathcal{F}(S[\check{a},b,c])), the set equality above shows that g(S[aˇ,b,c])+1g(S[\check{a},b,c])+1 is the minimum excluded value of g((S[a+1ˇ,b,c]))g(\mathcal{F}(S[\widecheck{a+1},b,c])). Therefore, g(S[a+1ˇ,b,c])g(S[\widecheck{a+1},b,c]) is odd. ∎

Proposition 11.2.

For any aa, and for any even bb and cc, g(S[a~,b,c])¯=a¯\overline{g(S[\tilde{a},b,c])}=\overline{a}.

vbv_{b}uau_{a}wcw_{c}
Figure 26: The state S[aˇ,b,c]S[\check{a},b,c].
Proof.

If bb or cc is 0, then S[a~,b,c]S[\tilde{a},b,c] is just a twig and the result is immediate, so we may assume that b,c2b,c\geq 2.

We use induction on aa. We know that g(S[0~,b,c])=(b2)(c2)g(S[\tilde{0},b,c])=(b-2)\oplus(c-2), which is even, so the result holds for a=0a=0.

Whenever the result holds for aa even, it also holds for a+1a+1, by Lemma 11.1.

Suppose aa is even and the result holds for all smaller aa-values. In order to show that g(S[a~,b,c])g(S[\tilde{a},b,c]) is even, we must show that for any even ng((S[a~,b,c]))n\in g(\mathcal{F}(S[\tilde{a},b,c])), we also have n+1g((S[a~,b,c]))n+1\in g(\mathcal{F}(S[\tilde{a},b,c])).

Beginning on the first leg, we have g(S[aˇ(aˇ),b,c])=g(S[a1ˇ,b,c])g(S[\check{a}(\check{a}),b,c])=g(S[\widecheck{a-1},b,c]), which is odd. Furthermore, for m<am<a,

g(S[aˇ(mˇ),b,c])\displaystyle g(S[\check{a}(\check{m}),b,c]) =g(S[m1ˇ,b,c])m¯,\displaystyle=g(S[\widecheck{m-1},b,c])\oplus\overline{m},
g(S[aˇ(m^),b,c])\displaystyle g(S[\check{a}(\hat{m}),b,c]) =g(S[m1^,b,c])m¯1,\displaystyle=g(S[\widehat{m-1},b,c])\oplus\overline{m}\oplus 1,

two numbers with a nim sum of 11.

We proceed to the second leg. When mbm\leq b is even,

g(S[aˇ,b(m^),c])\displaystyle g(S[\check{a},b(\hat{m}),c]) =g(S[aˇ,m1^,c])(bm)\displaystyle=g(S[\check{a},\widehat{m-1},c])\oplus(b-m)
=g(S[aˇ,m2^,c])(bm)1,\displaystyle=g(S[\check{a},\widehat{m-2},c])\oplus(b-m)\oplus 1,

which is odd. Also,

g(S[aˇ,b(mˇ),c])\displaystyle g(S[\check{a},b(\check{m}),c]) =g(S[aˇ,m1ˇ,c])(bm)\displaystyle=g(S[\check{a},\widecheck{m-1},c])\oplus(b-m)
=g(S[aˇ,m2ˇ,c])(bm)1,\displaystyle=g(S[\check{a},\widecheck{m-2},c])\oplus(b-m)\oplus 1,

which either is also odd or is equal to g(S[aˇ,m2^,c])(bm)g(S[\check{a},\allowbreak\widehat{m-2},\allowbreak c])\oplus(b-m).

When mm is odd, g(S[aˇ,b(m^),c])=g(S[aˇ,m1^,c])(bm),g(S[\check{a},b(\hat{m}),c])=g(S[\check{a},\widehat{m-1},c])\oplus(b-m), which is odd. Also, g(S[aˇ,b(mˇ),c])=g(S[aˇ,m1ˇ,c])(bm),g(S[\check{a},b(\check{m}),c])=g(S[\check{a},\widecheck{m-1},c])\oplus(b-m), which either is also odd or is equal to g(S[aˇ,m1^,c])(bm)1g(S[\check{a},\widehat{m-1},c])\oplus(b-m)\oplus 1.

The same reasoning applies to the third leg.

Combining these results, we see that for any even ng((S[a~,b,c]))n\in g(\mathcal{F}(S[\tilde{a},b,c])), we also have n+1=n1g((S[a~,b,c]))n+1=n\oplus 1\in g(\mathcal{F}(S[\tilde{a},b,c])). ∎

12 The Trimmed Game of Arrows on a 3-Legged Spider with Even Legs

We conclude by proving our main result.

Theorem 12.1.

For any even aa, bb, and cc with abc0abc\neq 0, the empty state S[a,b,c]S[a,b,c] of the spider graph S(a,b,c)S(a,b,c) has Grundy value 0.

Proof.

Let mm be any element of {1,2,a}\{1,2\ldots,a\}. Because S[a(m~),b,c]TamS[m1~,b,c]S[a(\tilde{m}),b,c]\cong T_{a-m}\sqcup S[\widetilde{m-1},b,c], we have g(S[a(m~),b,c])=(am)g(S[m1~,b,c]).g(S[a(\tilde{m}),b,c])=(a-m)\oplus g(S[\widetilde{m-1},b,c]). By Proposition 11.2, this implies that g(S[a(m~),b,c])¯=am¯m1¯=1.\overline{g(S[a(\tilde{m}),b,c])}=\overline{a-m}\oplus\overline{m-1}=1. It follows that every follower of S[a,b,c]S[a,b,c] has odd Grundy value. As a result, g(S[a,b,c])=0g(S[a,b,c])=0. ∎

This theorem establishes that the second player has a winning strategy in the Trimmed Game of Arrows on any 33-legged spider graph with legs of even length.

The trimming of a spider graph with legs of odd length is either a spider graph with legs of even length, or a disjoint union of two path graphs (when exactly one leg has length one), or the empty graph (when all three legs have length one). It follows that the second player has a winning strategy in the Game of Arrows on any 33-legged spider graph with legs of odd length.

Acknowledgments

I would like to thank Sharon McCathern and Kathryn Tickle for their feedback on earlier drafts of this paper.

References

  • [1] R. Alvarado, M. Averett, B. Gaines, C. Jackson, M. L. Karker, M. A. Marciniak, F. Su, S. Walker, The game of cycles, The American Mathematical Monthly 128 (10) (2021) 868–887. doi:10.1080/00029890.2021.1979715.
  • [2] F. Su, C. Jackson, Mathematics for Human Flourishing, Yale University Press, 2020.
  • [3] P. M. Grundy, Mathematics and games, Eureka 2 (1939) 6–8.
  • [4] R. Sprague, Über mathematische kampfspiele, Tohoku Mathematical Journal, First Series 41 (1936) 438–444.
  • [5] E. Demaine, R. Hearn, Playing games with algorithms: Algorithmic combinatorial game theory, in: M. Albert, R. Nowakowski (Eds.), Games of No Chance 3, Vol. 56 of Mathematical Sciences Research Institute Publications, Cambridge University Press, 2009, pp. 3–56. doi:10.1017/CBO9780511807251.002.
  • [6] D. Schleicher, M. Stoll, An introduction to Conway’s games and numbers, Moscow Mathematical Journal 6 (2006) 359–388. doi:10.17323/1609-4514-2006-6-2-359-388.