@@ -21,7 +21,7 @@ This file provides results about maps between tensor products of `R`-algebras.
2121 * `Algebra.TensorProduct.lid : R ⊗[R] A ≃ₐ[R] A`
2222 * `Algebra.TensorProduct.rid : A ⊗[R] R ≃ₐ[S] A` (usually used with `S = R` or `S = A`)
2323 * `Algebra.TensorProduct.comm : A ⊗[R] B ≃ₐ[R] B ⊗[R] A`
24- * `Algebra.TensorProduct.assoc : ((A ⊗[R] B ) ⊗[R] C ) ≃ₐ[R ] (A ⊗[R ] (B ⊗[R] C ))`
24+ * `Algebra.TensorProduct.assoc : ((A ⊗[S] C ) ⊗[R] D ) ≃ₐ[T ] (A ⊗[S ] (C ⊗[R] D ))`
2525- `Algebra.TensorProduct.liftEquiv`: a universal property for the tensor product of algebras.
2626
2727 ## References
@@ -368,39 +368,28 @@ end
368368
369369section
370370
371- variable {R A}
372-
373- unseal mul in
374- theorem assoc_aux_1 (a₁ a₂ : A) (b₁ b₂ : B) (c₁ c₂ : C) :
375- (TensorProduct.assoc R A B C) ((a₁ * a₂) ⊗ₜ[R] (b₁ * b₂) ⊗ₜ[R] (c₁ * c₂)) =
376- (TensorProduct.assoc R A B C) (a₁ ⊗ₜ[R] b₁ ⊗ₜ[R] c₁) *
377- (TensorProduct.assoc R A B C) (a₂ ⊗ₜ[R] b₂ ⊗ₜ[R] c₂) :=
378- rfl
379-
380- theorem assoc_aux_2 : (TensorProduct.assoc R A B C) (1 ⊗ₜ[R] 1 ⊗ₜ[R] 1 ) = 1 :=
381- rfl
382-
383- variable (R A C D)
371+ variable [CommSemiring T] [Algebra R T] [Algebra S T]
372+ [Algebra T A] [IsScalarTower R T A] [IsScalarTower S T A]
384373
374+ variable (T C D) in
385375/-- The associator for tensor product of R-algebras, as an algebra isomorphism. -/
386- protected def assoc : A ⊗[S] C ⊗[R] D ≃ₐ[S ] A ⊗[S] (C ⊗[R] D) :=
376+ protected def assoc : ( A ⊗[S] C) ⊗[R] D ≃ₐ[T ] A ⊗[S] (C ⊗[R] D) :=
387377 AlgEquiv.ofLinearEquiv
388- (AlgebraTensorModule.assoc R S S A C D)
378+ (AlgebraTensorModule.assoc R S T A C D)
389379 (by simp [Algebra.TensorProduct.one_def])
390380 ((LinearMap.map_mul_iff _).mpr <| by ext; simp)
391381
382+ variable (T C D) in
392383@[simp] theorem assoc_toLinearEquiv :
393- (TensorProduct.assoc R S A C D).toLinearEquiv = AlgebraTensorModule.assoc R S S A C D := rfl
394-
395- variable {A C D}
384+ (TensorProduct.assoc R S T A C D).toLinearEquiv = AlgebraTensorModule.assoc R S T A C D := rfl
396385
397386@[simp]
398387theorem assoc_tmul (a : A) (b : C) (c : D) :
399- TensorProduct.assoc R S A C D ((a ⊗ₜ b) ⊗ₜ c) = a ⊗ₜ (b ⊗ₜ c) := rfl
388+ TensorProduct.assoc R S T A C D ((a ⊗ₜ b) ⊗ₜ c) = a ⊗ₜ (b ⊗ₜ c) := rfl
400389
401390@[simp]
402391theorem assoc_symm_tmul (a : A) (b : C) (c : D) :
403- (TensorProduct.assoc R S A C D).symm (a ⊗ₜ (b ⊗ₜ c)) = (a ⊗ₜ b) ⊗ₜ c := rfl
392+ (TensorProduct.assoc R S T A C D).symm (a ⊗ₜ (b ⊗ₜ c)) = (a ⊗ₜ b) ⊗ₜ c := rfl
404393
405394end
406395
@@ -541,8 +530,8 @@ variable (R A B C) in
541530
542531This is the algebra version of `TensorProduct.leftComm`. -/
543532def leftComm : A ⊗[R] (B ⊗[R] C) ≃ₐ[R] B ⊗[R] (A ⊗[R] C) :=
544- (Algebra.TensorProduct.assoc R R A B C).symm.trans <|
545- (congr (Algebra.TensorProduct.comm R A B) .refl).trans <| TensorProduct.assoc R R B A C
533+ (Algebra.TensorProduct.assoc R R R A B C).symm.trans <|
534+ (congr (Algebra.TensorProduct.comm R A B) .refl).trans <| TensorProduct.assoc R R R B A C
546535
547536@[simp]
548537theorem leftComm_tmul (m : A) (n : B) (p : C) :
0 commit comments