@@ -292,8 +292,8 @@ variable (M : Type v) [AddCommMonoid M] [Module R M]
292292
293293-- This notation is necessary because we need to reason about `s ⊗ₜ m` where `s : S` and `m : M`;
294294-- without this notation, one needs to work with `s : (restrictScalars f).obj ⟨S⟩`.
295- scoped [ChangeOfRings]
296- notation s "⊗ₜ[" R "," f "]" m => @TensorProduct.tmul R _ _ _ _ _ (Module.compHom _ f) _ s m
295+ scoped [ChangeOfRings] notation : 100 s: 100 " ⊗ₜ[" R "," f "] " m: 101 =>
296+ @TensorProduct.tmul R _ _ _ _ _ (Module.compHom _ f) _ s m
297297
298298end Unbundled
299299
@@ -345,12 +345,12 @@ variable {R : Type u₁} {S : Type u₂} [CommRing R] [CommRing S] (f : R →+*
345345
346346@[simp]
347347protected theorem smul_tmul {M : ModuleCat.{v} R} (s s' : S) (m : M) :
348- s • (s'⊗ₜ[R,f]m : (extendScalars f).obj M) = (s * s')⊗ₜ[R,f]m :=
348+ s • (s' ⊗ₜ[R,f] m : (extendScalars f).obj M) = (s * s') ⊗ₜ[R,f] m :=
349349 rfl
350350
351351@[simp]
352352theorem map_tmul {M M' : ModuleCat.{v} R} (g : M ⟶ M') (s : S) (m : M) :
353- (extendScalars f).map g (s⊗ₜ[R,f]m) = s⊗ₜ[R,f]g m :=
353+ (extendScalars f).map g (s ⊗ₜ[R,f] m) = s ⊗ₜ[R,f] g m :=
354354 rfl
355355
356356variable {f}
@@ -633,7 +633,7 @@ def HomEquiv.toRestrictScalars {X Y} (g : (extendScalars f).obj X ⟶ Y) :
633633 -- TODO: after https://github.com/leanprover-community/mathlib4/pull/19511 we need to hint `(Y := ...)`.
634634 -- This suggests `restrictScalars` needs to be redesigned.
635635 ofHom (Y := (restrictScalars f).obj Y)
636- { toFun := fun x => g <| (1 : S)⊗ₜ[R,f]x
636+ { toFun := fun x => g <| (1 : S) ⊗ₜ[R,f] x
637637 map_add' := fun _ _ => by dsimp; rw [tmul_add, map_add]
638638 map_smul' := fun r s => by
639639 letI : Module R S := Module.compHom S f
@@ -734,7 +734,7 @@ def Unit.map {X} : X ⟶ (extendScalars f ⋙ restrictScalars f).obj X :=
734734 -- TODO: after https://github.com/leanprover-community/mathlib4/pull/19511 we need to hint `(Y := ...)`.
735735 -- This suggests `restrictScalars` needs to be redesigned.
736736 ofHom (Y := (extendScalars f ⋙ restrictScalars f).obj X)
737- { toFun := fun x => (1 : S)⊗ₜ[R,f]x
737+ { toFun := fun x => (1 : S) ⊗ₜ[R,f] x
738738 map_add' := fun x x' => by dsimp; rw [TensorProduct.tmul_add]
739739 map_smul' := fun r x => by
740740 letI m1 : Module R S := Module.compHom S f
0 commit comments