The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.HahnSeries.Multiplication

129 declarations. Mathlib docs · Source

Multiplicative properties of Hahn series

If Γ is ordered and R has zero, then R⟦Γ⟧ consists of formal series over Γ with coefficients in R, whose supports are partially well-ordered. This module introduces multiplication and scalar multiplication on Hahn series. If Γ is an ordered cancellative commutative additive monoid and R is a semiring, then we get a semiring structure on R⟦Γ⟧. If Γ has an ordered vector-addition on Γ' and R has a scalar multiplication on V, we define HahnModule Γ' R V as a type alias for V⟦Γ'⟧ that admits a scalar multiplication from R⟦Γ⟧. The scalar action of R on R⟦Γ⟧ is compatible with the action of R⟦Γ⟧ on HahnModule Γ' R V.

Main Definitions

  • HahnModule is a type alias for HahnSeries, which we use for defining scalar multiplication of R⟦Γ⟧ on HahnModule Γ' R V for an R-module V, where Γ' admits an ordered cancellative vector addition operation from Γ. The type alias allows us to avoid a potential instance diamond.
  • HahnModule.of is the isomorphism from V⟦Γ⟧ to HahnModule Γ R V.
  • HahnSeries.C is the constant term ring homomorphism R →+* R⟦Γ⟧.
  • HahnSeries.embDomainRingHom is the ring homomorphism R⟦Γ⟧ →+* R⟦Γ'⟧ induced by an order embedding Γ ↪o Γ'.
  • HahnSeries.orderTopSubOnePos is the group of invertible Hahn series close to 1, i.e., those series such that subtracting one yields a series with strictly positive orderTop.

Main results

  • If R is a (commutative) (semi-)ring, then so is R⟦Γ⟧.
  • If V is an R-module, then HahnModule Γ' R V is a R⟦Γ⟧-module.

TODO

The following may be useful for composing vertex operators, but they seem to take time.

  • rightTensorMap: HahnModule Γ' R U ⊗[R] V →ₗ[R] HahnModule Γ' R (U ⊗[R] V)
  • leftTensorMap: U ⊗[R] HahnModule Γ' R V →ₗ[R] HahnModule Γ' R (U ⊗[R] V)

References

  • [J. van der Hoeven, Operators on Generalized Power Series][van_der_hoeven]

theorem Finset.antidiagonal.congr_simp E1 #

∀ {α : Type u_1} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : IsOrderedCancelAddMonoid α]
  {s s_1 : Set α} (e_s : s = s_1) {t t_1 : Set α} (e_t : t = t_1) (hs : s.IsPWO) (ht : t.IsPWO) (a a_1 : α),
  a = a_1 → Finset.antidiagonal hs ht a = Finset.antidiagonal ⋯ ⋯ a_1

theorem Finset.VAddAntidiagonal.congr_simp E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : VAdd G P] {s s_1 : Set G} (e_s : s = s_1) {t t_1 : Set P} (e_t : t = t_1)
  (a a_1 : P) (e_a : a = a_1) (h : (s.vaddAntidiagonal t a).Finite),
  Finset.VAddAntidiagonal a h = Finset.VAddAntidiagonal a_1 ⋯

instance HahnSeries.instOne E0 #

{Γ : Type u_1} →
  {R : Type u_3} → [Zero Γ] → [inst : PartialOrder Γ] → [inst_1 : Zero R] → [One R] → One (HahnSeries Γ R)

instance HahnSeries.instNatCast E0 #

{Γ : Type u_1} →
  {R : Type u_3} → [Zero Γ] → [inst : PartialOrder Γ] → [inst_1 : Zero R] → [NatCast R] → NatCast (HahnSeries Γ R)

instance HahnSeries.instIntCast E0 #

{Γ : Type u_1} →
  {R : Type u_3} → [Zero Γ] → [inst : PartialOrder Γ] → [inst_1 : Zero R] → [IntCast R] → IntCast (HahnSeries Γ R)

instance HahnSeries.instNNRatCast E0 #

{Γ : Type u_1} →
  {R : Type u_3} → [Zero Γ] → [inst : PartialOrder Γ] → [inst_1 : Zero R] → [NNRatCast R] → NNRatCast (HahnSeries Γ R)

instance HahnSeries.instRatCast E0 #

{Γ : Type u_1} →
  {R : Type u_3} → [Zero Γ] → [inst : PartialOrder Γ] → [inst_1 : Zero R] → [RatCast R] → RatCast (HahnSeries Γ R)

theorem HahnSeries.coeff_one E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : One R] {a : Γ},
  HahnSeries.coeff 1 a = if a = 0 then 1 else 0

theorem HahnSeries.single_zero_one E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : One R],
  (HahnSeries.single 0) 1 = 1

theorem HahnSeries.single_zero_natCast E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : NatCast R]
  (n : ℕ), (HahnSeries.single 0) ↑n = ↑n

theorem HahnSeries.single_zero_intCast E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : IntCast R]
  (z : ℤ), (HahnSeries.single 0) ↑z = ↑z

theorem HahnSeries.single_zero_nnratCast E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : NNRatCast R]
  (q : ℚ≥0), (HahnSeries.single 0) ↑q = ↑q

theorem HahnSeries.single_zero_ratCast E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : RatCast R]
  (q : ℚ), (HahnSeries.single 0) ↑q = ↑q

theorem HahnSeries.single_zero_ofNat E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : NatCast R] (n : ℕ)
  [inst_4 : n.AtLeastTwo], (HahnSeries.single 0) (OfNat.ofNat n) = OfNat.ofNat n

theorem HahnSeries.support_one E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : MulZeroOneClass R] [Nontrivial R],
  HahnSeries.support 1 = {0}

theorem HahnSeries.orderTop_one E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : Zero R] [inst_3 : One R] [NeZero 1],
  HahnSeries.orderTop 1 = 0

theorem HahnSeries.order_one E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : MulZeroOneClass R],
  HahnSeries.order 1 = 0

theorem HahnSeries.leadingCoeff_one E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : MulZeroOneClass R],
  HahnSeries.leadingCoeff 1 = 1

theorem HahnSeries.map_one E0 #

∀ {Γ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : Zero Γ] [inst_1 : PartialOrder Γ] [inst_2 : MonoidWithZero R]
  [inst_3 : MonoidWithZero S] (f : R →*₀ S), HahnSeries.map 1 f = 1

instance HahnSeries.instAddCommMonoidWithOne E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [Zero Γ] → [inst : PartialOrder Γ] → [inst_1 : AddCommMonoidWithOne R] → AddCommMonoidWithOne (HahnSeries Γ R)

instance HahnSeries.instAddCommGroupWithOne E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [Zero Γ] → [inst : PartialOrder Γ] → [inst_1 : AddCommGroupWithOne R] → AddCommGroupWithOne (HahnSeries Γ R)

def HahnModule E3 #

(Γ : Type u_6) → (R : Type u_7) → (V : Type u_8) → [PartialOrder Γ] → [Zero V] → [SMul R V] → Type (max u_6 u_8)

We introduce a type alias for HahnSeries in order to work with scalar multiplication by series. If we wrote a SMul R⟦Γ⟧ V⟦Γ⟧ instance, then when V = R⟦Γ⟧, we would have two different actions of R⟦Γ⟧ on V⟦Γ⟧. See Mathlib/Algebra/Polynomial/Module/Basic.lean for more discussion on this problem.

def HahnModule.of E3 #

{Γ : Type u_1} →
  {V : Type u_5} →
    [inst : PartialOrder Γ] →
      [inst_1 : Zero V] → (R : Type u_6) → [inst_2 : SMul R V] → HahnSeries Γ V ≃ HahnModule Γ R V

The casting function to the type synonym.

def HahnModule.rec E1 #

{Γ : Type u_1} →
  {R : Type u_3} →
    {V : Type u_5} →
      [inst : PartialOrder Γ] →
        [inst_1 : Zero V] →
          [inst_2 : SMul R V] →
            {motive : HahnModule Γ R V → Sort u_6} →
              ((x : HahnSeries Γ V) → motive ((HahnModule.of R) x)) → (x : HahnModule Γ R V) → motive x

Recursion principle to reduce a result about the synonym to the original type.

theorem HahnModule.ext_iff E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : Zero V] [inst_2 : SMul R V]
  {x y : HahnModule Γ R V}, x = y ↔ ((HahnModule.of R).symm x).coeff = ((HahnModule.of R).symm y).coeff

theorem HahnModule.ext E1 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : Zero V] [inst_2 : SMul R V]
  (x y : HahnModule Γ R V), ((HahnModule.of R).symm x).coeff = ((HahnModule.of R).symm y).coeff → x = y

instance HahnModule.instZero E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    {V : Type u_5} → [inst : PartialOrder Γ] → [inst_1 : SMul R V] → [inst_2 : Zero V] → Zero (HahnModule Γ R V)

instance HahnModule.instAddCommMonoid E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    {V : Type u_5} →
      [inst : PartialOrder Γ] → [inst_1 : SMul R V] → [inst_2 : AddCommMonoid V] → AddCommMonoid (HahnModule Γ R V)

instance HahnModule.instAddCommGroup E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    {V : Type u_5} →
      [inst : PartialOrder Γ] → [inst_1 : SMul R V] → [inst_2 : AddCommGroup V] → AddCommGroup (HahnModule Γ R V)

instance HahnModule.instBaseSMul E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : PartialOrder Γ] →
      {V : Type u_6} →
        [inst_1 : Monoid R] → [inst_2 : AddMonoid V] → [inst_3 : DistribMulAction R V] → SMul R (HahnModule Γ R V)

theorem HahnModule.of_zero E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : SMul R V] [inst_2 : Zero V],
  (HahnModule.of R) 0 = 0

theorem HahnModule.of_add E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : SMul R V] [inst_2 : AddCommMonoid V]
  (x y : HahnSeries Γ V), (HahnModule.of R) (x + y) = (HahnModule.of R) x + (HahnModule.of R) y

theorem HahnModule.of_sub E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : SMul R V] [inst_2 : AddCommGroup V]
  (x y : HahnSeries Γ V), (HahnModule.of R) (x - y) = (HahnModule.of R) x - (HahnModule.of R) y

theorem HahnModule.of_symm_zero E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : SMul R V] [inst_2 : Zero V],
  (HahnModule.of R).symm 0 = 0

theorem HahnModule.of_symm_add E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : SMul R V] [inst_2 : AddCommMonoid V]
  (x y : HahnModule Γ R V), (HahnModule.of R).symm (x + y) = (HahnModule.of R).symm x + (HahnModule.of R).symm y

theorem HahnModule.of_symm_sub E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : SMul R V] [inst_2 : AddCommGroup V]
  (x y : HahnModule Γ R V), (HahnModule.of R).symm (x - y) = (HahnModule.of R).symm x - (HahnModule.of R).symm y

instance HahnModule.instSMul E0 #

{Γ : Type u_1} →
  {Γ' : Type u_2} →
    {R : Type u_3} →
      {V : Type u_5} →
        [inst : PartialOrder Γ] →
          [inst_1 : SMul R V] →
            [inst_2 : PartialOrder Γ'] →
              [inst_3 : VAdd Γ Γ'] →
                [IsOrderedCancelVAdd Γ Γ'] →
                  [inst_5 : Zero R] → [inst_6 : AddCommMonoid V] → SMul (HahnSeries Γ R) (HahnModule Γ' R V)

theorem HahnModule.coeff_smul E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : SMul R V]
  [inst_2 : PartialOrder Γ'] [inst_3 : VAdd Γ Γ'] [inst_4 : IsOrderedCancelVAdd Γ Γ'] [inst_5 : Zero R]
  [inst_6 : AddCommMonoid V] (x : HahnSeries Γ R) (y : HahnModule Γ' R V) (a : Γ'),
  ((HahnModule.of R).symm (x • y)).coeff a =
    ∑ ij ∈ Finset.VAddAntidiagonal a ⋯, x.coeff ij.1 • ((HahnModule.of R).symm y).coeff ij.2

instance HahnModule.instBaseSMulZeroClass E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    {V : Type u_5} →
      [inst : PartialOrder Γ] →
        [inst_1 : AddCommMonoid V] → [inst_2 : SMulZeroClass R V] → SMulZeroClass R (HahnModule Γ R V)

theorem HahnModule.of_smul E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : AddCommMonoid V]
  [inst_2 : SMulZeroClass R V] (r : R) (x : HahnSeries Γ V), (HahnModule.of R) (r • x) = r • (HahnModule.of R) x

theorem HahnModule.of_symm_smul E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : AddCommMonoid V]
  [inst_2 : SMulZeroClass R V] (r : R) (x : HahnModule Γ R V),
  (HahnModule.of R).symm (r • x) = r • (HahnModule.of R).symm x

instance HahnModule.instSMulZeroClass E0 #

{Γ : Type u_1} →
  {Γ' : Type u_2} →
    {R : Type u_3} →
      {V : Type u_5} →
        [inst : PartialOrder Γ] →
          [inst_1 : PartialOrder Γ'] →
            [inst_2 : VAdd Γ Γ'] →
              [IsOrderedCancelVAdd Γ Γ'] →
                [inst_4 : AddCommMonoid V] →
                  [inst_5 : Zero R] → [inst_6 : SMulZeroClass R V] → SMulZeroClass (HahnSeries Γ R) (HahnModule Γ' R V)

theorem HahnModule.coeff_smul_right E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : Zero R]
  [inst_6 : SMulZeroClass R V] {x : HahnSeries Γ R} {y : HahnModule Γ' R V} {a : Γ'} {s : Set Γ'} (hs : s.IsPWO),
  ((HahnModule.of R).symm y).support ⊆ s →
    ((HahnModule.of R).symm (x • y)).coeff a =
      ∑ ij ∈ Finset.VAddAntidiagonal a ⋯, x.coeff ij.1 • ((HahnModule.of R).symm y).coeff ij.2

theorem HahnModule.coeff_smul_left E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : Zero R]
  [inst_6 : SMulWithZero R V] {x : HahnSeries Γ R} {y : HahnModule Γ' R V} {a : Γ'} {s : Set Γ} (hs : s.IsPWO),
  x.support ⊆ s →
    ((HahnModule.of R).symm (x • y)).coeff a =
      ∑ ij ∈ Finset.VAddAntidiagonal a ⋯, x.coeff ij.1 • ((HahnModule.of R).symm y).coeff ij.2

theorem HahnModule.smul_add E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : Zero R]
  [inst_6 : DistribSMul R V] (x : HahnSeries Γ R) (y z : HahnModule Γ' R V), x • (y + z) = x • y + x • z

instance HahnModule.instDistribSMul E0 #

{Γ : Type u_1} →
  {Γ' : Type u_2} →
    {R : Type u_3} →
      {V : Type u_5} →
        [inst : PartialOrder Γ] →
          [inst_1 : PartialOrder Γ'] →
            [inst_2 : VAdd Γ Γ'] →
              [IsOrderedCancelVAdd Γ Γ'] →
                [inst_4 : AddCommMonoid V] →
                  [inst_5 : MonoidWithZero R] →
                    [inst_6 : DistribSMul R V] → DistribSMul (HahnSeries Γ R) (HahnModule Γ' R V)

theorem HahnModule.add_smul E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : AddCommMonoid R]
  [inst_6 : SMulWithZero R V] {x y : HahnSeries Γ R} {z : HahnModule Γ' R V},
  (∀ (r s : R) (u : V), (r + s) • u = r • u + s • u) → (x + y) • z = x • z + y • z

theorem HahnModule.coeff_single_smul_vadd E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : MulZeroClass R]
  [inst_6 : SMulWithZero R V] {r : R} {x : HahnModule Γ' R V} {a : Γ'} {b : Γ},
  ((HahnModule.of R).symm ((HahnSeries.single b) r • x)).coeff (b +ᵥ a) = r • ((HahnModule.of R).symm x).coeff a

theorem HahnModule.coeff_single_zero_smul E1 #

∀ {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ'] [inst_1 : AddCommMonoid V] {Γ : Type u_6}
  [inst_2 : AddCommMonoid Γ] [inst_3 : PartialOrder Γ] [inst_4 : AddAction Γ Γ'] [inst_5 : IsOrderedCancelVAdd Γ Γ']
  [inst_6 : MulZeroClass R] [inst_7 : SMulWithZero R V] {r : R} {x : HahnModule Γ' R V} {a : Γ'},
  ((HahnModule.of R).symm ((HahnSeries.single 0) r • x)).coeff a = r • ((HahnModule.of R).symm x).coeff a

theorem HahnModule.single_zero_smul_eq_smul E0 #

∀ {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ'] [inst_1 : AddCommMonoid V] (Γ : Type u_6)
  [inst_2 : AddCommMonoid Γ] [inst_3 : PartialOrder Γ] [inst_4 : AddAction Γ Γ'] [inst_5 : IsOrderedCancelVAdd Γ Γ']
  [inst_6 : MulZeroClass R] [inst_7 : SMulWithZero R V] {r : R} {x : HahnModule Γ' R V},
  (HahnSeries.single 0) r • x = r • x

theorem HahnModule.zero_smul' E0 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : Zero R]
  [inst_6 : SMulWithZero R V] {x : HahnModule Γ' R V}, 0 • x = 0

theorem HahnModule.one_smul' E0 #

∀ {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ'] [inst_1 : AddCommMonoid V] {Γ : Type u_6}
  [inst_2 : AddCommMonoid Γ] [inst_3 : PartialOrder Γ] [inst_4 : AddAction Γ Γ'] [inst_5 : IsOrderedCancelVAdd Γ Γ']
  [inst_6 : MonoidWithZero R] [inst_7 : MulActionWithZero R V] {x : HahnModule Γ' R V}, 1 • x = x

theorem HahnModule.support_smul_subset_vadd_support' E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : MulZeroClass R]
  [inst_6 : SMulWithZero R V] {x : HahnSeries Γ R} {y : HahnModule Γ' R V},
  ((HahnModule.of R).symm (x • y)).support ⊆ x.support +ᵥ ((HahnModule.of R).symm y).support

theorem HahnModule.support_smul_subset_vadd_support E1 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : PartialOrder Γ']
  [inst_2 : VAdd Γ Γ'] [inst_3 : IsOrderedCancelVAdd Γ Γ'] [inst_4 : AddCommMonoid V] [inst_5 : MulZeroClass R]
  [inst_6 : SMulWithZero R V] {x : HahnSeries Γ R} {y : HahnModule Γ' R V},
  ((HahnModule.of R).symm (x • y)).support ⊆ x.support +ᵥ ((HahnModule.of R).symm y).support

theorem HahnModule.orderTop_vAdd_le_orderTop_smul E1 #

∀ {R : Type u_3} {V : Type u_5} [inst : AddCommMonoid V] {Γ : Type u_6} {Γ' : Type u_7} [inst_1 : LinearOrder Γ]
  [inst_2 : LinearOrder Γ'] [inst_3 : VAdd Γ Γ'] [inst_4 : IsOrderedCancelVAdd Γ Γ'] [inst_5 : MulZeroClass R]
  [inst_6 : SMulWithZero R V] {x : HahnSeries Γ R} [inst_7 : VAdd (WithTop Γ) (WithTop Γ')] {y : HahnModule Γ' R V},
  (∀ (γ : Γ) (γ' : Γ'), ↑(γ +ᵥ γ') = ↑γ +ᵥ ↑γ') →
    x.orderTop +ᵥ ((HahnModule.of R).symm y).orderTop ≤ ((HahnModule.of R).symm (x • y)).orderTop

theorem HahnModule.coeff_smul_order_add_order E1 #

∀ {R : Type u_3} {V : Type u_5} [inst : AddCommMonoid V] {Γ : Type u_6} [inst_1 : AddCommMonoid Γ]
  [inst_2 : LinearOrder Γ] [inst_3 : IsOrderedCancelAddMonoid Γ] [inst_4 : Zero R] [inst_5 : SMulWithZero R V]
  (x : HahnSeries Γ R) (y : HahnModule Γ R V),
  ((HahnModule.of R).symm (x • y)).coeff (x.order + ((HahnModule.of R).symm y).order) =
    x.leadingCoeff • ((HahnModule.of R).symm y).leadingCoeff

instance HahnSeries.instMul E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalNonAssocSemiring R] → Mul (HahnSeries Γ R)

theorem HahnSeries.of_symm_smul_of_eq_mul E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R},
  (HahnModule.of R).symm (x • (HahnModule.of R) y) = x * y

theorem HahnSeries.coeff_mul E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R} {a : Γ},
  (x * y).coeff a = ∑ ij ∈ Finset.antidiagonal ⋯ ⋯ a, x.coeff ij.1 * y.coeff ij.2

theorem HahnSeries.map_mul E0 #

∀ {Γ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ]
  [inst_2 : IsOrderedCancelAddMonoid Γ] [inst_3 : NonUnitalNonAssocSemiring R] [inst_4 : NonUnitalNonAssocSemiring S]
  (f : R →ₙ+* S) {x y : HahnSeries Γ R}, (x * y).map f = x.map f * y.map f

theorem HahnSeries.coeff_mul_left' E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R} {a : Γ} {s : Set Γ} (hs : s.IsPWO),
  x.support ⊆ s → (x * y).coeff a = ∑ ij ∈ Finset.antidiagonal hs ⋯ a, x.coeff ij.1 * y.coeff ij.2

theorem HahnSeries.coeff_mul_right' E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R} {a : Γ} {s : Set Γ} (hs : s.IsPWO),
  y.support ⊆ s → (x * y).coeff a = ∑ ij ∈ Finset.antidiagonal ⋯ hs a, x.coeff ij.1 * y.coeff ij.2

instance HahnSeries.instDistrib E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalNonAssocSemiring R] → Distrib (HahnSeries Γ R)

theorem HahnSeries.coeff_single_mul_add E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {r : R} {x : HahnSeries Γ R} {a b : Γ},
  ((HahnSeries.single b) r * x).coeff (a + b) = r * x.coeff a

theorem HahnSeries.coeff_mul_single_add E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {r : R} {x : HahnSeries Γ R} {a b : Γ},
  (x * (HahnSeries.single b) r).coeff (a + b) = x.coeff a * r

theorem HahnSeries.coeff_single_mul E1 #

∀ {Γ' : Type u_2} {R : Type u_3} [inst : NonUnitalNonAssocSemiring R] [inst_1 : PartialOrder Γ']
  [inst_2 : AddCommGroup Γ'] [inst_3 : IsOrderedAddMonoid Γ'] {r : R} {x : HahnSeries Γ' R} {a b : Γ'},
  ((HahnSeries.single b) r * x).coeff a = r * x.coeff (a - b)

theorem HahnSeries.coeff_mul_single E1 #

∀ {Γ' : Type u_2} {R : Type u_3} [inst : NonUnitalNonAssocSemiring R] [inst_1 : PartialOrder Γ']
  [inst_2 : AddCommGroup Γ'] [inst_3 : IsOrderedAddMonoid Γ'] {r : R} {x : HahnSeries Γ' R} {a b : Γ'},
  (x * (HahnSeries.single b) r).coeff a = x.coeff (a - b) * r

theorem HahnSeries.coeff_mul_single_zero E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {r : R} {x : HahnSeries Γ R} {a : Γ},
  (x * (HahnSeries.single 0) r).coeff a = x.coeff a * r

theorem HahnSeries.coeff_single_zero_mul E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {r : R} {x : HahnSeries Γ R} {a : Γ},
  ((HahnSeries.single 0) r * x).coeff a = r * x.coeff a

theorem HahnSeries.single_zero_mul_eq_smul E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : Semiring R] {r : R} {x : HahnSeries Γ R}, (HahnSeries.single 0) r * x = r • x

theorem HahnSeries.support_mul_subset E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R}, (x * y).support ⊆ x.support + y.support

instance HahnSeries.instNonUnitalNonAssocSemiring E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalNonAssocSemiring R] → NonUnitalNonAssocSemiring (HahnSeries Γ R)

theorem HahnSeries.coeff_mul_order_add_order E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] (x y : HahnSeries Γ R),
  (x * y).coeff (x.order + y.order) = x.leadingCoeff * y.leadingCoeff

theorem HahnSeries.orderTop_mul_of_ne_zero E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R},
  x.leadingCoeff * y.leadingCoeff ≠ 0 → (x * y).orderTop = x.orderTop + y.orderTop

theorem HahnSeries.orderTop_mul E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] (x y : HahnSeries Γ R) [NoZeroDivisors R],
  (x * y).orderTop = x.orderTop + y.orderTop

theorem HahnSeries.orderTop_add_le_mul E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R}, x.orderTop + y.orderTop ≤ (x * y).orderTop

theorem HahnSeries.order_mul_of_ne_zero E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R},
  x.leadingCoeff * y.leadingCoeff ≠ 0 → (x * y).order = x.order + y.order

theorem HahnSeries.leadingCoeff_mul_of_ne_zero E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {x y : HahnSeries Γ R},
  x.leadingCoeff * y.leadingCoeff ≠ 0 → (x * y).leadingCoeff = x.leadingCoeff * y.leadingCoeff

theorem HahnSeries.leadingCoeff_mul E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] (x y : HahnSeries Γ R) [NoZeroDivisors R],
  (x * y).leadingCoeff = x.leadingCoeff * y.leadingCoeff

theorem HahnSeries.order_single_mul_of_isRegular E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {g : Γ} {r : R},
  IsRegular r → ∀ {x : HahnSeries Γ R}, x ≠ 0 → ((HahnSeries.single g) r * x).order = g + x.order

instance HahnSeries.instNonUnitalSemiring E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalSemiring R] → NonUnitalSemiring (HahnSeries Γ R)

instance HahnSeries.instNonAssocSemiring E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonAssocSemiring R] → NonAssocSemiring (HahnSeries Γ R)

instance HahnSeries.instSemiring E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] → [IsOrderedCancelAddMonoid Γ] → [inst : Semiring R] → Semiring (HahnSeries Γ R)

instance HahnSeries.instNonUnitalCommSemiring E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalCommSemiring R] → NonUnitalCommSemiring (HahnSeries Γ R)

instance HahnSeries.instCommSemiring E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] → [IsOrderedCancelAddMonoid Γ] → [inst : CommSemiring R] → CommSemiring (HahnSeries Γ R)

instance HahnSeries.instNonUnitalNonAssocRing E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalNonAssocRing R] → NonUnitalNonAssocRing (HahnSeries Γ R)

instance HahnSeries.instNonUnitalRing E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalRing R] → NonUnitalRing (HahnSeries Γ R)

instance HahnSeries.instNonAssocRing E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] → [IsOrderedCancelAddMonoid Γ] → [inst : NonAssocRing R] → NonAssocRing (HahnSeries Γ R)

instance HahnSeries.instRing E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] → [IsOrderedCancelAddMonoid Γ] → [inst : Ring R] → Ring (HahnSeries Γ R)

instance HahnSeries.instNonUnitalCommRing E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [IsOrderedCancelAddMonoid Γ] → [inst : NonUnitalCommRing R] → NonUnitalCommRing (HahnSeries Γ R)

instance HahnSeries.instCommRing E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] → [IsOrderedCancelAddMonoid Γ] → [inst : CommRing R] → CommRing (HahnSeries Γ R)

theorem HahnSeries.orderTop_nsmul_le_orderTop_pow E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : Semiring R] {x : HahnSeries Γ R} {n : ℕ}, n • x.orderTop ≤ (x ^ n).orderTop

theorem HahnSeries.orderTop_self_sub_one_pos_iff E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : LinearOrder Γ] [inst_1 : Zero Γ] [inst_2 : NonAssocRing R] [Nontrivial R]
  (x : HahnSeries Γ R), 0 < (x - 1).orderTop ↔ x.orderTop = 0 ∧ x.leadingCoeff = 1

theorem HahnSeries.orderTop_sub_pos E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : PartialOrder Γ] [inst_1 : Zero Γ] [inst_2 : AddCommGroup R] [inst_3 : One R]
  {g : Γ}, 0 < g → ∀ (r : R), 0 < (1 + (HahnSeries.single g) r - 1).orderTop

def HahnSeries.orderTopSubOnePos E3 #

(Γ : Type u_6) →
  (R : Type u_7) →
    [inst : LinearOrder Γ] →
      [inst_1 : AddCommMonoid Γ] →
        [inst_2 : IsOrderedCancelAddMonoid Γ] → [inst_3 : CommRing R] → Subgroup (HahnSeries Γ R)ˣ

The group of invertible Hahn series close to 1, i.e., those series such that subtracting 1 yields a series with strictly positive orderTop.

theorem HahnSeries.mem_orderTopSubOnePos_iff E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : LinearOrder Γ] [inst_1 : AddCommMonoid Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : CommRing R] (x : (HahnSeries Γ R)ˣ), x ∈ HahnSeries.orderTopSubOnePos Γ R ↔ 0 < (↑x - 1).orderTop

instance HahnModule.instBaseModule E0 #

{Γ' : Type u_2} →
  {R : Type u_3} →
    {V : Type u_5} →
      [inst : PartialOrder Γ'] →
        [inst_1 : AddCommMonoid V] → [inst_2 : Semiring R] → [inst_3 : Module R V] → Module R (HahnModule Γ' R V)

instance HahnModule.instModule E0 #

{Γ : Type u_1} →
  {Γ' : Type u_2} →
    {R : Type u_3} →
      {V : Type u_5} →
        [inst : AddCommMonoid Γ] →
          [inst_1 : PartialOrder Γ] →
            [inst_2 : IsOrderedCancelAddMonoid Γ] →
              [inst_3 : PartialOrder Γ'] →
                [inst_4 : AddAction Γ Γ'] →
                  [IsOrderedCancelVAdd Γ Γ'] →
                    [inst_6 : AddCommMonoid V] →
                      [inst_7 : Semiring R] → [inst_8 : Module R V] → Module (HahnSeries Γ R) (HahnModule Γ' R V)

instance HahnModule.instIsScalarTowerHahnSeries E0 #

∀ {Γ : Type u_1} {R : Type u_3} {V : Type u_5} [inst : PartialOrder Γ] [inst_1 : AddCommMonoid V] [inst_2 : Zero R]
  {S : Type u_6} [inst_3 : Zero S] [inst_4 : SMul R S] [inst_5 : SMulWithZero R V] [inst_6 : SMulWithZero S V]
  [IsScalarTower R S V], IsScalarTower R S (HahnSeries Γ V)

instance HahnModule.instIsScalarTowerHahnSeries_1 E0 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ]
  [IsOrderedCancelAddMonoid Γ] [inst_3 : PartialOrder Γ'] [inst_4 : AddAction Γ Γ'] [inst_5 : IsOrderedCancelVAdd Γ Γ']
  [inst_6 : AddCommMonoid V] [inst_7 : Semiring R] [inst_8 : Module R V],
  IsScalarTower R (HahnSeries Γ R) (HahnModule Γ' R V)

instance HahnModule.SMulCommClass E0 #

∀ {Γ : Type u_1} {Γ' : Type u_2} {R : Type u_3} {V : Type u_5} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ]
  [IsOrderedCancelAddMonoid Γ] [inst_3 : PartialOrder Γ'] [inst_4 : AddAction Γ Γ'] [inst_5 : IsOrderedCancelVAdd Γ Γ']
  [inst_6 : AddCommMonoid V] [inst_7 : CommSemiring R] [inst_8 : Module R V],
  SMulCommClass R (HahnSeries Γ R) (HahnModule Γ' R V)

instance HahnModule.instIsTorsionFree E0 #

∀ {R : Type u_3} {Γ : Type u_6} {V : Type u_7} [inst : Ring R] [IsDomain R] [inst_2 : AddCommGroup V]
  [inst_3 : AddCommMonoid Γ] [inst_4 : LinearOrder Γ] [inst_5 : IsOrderedCancelAddMonoid Γ] [inst_6 : Module R V]
  [Module.IsTorsionFree R V], Module.IsTorsionFree (HahnSeries Γ R) (HahnModule Γ R V)

theorem HahnSeries.single_mul_single E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] {a b : Γ} {r s : R},
  (HahnSeries.single a) r * (HahnSeries.single b) s = (HahnSeries.single (a + b)) (r * s)

theorem HahnSeries.single_pow E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : Semiring R] (a : Γ) (n : ℕ) (r : R), (HahnSeries.single a) r ^ n = (HahnSeries.single (n • a)) (r ^ n)

def HahnSeries.C E3 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [inst_2 : IsOrderedCancelAddMonoid Γ] → [inst_3 : NonAssocSemiring R] → R →+* HahnSeries Γ R

C a is the constant Hahn Series a. C is provided as a ring homomorphism.

theorem HahnSeries.C_apply E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonAssocSemiring R] (a : R), HahnSeries.C a = (HahnSeries.single 0) a

theorem HahnSeries.C_zero E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonAssocSemiring R], HahnSeries.C 0 = 0

theorem HahnSeries.C_one E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonAssocSemiring R], HahnSeries.C 1 = 1

theorem HahnSeries.map_C E0 #

∀ {Γ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ]
  [inst_2 : IsOrderedCancelAddMonoid Γ] [inst_3 : NonAssocSemiring R] [inst_4 : NonAssocSemiring S] (a : R)
  (f : R →+* S), (HahnSeries.C a).map f = HahnSeries.C (f a)

theorem HahnSeries.C_injective E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonAssocSemiring R], Function.Injective ⇑HahnSeries.C

theorem HahnSeries.C_ne_zero E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonAssocSemiring R] {r : R}, r ≠ 0 → HahnSeries.C r ≠ 0

theorem HahnSeries.order_C E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonAssocSemiring R] {r : R}, (HahnSeries.C r).order = 0

theorem HahnSeries.C_mul_eq_smul E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : Semiring R] {r : R} {x : HahnSeries Γ R}, HahnSeries.C r * x = r • x

theorem HahnSeries.embDomain_mul E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  {Γ' : Type u_6} [inst_3 : AddCommMonoid Γ'] [inst_4 : PartialOrder Γ'] [inst_5 : IsOrderedCancelAddMonoid Γ']
  [inst_6 : NonUnitalNonAssocSemiring R] (f : Γ ↪o Γ'),
  (∀ (x y : Γ), f (x + y) = f x + f y) →
    ∀ (x y : HahnSeries Γ R), HahnSeries.embDomain f (x * y) = HahnSeries.embDomain f x * HahnSeries.embDomain f y

theorem HahnSeries.embDomain_one E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] {Γ' : Type u_6}
  [inst_2 : AddCommMonoid Γ'] [inst_3 : PartialOrder Γ'] [inst_4 : NonAssocSemiring R] (f : Γ ↪o Γ'),
  f 0 = 0 → HahnSeries.embDomain f 1 = 1

def HahnSeries.embDomainRingHom E3 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [inst_2 : IsOrderedCancelAddMonoid Γ] →
          {Γ' : Type u_6} →
            [inst_3 : AddCommMonoid Γ'] →
              [inst_4 : PartialOrder Γ'] →
                [inst_5 : IsOrderedCancelAddMonoid Γ'] →
                  [inst_6 : NonAssocSemiring R] →
                    (f : Γ →+ Γ') →
                      Function.Injective ⇑f → (∀ (g g' : Γ), f g ≤ f g' ↔ g ≤ g') → HahnSeries Γ R →+* HahnSeries Γ' R

Extending the domain of Hahn series is a ring homomorphism.

theorem HahnSeries.embDomainRingHom_apply E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  {Γ' : Type u_6} [inst_3 : AddCommMonoid Γ'] [inst_4 : PartialOrder Γ'] [inst_5 : IsOrderedCancelAddMonoid Γ']
  [inst_6 : NonAssocSemiring R] (f : Γ →+ Γ') (hfi : Function.Injective ⇑f) (hf : ∀ (g g' : Γ), f g ≤ f g' ↔ g ≤ g')
  (a : HahnSeries Γ R),
  (HahnSeries.embDomainRingHom f hfi hf) a = HahnSeries.embDomain { toFun := ⇑f, inj' := hfi, map_rel_iff' := ⋯ } a

theorem HahnSeries.embDomainRingHom_C E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  {Γ' : Type u_6} [inst_3 : AddCommMonoid Γ'] [inst_4 : PartialOrder Γ'] [inst_5 : IsOrderedCancelAddMonoid Γ']
  [inst_6 : NonAssocSemiring R] {f : Γ →+ Γ'} {hfi : Function.Injective ⇑f} {hf : ∀ (g g' : Γ), f g ≤ f g' ↔ g ≤ g'}
  {r : R}, (HahnSeries.embDomainRingHom f hfi hf) (HahnSeries.C r) = HahnSeries.C r

instance HahnSeries.instAlgebra E0 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [inst_2 : IsOrderedCancelAddMonoid Γ] →
          [inst_3 : CommSemiring R] →
            {A : Type u_6} → [inst_4 : Semiring A] → [Algebra R A] → Algebra R (HahnSeries Γ A)

theorem HahnSeries.C_eq_algebraMap E1 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : CommSemiring R], HahnSeries.C = algebraMap R (HahnSeries Γ R)

theorem HahnSeries.algebraMap_apply E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : CommSemiring R] {A : Type u_6} [inst_4 : Semiring A] [inst_5 : Algebra R A] {r : R},
  (algebraMap R (HahnSeries Γ A)) r = HahnSeries.C ((algebraMap R A) r)

instance HahnSeries.instNontrivialSubalgebra E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : CommSemiring R] [Nontrivial Γ] [Nontrivial R], Nontrivial (Subalgebra R (HahnSeries Γ R))

def HahnSeries.embDomainAlgHom E1 #

{Γ : Type u_1} →
  {R : Type u_3} →
    [inst : AddCommMonoid Γ] →
      [inst_1 : PartialOrder Γ] →
        [inst_2 : IsOrderedCancelAddMonoid Γ] →
          [inst_3 : CommSemiring R] →
            {A : Type u_6} →
              [inst_4 : Semiring A] →
                [inst_5 : Algebra R A] →
                  {Γ' : Type u_7} →
                    [inst_6 : AddCommMonoid Γ'] →
                      [inst_7 : PartialOrder Γ'] →
                        [inst_8 : IsOrderedCancelAddMonoid Γ'] →
                          (f : Γ →+ Γ') →
                            Function.Injective ⇑f →
                              (∀ (g g' : Γ), f g ≤ f g' ↔ g ≤ g') → HahnSeries Γ A →ₐ[R] HahnSeries Γ' A

Extending the domain of Hahn series is an algebra homomorphism.

theorem HahnSeries.embDomainAlgHom_apply_coeff E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : PartialOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : CommSemiring R] {A : Type u_6} [inst_4 : Semiring A] [inst_5 : Algebra R A] {Γ' : Type u_7}
  [inst_6 : AddCommMonoid Γ'] [inst_7 : PartialOrder Γ'] [inst_8 : IsOrderedCancelAddMonoid Γ'] (f : Γ →+ Γ')
  (hfi : Function.Injective ⇑f) (hf : ∀ (g g' : Γ), f g ≤ f g' ↔ g ≤ g') (a : HahnSeries Γ A) (b : Γ'),
  ((HahnSeries.embDomainAlgHom f hfi hf) a).coeff b =
    if h : b ∈ ⇑f '' a.support then a.coeff (Classical.choose ⋯) else 0

instance HahnSeries.instIsCancelMulZeroOfIsCancelAdd E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] [IsCancelAdd R] [IsCancelMulZero R], IsCancelMulZero (HahnSeries Γ R)

instance HahnSeries.instNoZeroDivisors E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] [NoZeroDivisors R], NoZeroDivisors (HahnSeries Γ R)

theorem HahnSeries.order_mul E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : NonUnitalNonAssocSemiring R] [NoZeroDivisors R] {x y : HahnSeries Γ R},
  x ≠ 0 → y ≠ 0 → (x * y).order = x.order + y.order

theorem HahnSeries.order_pow E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : Semiring R] [NoZeroDivisors R] (x : HahnSeries Γ R) (n : ℕ), (x ^ n).order = n • x.order

instance HahnSeries.instIsDomainOfIsCancelAdd E0 #

∀ {Γ : Type u_1} {R : Type u_3} [inst : AddCommMonoid Γ] [inst_1 : LinearOrder Γ] [inst_2 : IsOrderedCancelAddMonoid Γ]
  [inst_3 : Semiring R] [IsCancelAdd R] [IsDomain R], IsDomain (HahnSeries Γ R)