Documentation

CombinatorialGames.Game.Canonical

Canonical games #

This file defines functions for hereditarily removing all dominated and reversible positions from a game, and uses them to define the canonical (or simplest) form of a short game.

Dominated moves #

Let x be a game. We say that y ∈ xᴸ is dominated by z ∈ xᴸ if y < z. Intuitively, Left will always prefer moving to z than to y, so we can completely ignore y. Dominated moves for Right are defined analogously.

We define undominate x by hereditarily removing all dominated positions, and prove undominate x ≈ x for any short game. See undominate_equiv.

Note that the short hypothesis is indispensible, since e.g. undominate ω = 0.

Reversible moves #

Let x be a game. We say that y ∈ xᴸ is reversible through z ∈ yᴿ if z ≤ x. Intuitively, after Left moves to y, Right can revert all their progress by moving to z, so they might as well do this. Reversible moves for Right are defined analogously.

Undominating games #

@[irreducible]

A hereditarily undominated game is one where no move is dominated, and such that every subposition satisfies this same property.

Equations
Instances For
    theorem IGame.isUndominated_def {x : IGame} :
    x.IsUndominated ↔ ∀ (p : Player), ∀ y ∈ moves p x, y.IsUndominated ∧ ∀ z ∈ moves p x, ¬p.LT y z
    theorem IGame.IsUndominated.not_lt_of_mem_moves {x y z : IGame} {p : Player} (h : x.IsUndominated) (hy : y ∈ moves p x) (hz : z ∈ moves p x) :
    ¬p.LT y z
    @[irreducible]

    Hereditarily undominating a game. This returns garbage values on non-short games.

    Equations
    Instances For
      theorem IGame.undominate_def' (x : IGame) :
      x.undominate = !{fun (p : Player) => {y : IGame | y ∈ undominate '' moves p x ∧ ∀ z ∈ moves p x, ¬p.LT y z.undominate}}
      @[simp]
      theorem IGame.forall_mem_moves_undominate {x : IGame} {p : Player} {P : IGame → Prop} :
      (∀ y ∈ moves p x.undominate, P y) ↔ ∀ y ∈ moves p x, (∀ z ∈ moves p x, ¬p.LT y.undominate z.undominate) → P y.undominate
      @[simp]
      theorem IGame.exists_mem_moves_undominate {x : IGame} {p : Player} {P : IGame → Prop} :
      (∃ y ∈ moves p x.undominate, P y) ↔ ∃ y ∈ moves p x, (∀ z ∈ moves p x, ¬p.LT y.undominate z.undominate) ∧ P y.undominate
      theorem IGame.undominate_mem_moves_undominate' {x y : IGame} {p : Player} (hy : y ∈ moves p x) (H : ∀ z ∈ moves p x, ¬p.LT y.undominate z.undominate) :

      See undominate_mem_moves_undominate for a specialization to short games.

      theorem IGame.not_lt_of_mem_moves_undominate' {x y z : IGame} {p : Player} (hy : y ∈ moves p x.undominate) (hz : z ∈ moves p x) :

      See not_lt_of_mem_moves_undominate for a specialization to short games.

      See not_lt_of_mem_moves_left_undominate for a specialization to short games.

      See not_lt_of_mem_moves_right_undominate for a specialization to short games.

      theorem IGame.undominate_mem_moves_undominate {x y : IGame} {p : Player} [x.Short] (hy : y ∈ moves p x) (H : ∀ z ∈ moves p x, ¬p.LT y z) :
      theorem IGame.not_lt_of_mem_moves_undominate {x y z : IGame} {p : Player} [x.Short] (hy : y ∈ moves p x.undominate) (hz : z ∈ moves p x) :
      ¬p.LT y z

      Unreversing games #

      @[irreducible]

      A hereditarily unreversed game is one where no move is reversible, and such that every subposition satisfies this same property.

      Equations
      Instances For
        theorem IGame.isUnreversed_def {x : IGame} :
        x.IsUnreversed ↔ ∀ (p : Player), ∀ y ∈ moves p x, y.IsUnreversed ∧ ∀ z ∈ moves (-p) y, ¬p.LE z x
        theorem IGame.IsUnreversed.lf_of_mem_moves_of_mem_moves {x y z : IGame} {p : Player} (h : x.IsUnreversed) (hy : y ∈ moves p x) (hz : z ∈ moves (-p) y) :
        ¬p.LE z x
        def IGame.reverseSet (x : IGame) (p : Player) (z : IGame) :

        The set of -p-moves of z which reverse z with respect to a p-move from x. That is, if player p moves from x to z, then reverseSet x p z is the set of moves -p could make as a response that reverse the move from x to z. Note that z is not necessarily a p-option of x.

        Equations
        Instances For
          theorem IGame.mem_reverseSet {x : IGame} {p : Player} {z w : IGame} :
          w ∈ x.reverseSet p z ↔ w ∈ moves (-p) z ∧ p.LE w x
          theorem IGame.neg_reverseSet (x : IGame) (p : Player) (z : IGame) :
          -x.reverseSet p z = (-x).reverseSet (-p) (-z)
          theorem IGame.reverseSet_congr_left {x y : IGame} (hxy : x ≈ y) (p : Player) (z : IGame) :
          x.reverseSet p z = y.reverseSet p z
          theorem IGame.lf_of_reverseSet_eq_empty_of_mem_moves {x : IGame} {p : Player} {z : IGame} (hx : x.reverseSet p z = ∅) {g : IGame} (hg : g ∈ moves (-p) z) :
          ¬p.LE g x
          theorem IGame.IsUnreversed.reverseSet_eq_empty {x : IGame} (hx : x.IsUnreversed) {p : Player} {z : IGame} (hz : z ∈ moves p x) :
          theorem IGame.isUnreversed_of_reverseSet {x : IGame} (hx : ∀ (p : Player), ∀ z ∈ moves p x, x.reverseSet p z = ∅) (ih : ∀ (p : Player), ∀ z ∈ moves p x, z.IsUnreversed) :
          @[irreducible]

          Recursively repeatedly bypass all reversible options from a game x, so that unreverse x hereditarily has no reversible options.

          Equations
          Instances For