Transfinite Version of Welter's Game
Tomoaki Abuku

TL;DR
This paper extends Welter's Game to transfinite ordinal positions, providing a straightforward solution by leveraging known results from transfinite Nim and the original game.
Contribution
It introduces a transfinite version of Welter's Game and offers a simple solution method based on existing transfinite combinatorial game theories.
Findings
Established a transfinite version of Welter's Game.
Provided a straightforward solution approach.
Connected the game to transfinite Nim results.
Abstract
We study the transfinite version of Welter's Game, a combinatorial game played on a belt divided into squares numbered with general ordinal. In particular, we give a straight-forward solution for the transfinite version, based on those of the transfinite version of Nim and the original version of Welter's Game.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsArtificial Intelligence in Games
Transfinite Version of Welter’s Game
Tomoaki Abuku111affiliation:University of Tsukuba 222mail:[email protected]
Abstract
We study the transfinite version of Welter’s Game, a combinatorial game played on a belt divided into squares numbered with general ordinal. In particular, we give a straight-forward solution for the transfinite version, based on those of the transfinite version of Nim and the original version of Welter’s Game.
Key words. Combinatorial game, Impartial game, Transfinite game, Nim, Welter’s game, Ordinal number
AMS 2000 subject classifications. 05A99, 05E99
1 Introduction
1.1 Impartial game
This paper discusses only “impartial” combinatorial games in normal form, that is games with the following characters:
- •
Two players alternately make a move.
- •
No chance elements (the possible moves in any given position is determined in advance).
- •
Both players have complete knowledge of the game states.
- •
The game terminates in finitely many moves.
- •
A player who makes the last move wins.
- •
Both players have the same set of the possible moves in any position.
The original version of Nim and Welter’s Game are “short” games (namely there are only a finite number of positions that can be reached from the initial position, and a position may never be repeated in a play).
Definition 1.1** (outcome classes).**
A game position is called an -position (resp. a -position) if the first player (resp. the second player) has a winning strategy.
Clearly, all impartial game positions are classified into -positions or -positions.
Theorem 1.2** (Bouton[3]).**
If is an -position, there exists a move from to a -position. If is a -position, there exists no move from to a -position.
Definition 1.3**.**
Let and be game positions. The notation means that can be reached from by a single move.
1.2 Nim and Grundy value
Let us denote by the set of all integers and by the set of all nonnegative integers.
Nim is a well-known impartial game with the following rules:
- •
It is played with several heaps of tokens.
- •
The legal move is to remove any number of tokens (but necessarily at least one token) from any single heap.
- •
The end position is the state of no heaps of tokens.
Definition 1.4** (nim-sum).**
The value obtained by adding numbers in binary form without carry is called nim-sum. The nim-sum of nonnegative integers is written as
.
The set is isomorphic to the direct sum of countably many ’s. Also, the nim-sum operation can be extended naturally on by using the 2’s complement.
Definition 1.5** (minimum excluded number).**
Let be a proper subset of . Then \mathrm{mex}\$$T is defined to be the least nonnegative integer not contained in , namely
.
Definition 1.6** (Grundy value).**
We denote the end position by . Let be a game position. The value is defined as follows:
[TABLE]
Moreover, is called the Grundy value of .
Theorem 1.7** (Sprague[8], Grundy[5]).**
We have the following for general short impartial games.
is an -position
is a -position.
Therefore, we only need to decide the Grundy value of positions for winning strategy in impartial games.
Grundy value is also useful for analysis of disjunctive sum.
If and are any two game positions, the disjunctive sum of and (written as ) is defined as follows: each player must make a move in either or (but not both) on his turn.
Theorem 1.8** (Sprague-Grundy Theorem [8]).**
Let and be two game positions. Then
.
Theorem 1.9** (Grundy[5]).**
The Grundy value of Nim position is the following:
.
1.3 Welter’s Game and the Welter function
Welter’s Game is an impartial game investigated by Welter in 1954. Since it was also investigated by Mikio Sato, it is often called Sato’s Game in Japan. The rules of Welter’s Games are as follows:
[TABLE]
- •
It is played with several coins placed on a belt divided into squares numbered with the nonnegative integers from the left as shown in Fig. 1.3.
- •
The legal move is to move any one coin from its present square to any unoccupied square with a smaller number.
- •
The game terminates when a player is unable to move a coin, namely, the coins are jammed in squares with the smallest possible numbers as shown in Fig. 1.3.
[TABLE]
This game is equivalent to Nim with an additional rule that you are not allowed to make two heaps with the same number of tokens.
In what follows, when an expression includes both nim-sum and the four basic operations of arithmetic without parentheses, we will make it a rule to calculate nim-sums prior to the others, and we express the nim-summation by the symbol .
Lemma 1.10** (Conway[4]).**
For integer ,
.
Definition 1.11** (mating function).**
Mating function is defined by
[TABLE]
Particularly, if and have different parities, then .
Then we have the following:
, and .
Definition 1.12** (animating function).**
For any nonnegative integers , a function of form
is called an animating function.
If and are animating functions, and are clearly animating functions. Also, we have . Thus, the set of all animating functions forms a group with respect to composition.
Definition 1.13** (Welter function).**
Let be a Welter’s Game position. Then we define the value of Welter function at as follows:
.
In the case of one coin, clearly . In the case of two coins,
.
Let be a position in Welter’s Game and , the pair with the largest mating function value (that is, and are congruent to each other modulo the highest possible power of 2 among all pairs). Then mating function values and cancel each other for all other ’s.
Theorem 1.14** (Conway[4]).**
When we mate pairs with the largest mating function value in order,we have the following equality.For Welter function of arguments
[TABLE]
where is arranged in order of the values of mating function.
By using this equality and formulas and , we can easily compute the value of Welter function.
Lemma 1.15** (Conway[4]).**
are legal moves in Welter’s Game, we have the following:
.
Theorem 1.16** (Conway[4]).**
Let and let be an integer. Welter function is an animating function with respect to each of its arguments, and an animating function is a bijection on , so each of the equations
()
for the integers has a unique solution . Moreover, if , then there is an index such that .
Theorem 1.17** (Welter’s Theorem[9]).**
The value of Welter function at each position in Welter’s Game is equal to its Grundy value in Welter’s Game. Namely, we have the following:
.
2 Transfinite Game
2.1 Transfinite Nim
First, we extend Nim into its transfinite version (Transfinite Nim) by allowing the size of the heaps of tokens to be a general ordinal number. The legal move is to replace an arbitrary ordinal number by a smaller number . Therefore, Transfinite Nim may not necessarily be short.
Let us denote by the class of all ordinal numbers. Later we see that the nim-sum operation can be extended naturally on .
The following is known about general ordinal numbers.
Theorem 2.1** (Cantor Normal Form theorem[6]).**
Every can be expressed as
,
where is a nonnegative integer, , and .
Let be ordinal numbers. Then, each , is expressed by using finite by many common powers as:
,
where .
Next, we will define the minimal excluded number of a set of ordinals and the Grundy value of a position in general Transfinite Game.
Definition 2.2** (minimal excluded number).**
Let be a proper subclass of . Then \mathrm{mex}\$$T is defined to be the least ordinal number not contained in , namely
.
Definition 2.3** (Grundy value).**
Let be an impartial game (it may not necessarily be short) and be the end position. The value is defined as
[TABLE]
Theorem 2.4**.**
We have the following for Transfinite impartial games:
is an -position
is a -position.
Definition 2.5**.**
For ordinal numbers , we define their nim-sum as follows:
.
Theorem 2.6**.**
For Transfinite Nim position ,we have the following:
.
Proof.
The proof is by induction. Let . We have to show that, for each (), there exists a position reached by a single move from and that its Grundy value is .
Let , by induction assumption we have
.
If , no ordinal () exists. We can assume .
We can write and as
,
where . By definition,
, for .
Since , there exsists such that
, for all .
As in the strategy of original Nim, since , there is an index such that
.
We define
for all
and
[TABLE]
where .
If we put , . Then, and we have
Therefore, for each (), there is a position reached by a single move from . ∎
Example 2.7**.**
In the case of position :
Let us calculate the value of .
We get
[TABLE]
So, we have
[TABLE]
Thus, by the definition of nim-sum in general ordinal number
.
Therefore, this position is an -position, and the legal good move is .
2.2 Transfinite Welter’s Game
In Transfinite version, the size of the belt of Welter’s Game is extended into general ordinal numbers, but played with finite number of coins. The legal move is to move one coin toward the left (jumping is allowed), and you cannot place two or more coins on the same square as in the original Welter’s Game (see Fig. 2.2). We will define Welter function of a position of Transfinite Welter’s Game.
[TABLE]
Definition 2.8**.**
Let . Each can be expressed as , where and . Welter function in general ordinal numbers is defined as follows:
,
where is Welter function, and .
We obtain the following main theorem.
Theorem 2.9**.**
Let . Grundy value of general position in Transfinite Welter’s Game is equal to its Welter function. Namely, we have the following:
.
Proof.
Let . We have to show that, for each (), there exists a position with Grundy value which is reached by a single move from .
Let . Then by the assumption of induction we have
.
If , there exist no . We can assume and
and ,
where , , , . Since ,we have
or and .
In the latter case, since , from theory of Nim[3][8][5], there exists some and nonnegative integer such that
.
Next since , from theory of Welter function[4], there is an index and such that and , where is the set obtained from by replacing with . Thus, the move from to changes its Grundy value from to .
In the former case, as in Transfinite Nim, there is an index and such that has Grundy value and we can adjust the finite part of so that the resulting Welter function to be .
Therefore, for each (), there is a position reached by a single move from and its Grundy value is . ∎
Corollary 2.10**.**
A position in Transfinite Welter’s Game is a -position if and only if it satisfies the following conditions:
[TABLE]
By this corollary, we can easily calculate a winning move in Transfinite Welter’s Game by its Welter function.
Example 2.11**.**
In the case of position :
Let us calculate the value of . We get
[TABLE]
So, we have
[TABLE]
Therefore, by the definition Welter function for general ordinal number
.
Since, this shows that we are in an -position, we will calculate a winning move.
First, we choose a move that satisfies the first condition of Corollary2.10. Clearly we should not make a move that will change the coefficient of . So we will choose a move that will change the coefficient of to be [math]. The same strategy in Transfinite Nim, shows that
.
Thus, the only legal move is . So, our good move is in . Then,in such moves,we will search for a move that satisfy the second condition. It is obtained from the knowledge of Welter function.
The finite part should satisfy
.
So we have
.
Therefore, the only good move is .
In fact,
[TABLE]
Thus, this position is a -position.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Albert, H. M., Nowakowski, J. R., Wolfe, D., Lessons in play, an introduction to combinatorial Game theory , A. K. Peters 2007.
- 2[2] Berlekamp, E. R., Conway, J. H., Guy, R. K., Winning Ways for Your Mathematical Plays ,Vol 1-4, A. K. Peters, 2001-2004.
- 3[3] Bouton, C. L., Nim, a game with a complete mathmatical theory, Ann. of math. 3 (1902), 35-39.
- 4[4] Conway, J. H., On Numbers And Games (second edition),A. K. Peters, 2001.
- 5[5] Grundy, P. M., Mathematics and games, Eureka , 2 (1939), 6-8.
- 6[6] Jech, T., Set theory (third edition), Springer, 2002.
- 7[7] Siegel, A. N., Combinatorial Game theory , American Mathematical Society, 2013.
- 8[8] Sprague, R. P., Uber mathematische Kampfspiele, Tohoku Math. J., 41 (1935-6), 291-301.
