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 / V08. Multilinear algebra and forms

Mathlib.RingTheory.TensorProduct.Basic

84 declarations. Mathlib docs · Source

The tensor product of R-algebras

This file provides results about the multiplicative structure on A ⊗[R] B when R is a commutative (semi)ring and A and B are both R-algebras. On these tensor products, multiplication is characterized by (a₁ ⊗ₜ b₁) * (a₂ ⊗ₜ b₂) = (a₁ * a₂) ⊗ₜ (b₁ * b₂).

Main declarations

  • Algebra.TensorProduct.semiring: the ring structure on A ⊗[R] B for two R-algebras A, B.
  • Algebra.TensorProduct.leftAlgebra: the S-algebra structure on A ⊗[R] B, for when A is additionally an S algebra.

References

  • [C. Kassel, Quantum Groups (§II.4)][Kassel1995]

The R-algebra structure on A ⊗[R] B

theorem AlgHom.ofLinearMap.congr_simp E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f f_1 : A →ₗ[R] B) (e_f : f = f_1) (map_one : f 1 = 1)
  (map_mul : ∀ (x y : A), f (x * y) = f x * f y), AlgHom.ofLinearMap f map_one map_mul = AlgHom.ofLinearMap f_1 ⋯ ⋯

theorem Algebra.TensorProduct.mul.congr_simp E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : Module R B] [inst_7 : SMulCommClass R B B]
  [inst_8 : IsScalarTower R B B], Algebra.TensorProduct.mul = Algebra.TensorProduct.mul

theorem TensorProduct.Algebra.moduleAux.congr_simp E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M],
  TensorProduct.Algebra.moduleAux = TensorProduct.Algebra.moduleAux

instance Algebra.TensorProduct.instOneTensorProduct E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoidWithOne A] →
          [inst_2 : Module R A] → [inst_3 : AddCommMonoidWithOne B] → [inst_4 : Module R B] → One (TensorProduct R A B)

theorem Algebra.TensorProduct.one_def E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : AddCommMonoidWithOne A]
  [inst_2 : Module R A] [inst_3 : AddCommMonoidWithOne B] [inst_4 : Module R B], 1 = 1 ⊗ₜ[R] 1

instance Algebra.TensorProduct.instAddCommMonoidWithOne E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoidWithOne A] →
          [inst_2 : Module R A] →
            [inst_3 : AddCommMonoidWithOne B] → [inst_4 : Module R B] → AddCommMonoidWithOne (TensorProduct R A B)

theorem Algebra.TensorProduct.natCast_def E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : AddCommMonoidWithOne A]
  [inst_2 : Module R A] [inst_3 : AddCommMonoidWithOne B] [inst_4 : Module R B] (n : ℕ), ↑n = ↑n ⊗ₜ[R] 1

theorem Algebra.TensorProduct.natCast_def' E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : AddCommMonoidWithOne A]
  [inst_2 : Module R A] [inst_3 : AddCommMonoidWithOne B] [inst_4 : Module R B] (n : ℕ), ↑n = 1 ⊗ₜ[R] ↑n

def Algebra.TensorProduct.mul E1 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonUnitalNonAssocSemiring B] →
                  [inst_6 : Module R B] →
                    [SMulCommClass R B B] →
                      [IsScalarTower R B B] → TensorProduct R A B →ₗ[R] TensorProduct R A B →ₗ[R] TensorProduct R A B

(Implementation detail) The multiplication map on A ⊗[R] B, as an R-bilinear map.

theorem Algebra.TensorProduct.mul_apply E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : Module R B] [inst_7 : SMulCommClass R B B]
  [inst_8 : IsScalarTower R B B] (a₁ a₂ : A) (b₁ b₂ : B),
  (Algebra.TensorProduct.mul (a₁ ⊗ₜ[R] b₁)) (a₂ ⊗ₜ[R] b₂) = (a₁ * a₂) ⊗ₜ[R] (b₁ * b₂)

instance Algebra.TensorProduct.instMul E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonUnitalNonAssocSemiring B] →
                  [inst_6 : Module R B] → [SMulCommClass R B B] → [IsScalarTower R B B] → Mul (TensorProduct R A B)

theorem Algebra.TensorProduct.tmul_mul_tmul E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : Module R B] [inst_7 : SMulCommClass R B B]
  [inst_8 : IsScalarTower R B B] (a₁ a₂ : A) (b₁ b₂ : B), a₁ ⊗ₜ[R] b₁ * a₂ ⊗ₜ[R] b₂ = (a₁ * a₂) ⊗ₜ[R] (b₁ * b₂)

theorem SemiconjBy.tmul E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : Module R B] [inst_7 : SMulCommClass R B B]
  [inst_8 : IsScalarTower R B B] {a₁ a₂ a₃ : A} {b₁ b₂ b₃ : B},
  SemiconjBy a₁ a₂ a₃ → SemiconjBy b₁ b₂ b₃ → SemiconjBy (a₁ ⊗ₜ[R] b₁) (a₂ ⊗ₜ[R] b₂) (a₃ ⊗ₜ[R] b₃)

theorem Commute.tmul E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : Module R B] [inst_7 : SMulCommClass R B B]
  [inst_8 : IsScalarTower R B B] {a₁ a₂ : A} {b₁ b₂ : B},
  Commute a₁ a₂ → Commute b₁ b₂ → Commute (a₁ ⊗ₜ[R] b₁) (a₂ ⊗ₜ[R] b₂)

instance Algebra.TensorProduct.instNonUnitalNonAssocSemiring E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonUnitalNonAssocSemiring B] →
                  [inst_6 : Module R B] →
                    [SMulCommClass R B B] → [IsScalarTower R B B] → NonUnitalNonAssocSemiring (TensorProduct R A B)

instance Algebra.TensorProduct.isScalarTower_right E0 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : Module R B] [inst_7 : SMulCommClass R B B]
  [inst_8 : IsScalarTower R B B] [inst_9 : Monoid S] [inst_10 : DistribMulAction S A] [IsScalarTower S A A]
  [inst_12 : SMulCommClass R S A], IsScalarTower S (TensorProduct R A B) (TensorProduct R A B)

instance Algebra.TensorProduct.sMulCommClass_right E0 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : Module R A] [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A]
  [inst_5 : NonUnitalNonAssocSemiring B] [inst_6 : Module R B] [inst_7 : SMulCommClass R B B]
  [inst_8 : IsScalarTower R B B] [inst_9 : Monoid S] [inst_10 : DistribMulAction S A] [SMulCommClass S A A]
  [inst_12 : SMulCommClass R S A], SMulCommClass S (TensorProduct R A B) (TensorProduct R A B)

theorem LinearMap.mul'_comp_map_lid_comp E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
  [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] {M : Type u_2} {N : Type u_3} [inst_5 : AddCommMonoid M]
  [inst_6 : Module R M] [inst_7 : AddCommMonoid N] [inst_8 : Module R N] (f : M →ₗ[R] TensorProduct R R A)
  (g : N →ₗ[R] A),
  LinearMap.mul' R A ∘ₗ TensorProduct.map (↑(TensorProduct.lid R A) ∘ₗ f) g =
    ↑(TensorProduct.lid R A) ∘ₗ
      LinearMap.lTensor R (LinearMap.mul' R A) ∘ₗ ↑(TensorProduct.assoc R R A A) ∘ₗ TensorProduct.map f g

theorem Algebra.TensorProduct.one_mul E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonAssocSemiring A] [inst_2 : Module R A]
  [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] [inst_5 : NonAssocSemiring B] [inst_6 : Module R B]
  [inst_7 : SMulCommClass R B B] [inst_8 : IsScalarTower R B B] (x : TensorProduct R A B),
  (Algebra.TensorProduct.mul (1 ⊗ₜ[R] 1)) x = x

theorem Algebra.TensorProduct.mul_one E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonAssocSemiring A] [inst_2 : Module R A]
  [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] [inst_5 : NonAssocSemiring B] [inst_6 : Module R B]
  [inst_7 : SMulCommClass R B B] [inst_8 : IsScalarTower R B B] (x : TensorProduct R A B),
  (Algebra.TensorProduct.mul x) (1 ⊗ₜ[R] 1) = x

instance Algebra.TensorProduct.instNonAssocSemiring E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonAssocSemiring A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonAssocSemiring B] →
                  [inst_6 : Module R B] →
                    [SMulCommClass R B B] → [IsScalarTower R B B] → NonAssocSemiring (TensorProduct R A B)

theorem Algebra.TensorProduct.mul_assoc E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : NonUnitalSemiring A] [inst_2 : Module R A]
  [inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] [inst_5 : NonUnitalSemiring B] [inst_6 : Module R B]
  [inst_7 : SMulCommClass R B B] [inst_8 : IsScalarTower R B B] (x y z : TensorProduct R A B),
  (Algebra.TensorProduct.mul ((Algebra.TensorProduct.mul x) y)) z =
    (Algebra.TensorProduct.mul x) ((Algebra.TensorProduct.mul y) z)

instance Algebra.TensorProduct.instNonUnitalSemiring E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalSemiring A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonUnitalSemiring B] →
                  [inst_6 : Module R B] →
                    [SMulCommClass R B B] → [IsScalarTower R B B] → NonUnitalSemiring (TensorProduct R A B)

instance Algebra.TensorProduct.instSemiring E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Semiring B] → [inst_4 : Algebra R B] → Semiring (TensorProduct R A B)

theorem Algebra.TensorProduct.tmul_pow E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (a : A) (b : B) (k : ℕ), a ⊗ₜ[R] b ^ k = (a ^ k) ⊗ₜ[R] (b ^ k)

def Algebra.TensorProduct.includeLeftRingHom E1 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Semiring B] → [inst_4 : Algebra R B] → A →+* TensorProduct R A B

The ring morphism A →+* A ⊗[R] B sending a to a ⊗ₜ 1.

theorem Algebra.TensorProduct.includeLeftRingHom_apply E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (a : A), Algebra.TensorProduct.includeLeftRingHom a = a ⊗ₜ[R] 1

instance Algebra.TensorProduct.leftAlgebra E3 #

{R : Type uR} →
  {S : Type uS} →
    {A : Type uA} →
      {B : Type uB} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Semiring B] →
                [inst_4 : Algebra R B] →
                  [inst_5 : CommSemiring S] →
                    [inst_6 : Algebra S A] → [SMulCommClass R S A] → Algebra S (TensorProduct R A B)

theorem Algebra.TensorProduct.algebraMap_def E0 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : CommSemiring S] [inst_6 : Algebra S A],
  algebraMap S (TensorProduct R A B) = Algebra.TensorProduct.includeLeftRingHom.comp (algebraMap S A)

instance Algebra.TensorProduct.instAlgebra E3 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Semiring B] → [inst_4 : Algebra R B] → Algebra R (TensorProduct R A B)

The tensor product of two R-algebras is an R-algebra.

theorem Algebra.TensorProduct.algebraMap_apply E0 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : CommSemiring S] [inst_6 : Algebra S A]
  (r : S), (algebraMap S (TensorProduct R A B)) r = (algebraMap S A) r ⊗ₜ[R] 1

theorem Algebra.TensorProduct.algebraMap_apply' E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (r : R),
  (algebraMap R (TensorProduct R A B)) r = 1 ⊗ₜ[R] (algebraMap R B) r

def Algebra.TensorProduct.includeLeft E1 #

{R : Type uR} →
  {S : Type uS} →
    {A : Type uA} →
      {B : Type uB} →
        [inst : CommSemiring R] →
          [inst_1 : Semiring A] →
            [inst_2 : Algebra R A] →
              [inst_3 : Semiring B] →
                [inst_4 : Algebra R B] →
                  [inst_5 : CommSemiring S] →
                    [inst_6 : Algebra S A] → [inst_7 : SMulCommClass R S A] → A →ₐ[S] TensorProduct R A B

The R-algebra morphism A →ₐ[R] A ⊗[R] B sending a to a ⊗ₜ 1.

theorem Algebra.TensorProduct.includeLeft_apply E0 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : CommSemiring S] [inst_6 : Algebra S A]
  (a : A), Algebra.TensorProduct.includeLeft a = a ⊗ₜ[R] 1

theorem Algebra.TensorProduct.toLinearMap_includeLeft E0 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : CommSemiring S] [inst_6 : Algebra S A],
  Algebra.TensorProduct.includeLeft.toLinearMap = (TensorProduct.AlgebraTensorModule.mk R S A B).flip 1

def Algebra.TensorProduct.includeRight E1 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : Semiring B] → [inst_4 : Algebra R B] → B →ₐ[R] TensorProduct R A B

The algebra morphism B →ₐ[R] A ⊗[R] B sending b to 1 ⊗ₜ b.

theorem Algebra.TensorProduct.includeRight_apply E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (b : B), Algebra.TensorProduct.includeRight b = 1 ⊗ₜ[R] b

theorem Algebra.TensorProduct.toLinearMap_includeRight E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B],
  Algebra.TensorProduct.includeRight.toLinearMap = (TensorProduct.AlgebraTensorModule.mk R R A B) 1

theorem Algebra.TensorProduct.includeLeftRingHom_comp_algebraMap E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B],
  Algebra.TensorProduct.includeLeftRingHom.comp (algebraMap R A) =
    Algebra.TensorProduct.includeRight.comp (algebraMap R B)

theorem Algebra.TensorProduct.ext E1 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} {C : Type uC} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : Semiring C] [inst_6 : Algebra R C]
  [inst_7 : CommSemiring S] [inst_8 : Algebra S A] [inst_9 : Algebra R S] [inst_10 : Algebra S C]
  [inst_11 : IsScalarTower R S A] [inst_12 : IsScalarTower R S C] ⦃f g : TensorProduct R A B →ₐ[S] C⦄,
  f.comp Algebra.TensorProduct.includeLeft = g.comp Algebra.TensorProduct.includeLeft →
    (AlgHom.restrictScalars R f).comp Algebra.TensorProduct.includeRight =
        (AlgHom.restrictScalars R g).comp Algebra.TensorProduct.includeRight →
      f = g

A version of TensorProduct.ext for AlgHom.

Using this as the @[ext] lemma instead of Algebra.TensorProduct.ext' allows ext to apply lemmas specific to A →ₐ[S] _ and B →ₐ[R] _; notably this allows recursion into nested tensor products of algebras.

See note [partially-applied ext lemmas].

theorem Algebra.TensorProduct.ext_iff E0 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} {C : Type uC} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : Semiring C] [inst_6 : Algebra R C]
  [inst_7 : CommSemiring S] [inst_8 : Algebra S A] [inst_9 : Algebra R S] [inst_10 : Algebra S C]
  [inst_11 : IsScalarTower R S A] [inst_12 : IsScalarTower R S C] {f g : TensorProduct R A B →ₐ[S] C},
  f = g ↔
    f.comp Algebra.TensorProduct.includeLeft = g.comp Algebra.TensorProduct.includeLeft ∧
      (AlgHom.restrictScalars R f).comp Algebra.TensorProduct.includeRight =
        (AlgHom.restrictScalars R g).comp Algebra.TensorProduct.includeRight

theorem Algebra.TensorProduct.ext' E1 #

∀ {R : Type uR} {S : Type uS} {A : Type uA} {B : Type uB} {C : Type uC} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : Semiring C] [inst_6 : Algebra R C]
  [inst_7 : CommSemiring S] [inst_8 : Algebra S A] [inst_9 : Algebra R S] [inst_10 : Algebra S C]
  [inst_11 : IsScalarTower R S A] [IsScalarTower R S C] {g h : TensorProduct R A B →ₐ[S] C},
  (∀ (a : A) (b : B), g (a ⊗ₜ[R] b) = h (a ⊗ₜ[R] b)) → g = h

theorem Algebra.TensorProduct.ringHom_ext_iff E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {C : Type u_2} [inst_5 : Semiring C] {f g : TensorProduct R A B →+* C},
  f = g ↔
    f.comp Algebra.TensorProduct.includeLeftRingHom = g.comp Algebra.TensorProduct.includeLeftRingHom ∧
      f.comp Algebra.TensorProduct.includeRight.toRingHom = g.comp Algebra.TensorProduct.includeRight.toRingHom

theorem Algebra.TensorProduct.ringHom_ext E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {C : Type u_2} [inst_5 : Semiring C] {f g : TensorProduct R A B →+* C},
  f.comp Algebra.TensorProduct.includeLeftRingHom = g.comp Algebra.TensorProduct.includeLeftRingHom →
    f.comp Algebra.TensorProduct.includeRight.toRingHom = g.comp Algebra.TensorProduct.includeRight.toRingHom → f = g

instance Algebra.TensorProduct.instAddCommGroupWithOne E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommGroupWithOne A] →
          [inst_2 : Module R A] →
            [inst_3 : AddCommMonoidWithOne B] → [inst_4 : Module R B] → AddCommGroupWithOne (TensorProduct R A B)

theorem Algebra.TensorProduct.intCast_def E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : AddCommGroupWithOne A]
  [inst_2 : Module R A] [inst_3 : AddCommMonoidWithOne B] [inst_4 : Module R B] (z : ℤ), ↑z = ↑z ⊗ₜ[R] 1

instance Algebra.TensorProduct.instNonUnitalNonAssocRing E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalNonAssocRing A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonUnitalNonAssocSemiring B] →
                  [inst_6 : Module R B] →
                    [SMulCommClass R B B] → [IsScalarTower R B B] → NonUnitalNonAssocRing (TensorProduct R A B)

instance Algebra.TensorProduct.instNonAssocRing E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonAssocRing A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonAssocSemiring B] →
                  [inst_6 : Module R B] →
                    [SMulCommClass R B B] → [IsScalarTower R B B] → NonAssocRing (TensorProduct R A B)

instance Algebra.TensorProduct.instNonUnitalRing E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalRing A] →
          [inst_2 : Module R A] →
            [SMulCommClass R A A] →
              [IsScalarTower R A A] →
                [inst_5 : NonUnitalSemiring B] →
                  [inst_6 : Module R B] →
                    [SMulCommClass R B B] → [IsScalarTower R B B] → NonUnitalRing (TensorProduct R A B)

instance Algebra.TensorProduct.instCommSemiring E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : CommSemiring A] →
          [inst_2 : Algebra R A] →
            [inst_3 : CommSemiring B] → [inst_4 : Algebra R B] → CommSemiring (TensorProduct R A B)

instance Algebra.TensorProduct.instRing E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : Ring A] →
          [inst_2 : Algebra R A] → [inst_3 : Semiring B] → [inst_4 : Algebra R B] → Ring (TensorProduct R A B)

theorem Algebra.TensorProduct.intCast_def' E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Ring A] [inst_2 : Algebra R A] {B : Type u_2}
  [inst_3 : Ring B] [inst_4 : Algebra R B] (z : ℤ), ↑z = 1 ⊗ₜ[R] ↑z

instance Algebra.TensorProduct.instCommRing E0 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : CommRing A] →
          [inst_2 : Algebra R A] → [inst_3 : CommSemiring B] → [inst_4 : Algebra R B] → CommRing (TensorProduct R A B)

abbrev Algebra.TensorProduct.rightAlgebra E1 #

{R : Type uR} →
  {A : Type uA} →
    {B : Type uB} →
      [inst : CommSemiring R] →
        [inst_1 : Semiring A] →
          [inst_2 : Algebra R A] → [inst_3 : CommSemiring B] → [inst_4 : Algebra R B] → Algebra B (TensorProduct R A B)

S ⊗[R] T has a T-algebra structure. This is not a global instance or else the action of S on S ⊗[R] S would be ambiguous.

theorem Algebra.TensorProduct.algebraMap_eq_includeRight E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : CommSemiring B] [inst_4 : Algebra R B],
  algebraMap B (TensorProduct R A B) = ↑Algebra.TensorProduct.includeRight

instance Algebra.TensorProduct.right_isScalarTower E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : CommSemiring B] [inst_4 : Algebra R B], IsScalarTower R B (TensorProduct R A B)

theorem Algebra.TensorProduct.right_algebraMap_apply E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : CommSemiring B] [inst_4 : Algebra R B] (b : B), (algebraMap B (TensorProduct R A B)) b = 1 ⊗ₜ[R] b

instance Algebra.TensorProduct.instSMulCommClassTensorProduct E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : CommSemiring B] [inst_4 : Algebra R B], SMulCommClass A B (TensorProduct R A B)

instance Algebra.TensorProduct.instSMulCommClassTensorProduct_1 E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : CommSemiring B] [inst_4 : Algebra R B], SMulCommClass B A (TensorProduct R A B)

theorem Algebra.TensorProduct.closure_range_union_range_eq_top E1 #

∀ (R : Type uR) (A : Type uA) (B : Type uB) [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Ring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B],
  Subring.closure (Set.range ⇑Algebra.TensorProduct.includeLeft ∪ Set.range ⇑Algebra.TensorProduct.includeRight) = ⊤

theorem Algebra.TensorProduct.adjoin_one_tmul_image_eq_top E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : CommSemiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (s : Set B),
  Algebra.adjoin R s = ⊤ → Algebra.adjoin A ((fun x ↦ 1 ⊗ₜ[R] x) '' s) = ⊤

If s generates T as an R-algebra, then { 1 ⊗ x | x ∈ s } generates A ⊗[R] T as an A-algebra.

theorem Algebra.TensorProduct.mk_one_injective_of_isScalarTower E1 #

∀ {R : Type uR} {S : Type uS} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (M : Type u_2)
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : Module S M] [IsScalarTower R S M],
  Function.Injective ⇑((TensorProduct.mk R S M) 1)

If M is a B-module that is also an A-module, the canonical map M →ₗ[A] B ⊗[A] M is injective.

theorem Algebra.baseChange_lmul E1 #

∀ {R : Type u_1} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring B] [inst_2 : Algebra R B] {A : Type u_3}
  [inst_3 : CommSemiring A] [inst_4 : Algebra R A] (f : B),
  LinearMap.baseChange A ((Algebra.lmul R B) f) = (Algebra.lmul A (TensorProduct R A B)) (1 ⊗ₜ[R] f)

def TensorProduct.Algebra.moduleAux E0 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      {M : Type u_4} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : Semiring A] →
                [inst_4 : Semiring B] →
                  [inst_5 : Module A M] →
                    [inst_6 : Module B M] →
                      [inst_7 : Algebra R A] →
                        [inst_8 : Algebra R B] →
                          [IsScalarTower R A M] → [IsScalarTower R B M] → TensorProduct R A B →ₗ[R] M →ₗ[R] M

An auxiliary definition, used for constructing the Module (A ⊗[R] B) M in TensorProduct.Algebra.module below.

theorem TensorProduct.Algebra.moduleAux_apply E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M] (a : A)
  (b : B) (m : M), (TensorProduct.Algebra.moduleAux (a ⊗ₜ[R] b)) m = a • b • m

def TensorProduct.Algebra.module E1 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      {M : Type u_4} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : Semiring A] →
                [inst_4 : Semiring B] →
                  [inst_5 : Module A M] →
                    [inst_6 : Module B M] →
                      [inst_7 : Algebra R A] →
                        [inst_8 : Algebra R B] →
                          [IsScalarTower R A M] →
                            [IsScalarTower R B M] → [SMulCommClass A B M] → Module (TensorProduct R A B) M

If M is a representation of two different R-algebras A and B whose actions commute, then it is a representation the R-algebra A ⊗[R] B.

An important example arises from a semiring S; allowing S to act on itself via left and right multiplication, the roles of R, A, B, M are played by ℕ, S, Sᵐᵒᵖ, S. This example is important because a submodule of S as a Module over S ⊗[ℕ] Sᵐᵒᵖ is a two-sided ideal.

NB: This is not an instance because in the case B = A and M = A ⊗[R] A we would have a diamond of smul actions. Furthermore, this would not be a mere definitional diamond but a true mathematical diamond in which A ⊗[R] A had two distinct scalar actions on itself: one from its multiplication, and one from this would-be instance. Arguably we could live with this but in any case the real fix is to address the ambiguity in notation, probably along the lines outlined here: https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/.234773.20base.20change/near/240929258

theorem TensorProduct.Algebra.smul_def E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M]
  [inst_11 : SMulCommClass A B M] (a : A) (b : B) (m : M), a ⊗ₜ[R] b • m = a • b • m

theorem TensorProduct.Algebra.linearMap_comp_mul' E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B],
  Algebra.linearMap R (TensorProduct R A B) ∘ₗ LinearMap.mul' R R =
    TensorProduct.map (Algebra.linearMap R A) (Algebra.linearMap R B)

theorem Submodule.map_range_rTensor_subtype_lid E0 #

∀ {R : Type u_1} {Q : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid Q] [inst_2 : Module R Q]
  {I : Submodule R R}, Submodule.map (↑(TensorProduct.lid R Q)) (LinearMap.rTensor Q I.subtype).range = I • ⊤

theorem TensorProduct.mk_surjective E1 #

∀ (R : Type u_1) (M : Type u_2) (S : Type u_3) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Semiring S] [inst_4 : Algebra R S],
  Function.Surjective ⇑(algebraMap R S) → Function.Surjective ⇑((TensorProduct.mk R S M) 1)

theorem TensorProduct.flip_mk_surjective E1 #

∀ {R : Type u_1} (S : Type u_3) {T : Type u_4} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S]
  [inst_3 : Ring T] [inst_4 : Algebra R T],
  Function.Surjective ⇑(algebraMap R T) → Function.Surjective ⇑((TensorProduct.mk R S T).flip 1)

theorem Algebra.TensorProduct.includeRight_surjective E1 #

∀ {R : Type u_1} {S : Type u_3} (T : Type u_4) [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S]
  [inst_3 : Ring T] [inst_4 : Algebra R T],
  Function.Surjective ⇑(algebraMap R S) → Function.Surjective ⇑Algebra.TensorProduct.includeRight

theorem Algebra.TensorProduct.includeLeft_surjective E1 #

∀ {R : Type u_1} {T : Type u_4} [inst : CommSemiring R] [inst_1 : Ring T] [inst_2 : Algebra R T] (S : Type u_5)
  (A : Type u_6) [inst_3 : CommSemiring S] [inst_4 : Semiring A] [inst_5 : Algebra S A] [inst_6 : Algebra R A],
  Function.Surjective ⇑(algebraMap R T) → Function.Surjective ⇑Algebra.TensorProduct.includeLeft

theorem TensorProduct.Algebra.mul'_comp_tensorTensorTensorComm E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : NonUnitalNonAssocSemiring B] [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : SMulCommClass R A A]
  [inst_6 : SMulCommClass R B B] [inst_7 : IsScalarTower R A A] [inst_8 : IsScalarTower R B B],
  LinearMap.mul' R (TensorProduct R A B) ∘ₗ ↑(TensorProduct.tensorTensorTensorComm R A A B B) =
    TensorProduct.map (LinearMap.mul' R A) (LinearMap.mul' R B)

theorem LinearMap.mul'_tensor E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : NonUnitalNonAssocSemiring B] [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : SMulCommClass R A A]
  [inst_6 : SMulCommClass R B B] [inst_7 : IsScalarTower R A A] [inst_8 : IsScalarTower R B B],
  LinearMap.mul' R (TensorProduct R A B) =
    TensorProduct.map (LinearMap.mul' R A) (LinearMap.mul' R B) ∘ₗ ↑(TensorProduct.tensorTensorTensorComm R A B A B)

theorem LinearMap.mulLeft_tmul E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : NonUnitalNonAssocSemiring B] [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : SMulCommClass R A A]
  [inst_6 : SMulCommClass R B B] [inst_7 : IsScalarTower R A A] [inst_8 : IsScalarTower R B B] (a : A) (b : B),
  LinearMap.mulLeft R (a ⊗ₜ[R] b) = TensorProduct.map (LinearMap.mulLeft R a) (LinearMap.mulLeft R b)

theorem LinearMap.mulRight_tmul E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : NonUnitalNonAssocSemiring B] [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : SMulCommClass R A A]
  [inst_6 : SMulCommClass R B B] [inst_7 : IsScalarTower R A A] [inst_8 : IsScalarTower R B B] (a : A) (b : B),
  LinearMap.mulRight R (a ⊗ₜ[R] b) = TensorProduct.map (LinearMap.mulRight R a) (LinearMap.mulRight R b)

instance TensorProduct.instStarMul E0 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : NonUnitalNonAssocSemiring B] →
            [inst_3 : Module R A] →
              [inst_4 : Module R B] →
                [inst_5 : SMulCommClass R A A] →
                  [inst_6 : SMulCommClass R B B] →
                    [inst_7 : IsScalarTower R A A] →
                      [inst_8 : IsScalarTower R B B] →
                        [inst_9 : StarRing R] →
                          [inst_10 : StarRing A] →
                            [inst_11 : StarRing B] → [StarModule R A] → [StarModule R B] → StarMul (TensorProduct R A B)

instance TensorProduct.instStarRing E0 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : NonUnitalNonAssocSemiring A] →
          [inst_2 : NonUnitalNonAssocSemiring B] →
            [inst_3 : Module R A] →
              [inst_4 : Module R B] →
                [inst_5 : SMulCommClass R A A] →
                  [inst_6 : SMulCommClass R B B] →
                    [inst_7 : IsScalarTower R A A] →
                      [inst_8 : IsScalarTower R B B] →
                        [inst_9 : StarRing R] →
                          [inst_10 : StarRing A] →
                            [inst_11 : StarRing B] →
                              [StarModule R A] → [StarModule R B] → StarRing (TensorProduct R A B)

def AlgHom.liftEquiv E1 #

(R : Type u_4) →
  (S : Type u_5) →
    (A : Type u_6) →
      (B : Type u_7) →
        [inst : CommSemiring R] →
          [inst_1 : CommSemiring S] →
            [inst_2 : Semiring A] →
              [inst_3 : Semiring B] →
                [inst_4 : Algebra R A] →
                  [inst_5 : Algebra S B] →
                    [inst_6 : Algebra R S] →
                      [inst_7 : Algebra R B] → [IsScalarTower R S B] → (A →ₐ[R] B) ≃ (TensorProduct R S A →ₐ[S] B)

Universal property of the base change of algebra.

An algebra map from the base change is equivalent to an algebra map over the base ring.

In categorical terms, this is an adjunction between:

  1. A ↦ S ⊗[R] A, a functor R-Alg ⥤ S-Alg (the base change).
  2. B ↦ B, a functor S-Alg ⥤ R-Alg (the restriction).

theorem AlgHom.liftEquiv_tmul E0 #

∀ {R : Type u_4} {S : Type u_5} {A : Type u_6} {B : Type u_7} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Semiring A] [inst_3 : Semiring B] [inst_4 : Algebra R A] [inst_5 : Algebra S B] [inst_6 : Algebra R S]
  [inst_7 : Algebra R B] [inst_8 : IsScalarTower R S B] (f : A →ₐ[R] B) (s : S) (a : A),
  ((AlgHom.liftEquiv R S A B) f) (s ⊗ₜ[R] a) = s • f a

theorem AlgHom.liftEquiv_symm_apply E0 #

∀ {R : Type u_4} {S : Type u_5} {A : Type u_6} {B : Type u_7} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Semiring A] [inst_3 : Semiring B] [inst_4 : Algebra R A] [inst_5 : Algebra S B] [inst_6 : Algebra R S]
  [inst_7 : Algebra R B] [inst_8 : IsScalarTower R S B] (f : TensorProduct R S A →ₐ[S] B) (a : A),
  ((AlgHom.liftEquiv R S A B).symm f) a = f (1 ⊗ₜ[R] a)

theorem Algebra.TensorProduct.ext_ring_iff E0 #

∀ {R : Type u_4} {S : Type u_5} {A : Type u_6} {B : Type u_7} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Semiring A] [inst_3 : Semiring B] [inst_4 : Algebra R A] [inst_5 : Algebra S B] [inst_6 : Algebra R S]
  [inst_7 : Algebra R B] [inst_8 : IsScalarTower R S B] {f g : TensorProduct R S A →ₐ[S] B},
  f = g ↔
    (AlgHom.restrictScalars R f).comp Algebra.TensorProduct.includeRight =
      (AlgHom.restrictScalars R g).comp Algebra.TensorProduct.includeRight

theorem Algebra.TensorProduct.ext_ring E1 #

∀ {R : Type u_4} {S : Type u_5} {A : Type u_6} {B : Type u_7} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Semiring A] [inst_3 : Semiring B] [inst_4 : Algebra R A] [inst_5 : Algebra S B] [inst_6 : Algebra R S]
  [inst_7 : Algebra R B] [inst_8 : IsScalarTower R S B] {f g : TensorProduct R S A →ₐ[S] B},
  (AlgHom.restrictScalars R f).comp Algebra.TensorProduct.includeRight =
      (AlgHom.restrictScalars R g).comp Algebra.TensorProduct.includeRight →
    f = g