The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.PiTensorProduct.Basic
121 declarations. Mathlib docs · Source
Tensor product of an indexed family of modules over commutative semirings
We define the tensor product of an indexed family s : ι → Type* of modules over commutative
semirings. We denote this space by ⨂[R] i, s i and define it as FreeAddMonoid (R × Π i, s i)
quotiented by the appropriate equivalence relation. The treatment follows very closely that of the
binary tensor product in Mathlib/LinearAlgebra/TensorProduct/Basic.lean.
Main definitions
PiTensorProduct R swithRa commutative semiring ands : ι → Type*is the tensor product of all thes i's. This is denoted by⨂[R] i, s i.tprod R fwithf : Π i, s iis the tensor product of the vectorsf iover alli : ι. This is bundled as a multilinear map fromΠ i, s ito⨂[R] i, s i.liftAddHomconstructs anAddMonoidHomfrom(⨂[R] i, s i)to some spaceFfrom a functionφ : (R × Π i, s i) → Fwith the appropriate properties.lift φwithφ : (Π i, s i) →ₘₛₗ[σ] Eis the corresponding linear map(⨂[R] i, s i) →ₛₗ[σ] E. This is bundled as a linear equivalence.PiTensorProduct.reindex ere-indexes the components of⨂[R] i : ι, s ialonge : ι ≃ ι₂.PiTensorProduct.tmulEquivequivalence between aTensorProductofPiTensorProducts and a singlePiTensorProduct.
Notation
⨂[R] i, s iis defined as localized notation in scopeTensorProduct.⨂ₜ[R] i, f iwithf : ∀ i, s iis defined globally as the tensor product of all thef i's.
Implementation notes
- We define it via
FreeAddMonoid (R × Π i, s i)with theRrepresenting a "hidden" tensor factor, rather thanFreeAddMonoid (Π i, s i)to ensure that, ifιis an empty type, the space is isomorphic to the base ringR. - We have not restricted the index type
ιto be aFintype, as nothing we do here strictly requires it. However, problems may arise in the case whereιis infinite; use at your own caution. - Instead of requiring
DecidableEq ιas an argument toPiTensorProductitself, we include it as an argument in the constructors of the relation. A decidability instance still has to come from somewhere due to the use ofFunction.update, but this hides it from the downstream user. See the implementation notes forMultilinearMapfor an extended discussion of this choice.
TODO
- Define tensor powers, symmetric subspace, etc.
- API for the various ways
ιcan be split into subsets; connect this with the binary tensor product. - Include connection with holors.
- Port more of the API from the binary tensor product over to this case.
Tags
multilinear, tensor, tensor product
theorem MultilinearMap.constOfIsEmpty.congr_simp E1 #
∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (σ : R →+* S) {ι : Type u_4}
(M : ι → Type u_5) {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
[inst_4 : AddCommMonoid N] [inst_5 : Module S N] [inst_6 : IsEmpty ι] (m m_1 : N),
m = m_1 → MultilinearMap.constOfIsEmpty σ M m = MultilinearMap.constOfIsEmpty σ M m_1
theorem AddCon.lift.congr_simp E1 #
∀ {M : Type u_1} {P : Type u_3} [inst : AddZeroClass M] [inst_1 : AddZeroClass P] (c : AddCon M) (f f_1 : M →+ P)
(e_f : f = f_1) (H : c ≤ AddCon.ker f), c.lift f H = c.lift f_1 ⋯
theorem MultilinearMap.piLinearMap.congr_simp E1 #
∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : CommSemiring R₂]
[inst_2 : CommSemiring R₃] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃}
[inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4} {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_8}
[inst_4 : (i : ι) → AddCommMonoid (M₁ i)] [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃]
[inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃],
MultilinearMap.piLinearMap = MultilinearMap.piLinearMap
theorem PiTensorProduct.subsingletonEquiv.congr_simp E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] [inst_3 : Subsingleton ι] (i₀ : ι),
PiTensorProduct.subsingletonEquiv i₀ = PiTensorProduct.subsingletonEquiv i₀
inductive PiTensorProduct.Eqv E1 #
{ι : Type u_1} →
(R : Type u_4) →
[inst : CommSemiring R] →
(s : ι → Type u_8) →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[(i : ι) → Module R (s i)] → FreeAddMonoid (R × ((i : ι) → s i)) → FreeAddMonoid (R × ((i : ι) → s i)) → Prop
The relation on FreeAddMonoid (R × Π i, s i) that generates a congruence whose quotient is
the tensor product.
ctor PiTensorProduct.Eqv.of_zero E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (r : R) (f : (i : ι) → s i) (i : ι),
f i = 0 → PiTensorProduct.Eqv R s (FreeAddMonoid.of (r, f)) 0
ctor PiTensorProduct.Eqv.of_zero_scalar E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (f : (i : ι) → s i), PiTensorProduct.Eqv R s (FreeAddMonoid.of (0, f)) 0
ctor PiTensorProduct.Eqv.of_add E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (x : DecidableEq ι) (r : R) (f : (i : ι) → s i) (i : ι) (m₁ m₂ : s i),
PiTensorProduct.Eqv R s (FreeAddMonoid.of (r, Function.update f i m₁) + FreeAddMonoid.of (r, Function.update f i m₂))
(FreeAddMonoid.of (r, Function.update f i (m₁ + m₂)))
ctor PiTensorProduct.Eqv.of_add_scalar E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (r r' : R) (f : (i : ι) → s i),
PiTensorProduct.Eqv R s (FreeAddMonoid.of (r, f) + FreeAddMonoid.of (r', f)) (FreeAddMonoid.of (r + r', f))
ctor PiTensorProduct.Eqv.of_smul E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (x : DecidableEq ι) (r : R) (f : (i : ι) → s i) (i : ι) (r' : R),
PiTensorProduct.Eqv R s (FreeAddMonoid.of (r, Function.update f i (r' • f i))) (FreeAddMonoid.of (r' * r, f))
ctor PiTensorProduct.Eqv.add_comm E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (x y : FreeAddMonoid (R × ((i : ι) → s i))),
PiTensorProduct.Eqv R s (x + y) (y + x)
def PiTensorProduct E3 #
{ι : Type u_1} →
(R : Type u_4) →
[inst : CommSemiring R] →
(s : ι → Type u_8) →
[inst_1 : (i : ι) → AddCommMonoid (s i)] → [(i : ι) → Module R (s i)] → Type (max (max u_1 u_4) u_8)
PiTensorProduct R s with R a commutative semiring and s : ι → Type* is the tensor
product of all the s i's. This is denoted by ⨂[R] i, s i.
def TensorProduct.«term⨂[_]_,_» E1 #
Lean.ParserDescr
This enables the notation ⨂[R] i : ι, s i for the pi tensor product PiTensorProduct,
given an indexed family of types s : ι → Type*.
instance PiTensorProduct.instAddCommMonoid E0 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
(s : ι → Type u_8) →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → AddCommMonoid (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.instInhabited E0 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
(s : ι → Type u_8) →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → Inhabited (PiTensorProduct R fun i ↦ s i)
def PiTensorProduct.tprodCoeff E1 #
{ι : Type u_1} →
(R : Type u_4) →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → R → ((i : ι) → s i) → PiTensorProduct R fun i ↦ s i
tprodCoeff R r f with r : R and f : Π i, s i is the tensor product of the vectors f i
over all i : ι, multiplied by the coefficient r. Note that this is meant as an auxiliary
definition for this file alone, and that one should use tprod defined below for most purposes.
theorem PiTensorProduct.zero_tprodCoeff E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (f : (i : ι) → s i), PiTensorProduct.tprodCoeff R 0 f = 0
theorem PiTensorProduct.zero_tprodCoeff' E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (z : R) (f : (i : ι) → s i) (i : ι),
f i = 0 → PiTensorProduct.tprodCoeff R z f = 0
theorem PiTensorProduct.add_tprodCoeff E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] [inst_3 : DecidableEq ι] (z : R) (f : (i : ι) → s i) (i : ι) (m₁ m₂ : s i),
PiTensorProduct.tprodCoeff R z (Function.update f i m₁) + PiTensorProduct.tprodCoeff R z (Function.update f i m₂) =
PiTensorProduct.tprodCoeff R z (Function.update f i (m₁ + m₂))
theorem PiTensorProduct.add_tprodCoeff' E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (z₁ z₂ : R) (f : (i : ι) → s i),
PiTensorProduct.tprodCoeff R z₁ f + PiTensorProduct.tprodCoeff R z₂ f = PiTensorProduct.tprodCoeff R (z₁ + z₂) f
theorem PiTensorProduct.smul_tprodCoeff_aux E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] [inst_3 : DecidableEq ι] (z : R) (f : (i : ι) → s i) (i : ι) (r : R),
PiTensorProduct.tprodCoeff R z (Function.update f i (r • f i)) = PiTensorProduct.tprodCoeff R (r * z) f
theorem PiTensorProduct.smul_tprodCoeff E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₁ : Type u_6} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : DecidableEq ι] (z : R)
(f : (i : ι) → s i) (i : ι) (r : R₁) [inst_4 : SMul R₁ R] [IsScalarTower R₁ R R] [inst_6 : SMul R₁ (s i)]
[IsScalarTower R₁ R (s i)],
PiTensorProduct.tprodCoeff R z (Function.update f i (r • f i)) = PiTensorProduct.tprodCoeff R (r • z) f
def PiTensorProduct.liftAddHom E3 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
{F : Type u_11} →
[inst_3 : AddCommMonoid F] →
(φ : R × ((i : ι) → s i) → F) →
(∀ (r : R) (f : (i : ι) → s i) (i : ι), f i = 0 → φ (r, f) = 0) →
(∀ (f : (i : ι) → s i), φ (0, f) = 0) →
(∀ [inst : DecidableEq ι] (r : R) (f : (i : ι) → s i) (i : ι) (m₁ m₂ : s i),
φ (r, Function.update f i m₁) + φ (r, Function.update f i m₂) =
φ (r, Function.update f i (m₁ + m₂))) →
(∀ (r r' : R) (f : (i : ι) → s i), φ (r, f) + φ (r', f) = φ (r + r', f)) →
(∀ [inst_4 : DecidableEq ι] (r : R) (f : (i : ι) → s i) (i : ι) (r' : R),
φ (r, Function.update f i (r' • f i)) = φ (r' * r, f)) →
(PiTensorProduct R fun i ↦ s i) →+ F
Construct an AddMonoidHom from (⨂[R] i, s i) to some space F from a function
φ : (R × Π i, s i) → F with the appropriate properties.
theorem PiTensorProduct.induction_on' E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] {motive : (PiTensorProduct R fun i ↦ s i) → Prop}
(z : PiTensorProduct R fun i ↦ s i),
(∀ (r : R) (f : (i : ι) → s i), motive (PiTensorProduct.tprodCoeff R r f)) →
(∀ (x y : PiTensorProduct R fun i ↦ s i), motive x → motive y → motive (x + y)) → motive z
Induct using tprodCoeff
instance PiTensorProduct.hasSMul' E0 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₁ : Type u_6} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
[inst_3 : Monoid R₁] →
[inst_4 : DistribMulAction R₁ R] → [SMulCommClass R₁ R R] → SMul R₁ (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.instSMul E0 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → SMul R (PiTensorProduct R fun i ↦ s i)
theorem PiTensorProduct.smul_tprodCoeff' E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₁ : Type u_6} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : Monoid R₁]
[inst_4 : DistribMulAction R₁ R] [inst_5 : SMulCommClass R₁ R R] (r : R₁) (z : R) (f : (i : ι) → s i),
r • PiTensorProduct.tprodCoeff R z f = PiTensorProduct.tprodCoeff R (r • z) f
theorem PiTensorProduct.smul_add E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₁ : Type u_6} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : Monoid R₁]
[inst_4 : DistribMulAction R₁ R] [inst_5 : SMulCommClass R₁ R R] (r : R₁) (x y : PiTensorProduct R fun i ↦ s i),
r • (x + y) = r • x + r • y
instance PiTensorProduct.distribMulAction' E0 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₁ : Type u_6} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
[inst_3 : Monoid R₁] →
[inst_4 : DistribMulAction R₁ R] →
[SMulCommClass R₁ R R] → DistribMulAction R₁ (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.smulCommClass' E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₁ : Type u_6} {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : Monoid R₁]
[inst_4 : DistribMulAction R₁ R] [inst_5 : SMulCommClass R₁ R R] [inst_6 : Monoid R₂] [inst_7 : DistribMulAction R₂ R]
[inst_8 : SMulCommClass R₂ R R] [SMulCommClass R₁ R₂ R], SMulCommClass R₁ R₂ (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.isScalarTower' E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₁ : Type u_6} {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : Monoid R₁]
[inst_4 : DistribMulAction R₁ R] [inst_5 : SMulCommClass R₁ R R] [inst_6 : Monoid R₂] [inst_7 : DistribMulAction R₂ R]
[inst_8 : SMulCommClass R₂ R R] [inst_9 : SMul R₁ R₂] [IsScalarTower R₁ R₂ R],
IsScalarTower R₁ R₂ (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.module' E0 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₁ : Type u_6} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
[inst_3 : Semiring R₁] →
[inst_4 : Module R₁ R] → [SMulCommClass R₁ R R] → Module R₁ (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.instModule E0 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → Module R (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.instSMulCommClass E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], SMulCommClass R R (PiTensorProduct R fun i ↦ s i)
instance PiTensorProduct.instIsScalarTower E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], IsScalarTower R R (PiTensorProduct R fun i ↦ s i)
def PiTensorProduct.tprod E1 #
{ι : Type u_1} →
(R : Type u_4) →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → (Π (i : ι), s i) →ₘₗ[R] PiTensorProduct R fun i ↦ s i
The canonical (Π i, s i) →ₘₗ[R] ⨂[R] i, s i.
tprod R fun i => f i has notation ⨂ₜ[R] i, f i.
def PiTensorProduct.«term⨂ₜ[_]_,_» E1 #
Lean.ParserDescr
The canonical (Π i, s i) →ₘₗ[R] ⨂[R] i, s i.
tprod R fun i => f i has notation ⨂ₜ[R] i, f i.
theorem PiTensorProduct.tprod_eq_tprodCoeff_one E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], ⇑(PiTensorProduct.tprod R) = PiTensorProduct.tprodCoeff R 1
theorem PiTensorProduct.tprodCoeff_eq_smul_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (z : R) (f : (i : ι) → s i),
PiTensorProduct.tprodCoeff R z f = z • (PiTensorProduct.tprod R) f
theorem FreeAddMonoid.toPiTensorProduct E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (p : FreeAddMonoid (R × ((i : ι) → s i))),
↑p = (List.map (fun x ↦ x.1 • ⨂ₜ[R] (i : ι), x.2 i) p.toList).sum
The image of an element p of FreeAddMonoid (R × Π i, s i) in the PiTensorProduct is
equal to the sum of a • ⨂ₜ[R] i, m i over all the entries (a, m) of p.
def PiTensorProduct.lifts E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
(PiTensorProduct R fun i ↦ s i) → Set (FreeAddMonoid (R × ((i : ι) → s i)))
The set of lifts of an element x of ⨂[R] i, s i in FreeAddMonoid (R × Π i, s i).
theorem PiTensorProduct.mem_lifts_iff E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (x : PiTensorProduct R fun i ↦ s i) (p : FreeAddMonoid (R × ((i : ι) → s i))),
p ∈ x.lifts ↔ (List.map (fun x ↦ x.1 • ⨂ₜ[R] (i : ι), x.2 i) p.toList).sum = x
An element p of FreeAddMonoid (R × Π i, s i) lifts an element x of ⨂[R] i, s i
if and only if x is equal to the sum of a • ⨂ₜ[R] i, m i over all the entries
(a, m) of p.
theorem PiTensorProduct.nonempty_lifts E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (x : PiTensorProduct R fun i ↦ s i), x.lifts.Nonempty
Every element of ⨂[R] i, s i has a lift in FreeAddMonoid (R × Π i, s i).
instance PiTensorProduct.instNonemptyElemFreeAddMonoidProdForallLifts E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (x : PiTensorProduct R fun i ↦ s i), Nonempty ↑x.lifts
theorem PiTensorProduct.lifts_zero E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], 0 ∈ PiTensorProduct.lifts 0
The empty list lifts the element 0 of ⨂[R] i, s i.
theorem PiTensorProduct.lifts_add E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] {x y : PiTensorProduct R fun i ↦ s i} {p q : FreeAddMonoid (R × ((i : ι) → s i))},
p ∈ x.lifts → q ∈ y.lifts → p + q ∈ (x + y).lifts
If elements p,q of FreeAddMonoid (R × Π i, s i) lift elements x,y of ⨂[R] i, s i
respectively, then p + q lifts x + y.
theorem PiTensorProduct.lifts_smul E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] {x : PiTensorProduct R fun i ↦ s i} {p : FreeAddMonoid (R × ((i : ι) → s i))},
p ∈ x.lifts → ∀ (a : R), (FreeAddMonoid.map fun y ↦ (a * y.1, y.2)) p ∈ (a • x).lifts
If an element p of FreeAddMonoid (R × Π i, s i) lifts an element x of ⨂[R] i, s i,
and if a is an element of R, then the list obtained by multiplying the first entry of each
element of p by a lifts a • x.
theorem PiTensorProduct.induction_on E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] {motive : (PiTensorProduct R fun i ↦ s i) → Prop}
(z : PiTensorProduct R fun i ↦ s i),
(∀ (r : R) (f : (i : ι) → s i), motive (r • (PiTensorProduct.tprod R) f)) →
(∀ (x y : PiTensorProduct R fun i ↦ s i), motive x → motive y → motive (x + y)) → motive z
Induct using scaled versions of PiTensorProduct.tprod.
theorem PiTensorProduct.ext_iff E0 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] {φ₁ φ₂ : (PiTensorProduct R fun i ↦ s i) →ₛₗ[σ] E},
φ₁ = φ₂ ↔ φ₁.compMultilinearMap (PiTensorProduct.tprod R) = φ₂.compMultilinearMap (PiTensorProduct.tprod R)
theorem PiTensorProduct.ext E1 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] {φ₁ φ₂ : (PiTensorProduct R fun i ↦ s i) →ₛₗ[σ] E},
φ₁.compMultilinearMap (PiTensorProduct.tprod R) = φ₂.compMultilinearMap (PiTensorProduct.tprod R) → φ₁ = φ₂
theorem PiTensorProduct.span_tprod_eq_top E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], Submodule.span R (Set.range ⇑(PiTensorProduct.tprod R)) = ⊤
The pure tensors (i.e. the elements of the image of PiTensorProduct.tprod) span
the tensor product.
def PiTensorProduct.liftAux E0 #
{ι : Type u_1} →
{R : Type u_4} →
{S : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring S] →
{σ : R →+* S} →
{s : ι → Type u_8} →
[inst_2 : (i : ι) → AddCommMonoid (s i)] →
[inst_3 : (i : ι) → Module R (s i)] →
{E : Type u_10} →
[inst_4 : AddCommMonoid E] →
[inst_5 : Module S E] → ((Π (i : ι), s i) →ₘₛₗ[σ] E) → (PiTensorProduct R fun i ↦ s i) →+ E
Auxiliary function to constructing a linear map (⨂[R] i, s i) → E given a
(Π i, s i) →ₘₛₗ[σ] E with the property that its composition with the canonical
(Π i, s i) →ₘₗ[R] ⨂[R] i, s i is the given multilinear map.
theorem PiTensorProduct.liftAux_tprod E1 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] (φ : (Π (i : ι), s i) →ₘₛₗ[σ] E) (f : (i : ι) → s i),
(PiTensorProduct.liftAux φ) ((PiTensorProduct.tprod R) f) = φ f
theorem PiTensorProduct.liftAux_tprodCoeff E1 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] (φ : (Π (i : ι), s i) →ₘₛₗ[σ] E) (z : R) (f : (i : ι) → s i),
(PiTensorProduct.liftAux φ) (PiTensorProduct.tprodCoeff R z f) = σ z • φ f
theorem PiTensorProduct.liftAux.smul E1 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] {φ : (Π (i : ι), s i) →ₘₛₗ[σ] E} (r : R)
(x : PiTensorProduct R fun i ↦ s i), (PiTensorProduct.liftAux φ) (r • x) = σ r • (PiTensorProduct.liftAux φ) x
def PiTensorProduct.lift E1 #
{ι : Type u_1} →
{R : Type u_4} →
{S : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring S] →
{σ : R →+* S} →
{s : ι → Type u_8} →
[inst_2 : (i : ι) → AddCommMonoid (s i)] →
[inst_3 : (i : ι) → Module R (s i)] →
{E : Type u_10} →
[inst_4 : AddCommMonoid E] →
[inst_5 : Module S E] →
((Π (i : ι), s i) →ₘₛₗ[σ] E) ≃ₗ[S] (PiTensorProduct R fun i ↦ s i) →ₛₗ[σ] E
Constructing a semilinear map (⨂[R] i, s i) → E given a (Π i, s i) →ₘₛₗ[σ] E with
the property that its composition with the canonical (Π i, s i) →ₘₗ[R] E
is the given multilinear map φ.
theorem PiTensorProduct.lift.tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] {φ : (Π (i : ι), s i) →ₘₛₗ[σ] E} (f : (i : ι) → s i),
(PiTensorProduct.lift φ) ((PiTensorProduct.tprod R) f) = φ f
theorem PiTensorProduct.lift.unique' E1 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] {φ : (Π (i : ι), s i) →ₘₛₗ[σ] E}
{φ' : (PiTensorProduct R fun i ↦ s i) →ₛₗ[σ] E},
φ'.compMultilinearMap (PiTensorProduct.tprod R) = φ → φ' = PiTensorProduct.lift φ
theorem PiTensorProduct.lift.unique E1 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] {φ : (Π (i : ι), s i) →ₘₛₗ[σ] E}
{φ' : (PiTensorProduct R fun i ↦ s i) →ₛₗ[σ] E},
(∀ (f : (i : ι) → s i), φ' ((PiTensorProduct.tprod R) f) = φ f) → φ' = PiTensorProduct.lift φ
theorem PiTensorProduct.lift_symm E0 #
∀ {ι : Type u_1} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
{s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)] {E : Type u_10}
[inst_4 : AddCommMonoid E] [inst_5 : Module S E] (φ' : (PiTensorProduct R fun i ↦ s i) →ₛₗ[σ] E),
PiTensorProduct.lift.symm φ' = φ'.compMultilinearMap (PiTensorProduct.tprod R)
theorem PiTensorProduct.lift_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], PiTensorProduct.lift (PiTensorProduct.tprod R) = LinearMap.id
def PiTensorProduct.map E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₂ : Type u_7} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
[inst_3 : CommSemiring R₂] →
{σ₁₂ : R →+* R₂} →
{t : ι → Type u_13} →
[inst_4 : (i : ι) → AddCommMonoid (t i)] →
[inst_5 : (i : ι) → Module R₂ (t i)] →
((i : ι) → s i →ₛₗ[σ₁₂] t i) →
(PiTensorProduct R fun i ↦ s i) →ₛₗ[σ₁₂] PiTensorProduct R₂ fun i ↦ t i
Let sᵢ and tᵢ be families of R- and R₂-modules, respectively.
Let f be a family of σ₁₂-semilinear maps between sᵢ and tᵢ, i.e. f : Πᵢ sᵢ → tᵢ,
then there is an induced map ⨂ᵢ sᵢ → ⨂ᵢ tᵢ by ⨂ aᵢ ↦ ⨂ fᵢ aᵢ.
This is TensorProduct.map for an arbitrary family of modules.
theorem PiTensorProduct.map_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {t : ι → Type u_13} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i) (x : (i : ι) → s i),
(PiTensorProduct.map f) ((PiTensorProduct.tprod R) x) = ⨂ₜ[R₂] (i : ι), (f i) (x i)
theorem PiTensorProduct.map_range_eq_span_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {t : ι → Type u_13} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i) [inst_6 : RingHomSurjective σ₁₂],
(PiTensorProduct.map f).range = Submodule.span R₂ {t_1 | ∃ m, (⨂ₜ[R₂] (i : ι), (f i) (m i)) = t_1}
def PiTensorProduct.mapIncl E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
(p : (i : ι) → Submodule R (s i)) → (PiTensorProduct R fun i ↦ ↥(p i)) →ₗ[R] PiTensorProduct R fun i ↦ s i
Given submodules p i ⊆ s i, this is the natural map: ⨂[R] i, p i → ⨂[R] i, s i.
This is TensorProduct.mapIncl for an arbitrary family of modules.
theorem PiTensorProduct.map_comp E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] {R₃ : Type u_12}
[inst_3 : CommSemiring R₂] [inst_4 : CommSemiring R₃] {σ₁₂ : R →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃}
[inst_5 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {t : ι → Type u_13} {t' : ι → Type u_14}
[inst_6 : (i : ι) → AddCommMonoid (t i)] [inst_7 : (i : ι) → Module R₂ (t i)]
[inst_8 : (i : ι) → AddCommMonoid (t' i)] [inst_9 : (i : ι) → Module R₃ (t' i)] (g : (i : ι) → t i →ₛₗ[σ₂₃] t' i)
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i),
(PiTensorProduct.map fun i ↦ g i ∘ₛₗ f i) = PiTensorProduct.map g ∘ₛₗ PiTensorProduct.map f
theorem PiTensorProduct.lift_comp_map E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] {R₃ : Type u_12}
[inst_3 : CommSemiring R₂] [inst_4 : CommSemiring R₃] {σ₁₂ : R →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃}
[inst_5 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {t : ι → Type u_13} {N₃ : Type u_15} [inst_6 : (i : ι) → AddCommMonoid (t i)]
[inst_7 : (i : ι) → Module R₂ (t i)] [inst_8 : AddCommMonoid N₃] [inst_9 : Module R₃ N₃]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i) (h : (Π (i : ι), t i) →ₘₛₗ[σ₂₃] N₃),
PiTensorProduct.lift h ∘ₛₗ PiTensorProduct.map f = PiTensorProduct.lift (h.compLinearMap f)
theorem PiTensorProduct.map_id E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], (PiTensorProduct.map fun i ↦ LinearMap.id) = LinearMap.id
theorem PiTensorProduct.map_one E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)], (PiTensorProduct.map fun i ↦ 1) = 1
theorem PiTensorProduct.map_mul E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (f₁ f₂ : (i : ι) → s i →ₗ[R] s i),
(PiTensorProduct.map fun i ↦ f₁ i * f₂ i) = PiTensorProduct.map f₁ * PiTensorProduct.map f₂
def PiTensorProduct.mapMonoidHom E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
((i : ι) → s i →ₗ[R] s i) →* (PiTensorProduct R fun i ↦ s i) →ₗ[R] PiTensorProduct R fun i ↦ s i
Upgrading PiTensorProduct.map to a MonoidHom when s = t.
theorem PiTensorProduct.mapMonoidHom_apply E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (f : (i : ι) → s i →ₗ[R] s i),
PiTensorProduct.mapMonoidHom f = PiTensorProduct.map f
theorem PiTensorProduct.map_pow E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] (f : (i : ι) → s i →ₗ[R] s i) (n : ℕ),
PiTensorProduct.map (f ^ n) = PiTensorProduct.map f ^ n
theorem PiTensorProduct.map_update_add E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {t : ι → Type u_13} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i) [inst_6 : DecidableEq ι] (i : ι) (u v : s i →ₛₗ[σ₁₂] t i),
PiTensorProduct.map (Function.update f i (u + v)) =
PiTensorProduct.map (Function.update f i u) + PiTensorProduct.map (Function.update f i v)
theorem PiTensorProduct.map_update_smul E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {t : ι → Type u_13} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i) [inst_6 : DecidableEq ι] (i : ι) (c : R₂) (u : s i →ₛₗ[σ₁₂] t i),
PiTensorProduct.map (Function.update f i (c • u)) = c • PiTensorProduct.map (Function.update f i u)
def PiTensorProduct.mapMultilinear E1 #
{ι : Type u_1} →
(R : Type u_4) →
[inst : CommSemiring R] →
{R₂ : Type u_7} →
(s : ι → Type u_8) →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
[inst_3 : CommSemiring R₂] →
{σ₁₂ : R →+* R₂} →
(t : ι → Type u_13) →
[inst_4 : (i : ι) → AddCommMonoid (t i)] →
[inst_5 : (i : ι) → Module R₂ (t i)] →
(Π (i : ι), s i →ₛₗ[σ₁₂] t i) →ₘₗ[R₂]
(PiTensorProduct R fun i ↦ s i) →ₛₗ[σ₁₂] PiTensorProduct R₂ fun i ↦ t i
The tensor of a family of linear maps from sᵢ to tᵢ, as a multilinear map of
the family.
theorem PiTensorProduct.mapMultilinear_apply E0 #
∀ {ι : Type u_1} (R : Type u_4) [inst : CommSemiring R] {R₂ : Type u_7} (s : ι → Type u_8)
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} (t : ι → Type u_13) [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i), (PiTensorProduct.mapMultilinear R s t) f = PiTensorProduct.map f
def PiTensorProduct.piTensorHomMap E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₂ : Type u_7} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
[inst_3 : CommSemiring R₂] →
{σ₁₂ : R →+* R₂} →
{t : ι → Type u_13} →
[inst_4 : (i : ι) → AddCommMonoid (t i)] →
[inst_5 : (i : ι) → Module R₂ (t i)] →
(PiTensorProduct R₂ fun i ↦ s i →ₛₗ[σ₁₂] t i) →ₗ[R₂]
(PiTensorProduct R fun i ↦ s i) →ₛₗ[σ₁₂] PiTensorProduct R₂ fun i ↦ t i
Let sᵢ and tᵢ be families of R- and R₂-modules, respectively.
Then there is an R₂-linear map between ⨂ᵢ Hom(sᵢ, tᵢ) and Hom(⨂ᵢ sᵢ, ⨂ tᵢ) defined by
⨂ᵢ fᵢ ↦ ⨂ᵢ aᵢ ↦ ⨂ᵢ fᵢ aᵢ.
This is TensorProduct.homTensorHomMap for an arbitrary family of modules.
Note that PiTensorProduct.piTensorHomMap (tprod R₂ f) is equal to PiTensorProduct.map f.
theorem PiTensorProduct.piTensorHomMap_tprod_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {t : ι → Type u_13} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i) (x : (i : ι) → s i),
(PiTensorProduct.piTensorHomMap ((PiTensorProduct.tprod R₂) f)) ((PiTensorProduct.tprod R) x) =
⨂ₜ[R₂] (i : ι), (f i) (x i)
theorem PiTensorProduct.piTensorHomMap_tprod_eq_map E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {t : ι → Type u_13} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i →ₛₗ[σ₁₂] t i),
PiTensorProduct.piTensorHomMap ((PiTensorProduct.tprod R₂) f) = PiTensorProduct.map f
def PiTensorProduct.congr E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₂ : Type u_7} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
[inst_3 : CommSemiring R₂] →
{σ₁₂ : R →+* R₂} →
{σ₂₁ : R₂ →+* R} →
[inst_4 : RingHomInvPair σ₁₂ σ₂₁] →
[inst_5 : RingHomInvPair σ₂₁ σ₁₂] →
{t : ι → Type u_13} →
[inst_6 : (i : ι) → AddCommMonoid (t i)] →
[inst_7 : (i : ι) → Module R₂ (t i)] →
((i : ι) → s i ≃ₛₗ[σ₁₂] t i) →
(PiTensorProduct R fun i ↦ s i) ≃ₛₗ[σ₁₂] PiTensorProduct R₂ fun i ↦ t i
If s i and t i are linearly equivalent for every i in ι, then ⨂[R] i, s i and
⨂[R₂] i, t i are linearly equivalent.
This is the n-ary version of TensorProduct.congr
theorem PiTensorProduct.congr_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {σ₂₁ : R₂ →+* R} [inst_4 : RingHomInvPair σ₁₂ σ₂₁] [inst_5 : RingHomInvPair σ₂₁ σ₁₂]
{t : ι → Type u_13} [inst_6 : (i : ι) → AddCommMonoid (t i)] [inst_7 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i ≃ₛₗ[σ₁₂] t i) (m : (i : ι) → s i),
(PiTensorProduct.congr f) ((PiTensorProduct.tprod R) m) = ⨂ₜ[R₂] (i : ι), (f i) (m i)
theorem PiTensorProduct.congr_symm_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] [inst_3 : CommSemiring R₂]
{σ₁₂ : R →+* R₂} {σ₂₁ : R₂ →+* R} [inst_4 : RingHomInvPair σ₁₂ σ₂₁] [inst_5 : RingHomInvPair σ₂₁ σ₁₂]
{t : ι → Type u_13} [inst_6 : (i : ι) → AddCommMonoid (t i)] [inst_7 : (i : ι) → Module R₂ (t i)]
(f : (i : ι) → s i ≃ₛₗ[σ₁₂] t i) (p : (i : ι) → t i),
(PiTensorProduct.congr f).symm ((PiTensorProduct.tprod R₂) p) = ⨂ₜ[R] (i : ι), (f i).symm (p i)
def PiTensorProduct.map₂ E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₂ : Type u_7} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
{R₃ : Type u_12} →
[inst_3 : CommSemiring R₂] →
[inst_4 : CommSemiring R₃] →
{σ₂₃ : R₂ →+* R₃} →
{σ₁₃ : R →+* R₃} →
{t : ι → Type u_13} →
{t' : ι → Type u_14} →
[inst_5 : (i : ι) → AddCommMonoid (t i)] →
[inst_6 : (i : ι) → Module R₂ (t i)] →
[inst_7 : (i : ι) → AddCommMonoid (t' i)] →
[inst_8 : (i : ι) → Module R₃ (t' i)] →
((i : ι) → s i →ₛₗ[σ₁₃] t i →ₛₗ[σ₂₃] t' i) →
(PiTensorProduct R fun i ↦ s i) →ₛₗ[σ₁₃]
(PiTensorProduct R₂ fun i ↦ t i) →ₛₗ[σ₂₃] PiTensorProduct R₃ fun i ↦ t' i
Let sᵢ, tᵢ and t'ᵢ be families of R-, R₂- and R₃-modules, respectively.
Then f : Πᵢ sᵢ → tᵢ → t'ᵢ induces an element of Hom(⨂ᵢ sᵢ, Hom(⨂ tᵢ, ⨂ᵢ t'ᵢ))
defined by ⨂ᵢ aᵢ ↦ ⨂ᵢ bᵢ ↦ ⨂ᵢ fᵢ aᵢ bᵢ.
This is PiTensorProduct.map for two arbitrary families of modules.
This is TensorProduct.map₂ for families of modules.
theorem PiTensorProduct.map₂_tprod_tprod E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] {R₃ : Type u_12}
[inst_3 : CommSemiring R₂] [inst_4 : CommSemiring R₃] {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃} {t : ι → Type u_13}
{t' : ι → Type u_14} [inst_5 : (i : ι) → AddCommMonoid (t i)] [inst_6 : (i : ι) → Module R₂ (t i)]
[inst_7 : (i : ι) → AddCommMonoid (t' i)] [inst_8 : (i : ι) → Module R₃ (t' i)]
(f : (i : ι) → s i →ₛₗ[σ₁₃] t i →ₛₗ[σ₂₃] t' i) (x : (i : ι) → s i) (y : (i : ι) → t i),
((PiTensorProduct.map₂ f) ((PiTensorProduct.tprod R) x)) ((PiTensorProduct.tprod R₂) y) =
⨂ₜ[R₃] (i : ι), ((f i) (x i)) (y i)
def PiTensorProduct.piTensorHomMapFun₂ E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₂ : Type u_7} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
{R₃ : Type u_12} →
[inst_3 : CommSemiring R₂] →
[inst_4 : CommSemiring R₃] →
{σ₂₃ : R₂ →+* R₃} →
{σ₁₃ : R →+* R₃} →
{t : ι → Type u_13} →
{t' : ι → Type u_14} →
[inst_5 : (i : ι) → AddCommMonoid (t i)] →
[inst_6 : (i : ι) → Module R₂ (t i)] →
[inst_7 : (i : ι) → AddCommMonoid (t' i)] →
[inst_8 : (i : ι) → Module R₃ (t' i)] →
(PiTensorProduct R₃ fun i ↦ s i →ₛₗ[σ₁₃] t i →ₛₗ[σ₂₃] t' i) →
(PiTensorProduct R fun i ↦ s i) →ₛₗ[σ₁₃]
(PiTensorProduct R₂ fun i ↦ t i) →ₛₗ[σ₂₃] PiTensorProduct R₃ fun i ↦ t' i
Let sᵢ, tᵢ and t'ᵢ be families of R-, R₂- and R₃-modules, respectively.
Then there is a function from ⨂ᵢ Hom(sᵢ, Hom(tᵢ, t'ᵢ)) to Hom(⨂ᵢ sᵢ, Hom(⨂ tᵢ, ⨂ᵢ t'ᵢ))
defined by ⨂ᵢ fᵢ ↦ ⨂ᵢ aᵢ ↦ ⨂ᵢ bᵢ ↦ ⨂ᵢ fᵢ aᵢ bᵢ.
theorem PiTensorProduct.piTensorHomMapFun₂_add E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] {R₃ : Type u_12}
[inst_3 : CommSemiring R₂] [inst_4 : CommSemiring R₃] {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃} {t : ι → Type u_13}
{t' : ι → Type u_14} [inst_5 : (i : ι) → AddCommMonoid (t i)] [inst_6 : (i : ι) → Module R₂ (t i)]
[inst_7 : (i : ι) → AddCommMonoid (t' i)] [inst_8 : (i : ι) → Module R₃ (t' i)]
(φ ψ : PiTensorProduct R₃ fun i ↦ s i →ₛₗ[σ₁₃] t i →ₛₗ[σ₂₃] t' i),
(φ + ψ).piTensorHomMapFun₂ = φ.piTensorHomMapFun₂ + ψ.piTensorHomMapFun₂
theorem PiTensorProduct.piTensorHomMapFun₂_smul E1 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] {R₃ : Type u_12}
[inst_3 : CommSemiring R₂] [inst_4 : CommSemiring R₃] {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃} {t : ι → Type u_13}
{t' : ι → Type u_14} [inst_5 : (i : ι) → AddCommMonoid (t i)] [inst_6 : (i : ι) → Module R₂ (t i)]
[inst_7 : (i : ι) → AddCommMonoid (t' i)] [inst_8 : (i : ι) → Module R₃ (t' i)] (r : R₃)
(φ : PiTensorProduct R₃ fun i ↦ s i →ₛₗ[σ₁₃] t i →ₛₗ[σ₂₃] t' i), (r • φ).piTensorHomMapFun₂ = r • φ.piTensorHomMapFun₂
def PiTensorProduct.piTensorHomMap₂ E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{R₂ : Type u_7} →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
{R₃ : Type u_12} →
[inst_3 : CommSemiring R₂] →
[inst_4 : CommSemiring R₃] →
{σ₂₃ : R₂ →+* R₃} →
{σ₁₃ : R →+* R₃} →
{t : ι → Type u_13} →
{t' : ι → Type u_14} →
[inst_5 : (i : ι) → AddCommMonoid (t i)] →
[inst_6 : (i : ι) → Module R₂ (t i)] →
[inst_7 : (i : ι) → AddCommMonoid (t' i)] →
[inst_8 : (i : ι) → Module R₃ (t' i)] →
(PiTensorProduct R₃ fun i ↦ s i →ₛₗ[σ₁₃] t i →ₛₗ[σ₂₃] t' i) →ₗ[R₃]
(PiTensorProduct R fun i ↦ s i) →ₛₗ[σ₁₃]
(PiTensorProduct R₂ fun i ↦ t i) →ₛₗ[σ₂₃] PiTensorProduct R₃ fun i ↦ t' i
Let sᵢ, tᵢ and t'ᵢ be families of R-, R₂- and R₃-modules, respectively.
Then there is a linear map from ⨂ᵢ Hom(sᵢ, Hom(tᵢ, t'ᵢ)) to Hom(⨂ᵢ sᵢ, Hom(⨂ tᵢ, ⨂ᵢ t'ᵢ))
defined by ⨂ᵢ fᵢ ↦ ⨂ᵢ aᵢ ↦ ⨂ᵢ bᵢ ↦ ⨂ᵢ fᵢ aᵢ bᵢ.
This is TensorProduct.homTensorHomMap for two arbitrary families of modules.
theorem PiTensorProduct.piTensorHomMap₂_tprod_tprod_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {R₂ : Type u_7} {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] {R₃ : Type u_12}
[inst_3 : CommSemiring R₂] [inst_4 : CommSemiring R₃] {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃} {t : ι → Type u_13}
{t' : ι → Type u_14} [inst_5 : (i : ι) → AddCommMonoid (t i)] [inst_6 : (i : ι) → Module R₂ (t i)]
[inst_7 : (i : ι) → AddCommMonoid (t' i)] [inst_8 : (i : ι) → Module R₃ (t' i)]
(f : (i : ι) → s i →ₛₗ[σ₁₃] t i →ₛₗ[σ₂₃] t' i) (a : (i : ι) → s i) (b : (i : ι) → t i),
((PiTensorProduct.piTensorHomMap₂ ((PiTensorProduct.tprod R₃) f)) ((PiTensorProduct.tprod R) a))
((PiTensorProduct.tprod R₂) b) =
⨂ₜ[R₃] (i : ι), ((f i) (a i)) (b i)
def PiTensorProduct.reindex E1 #
{ι : Type u_1} →
{ι₂ : Type u_2} →
(R : Type u_4) →
[inst : CommSemiring R] →
(s : ι → Type u_8) →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] →
(e : ι ≃ ι₂) → (PiTensorProduct R fun i ↦ s i) ≃ₗ[R] PiTensorProduct R fun i ↦ s (e.symm i)
Re-index the components of the tensor power by e.
theorem PiTensorProduct.reindex_tprod E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] (e : ι ≃ ι₂) (f : (i : ι) → s i),
(PiTensorProduct.reindex R s e) ((PiTensorProduct.tprod R) f) = (PiTensorProduct.tprod R) fun i ↦ f (e.symm i)
theorem PiTensorProduct.reindex_comp_tprod E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] (e : ι ≃ ι₂),
(↑(PiTensorProduct.reindex R s e)).compMultilinearMap (PiTensorProduct.tprod R) =
(MultilinearMap.domDomCongrLinearEquiv' R (RingHom.id R) s (PiTensorProduct R fun i ↦ s (e.symm i)) e).symm
(PiTensorProduct.tprod R)
theorem PiTensorProduct.lift_comp_reindex E1 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{E : Type u_10} [inst_4 : AddCommMonoid E] [inst_5 : Module S E] (e : ι ≃ ι₂)
(φ : (Π (i : ι₂), s (e.symm i)) →ₘₛₗ[σ] E),
PiTensorProduct.lift φ ∘ₛₗ ↑(PiTensorProduct.reindex R s e) =
PiTensorProduct.lift ((MultilinearMap.domDomCongrLinearEquiv' S σ s E e).symm φ)
theorem PiTensorProduct.lift_comp_reindex_symm E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{E : Type u_10} [inst_4 : AddCommMonoid E] [inst_5 : Module S E] (e : ι ≃ ι₂) (φ : (Π (i : ι), s i) →ₘₛₗ[σ] E),
PiTensorProduct.lift φ ∘ₛₗ ↑(PiTensorProduct.reindex R s e).symm =
PiTensorProduct.lift ((MultilinearMap.domDomCongrLinearEquiv' S σ s E e) φ)
theorem PiTensorProduct.lift_reindex E1 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{E : Type u_10} [inst_4 : AddCommMonoid E] [inst_5 : Module S E] (e : ι ≃ ι₂)
(φ : (Π (i : ι₂), s (e.symm i)) →ₘₛₗ[σ] E) (x : PiTensorProduct R fun i ↦ s i),
(PiTensorProduct.lift φ) ((PiTensorProduct.reindex R s e) x) =
(PiTensorProduct.lift ((MultilinearMap.domDomCongrLinearEquiv' S σ s E e).symm φ)) x
theorem PiTensorProduct.lift_reindex_symm E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{E : Type u_10} [inst_4 : AddCommMonoid E] [inst_5 : Module S E] (e : ι ≃ ι₂) (φ : (Π (i : ι), s i) →ₘₛₗ[σ] E)
(x : PiTensorProduct R fun i ↦ s (e.symm i)),
(PiTensorProduct.lift φ) ((PiTensorProduct.reindex R s e).symm x) =
(PiTensorProduct.lift ((MultilinearMap.domDomCongrLinearEquiv' S σ s E e) φ)) x
theorem PiTensorProduct.reindex_trans E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {ι₃ : Type u_3} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] (e : ι ≃ ι₂) (e' : ι₂ ≃ ι₃),
PiTensorProduct.reindex R s e ≪≫ₗ PiTensorProduct.reindex R (fun i ↦ s (e.symm i)) e' =
PiTensorProduct.reindex R s (e.trans e')
theorem PiTensorProduct.reindex_reindex E1 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {ι₃ : Type u_3} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] (e : ι ≃ ι₂) (e' : ι₂ ≃ ι₃)
(x : PiTensorProduct R fun i ↦ s i),
(PiTensorProduct.reindex R (fun i ↦ s (e.symm i)) e') ((PiTensorProduct.reindex R s e) x) =
(PiTensorProduct.reindex R s (e.trans e')) x
theorem PiTensorProduct.reindex_symm E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} [inst : CommSemiring R] {M : Type u_9} [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] (e : ι ≃ ι₂),
(PiTensorProduct.reindex R (fun x ↦ M) e).symm = PiTensorProduct.reindex R (fun x ↦ M) e.symm
This lemma is impractical to state in the dependent case, instead see reindex_symm_tprod.
theorem PiTensorProduct.reindex_symm_tprod E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] (e : ι ≃ ι₂) (f : (i : ι) → s i),
(PiTensorProduct.reindex R s e).symm ((PiTensorProduct.tprod R) fun i ↦ f (e.symm i)) = (PiTensorProduct.tprod R) f
theorem PiTensorProduct.reindex_symm_symm_tprod E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8}
[inst_1 : (i : ι) → AddCommMonoid (s i)] [inst_2 : (i : ι) → Module R (s i)] (e : ι₂ ≃ ι) (f : (i : ι) → s i),
(PiTensorProduct.reindex R s e.symm).symm ((PiTensorProduct.tprod R) fun i ↦ f (e i)) = (PiTensorProduct.tprod R) f
theorem PiTensorProduct.reindex_refl E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)],
PiTensorProduct.reindex R s (Equiv.refl ι) = LinearEquiv.refl R (PiTensorProduct R fun i ↦ s i)
theorem PiTensorProduct.map_comp_reindex_eq E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{t : ι → Type u_12} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module S (t i)]
(f : (i : ι) → s i →ₛₗ[σ] t i) (e : ι ≃ ι₂),
(PiTensorProduct.map fun i ↦ f (e.symm i)) ∘ₛₗ ↑(PiTensorProduct.reindex R s e) =
↑(PiTensorProduct.reindex S t e) ∘ₛₗ PiTensorProduct.map f
Re-indexing the components of the tensor product by an equivalence e is compatible
with PiTensorProduct.map.
theorem PiTensorProduct.map_reindex E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{t : ι → Type u_12} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module S (t i)]
(f : (i : ι) → s i →ₛₗ[σ] t i) (e : ι ≃ ι₂) (x : PiTensorProduct R fun i ↦ s i),
(PiTensorProduct.map fun i ↦ f (e.symm i)) ((PiTensorProduct.reindex R s e) x) =
(PiTensorProduct.reindex S t e) ((PiTensorProduct.map f) x)
theorem PiTensorProduct.map_comp_reindex_symm E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{t : ι → Type u_12} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module S (t i)]
(f : (i : ι) → s i →ₛₗ[σ] t i) (e : ι ≃ ι₂),
PiTensorProduct.map f ∘ₛₗ ↑(PiTensorProduct.reindex R s e).symm =
↑(PiTensorProduct.reindex S t e).symm ∘ₛₗ PiTensorProduct.map fun i ↦ f (e.symm i)
theorem PiTensorProduct.map_reindex_symm E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} {R : Type u_4} {S : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{σ : R →+* S} {s : ι → Type u_8} [inst_2 : (i : ι) → AddCommMonoid (s i)] [inst_3 : (i : ι) → Module R (s i)]
{t : ι → Type u_12} [inst_4 : (i : ι) → AddCommMonoid (t i)] [inst_5 : (i : ι) → Module S (t i)]
(f : (i : ι) → s i →ₛₗ[σ] t i) (e : ι ≃ ι₂) (x : PiTensorProduct R fun i ↦ s (e.symm i)),
(PiTensorProduct.map f) ((PiTensorProduct.reindex R s e).symm x) =
(PiTensorProduct.reindex S t e).symm ((PiTensorProduct.map fun i ↦ f (e.symm i)) x)
def PiTensorProduct.isEmptyEquiv E1 #
(ι : Type u_1) →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → [IsEmpty ι] → (PiTensorProduct R fun i ↦ s i) ≃ₗ[R] R
The tensor product over an empty index type ι is isomorphic to the base ring.
theorem PiTensorProduct.isEmptyEquiv_symm_apply E0 #
∀ (ι : Type u_1) {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] [inst_3 : IsEmpty ι] (r : R),
(PiTensorProduct.isEmptyEquiv ι).symm r = r • (PiTensorProduct.tprod R) isEmptyElim
theorem PiTensorProduct.isEmptyEquiv_apply_tprod E0 #
∀ (ι : Type u_1) {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] [inst_3 : IsEmpty ι] (f : (i : ι) → s i),
(PiTensorProduct.isEmptyEquiv ι) ((PiTensorProduct.tprod R) f) = 1
def PiTensorProduct.subsingletonEquiv E1 #
{ι : Type u_1} →
{R : Type u_4} →
[inst : CommSemiring R] →
{s : ι → Type u_8} →
[inst_1 : (i : ι) → AddCommMonoid (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → [Subsingleton ι] → (i₀ : ι) → (PiTensorProduct R fun i ↦ s i) ≃ₗ[R] s i₀
Tensor product over a singleton type with element i₀ is equivalent to s i₀.
theorem PiTensorProduct.subsingletonEquiv_apply_tprod E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] [inst_3 : Subsingleton ι] (i₀ : ι) (f : (i : ι) → s i),
(PiTensorProduct.subsingletonEquiv i₀) (⨂ₜ[R] (i : ι), f i) = f i₀
theorem PiTensorProduct.subsingletonEquiv_symm_apply E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
[inst_2 : (i : ι) → Module R (s i)] [inst_3 : Subsingleton ι] (i₀ : ι) (x : s i₀),
(PiTensorProduct.subsingletonEquiv i₀).symm x = ⨂ₜ[R] (i : ι), Function.update 0 i₀ x i
theorem PiTensorProduct.subsingletonEquiv_symm_apply' E0 #
∀ {ι : Type u_1} {R : Type u_4} [inst : CommSemiring R] {M : Type u_9} [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : Subsingleton ι] (i₀ : ι) (x : M),
(PiTensorProduct.subsingletonEquiv i₀).symm x = (PiTensorProduct.tprod R) fun x_1 ↦ x
def PiTensorProduct.tmulEquivDep E1 #
{ι : Type u_1} →
{ι₂ : Type u_2} →
(R : Type u_4) →
[inst : CommSemiring R] →
(N : ι ⊕ ι₂ → Type u_13) →
[inst_1 : (i : ι ⊕ ι₂) → AddCommMonoid (N i)] →
[inst_2 : (i : ι ⊕ ι₂) → Module R (N i)] →
TensorProduct R (PiTensorProduct R fun i₁ ↦ N (Sum.inl i₁))
(PiTensorProduct R fun i₂ ↦ N (Sum.inr i₂)) ≃ₗ[R]
PiTensorProduct R fun i ↦ N i
Equivalence between a TensorProduct of PiTensorProducts and a single
PiTensorProduct indexed by a Sum type. If N is a constant family of
modules, use the non-dependent version PiTensorProduct.tmulEquiv instead.
theorem PiTensorProduct.tmulEquivDep_apply E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} (R : Type u_4) [inst : CommSemiring R] (N : ι ⊕ ι₂ → Type u_13)
[inst_1 : (i : ι ⊕ ι₂) → AddCommMonoid (N i)] [inst_2 : (i : ι ⊕ ι₂) → Module R (N i)] (a : (i₁ : ι) → N (Sum.inl i₁))
(b : (i₂ : ι₂) → N (Sum.inr i₂)),
(PiTensorProduct.tmulEquivDep R N)
(((PiTensorProduct.tprod R) fun i₁ ↦ a i₁) ⊗ₜ[R] (PiTensorProduct.tprod R) fun i₂ ↦ b i₂) =
⨂ₜ[R] (i : ι ⊕ ι₂), Sum.rec a b i
theorem PiTensorProduct.tmulEquivDep_symm_apply E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} (R : Type u_4) [inst : CommSemiring R] (N : ι ⊕ ι₂ → Type u_13)
[inst_1 : (i : ι ⊕ ι₂) → AddCommMonoid (N i)] [inst_2 : (i : ι ⊕ ι₂) → Module R (N i)] (f : (i : ι ⊕ ι₂) → N i),
(PiTensorProduct.tmulEquivDep R N).symm (⨂ₜ[R] (i : ι ⊕ ι₂), f i) =
((PiTensorProduct.tprod R) fun i₁ ↦ f (Sum.inl i₁)) ⊗ₜ[R] (PiTensorProduct.tprod R) fun i₂ ↦ f (Sum.inr i₂)
def PiTensorProduct.tmulEquiv E3 #
{ι : Type u_1} →
{ι₂ : Type u_2} →
(R : Type u_4) →
[inst : CommSemiring R] →
(M : Type u_9) →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
TensorProduct R (PiTensorProduct R fun x ↦ M) (PiTensorProduct R fun x ↦ M) ≃ₗ[R]
PiTensorProduct R fun x ↦ M
Equivalence between a TensorProduct of PiTensorProducts and a single
PiTensorProduct indexed by a Sum type.
See PiTensorProduct.tmulEquivDep for the dependent version.
theorem PiTensorProduct.tmulEquiv_apply E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} (R : Type u_4) [inst : CommSemiring R] (M : Type u_9) [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] (a : ι → M) (b : ι₂ → M),
(PiTensorProduct.tmulEquiv R M)
(((PiTensorProduct.tprod R) fun i ↦ a i) ⊗ₜ[R] (PiTensorProduct.tprod R) fun i ↦ b i) =
(PiTensorProduct.tprod R) fun i ↦ Sum.elim a b i
theorem PiTensorProduct.tmulEquiv_symm_apply E0 #
∀ {ι : Type u_1} {ι₂ : Type u_2} (R : Type u_4) [inst : CommSemiring R] (M : Type u_9) [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] (a : ι ⊕ ι₂ → M),
(PiTensorProduct.tmulEquiv R M).symm ((PiTensorProduct.tprod R) fun i ↦ a i) =
((PiTensorProduct.tprod R) fun i ↦ a (Sum.inl i)) ⊗ₜ[R] (PiTensorProduct.tprod R) fun i ↦ a (Sum.inr i)
instance PiTensorProduct.instAddCommGroup E0 #
{ι : Type u_1} →
{R : Type u_2} →
[inst : CommRing R] →
{s : ι → Type u_3} →
[inst_1 : (i : ι) → AddCommGroup (s i)] →
[inst_2 : (i : ι) → Module R (s i)] → AddCommGroup (PiTensorProduct R fun i ↦ s i)
Unlike for the binary tensor product, we require R to be a CommRing here, otherwise
this is false in the case where ι is empty.