Documentation

Physlib.Relativity.Tensors.Contraction.Products

The interaction of contractions and products #

Products and contractions #

theorem TensorSpecies.Tensor.Pure.contrPCoeff_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} {n n1 : ℕ} {c : Fin (n + 1 + 1) → C} {c1 : Fin n1 → C} (i j : Fin (n + 1 + 1)) (hij : i ≠ j ∧ S.τ (c i) = c j) (p : Pure S c) (p1 : Pure S c1) :
contrPCoeff (Fin.natAdd n1 i) (Fin.natAdd n1 j) ⋯ (p1.prodP p) = contrPCoeff i j hij p
theorem TensorSpecies.Tensor.Pure.contrPCoeff_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} {n n1 : ℕ} {c : Fin (n + 1 + 1) → C} {c1 : Fin n1 → C} (i j : Fin (n + 1 + 1)) (hij : i ≠ j ∧ S.τ (c i) = c j) (p : Pure S c) (p1 : Pure S c1) :
contrPCoeff (Fin.castAdd n1 i) (Fin.castAdd n1 j) ⋯ (p.prodP p1) = contrPCoeff i j hij p
theorem TensorSpecies.Tensor.Pure.prodP_dropPair {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 + 1 + 1) → C} {c1 : Fin n1 → C} (i j : Fin (n + 1 + 1)) (hij : i ≠ j ∧ S.τ (c i) = c j) (p : Pure S c) (p1 : Pure S c1) :
p1.prodP (dropPair i j ⋯ p) = permP id ⋯ (dropPair (Fin.natAdd n1 i) (Fin.natAdd n1 j) ⋯ (p1.prodP p))
theorem TensorSpecies.Tensor.Pure.prodP_contrP_snd {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 + 1 + 1) → C} {c1 : Fin n1 → C} (i j : Fin (n + 1 + 1)) (hij : i ≠ j ∧ S.τ (c i) = c j) (p : Pure S c) (p1 : Pure S c1) :
(prodT p1.toTensor) (contrP i j hij p) = (permT id ⋯) (contrP (Fin.natAdd n1 i) (Fin.natAdd n1 j) ⋯ (p1.prodP p))
theorem TensorSpecies.Tensor.prodT_contrT_snd {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 + 1 + 1) → C} {c1 : Fin n1 → C} (i j : Fin (n + 1 + 1)) (hij : i ≠ j ∧ S.τ (c i) = c j) (t : S.Tensor c) (t1 : S.Tensor c1) :
(prodT t1) ((contrT n i j hij) t) = (permT id ⋯) ((contrT (n1.add n) (Fin.natAdd n1 i) (Fin.natAdd n1 j) ⋯) ((prodT t1) t))
theorem TensorSpecies.Tensor.contrT_prodT_snd {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 + 1 + 1) → C} {c1 : Fin n1 → C} (i j : Fin (n + 1 + 1)) (hij : i ≠ j ∧ S.τ (c i) = c j) (t : S.Tensor c) (t1 : S.Tensor c1) :
(contrT (n1.add n) (Fin.natAdd n1 i) (Fin.natAdd n1 j) ⋯) ((prodT t1) t) = (permT id ⋯) ((prodT t1) ((contrT n i j hij) t))
theorem TensorSpecies.Tensor.prodT_contrT_fst {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 + 1 + 1) → C} {c1 : Fin n1 → C} (i j : Fin (n + 1 + 1)) (hij : i ≠ j ∧ S.τ (c i) = c j) (t : S.Tensor c) (t1 : S.Tensor c1) :
(prodT ((contrT n i j hij) t)) t1 = (permT (Fin.append (Fin.natAdd n1) (Fin.castAdd n)) ⋯) ((permT id ⋯) ((contrT (n1.add n) (Fin.natAdd n1 i) (Fin.natAdd n1 j) ⋯) ((prodT t1) t)))

A contraction internal to the left factor commutes past the outer product with a right spectator. The mirror of prodT_contrT_snd, obtained from it by prodT_swap, so the right-hand side contracts the swapped product prodT t1 t and carries a block swap.