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.
@[irreducible]
The definition for an impartial game, defined using Conway induction.
Equations
Instances For
A typeclass on impartial games.
- out : G.ImpartialAux
Instances
Equations
@[simp]
instance
SetTheory.PGame.Impartial.moveLeft_impartial
{G : SetTheory.PGame}
[h : G.Impartial]
(i : G.LeftMoves)
:
(G.moveLeft i).Impartial
Equations
- ⋯ = ⋯
instance
SetTheory.PGame.Impartial.moveRight_impartial
{G : SetTheory.PGame}
[h : G.Impartial]
(j : G.RightMoves)
:
(G.moveRight j).Impartial
Equations
- ⋯ = ⋯
@[irreducible]
theorem
SetTheory.PGame.Impartial.impartial_congr
{G : SetTheory.PGame}
{H : SetTheory.PGame}
(e : G.Relabelling H)
[G.Impartial]
:
H.Impartial
@[irreducible]
instance
SetTheory.PGame.Impartial.impartial_add
(G : SetTheory.PGame)
(H : SetTheory.PGame)
[G.Impartial]
[H.Impartial]
:
(G + H).Impartial
Equations
- ⋯ = ⋯
@[irreducible]
instance
SetTheory.PGame.Impartial.impartial_neg
(G : SetTheory.PGame)
[G.Impartial]
:
(-G).Impartial
Equations
- ⋯ = ⋯
In an impartial game, either the first player always wins, or the second player always wins.
@[simp]
@[simp]
@[simp]
theorem
SetTheory.PGame.Impartial.equiv_iff_add_equiv_zero
(G : SetTheory.PGame)
[G.Impartial]
(H : SetTheory.PGame)
:
This lemma doesn't require H
to be impartial.
theorem
SetTheory.PGame.Impartial.equiv_iff_add_equiv_zero'
(G : SetTheory.PGame)
[G.Impartial]
(H : SetTheory.PGame)
:
This lemma doesn't require H
to be impartial.
theorem
SetTheory.PGame.Impartial.lf_zero_iff
{G : SetTheory.PGame}
[G.Impartial]
:
G.LF 0 ↔ SetTheory.PGame.LF 0 G
theorem
SetTheory.PGame.Impartial.fuzzy_zero_iff_lf
(G : SetTheory.PGame)
[G.Impartial]
:
G.Fuzzy 0 ↔ G.LF 0
theorem
SetTheory.PGame.Impartial.fuzzy_zero_iff_gf
(G : SetTheory.PGame)
[G.Impartial]
:
G.Fuzzy 0 ↔ SetTheory.PGame.LF 0 G
theorem
SetTheory.PGame.Impartial.forall_leftMoves_fuzzy_iff_equiv_zero
(G : SetTheory.PGame)
[G.Impartial]
:
theorem
SetTheory.PGame.Impartial.forall_rightMoves_fuzzy_iff_equiv_zero
(G : SetTheory.PGame)
[G.Impartial]
:
theorem
SetTheory.PGame.Impartial.exists_left_move_equiv_iff_fuzzy_zero
(G : SetTheory.PGame)
[G.Impartial]
:
theorem
SetTheory.PGame.Impartial.exists_right_move_equiv_iff_fuzzy_zero
(G : SetTheory.PGame)
[G.Impartial]
: