Documentation

CombinatorialGames.Outcome

inductive Outcome :
  • L : Outcome

    Left always wins, regardless of who starts.

  • N : Outcome

    The Next (first) player wins.

  • P : Outcome

    The Previous (second) player wins.

  • R : Outcome

    Right always wins, regardless of who starts.

Instances For
    @[instance_reducible]
    Equations
    @[instance_reducible]

    Game outcomes are partially ordered in favour of Left, as illustrated in the following Hasse diagram:

      L
     / \
    N   P
     \ /
      R
    
    Equations
    @[instance_reducible]
    Equations
    @[instance_reducible]
    Equations
    @[instance_reducible]
    Equations
    @[simp]
    theorem Outcome.ge_R (o : Outcome) :
    o ≥ R
    @[simp]
    theorem Outcome.le_R_iff (o : Outcome) :
    o ≤ R ↔ o = R
    @[simp]
    theorem Outcome.L_ge (o : Outcome) :
    L ≥ o
    theorem Outcome.ge_P_ge_N_eq_L {o : Outcome} (hp : o ≥ P) (hn : o ≥ N) :
    o = L
    @[simp]
    theorem Outcome.le_N_eq_N_or_R {o : Outcome} (hp : o ≤ N) :
    o = N ∨ o = R