The product of tensors #
i. Overview #
In this module we define the tensor product of
- index components of tensors,
- pure tensors, and
- tensors. We prove a number of properties about these products, for example, permutation of the factors, equivariance, and associativity.
ii. Key results #
Pure.prodP: The tensor product of two pure tensors.prodT: The tensor product of two tensors.
The following results exist for both prodP and prodT :
prodT_swap: Swapping the order of the product of two tensors.prodT_permT_left: Permuting the indices of the left tensor commute with the product.prodT_permT_right: Permuting the indices of the right tensor commute with the product.prodT_equivariant: The product of two tensors is equivariant.prodT_assoc: The product of three tensors is associative.prodT_assoc': The product of three tensors is associative in the other direction.
iii. Table of contents #
- A. Products of index components
- A.1. The product of component indices as an equivalence
- B. Products of pure tensors
- B.1. Indexing pure tensors by
Fin n1 ⊕ Fin n2rather thanFin (n1 + n2) - B.2. The product of two pure tensors
- B.3. The vectors making up product of two pure tensors
- B.4. The product of two pure basis vectors
- B.5. The basis components of the product of two pure tensors
- B.6. Equivariance of the product of two pure tensors
- B.7. Product with a tensor with no indices on the right
- B.8. Swapping the order of the product of two pure tensors
- B.9. Permuting the indices of the left tensor in a product
- B.10. Permuting the indices of the right tensor in a product
- B.11. Associativity of the product of three pure tensors in one direction
- B.12. Associativity of the product of three pure tensors in the other direction
- B.1. Indexing pure tensors by
- C. Products of tensors
- C.1. Indexing tensors by
Fin n1 ⊕ Fin n2rather thanFin (n1 + n2) - C.2. The product of two tensors
- C.3. The product of two pure tensors as a tensor
- C.4. The product of basis vectors
- C.5. The product as an equivalence
- C.6. Rewriting the basis for the product in terms of the tensor product basis
- C.7. Equivariance of the product of two tensors
- C.8. The product with the default tensor with no indices on the right
- C.9. Swapping the order of the product of two tensors
- C.10. Permuting the indices of the left tensor in a product
- C.11. Permuting the indices of the right tensor in a product
- C.12. Associativity of the product of three tensors in one direction
- C.13. Associativity of the product of three tensors in the other direction
- C.1. Indexing tensors by
iv. References #
- Tooby-Smith, Formalization of physics index notation in Lean 4, arXiv:2411.07667. [ref: tooby_smith_2024_index_notation]
B. Products of pure tensors #
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
- p1.prodP p2 i = Fin.addCases (fun (i : Fin n1) => (LinearEquiv.cast ⋯) (p1 i)) (fun (i : Fin n2) => (LinearEquiv.cast ⋯) (p2 i)) i
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)
:
@[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)
:
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)
:
(basisVector c φ).prodP (basisVector c1 φ1) = basisVector (Fin.append c c1) (ComponentIdx.prod.symm (φ, φ1))
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))
:
(p.prodP p1).component φ = p.component (ComponentIdx.prod φ).1 * p1.component (ComponentIdx.prod φ).2
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)
:
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)
:
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)
:
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)
:
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)
:
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)
:
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)
:
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))
:
@[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))
:
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))
:
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)
:
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}
:
basis (Fin.append c c1) = (((basis c).tensorProduct (basis c1)).reindex ComponentIdx.prod.symm).map tensorEquivProd
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)
:
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)
:
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)
:
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)
:
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)
: