Documentation

CombinatorialGames.Surreal.Omnific.Basic

Omnific integers #

We define the omnific integers, as the subring of surreals such that x = {x - 1 | x + 1}.

Todo #

Prove the characterization of omnific integers, as surreals whose Hahn series x have the following form:

Rounding operation #

noncomputable def Surreal.round (x r : Surreal) :

We define x.round r = {x - r | x + r} whenever 0 < r. For r ≤ 0, we set the junk value x.round r = x.

If r = 1, this operation truncates the fractional part of x, rounding up or down to whichever omnific integer is simplest.

Equations
Instances For
    theorem Surreal.round_of_pos {x r : Surreal} (hr : 0 < r) :
    x.round r = !{{x - r} | {x + r}}
    @[simp]
    theorem Surreal.round_of_nonpos {x r : Surreal} (hr : r ≤ 0) :
    x.round r = x
    theorem Surreal.round_mk_of_pos {x r : IGame} (hr : 0 < r) [x.Numeric] [r.Numeric] :
    (mk x).round (mk r) = mk !{{x - r} | {x + r}}
    theorem Surreal.round_mem_Ioo {x r : Surreal} (hr : 0 < r) :
    x.round r ∈ Set.Ioo (x - r) (x + r)
    theorem Surreal.sub_lt_round {x r : Surreal} (hr : 0 < r) :
    x - r < x.round r
    theorem Surreal.round_lt_add {x r : Surreal} (hr : 0 < r) :
    x.round r < x + r
    theorem Surreal.birthday_round_le {x y r : Surreal} (h : y ∈ Set.Ioo (x - r) (x + r)) :
    theorem Surreal.birthday_round_lt {x y r : Surreal} (h : y ∈ Set.Ioo (x - r) (x + r)) (hy : x.round r ≠ y) :
    theorem Surreal.round_eq_of_forall_birthday_le {x y r : Surreal} (h : y ∈ Set.Ioo (x - r) (x + r)) (hz : ∀ z ∈ Set.Ioo (x - r) (x + r), y.birthday ≤ z.birthday) :
    x.round r = y
    theorem Surreal.round_of_zero_mem {x r : Surreal} (h : 0 ∈ Set.Ioo (x - r) (x + r)) :
    x.round r = 0
    @[simp]
    theorem Surreal.round_zero (r : Surreal) :
    round 0 r = 0
    @[simp]
    theorem Surreal.round_neg {x r : Surreal} :
    (-x).round r = -x.round r
    theorem Surreal.round_add_of_eq {x y r : Surreal} (hx : x.round r = x) (hy : y.round r = y) :
    (x + y).round r = x + y
    theorem Surreal.round_sub_of_eq {x y r : Surreal} (hx : x.round r = x) (hy : y.round r = y) :
    (x - y).round r = x - y
    theorem Surreal.round_mul_of_eq {x y r : Surreal} (h : 0 ≤ r) (hx : x.round r = x) (hy : y.round r = y) :
    (x * y).round (r * r) = x * y

    Omnific integers #

    An omnific integer is one such that x = {x - 1 | x + 1}. These are an analog of the integers to the surreals.

    Equations
    Instances For
      theorem Surreal.IsOmnific.eq {x : Surreal} (h : x.IsOmnific) :
      x.round 1 = x
      theorem Surreal.IsOmnific.add {x y : Surreal} (hx : x.IsOmnific) (hy : y.IsOmnific) :
      (x + y).IsOmnific
      theorem Surreal.IsOmnific.sub {x y : Surreal} (hx : x.IsOmnific) (hy : y.IsOmnific) :
      (x - y).IsOmnific
      theorem Surreal.IsOmnific.mul {x y : Surreal} (hx : x.IsOmnific) (hy : y.IsOmnific) :
      (x * y).IsOmnific
      def Surreal.Omnific :
      Type (u_1 + 1)

      The ring of IsOmnific surreal numbers.

      Equations
      Instances For
        @[instance_reducible]
        Equations
        • One or more equations did not get rendered due to their size.
        @[instance_reducible]
        Equations
        • One or more equations did not get rendered due to their size.
        noncomputable def Surreal.Omnific.coe (x : Omnific) :

        The coercion from omnific integers into surreals.

        Equations
        • ↑x = ↑x
        Instances For
          @[instance_reducible]
          noncomputable instance Surreal.instCoeOmnific :
          Equations
          noncomputable def Surreal.Omnific.mk (x : Surreal) (hx : x.IsOmnific) :

          Construct an omnific integer from a surreal.

          Equations
          Instances For
            @[simp]
            theorem Surreal.Omnific.coe_mk (x : Surreal) (hx : x.IsOmnific) :
            ↑(mk x hx) = x

            The coercion from Omnific integers into Surreal as an OrderRingHom.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[simp]
              theorem Surreal.Omnific.coe_zero :
              ↑0 = 0
              @[simp]
              theorem Surreal.Omnific.coe_one :
              ↑1 = 1
              @[simp]
              theorem Surreal.Omnific.coe_natCast (n : ℕ) :
              ↑↑n = ↑n
              @[simp]
              theorem Surreal.Omnific.coe_intCast (n : ℤ) :
              ↑↑n = ↑n
              @[simp]
              theorem Surreal.Omnific.coe_neg (x : Omnific) :
              ↑(-x) = -↑x
              @[simp]
              theorem Surreal.Omnific.coe_add (x y : Omnific) :
              ↑(x + y) = ↑x + ↑y
              @[simp]
              theorem Surreal.Omnific.coe_sub (x y : Omnific) :
              ↑(x - y) = ↑x - ↑y
              @[simp]
              theorem Surreal.Omnific.coe_mul (x y : Omnific) :
              ↑(x * y) = ↑x * ↑y
              theorem Surreal.Omnific.coe_add_one (x : Omnific) :
              ↑(x + 1) = ↑x + 1
              @[simp]
              theorem Surreal.Omnific.coe_le_coe {x y : Omnific} :
              ↑x ≤ ↑y ↔ x ≤ y
              @[simp]
              theorem Surreal.Omnific.coe_lt_coe {x y : Omnific} :
              ↑x < ↑y ↔ x < y
              @[simp]
              theorem Surreal.Omnific.coe_inj {x y : Omnific} :
              ↑x = ↑y ↔ x = y
              theorem Surreal.Omnific.ext {x y : Omnific} (h : ↑x = ↑y) :
              x = y
              theorem Surreal.Omnific.ext_iff {x y : Omnific} :
              x = y ↔ ↑x = ↑y

              Cast an ordinal to an omnific integer.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[simp]
                @[simp]
                @[instance_reducible]
                Equations
                • One or more equations did not get rendered due to their size.
                @[instance_reducible]
                Equations
                • One or more equations did not get rendered due to their size.