The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.TensorProduct.Basic
59 declarations. Mathlib docs · Source
Universal property of the tensor product
Given any bilinear map f : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂, there is a unique semilinear map
TensorProduct.lift f : TensorProduct R M N →ₛₗ[σ₁₂] P₂ whose composition with the canonical
bilinear map TensorProduct.mk is the given bilinear map f. Uniqueness is shown in the theorem
TensorProduct.lift.unique.
Tags
bilinear, tensor, tensor product
theorem LinearMap.compr₂.congr_simp E1 #
∀ {A : Type u_1} {R : Type u_2} [inst : Semiring A] [inst_1 : CommSemiring R] {M : Type u_5} {Nₗ : Type u_8}
{Pₗ : Type u_9} {Qₗ : Type u_10} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid Nₗ] [inst_4 : AddCommMonoid Pₗ]
[inst_5 : AddCommMonoid Qₗ] [inst_6 : Module R Nₗ] [inst_7 : Module R Pₗ] [inst_8 : Module R Qₗ]
[inst_9 : Module A Pₗ] [inst_10 : SMulCommClass R A Pₗ] [inst_11 : Module R A] [inst_12 : Module A M]
[inst_13 : Module A Qₗ] [inst_14 : SMulCommClass R A Qₗ] [inst_15 : IsScalarTower R A Qₗ]
[inst_16 : IsScalarTower R A Pₗ] (f f_1 : M →ₗ[A] Nₗ →ₗ[R] Pₗ),
f = f_1 → ∀ (g g_1 : Pₗ →ₗ[A] Qₗ), g = g_1 → f.compr₂ g = f_1.compr₂ g_1
theorem LinearMap.compr₂ₛₗ.congr_simp E1 #
∀ {R : Type u_2} [inst : CommSemiring R] {R₂ : Type u_14} {R₃ : Type u_15} {R₄ : Type u_16} {M : Type u_17}
{N : Type u_18} {P : Type u_19} {Q : Type u_20} [inst_1 : CommSemiring R₂] [inst_2 : CommSemiring R₃]
[inst_3 : CommSemiring R₄] [inst_4 : AddCommMonoid M] [inst_5 : AddCommMonoid N] [inst_6 : AddCommMonoid P]
[inst_7 : AddCommMonoid Q] [inst_8 : Module R M] [inst_9 : Module R₂ N] [inst_10 : Module R₃ P]
[inst_11 : Module R₄ Q] {σ₁₃ : R →+* R₃} {σ₁₄ : R →+* R₄} {σ₂₃ : R₂ →+* R₃} {σ₂₄ : R₂ →+* R₄} {σ₃₄ : R₃ →+* R₄}
[inst_12 : RingHomCompTriple σ₂₃ σ₃₄ σ₂₄] [inst_13 : RingHomCompTriple σ₁₃ σ₃₄ σ₁₄] (f f_1 : M →ₛₗ[σ₁₃] N →ₛₗ[σ₂₃] P),
f = f_1 → ∀ (g g_1 : P →ₛₗ[σ₃₄] Q), g = g_1 → f.compr₂ₛₗ g = f_1.compr₂ₛₗ g_1
theorem TensorProduct.mapOfCompatibleSMul.congr_simp E1 #
∀ (R : Type u_1) [inst : CommSemiring R] (A : Type u_13) (S : Type u_14) (M : Type u_15) (N : Type u_16)
[inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N]
[inst_5 : CommSemiring A] [inst_6 : Module A M] [inst_7 : Module A N] [inst_8 : SMulCommClass R A M]
[inst_9 : CommSemiring S] [inst_10 : Module S M] [inst_11 : SMulCommClass R S M] [inst_12 : SMulCommClass A S M]
[inst_13 : TensorProduct.CompatibleSMul R A M N],
TensorProduct.mapOfCompatibleSMul R A S M N = TensorProduct.mapOfCompatibleSMul R A S M N
def TensorProduct.liftAddHom E1 #
{R : Type u_1} →
[inst : CommSemiring R] →
{M : Type u_6} →
{N : Type u_7} →
{P : Type u_8} →
[inst_1 : AddCommMonoid M] →
[inst_2 : AddCommMonoid N] →
[inst_3 : AddCommMonoid P] →
[inst_4 : Module R M] →
[inst_5 : Module R N] →
(f : M →+ N →+ P) →
(∀ (r : R) (m : M) (n : N), (f (r • m)) n = (f m) (r • n)) → TensorProduct R M N →+ P
Lift an R-balanced map to the tensor product.
A map f : M →+ N →+ P additive in both components is R-balanced, or middle linear with respect
to R, if scalar multiplication in either argument is equivalent, f (r • m) n = f m (r • n).
Note that strictly the first action should be a right-action by R, but for now R is commutative
so it doesn't matter.
theorem TensorProduct.liftAddHom_tmul E0 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_6} {N : Type u_7} {P : Type u_8} [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid P] [inst_4 : Module R M] [inst_5 : Module R N] (f : M →+ N →+ P)
(hf : ∀ (r : R) (m : M) (n : N), (f (r • m)) n = (f m) (r • n)) (m : M) (n : N),
(TensorProduct.liftAddHom f hf) (m ⊗ₜ[R] n) = (f m) n
def TensorProduct.liftAux E0 #
{R : Type u_1} →
{R₂ : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring R₂] →
{σ₁₂ : R →+* R₂} →
{M : Type u_6} →
{N : Type u_7} →
{P₂ : Type u_11} →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : AddCommMonoid P₂] →
[inst_5 : Module R M] →
[inst_6 : Module R N] →
[inst_7 : Module R₂ P₂] → (M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂) → TensorProduct R M N →+ P₂
Auxiliary function to constructing a linear map M ⊗ N → P given a bilinear map M → N → P
with the property that its composition with the canonical bilinear map M → N → M ⊗ N is
the given bilinear map M → N → P.
theorem TensorProduct.liftAux_tmul E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (f' : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂) (m : M) (n : N),
(TensorProduct.liftAux f') (m ⊗ₜ[R] n) = (f' m) n
theorem TensorProduct.liftAux.smulₛₗ E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] {f' : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂} (r : R)
(x : TensorProduct R M N), (TensorProduct.liftAux f') (r • x) = σ₁₂ r • (TensorProduct.liftAux f') x
theorem TensorProduct.liftAux.smul E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_6} {N : Type u_7} {P : Type u_8} [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid P] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module R P] {f : M →ₗ[R] N →ₗ[R] P} (r : R) (x : TensorProduct R M N),
(TensorProduct.liftAux f) (r • x) = r • (TensorProduct.liftAux f) x
def TensorProduct.lift E1 #
{R : Type u_1} →
{R₂ : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring R₂] →
{σ₁₂ : R →+* R₂} →
{M : Type u_6} →
{N : Type u_7} →
{P₂ : Type u_11} →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : AddCommMonoid P₂] →
[inst_5 : Module R M] →
[inst_6 : Module R N] →
[inst_7 : Module R₂ P₂] → (M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂) → TensorProduct R M N →ₛₗ[σ₁₂] P₂
Constructing a linear map M ⊗ N → P given a bilinear map M → N → P with the property that
its composition with the canonical bilinear map M → N → M ⊗ N is
the given bilinear map M → N → P.
This works for semilinear maps.
theorem TensorProduct.lift.tmul E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] {f' : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂} (x : M) (y : N),
(TensorProduct.lift f') (x ⊗ₜ[R] y) = (f' x) y
theorem TensorProduct.lift.tmul' E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] {f' : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂} (x : M) (y : N),
(TensorProduct.lift f').toAddHom (x ⊗ₜ[R] y) = (f' x) y
theorem TensorProduct.ext' E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] {g h : TensorProduct R M N →ₛₗ[σ₁₂] P₂},
(∀ (x : M) (y : N), g (x ⊗ₜ[R] y) = h (x ⊗ₜ[R] y)) → g = h
theorem TensorProduct.lift.unique E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] {f' : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂}
{g : TensorProduct R M N →ₛₗ[σ₁₂] P₂}, (∀ (x : M) (y : N), g (x ⊗ₜ[R] y) = (f' x) y) → g = TensorProduct.lift f'
theorem TensorProduct.lift_mk E0 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_6} {N : Type u_7} [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N],
TensorProduct.lift (TensorProduct.mk R M N) = LinearMap.id
theorem TensorProduct.lift_compr₂ₛₗ E1 #
∀ {R : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : CommSemiring R] [inst_1 : CommSemiring R₂]
[inst_2 : CommSemiring R₃] {σ₁₂ : R →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃} {M : Type u_6} {N : Type u_7}
{P₂ : Type u_11} {P₃ : Type u_12} [inst_3 : AddCommMonoid M] [inst_4 : AddCommMonoid N] [inst_5 : AddCommMonoid P₂]
[inst_6 : AddCommMonoid P₃] [inst_7 : Module R M] [inst_8 : Module R N] [inst_9 : Module R₂ P₂]
[inst_10 : Module R₃ P₃] {f' : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂} [inst_11 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃]
(h : P₂ →ₛₗ[σ₂₃] P₃), TensorProduct.lift (f'.compr₂ₛₗ h) = h ∘ₛₗ TensorProduct.lift f'
theorem TensorProduct.lift_compr₂ E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_6} {N : Type u_7} {P : Type u_8} {Q : Type u_9}
[inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid P] [inst_4 : AddCommMonoid Q]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R P] [inst_8 : Module R Q] {f : M →ₗ[R] N →ₗ[R] P}
(g : P →ₗ[R] Q), TensorProduct.lift (f.compr₂ g) = g ∘ₗ TensorProduct.lift f
theorem TensorProduct.lift_mk_compr₂ₛₗ E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (g : TensorProduct R M N →ₛₗ[σ₁₂] P₂),
TensorProduct.lift ((TensorProduct.mk R M N).compr₂ₛₗ g) = g
theorem TensorProduct.lift_mk_compr₂ E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_6} {N : Type u_7} {P : Type u_8} [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid P] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module R P] (f : TensorProduct R M N →ₗ[R] P), TensorProduct.lift ((TensorProduct.mk R M N).compr₂ f) = f
theorem TensorProduct.ext E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] {g h : TensorProduct R M N →ₛₗ[σ₁₂] P₂},
(TensorProduct.mk R M N).compr₂ₛₗ g = (TensorProduct.mk R M N).compr₂ₛₗ h → g = h
This used to be an @[ext] lemma, but it fails very slowly when the ext tactic tries to apply
it in some cases, notably when one wants to show equality of two linear maps. The @[ext]
attribute is now added locally where it is needed. Using this as the @[ext] lemma instead of
TensorProduct.ext' allows ext to apply lemmas specific to M →ₗ _ and N →ₗ _.
See note [partially-applied ext lemmas].
theorem TensorProduct.ext_iff E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] {g h : TensorProduct R M N →ₛₗ[σ₁₂] P₂},
g = h ↔ (TensorProduct.mk R M N).compr₂ₛₗ g = (TensorProduct.mk R M N).compr₂ₛₗ h
def TensorProduct.uncurry E1 #
{R : Type u_1} →
{R₂ : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring R₂] →
(σ₁₂ : R →+* R₂) →
(M : Type u_6) →
(N : Type u_7) →
(P₂ : Type u_11) →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : AddCommMonoid P₂] →
[inst_5 : Module R M] →
[inst_6 : Module R N] →
[inst_7 : Module R₂ P₂] → (M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂) →ₗ[R₂] TensorProduct R M N →ₛₗ[σ₁₂] P₂
Linearly constructing a semilinear map M ⊗ N → P given a bilinear map M → N → P
with the property that its composition with the canonical bilinear map M → N → M ⊗ N is
the given bilinear map M → N → P.
theorem TensorProduct.uncurry_apply E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (f : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂) (m : M) (n : N),
((TensorProduct.uncurry σ₁₂ M N P₂) f) (m ⊗ₜ[R] n) = (f m) n
def TensorProduct.lift.equiv E1 #
{R : Type u_1} →
{R₂ : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring R₂] →
(σ₁₂ : R →+* R₂) →
(M : Type u_6) →
(N : Type u_7) →
(P₂ : Type u_11) →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : AddCommMonoid P₂] →
[inst_5 : Module R M] →
[inst_6 : Module R N] →
[inst_7 : Module R₂ P₂] → (M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂) ≃ₗ[R₂] TensorProduct R M N →ₛₗ[σ₁₂] P₂
A linear equivalence constructing a semilinear map M ⊗ N → P given a bilinear map M → N → P
with the property that its composition with the canonical bilinear map M → N → M ⊗ N is
the given bilinear map M → N → P.
theorem TensorProduct.lift.equiv_apply E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] (σ₁₂ : R →+* R₂) (M : Type u_6)
(N : Type u_7) (P₂ : Type u_11) [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (f : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂) (m : M) (n : N),
((TensorProduct.lift.equiv σ₁₂ M N P₂) f) (m ⊗ₜ[R] n) = (f m) n
theorem TensorProduct.lift.equiv_symm_apply E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] (σ₁₂ : R →+* R₂) (M : Type u_6)
(N : Type u_7) (P₂ : Type u_11) [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (f : TensorProduct R M N →ₛₗ[σ₁₂] P₂) (m : M)
(n : N), (((TensorProduct.lift.equiv σ₁₂ M N P₂).symm f) m) n = f (m ⊗ₜ[R] n)
def TensorProduct.lcurry E1 #
{R : Type u_1} →
{R₂ : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring R₂] →
(σ₁₂ : R →+* R₂) →
(M : Type u_6) →
(N : Type u_7) →
(P₂ : Type u_11) →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : AddCommMonoid P₂] →
[inst_5 : Module R M] →
[inst_6 : Module R N] →
[inst_7 : Module R₂ P₂] → (TensorProduct R M N →ₛₗ[σ₁₂] P₂) →ₗ[R₂] M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂
Given a semilinear map M ⊗ N → P, compose it with the canonical bilinear map
M → N → M ⊗ N to form a bilinear map M → N → P.
theorem TensorProduct.lcurry_apply E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (f : TensorProduct R M N →ₛₗ[σ₁₂] P₂) (m : M)
(n : N), (((TensorProduct.lcurry σ₁₂ M N P₂) f) m) n = f (m ⊗ₜ[R] n)
def TensorProduct.curry E1 #
{R : Type u_1} →
{R₂ : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring R₂] →
{σ₁₂ : R →+* R₂} →
{M : Type u_6} →
{N : Type u_7} →
{P₂ : Type u_11} →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : AddCommMonoid P₂] →
[inst_5 : Module R M] →
[inst_6 : Module R N] →
[inst_7 : Module R₂ P₂] → (TensorProduct R M N →ₛₗ[σ₁₂] P₂) → M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂
Given a semilinear map M ⊗ N → P, compose it with the canonical bilinear map
M → N → M ⊗ N to form a bilinear map M → N → P.
theorem TensorProduct.curry_apply E0 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (f : TensorProduct R M N →ₛₗ[σ₁₂] P₂) (m : M)
(n : N), ((TensorProduct.curry f) m) n = f (m ⊗ₜ[R] n)
theorem TensorProduct.curry_injective E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂], Function.Injective TensorProduct.curry
theorem TensorProduct.ext_threefold E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P : Type u_8} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N]
[inst_4 : AddCommMonoid P] [inst_5 : AddCommMonoid P₂] [inst_6 : Module R M] [inst_7 : Module R N]
[inst_8 : Module R₂ P₂] [inst_9 : Module R P] {g h : TensorProduct R (TensorProduct R M N) P →ₛₗ[σ₁₂] P₂},
(∀ (x : M) (y : N) (z : P), g (x ⊗ₜ[R] y ⊗ₜ[R] z) = h (x ⊗ₜ[R] y ⊗ₜ[R] z)) → g = h
theorem TensorProduct.ext_threefold' E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P : Type u_8} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N]
[inst_4 : AddCommMonoid P] [inst_5 : AddCommMonoid P₂] [inst_6 : Module R M] [inst_7 : Module R N]
[inst_8 : Module R₂ P₂] [inst_9 : Module R P] {g h : TensorProduct R M (TensorProduct R N P) →ₛₗ[σ₁₂] P₂},
(∀ (x : M) (y : N) (z : P), g (x ⊗ₜ[R] (y ⊗ₜ[R] z)) = h (x ⊗ₜ[R] (y ⊗ₜ[R] z))) → g = h
theorem TensorProduct.ext_fourfold E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P : Type u_8} {Q : Type u_9} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N]
[inst_4 : AddCommMonoid P] [inst_5 : AddCommMonoid Q] [inst_6 : AddCommMonoid P₂] [inst_7 : Module R M]
[inst_8 : Module R N] [inst_9 : Module R₂ P₂] [inst_10 : Module R P] [inst_11 : Module R Q]
{g h : TensorProduct R (TensorProduct R (TensorProduct R M N) P) Q →ₛₗ[σ₁₂] P₂},
(∀ (w : M) (x : N) (y : P) (z : Q), g (w ⊗ₜ[R] x ⊗ₜ[R] y ⊗ₜ[R] z) = h (w ⊗ₜ[R] x ⊗ₜ[R] y ⊗ₜ[R] z)) → g = h
theorem TensorProduct.ext_fourfold' E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P : Type u_8} {Q : Type u_9} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N]
[inst_4 : AddCommMonoid P] [inst_5 : AddCommMonoid Q] [inst_6 : AddCommMonoid P₂] [inst_7 : Module R M]
[inst_8 : Module R N] [inst_9 : Module R₂ P₂] [inst_10 : Module R P] [inst_11 : Module R Q]
{φ ψ : TensorProduct R (TensorProduct R M N) (TensorProduct R P Q) →ₛₗ[σ₁₂] P₂},
(∀ (w : M) (x : N) (y : P) (z : Q), φ (w ⊗ₜ[R] x ⊗ₜ[R] (y ⊗ₜ[R] z)) = ψ (w ⊗ₜ[R] x ⊗ₜ[R] (y ⊗ₜ[R] z))) → φ = ψ
Two semilinear maps (M ⊗ N) ⊗ (P ⊗ Q) → P₂ which agree on all elements of the
form (m ⊗ₜ n) ⊗ₜ (p ⊗ₜ q) are equal.
theorem TensorProduct.ext_fourfold'' E1 #
∀ {R : Type u_1} {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} {M : Type u_6}
{N : Type u_7} {P : Type u_8} {Q : Type u_9} {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N]
[inst_4 : AddCommMonoid P] [inst_5 : AddCommMonoid Q] [inst_6 : AddCommMonoid P₂] [inst_7 : Module R M]
[inst_8 : Module R N] [inst_9 : Module R₂ P₂] [inst_10 : Module R P] [inst_11 : Module R Q]
{φ ψ : TensorProduct R (TensorProduct R M (TensorProduct R N P)) Q →ₛₗ[σ₁₂] P₂},
(∀ (w : M) (x : N) (y : P) (z : Q), φ (w ⊗ₜ[R] (x ⊗ₜ[R] y) ⊗ₜ[R] z) = ψ (w ⊗ₜ[R] (x ⊗ₜ[R] y) ⊗ₜ[R] z)) → φ = ψ
Two semilinear maps M ⊗ (N ⊗ P) ⊗ Q → P₂ which agree on all elements of the
form m ⊗ₜ (n ⊗ₜ p) ⊗ₜ q are equal.
def TensorProduct.comm E3 #
(R : Type u_1) →
[inst : CommSemiring R] →
(M : Type u_6) →
(N : Type u_7) →
[inst_1 : AddCommMonoid M] →
[inst_2 : AddCommMonoid N] →
[inst_3 : Module R M] → [inst_4 : Module R N] → TensorProduct R M N ≃ₗ[R] TensorProduct R N M
The tensor product of modules is commutative, up to linear equivalence.
theorem TensorProduct.comm_tmul E0 #
∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_6) (N : Type u_7) [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (m : M) (n : N),
(TensorProduct.comm R M N) (m ⊗ₜ[R] n) = n ⊗ₜ[R] m
theorem TensorProduct.comm_symm E0 #
∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_6) (N : Type u_7) [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N],
(TensorProduct.comm R M N).symm = TensorProduct.comm R N M
theorem TensorProduct.comm_symm_tmul E1 #
∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_6) (N : Type u_7) [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (m : M) (n : N),
(TensorProduct.comm R M N).symm (n ⊗ₜ[R] m) = m ⊗ₜ[R] n
theorem TensorProduct.lift_comp_comm_eq E0 #
∀ (R : Type u_1) {R₂ : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring R₂] {σ₁₂ : R →+* R₂} (M : Type u_6)
(N : Type u_7) {P₂ : Type u_11} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid P₂]
[inst_5 : Module R M] [inst_6 : Module R N] [inst_7 : Module R₂ P₂] (f : M →ₛₗ[σ₁₂] N →ₛₗ[σ₁₂] P₂),
TensorProduct.lift f ∘ₛₗ ↑(TensorProduct.comm R N M) = TensorProduct.lift f.flip
theorem TensorProduct.comm_trans_comm E0 #
∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_6) (N : Type u_7) [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N],
TensorProduct.comm R N M ≪≫ₗ TensorProduct.comm R M N = LinearEquiv.refl R (TensorProduct R N M)
theorem TensorProduct.comm_comp_comm E1 #
∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_6) (N : Type u_7) [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N],
↑(TensorProduct.comm R N M) ∘ₗ ↑(TensorProduct.comm R M N) = LinearMap.id
theorem TensorProduct.comm_comp_comm_assoc E0 #
∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_6) (N : Type u_7) {P : Type u_8} [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid P] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module R P] (f : P →ₗ[R] TensorProduct R M N),
↑(TensorProduct.comm R N M) ∘ₗ ↑(TensorProduct.comm R M N) ∘ₗ f = f
theorem TensorProduct.comm_comm E0 #
∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_6) (N : Type u_7) [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (x : TensorProduct R N M),
(TensorProduct.comm R M N) ((TensorProduct.comm R N M) x) = x
def TensorProduct.mapOfCompatibleSMul E1 #
(R : Type u_1) →
[inst : CommSemiring R] →
(A : Type u_13) →
(S : Type u_14) →
(M : Type u_15) →
(N : Type u_16) →
[inst_1 : AddCommMonoid M] →
[inst_2 : AddCommMonoid N] →
[inst_3 : Module R M] →
[inst_4 : Module R N] →
[inst_5 : CommSemiring A] →
[inst_6 : Module A M] →
[inst_7 : Module A N] →
[SMulCommClass R A M] →
[inst_9 : CommSemiring S] →
[inst_10 : Module S M] →
[inst_11 : SMulCommClass R S M] →
[inst_12 : SMulCommClass A S M] →
[TensorProduct.CompatibleSMul R A M N] →
TensorProduct A M N →ₗ[S] TensorProduct R M N
If M and N are both R- and A-modules and their actions on them commute,
and if the A-action on M ⊗[R] N can switch between the two factors, then there is a
canonical S-linear map from M ⊗[A] N to M ⊗[R] N,
where S is any other ring acting on M and whose action commutes with the A and R-actions.
theorem TensorProduct.mapOfCompatibleSMul_tmul E0 #
∀ (R : Type u_1) [inst : CommSemiring R] (A : Type u_13) (S : Type u_14) (M : Type u_15) (N : Type u_16)
[inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N]
[inst_5 : CommSemiring A] [inst_6 : Module A M] [inst_7 : Module A N] [inst_8 : SMulCommClass R A M]
[inst_9 : CommSemiring S] [inst_10 : Module S M] [inst_11 : SMulCommClass R S M] [inst_12 : SMulCommClass A S M]
[inst_13 : TensorProduct.CompatibleSMul R A M N] (m : M) (n : N),
(TensorProduct.mapOfCompatibleSMul R A S M N) (m ⊗ₜ[A] n) = m ⊗ₜ[R] n
theorem TensorProduct.mapOfCompatibleSMul_surjective E1 #
∀ (R : Type u_1) [inst : CommSemiring R] (A : Type u_13) (S : Type u_14) (M : Type u_15) (N : Type u_16)
[inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N]
[inst_5 : CommSemiring A] [inst_6 : Module A M] [inst_7 : Module A N] [inst_8 : SMulCommClass R A M]
[inst_9 : CommSemiring S] [inst_10 : Module S M] [inst_11 : SMulCommClass R S M] [inst_12 : SMulCommClass A S M]
[inst_13 : TensorProduct.CompatibleSMul R A M N], Function.Surjective ⇑(TensorProduct.mapOfCompatibleSMul R A S M N)
The map mapOfCompatibleSMul is surjective. Its kernel is characterized by the Lemma
TensorProduct.AlgebraTensorModule.ker_mapOfCompatibleSMul.
def TensorProduct.equivOfCompatibleSMul E1 #
(R : Type u_1) →
[inst : CommSemiring R] →
(A : Type u_13) →
(S : Type u_14) →
(M : Type u_15) →
(N : Type u_16) →
[inst_1 : AddCommMonoid M] →
[inst_2 : AddCommMonoid N] →
[inst_3 : Module R M] →
[inst_4 : Module R N] →
[inst_5 : CommSemiring A] →
[inst_6 : Module A M] →
[inst_7 : Module A N] →
[SMulCommClass R A M] →
[inst_9 : CommSemiring S] →
[inst_10 : Module S M] →
[inst_11 : SMulCommClass R S M] →
[inst_12 : SMulCommClass A S M] →
[TensorProduct.CompatibleSMul R A M N] →
[TensorProduct.CompatibleSMul A R M N] →
TensorProduct A M N ≃ₗ[S] TensorProduct R M N
If the R- and A-actions on M and N satisfy CompatibleSMul both ways,
then M ⊗[A] N is canonically isomorphic to M ⊗[R] N as S-modules,
where S is any other ring acting on M and whose action commutes with the A and R-actions.
def TensorProduct.Neg.aux E1 #
(R : Type u_1) →
[inst : CommSemiring R] →
{M : Type u_2} →
{N : Type u_3} →
[inst_1 : AddCommGroup M] →
[inst_2 : AddCommMonoid N] →
[inst_3 : Module R M] → [inst_4 : Module R N] → TensorProduct R M N →ₗ[R] TensorProduct R M N
Auxiliary function to defining negation multiplication on tensor product.
instance TensorProduct.neg E0 #
{R : Type u_1} →
[inst : CommSemiring R] →
{M : Type u_2} →
{N : Type u_3} →
[inst_1 : AddCommGroup M] →
[inst_2 : AddCommMonoid N] → [inst_3 : Module R M] → [inst_4 : Module R N] → Neg (TensorProduct R M N)
theorem TensorProduct.neg_add_cancel E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommGroup M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (x : TensorProduct R M N), -x + x = 0
instance TensorProduct.addCommGroup E0 #
{R : Type u_1} →
[inst : CommSemiring R] →
{M : Type u_2} →
{N : Type u_3} →
[inst_1 : AddCommGroup M] →
[inst_2 : AddCommMonoid N] →
[inst_3 : Module R M] → [inst_4 : Module R N] → AddCommGroup (TensorProduct R M N)
theorem TensorProduct.neg_tmul E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommGroup M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (m : M) (n : N), (-m) ⊗ₜ[R] n = -m ⊗ₜ[R] n
theorem TensorProduct.tmul_neg E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {P : Type u_4} [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup P] [inst_3 : Module R M] [inst_4 : Module R P] (m : M) (p : P), m ⊗ₜ[R] (-p) = -m ⊗ₜ[R] p
theorem TensorProduct.tmul_sub E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {P : Type u_4} [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup P] [inst_3 : Module R M] [inst_4 : Module R P] (m : M) (p₁ p₂ : P),
m ⊗ₜ[R] (p₁ - p₂) = m ⊗ₜ[R] p₁ - m ⊗ₜ[R] p₂
theorem TensorProduct.sub_tmul E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommGroup M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (m₁ m₂ : M) (n : N),
(m₁ - m₂) ⊗ₜ[R] n = m₁ ⊗ₜ[R] n - m₂ ⊗ₜ[R] n
instance TensorProduct.CompatibleSMul.int E0 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {P : Type u_4} [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup P] [inst_3 : Module R M] [inst_4 : Module R P], TensorProduct.CompatibleSMul R ℤ M P
While the tensor product will automatically inherit a ℤ-module structure from
AddCommGroup.toIntModule, that structure won't be compatible with lemmas like tmul_smul unless
we use a ℤ-Module instance provided by TensorProduct.left_module.
When R is a Ring we get the required TensorProduct.compatible_smul instance through
IsScalarTower, but when it is only a Semiring we need to build it from scratch.
The instance diamond in compatible_smul doesn't matter because it's in Prop.
instance TensorProduct.CompatibleSMul.unit E0 #
∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommGroup M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {S : Type u_6} [inst_5 : Monoid S]
[inst_6 : DistribMulAction S M] [inst_7 : DistribMulAction S N] [TensorProduct.CompatibleSMul R S M N],
TensorProduct.CompatibleSMul R Sˣ M N