@@ -269,11 +269,9 @@ theorem tmul_pow (a : A) (b : B) (k : ℕ) : a ⊗ₜ[R] b ^ k = (a ^ k) ⊗ₜ[
269269 | succ k ih => simp [pow_succ, ih]
270270
271271/-- The ring morphism `A →+* A ⊗[R] B` sending `a` to `a ⊗ₜ 1`. -/
272- @[simps]
272+ @[simps! ]
273273def includeLeftRingHom : A →+* A ⊗[R] B where
274- toFun a := a ⊗ₜ 1
275- map_zero' := by simp
276- map_add' := by simp [add_tmul]
274+ __ := (AlgebraTensorModule.mk R R A B).flip 1 |>.toAddMonoidHom
277275 map_one' := rfl
278276 map_mul' := by simp
279277
@@ -317,19 +315,23 @@ theorem includeLeft_apply [SMulCommClass R S A] (a : A) :
317315 (includeLeft : A →ₐ[S] A ⊗[R] B) a = a ⊗ₜ 1 :=
318316 rfl
319317
318+ @[simp] theorem toLinearMap_includeLeft [SMulCommClass R S A] :
319+ (includeLeft : A →ₐ[S] A ⊗[R] B).toLinearMap = (AlgebraTensorModule.mk R S A B).flip 1 := rfl
320+
320321/-- The algebra morphism `B →ₐ[R] A ⊗[R] B` sending `b` to `1 ⊗ₜ b`. -/
321322def includeRight : B →ₐ[R] A ⊗[R] B where
322- toFun b := 1 ⊗ₜ b
323- map_zero' := by simp
324- map_add' := by simp [tmul_add]
323+ __ := AlgebraTensorModule.mk R R A B 1 |>.toAddMonoidHom
325324 map_one' := rfl
326325 map_mul' := by simp
327- commutes' r := by simp only [algebraMap_apply' ]
326+ commutes' r := by simp [algebraMap_eq_smul_one', smul_tmul ]
328327
329328@[simp]
330329theorem includeRight_apply (b : B) : (includeRight : B →ₐ[R] A ⊗[R] B) b = 1 ⊗ₜ b :=
331330 rfl
332331
332+ @[simp] theorem toLinearMap_includeRight :
333+ (includeRight : B →ₐ[R] A ⊗[R] B).toLinearMap = AlgebraTensorModule.mk R R A B 1 := rfl
334+
333335theorem includeLeftRingHom_comp_algebraMap :
334336 (includeLeftRingHom.comp (algebraMap R A) : R →+* A ⊗[R] B) =
335337 includeRight.toRingHom.comp (algebraMap R B) := by
0 commit comments