Documentation

Physlib.Relativity.Tensors.Product

The product of tensors #

i. Overview #

In this module we define the tensor product of

ii. Key results #

The following results exist for both prodP and prodT :

iii. Table of contents #

iv. References #

B. Products of pure tensors #

B.1. Indexing pure tensors by Fin n1 ⊕ Fin n2 rather than Fin (n1 + n2) #

B.2. The product of two pure tensors #

def TensorSpecies.Tensor.Pure.prodP {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (p1 : Pure S c) (p2 : Pure S c1) :
Pure S (Fin.append c c1)

Given two pure tensors p1 : Pure S c and p2 : Pure S c, prodP p p2 is the tensor product of those tensors returning an element in Pure S (Sum.elim c c1 ∘ ⇑finSumFinEquiv.symm).

Equations
Instances For

    B.3. The vectors making up product of two pure tensors #

    @[simp]
    theorem TensorSpecies.Tensor.Pure.prodP_apply_castAdd {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (p1 : Pure S c) (p2 : Pure S c1) (i : Fin n1) :
    p1.prodP p2 (Fin.castAdd n2 i) = (LinearEquiv.cast ⋯) (p1 i)
    @[simp]
    theorem TensorSpecies.Tensor.Pure.prodP_apply_natAdd {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (p1 : Pure S c) (p2 : Pure S c1) (i : Fin n2) :
    p1.prodP p2 (Fin.natAdd n1 i) = (LinearEquiv.cast ⋯) (p2 i)
    theorem TensorSpecies.Tensor.Pure.prodP_apply_finSumFinEquiv {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (p1 : Pure S c) (p2 : Pure S c1) (i : Fin n1 ⊕ Fin n2) :
    p1.prodP p2 (finSumFinEquiv i) = match i with | Sum.inl i => (LinearEquiv.cast ⋯) (p1 i) | Sum.inr i => (LinearEquiv.cast ⋯) (p2 i)

    B.4. The product of two pure basis vectors #

    theorem TensorSpecies.Tensor.Pure.prodP_basisVector {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n1 : ℕ} {c : Fin n → C} {c1 : Fin n1 → C} (φ : ComponentIdx c) (φ1 : ComponentIdx c1) :

    B.5. The basis components of the product of two pure tensors #

    theorem TensorSpecies.Tensor.Pure.prodP_component {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n m : ℕ} {c : Fin n → C} {c1 : Fin m → C} (p : Pure S c) (p1 : Pure S c1) (φ : ComponentIdx (Fin.append c c1)) :

    B.6. Equivariance of the product of two pure tensors #

    @[simp]
    theorem TensorSpecies.Tensor.Pure.prodP_equivariant {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (g : G) (p : Pure S c) (p1 : Pure S c1) :
    (g • p).prodP (g • p1) = g • p.prodP p1

    B.7. Product with a tensor with no indices on the right #

    theorem TensorSpecies.Tensor.Pure.prodP_zero_right {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n : ℕ} {c : Fin n → C} {c1 : Fin 0 → C} (p : Pure S c) (p0 : Pure S c1) :
    p.prodP p0 = permP id ⋯ p

    B.8. Swapping the order of the product of two pure tensors #

    theorem TensorSpecies.Tensor.Pure.prodP_swap {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n1 : ℕ} {c : Fin n → C} {c1 : Fin n1 → C} (p : Pure S c) (p1 : Pure S c1) :
    p.prodP p1 = permP (Fin.append (Fin.natAdd n1) (Fin.castAdd n)) ⋯ (p1.prodP p)

    B.9. Permuting the indices of the left tensor in a product #

    @[simp]
    theorem TensorSpecies.Tensor.Pure.prodP_permP_left {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n2 : ℕ} {c2 : Fin n2 → C} {n n' : ℕ} {c : Fin n → C} {c' : Fin n' → C} (σ : Fin n' → Fin n) (h : IsReindexing c c' σ) (p : Pure S c) (p2 : Pure S c2) :
    (permP σ h p).prodP p2 = permP (Fin.append (Fin.castAdd n2 ∘ σ) (Fin.natAdd n)) ⋯ (p.prodP p2)

    B.10. Permuting the indices of the right tensor in a product #

    @[simp]
    theorem TensorSpecies.Tensor.Pure.prodP_permP_right {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n2 : ℕ} {c2 : Fin n2 → C} {n n' : ℕ} {c : Fin n → C} {c' : Fin n' → C} (σ : Fin n' → Fin n) (h : IsReindexing c c' σ) (p : Pure S c) (p2 : Pure S c2) :
    p2.prodP (permP σ h p) = permP (Fin.append (Fin.castAdd n) (Fin.natAdd n2 ∘ σ)) ⋯ (p2.prodP p)

    B.11. Associativity of the product of three pure tensors in one direction #

    theorem TensorSpecies.Tensor.Pure.prodP_assoc {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n1 n2 : ℕ} {c : Fin n → C} {c1 : Fin n1 → C} {c2 : Fin n2 → C} (p : Pure S c) (p1 : Pure S c1) (p2 : Pure S c2) :
    (p.prodP p1).prodP p2 = permP (Fin.cast ⋯) ⋯ (p.prodP (p1.prodP p2))

    B.12. Associativity of the product of three pure tensors in the other direction #

    theorem TensorSpecies.Tensor.Pure.prodP_assoc' {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n1 n2 : ℕ} {c : Fin n → C} {c1 : Fin n1 → C} {c2 : Fin n2 → C} (p : Pure S c) (p1 : Pure S c1) (p2 : Pure S c2) :
    p.prodP (p1.prodP p2) = permP (Fin.cast ⋯) ⋯ ((p.prodP p1).prodP p2)

    B.13. Linearity of the product #

    @[simp]
    theorem TensorSpecies.Tensor.Pure.prodP_update_left {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (p1 : Pure S c) (p2 : Pure S c1) (i : Fin n1) (x : V (c i)) :
    (p1.update i x).prodP p2 = (p1.prodP p2).update (Fin.castAdd n2 i) ((LinearEquiv.cast ⋯) x)
    @[simp]
    theorem TensorSpecies.Tensor.Pure.prodP_update_right {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (p1 : Pure S c) (p2 : Pure S c1) (i : Fin n2) (x : V (c1 i)) :
    p1.prodP (p2.update i x) = (p1.prodP p2).update (Fin.natAdd n1 i) ((LinearEquiv.cast ⋯) x)
    theorem TensorSpecies.Tensor.Pure.prodP_update_add_toTensor_left {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (p1 : Pure S c) (p2 : Pure S c1) (i : Fin n2) (x y : V (c1 i)) :
    (p1.prodP (p2.update i (x + y))).toTensor = (p1.prodP (p2.update i x)).toTensor + (p1.prodP (p2.update i y)).toTensor

    C. Products of tensors #

    C.2. The product of two tensors #

    noncomputable def TensorSpecies.Tensor.prodT {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} :

    The tensor product of two tensors as a bi-linear map from S.Tensor c and S.Tensor c1 to S.Tensor (Fin.append c c1).

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      C.3. The product of two pure tensors as a tensor #

      theorem TensorSpecies.Tensor.prodT_pure {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (t : Pure S c) (t1 : Pure S c1) :

      C.4. The product of basis vectors #

      theorem TensorSpecies.Tensor.prodT_basis {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (b✝ : ComponentIdx c) (b1 : ComponentIdx c1) :
      (prodT ((basis c) b✝)) ((basis c1) b1) = (Pure.basisVector (Fin.append c c1) (ComponentIdx.prod.symm (b✝, b1))).toTensor
      theorem TensorSpecies.Tensor.prodT_basis' {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (b✝ : ComponentIdx c) (b1 : ComponentIdx c1) :
      (prodT ((basis c) b✝)) ((basis c1) b1) = (basis (Fin.append c c1)) (ComponentIdx.prod.symm (b✝, b1))

      C.5. The product as an equivalence #

      noncomputable def TensorSpecies.Tensor.tensorEquivProd {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n2 : ℕ} {c : Fin n → C} {c1 : Fin n2 → C} :

      The linear equivalence between S.Tensor c ⊗[k] S.Tensor c1 and S.Tensor (Fin.append c c1).

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        C.6. Rewriting the basis for the product in terms of the tensor product basis #

        theorem TensorSpecies.Tensor.basis_prod_eq {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} :

        Rewriting basis for the product in terms of the tensor product basis.

        theorem TensorSpecies.Tensor.prodT_basis_repr_apply {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n m : ℕ} {c : Fin n → C} {c1 : Fin m → C} (t : S.Tensor c) (t1 : S.Tensor c1) (b✝ : ComponentIdx (Fin.append c c1)) :
        ((basis (Fin.append c c1)).repr ((prodT t) t1)) b✝ = ((basis c).repr t) (ComponentIdx.prod b✝).1 * ((basis c1).repr t1) (ComponentIdx.prod b✝).2

        C.7. Equivariance of the product of two tensors #

        @[simp]
        theorem TensorSpecies.Tensor.prodT_equivariant {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n1 n2 : ℕ} {c : Fin n1 → C} {c1 : Fin n2 → C} (g : G) (t : S.Tensor c) (t1 : S.Tensor c1) :
        (prodT (g • t)) (g • t1) = g • (prodT t) t1

        C.8. The product with the default tensor with no indices on the right #

        theorem TensorSpecies.Tensor.prodT_default_right {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n : ℕ} {c : Fin n → C} {c1 : Fin 0 → C} (t : S.Tensor c) :
        theorem TensorSpecies.Tensor.prodT_zero_right {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n : ℕ} {c : Fin n → C} {c1 : Fin 0 → C} (t : S.Tensor c) (t1 : S.Tensor c1) :
        (prodT t) t1 = toScalar t1 • (permT id ⋯) t

        C.9. Swapping the order of the product of two tensors #

        theorem TensorSpecies.Tensor.prodT_swap {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n1 : ℕ} {c : Fin n → C} {c1 : Fin n1 → C} (t : S.Tensor c) (t1 : S.Tensor c1) :
        (prodT t) t1 = (permT (Fin.append (Fin.natAdd n1) (Fin.castAdd n)) ⋯) ((prodT t1) t)

        C.10. Permuting the indices of the left tensor in a product #

        @[simp]
        theorem TensorSpecies.Tensor.prodT_permT_left {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n2 : ℕ} {c2 : Fin n2 → C} {n n' : ℕ} {c : Fin n → C} {c' : Fin n' → C} (σ : Fin n' → Fin n) (h : IsReindexing c c' σ) (t : S.Tensor c) (t2 : S.Tensor c2) :
        (prodT ((permT σ h) t)) t2 = (permT (Fin.append (Fin.castAdd n2 ∘ σ) (Fin.natAdd n)) ⋯) ((prodT t) t2)

        C.11. Permuting the indices of the right tensor in a product #

        @[simp]
        theorem TensorSpecies.Tensor.prodT_permT_right {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n2 : ℕ} {c2 : Fin n2 → C} {n n' : ℕ} {c : Fin n → C} {c' : Fin n' → C} (σ : Fin n' → Fin n) (h : IsReindexing c c' σ) (t : S.Tensor c) (t2 : S.Tensor c2) :
        (prodT t2) ((permT σ h) t) = (permT (Fin.append (Fin.castAdd n) (Fin.natAdd n2 ∘ σ)) ⋯) ((prodT t2) t)

        C.12. Associativity of the product of three tensors in one direction #

        theorem TensorSpecies.Tensor.prodT_assoc {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n1 n2 : ℕ} {c : Fin n → C} {c1 : Fin n1 → C} {c2 : Fin n2 → C} (t : S.Tensor c) (t1 : S.Tensor c1) (t2 : S.Tensor c2) :
        (prodT ((prodT t) t1)) t2 = (permT (Fin.cast ⋯) ⋯) ((prodT t) ((prodT t1) t2))

        C.13. Associativity of the product of three tensors in the other direction #

        theorem TensorSpecies.Tensor.prodT_assoc' {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {n n1 n2 : ℕ} {c : Fin n → C} {c1 : Fin n1 → C} {c2 : Fin n2 → C} (t : S.Tensor c) (t1 : S.Tensor c1) (t2 : S.Tensor c2) :
        (prodT t) ((prodT t1) t2) = (permT (Fin.cast ⋯) ⋯) ((prodT ((prodT t) t1)) t2)