Documentation

CombinatorialGames.Surreal.Leading

Leading term and coefficient #

We define Surreal.leadingCoeff and Surreal.leadingTerm for the leading coefficient/term of a surreal's Hahn series.

We don't yet prove this characterization; rather, these functions are a key ingredient in defining the map from surreals into Hahn series.

Leading coefficient #

noncomputable def Surreal.leadingCoeff (x : Surreal) :

The leading coefficient of a surreal's Hahn series.

Equations
Instances For
    @[simp]
    @[simp]
    theorem Surreal.leadingCoeff_ratCast (q : ℚ) :
    (↑q).leadingCoeff = ↑q
    @[simp]
    theorem Surreal.leadingCoeff_intCast (n : ℤ) :
    (↑n).leadingCoeff = ↑n
    @[simp]
    theorem Surreal.leadingCoeff_natCast (n : ℕ) :
    (↑n).leadingCoeff = ↑n
    theorem Surreal.wlog_eq {x y : Surreal} {r : ℝ} (hr : r ≠ 0) (hL : ∀ s < r, ↑s * ω^ y ≤ x) (hR : ∀ s > r, x ≤ ↑s * ω^ y) :
    x.wlog = y
    theorem Surreal.leadingCoeff_eq {x y : Surreal} {r : ℝ} (hr : r ≠ 0) (hL : ∀ s < r, ↑s * ω^ y ≤ x) (hR : ∀ s > r, x ≤ ↑s * ω^ y) :

    Leading term #

    noncomputable def Surreal.leadingTerm (x : Surreal) :

    The leading term of a surreal's Hahn series.

    Equations
    Instances For
      @[simp]
      theorem Surreal.leadingTerm_realCast (r : ℝ) :
      (↑r).leadingTerm = ↑r
      @[simp]
      theorem Surreal.leadingTerm_ratCast (q : ℚ) :
      (↑q).leadingTerm = ↑q
      @[simp]
      theorem Surreal.leadingTerm_intCast (n : ℤ) :
      (↑n).leadingTerm = ↑n
      @[simp]
      theorem Surreal.leadingTerm_natCast (n : ℕ) :
      (↑n).leadingTerm = ↑n
      theorem Surreal.leadingTerm_eq {x y : Surreal} {r : ℝ} (hr : r ≠ 0) (hL : ∀ s < r, ↑s * ω^ y ≤ x) (hR : ∀ s > r, x ≤ ↑s * ω^ y) :
      x.leadingTerm = ↑r * ω^ y