Basic definitions about impartial (pre-)games #
We will define an impartial game, one in which left and right can make exactly the same moves. Our definition differs slightly by saying that the game is always equivalent to its negative, no matter what moves are played. This allows for games such as poker-nim to be classified as impartial.
A typeclass on impartial games.
- out : G.ImpartialAux
Instances
instance
SetTheory.PGame.Impartial.moveLeft_impartial
{G : PGame}
[h : G.Impartial]
(i : G.LeftMoves)
:
(G.moveLeft i).Impartial
instance
SetTheory.PGame.Impartial.moveRight_impartial
{G : PGame}
[h : G.Impartial]
(j : G.RightMoves)
:
(G.moveRight j).Impartial
@[irreducible]
theorem
SetTheory.PGame.Impartial.impartial_congr
{G H : PGame}
(e : G.Relabelling H)
[G.Impartial]
:
H.Impartial
@[irreducible]
instance
SetTheory.PGame.Impartial.impartial_add
(G H : PGame)
[G.Impartial]
[H.Impartial]
:
(G + H).Impartial
@[irreducible]
In an impartial game, either the first player always wins, or the second player always wins.
theorem
SetTheory.PGame.Impartial.forall_rightMoves_fuzzy_iff_equiv_zero
(G : PGame)
[G.Impartial]
:
theorem
SetTheory.PGame.Impartial.exists_right_move_equiv_iff_fuzzy_zero
(G : PGame)
[G.Impartial]
: