Skip to content

Commit

Permalink
fix: change HahnSeries linearMap to use modules (#9297)
Browse files Browse the repository at this point in the history
This PR corrects what appears to be a minor oversight.
We replace the scalar ring `R` with the module `V` in two spots.
The proofs are unchanged.
  • Loading branch information
ScottCarnahan committed Dec 27, 2023
1 parent 565cdcb commit 2380f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mathlib/RingTheory/HahnSeries.lean
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ instance : Module R (HahnSeries Γ V) :=

/-- `single` as a linear map -/
@[simps]
def single.linearMap (a : Γ) : R →ₗ[R] HahnSeries Γ R :=
def single.linearMap (a : Γ) : V →ₗ[R] HahnSeries Γ V :=
{ single.addMonoidHom a with
map_smul' := fun r s => by
ext b
Expand All @@ -550,7 +550,7 @@ def single.linearMap (a : Γ) : R →ₗ[R] HahnSeries Γ R :=

/-- `coeff g` as a linear map -/
@[simps]
def coeff.linearMap (g : Γ) : HahnSeries Γ R →ₗ[R] R :=
def coeff.linearMap (g : Γ) : HahnSeries Γ V →ₗ[R] V :=
{ coeff.addMonoidHom g with map_smul' := fun _ _ => rfl }
#align hahn_series.coeff.linear_map HahnSeries.coeff.linearMap

Expand Down

0 comments on commit 2380f2a

Please sign in to comment.