Contractions on basis tensors #
theorem
TensorSpecies.Tensor.Pure.dropPair_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 : ℕ}
{c : Fin (n + 1 + 1) → C}
{i j : Fin (n + 1 + 1)}
(hij : i ≠ j)
(b✝ : ComponentIdx c)
:
dropPair i j hij (basisVector c b✝) = basisVector (c ∘ i.succSuccAbove j) fun (m : Fin n) => b✝ (i.succSuccAbove j m)
theorem
TensorSpecies.Tensor.Pure.contrPCoeff_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}
[S.HasContrDualBases]
{n : ℕ}
{c : Fin n → C}
(i j : Fin n)
(hij : i ≠ j ∧ S.τ (c i) = c j)
(φ : ComponentIdx c)
:
contrPCoeff i j hij (basisVector c φ) = if φ i = (HasContrDualBases.contrDualIdxEquiv S (c i)) ((basisIdxCongr ⋯) (φ j)) then 1 else 0
For a species with dual bases (HasContrDualBases), the contraction coefficient of a basis
vector is the Kronecker δ of its labels at i and j, the label at j read as a label at the
color c i. The per-species contrPCoeff_basis lemmas follow from it.
theorem
TensorSpecies.Tensor.contrT_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 : ℕ}
{c : Fin (n + 1 + 1) → C}
{i j : Fin (n + 1 + 1)}
(h : i ≠ j ∧ S.τ (c i) = c j)
(t : S.Tensor c)
(φ : ComponentIdx (c ∘ i.succSuccAbove j))
:
((basis (c ∘ i.succSuccAbove j)).repr ((contrT n i j h) t)) φ = ∑ b' : ↥φ.DropPairSection,
((basis c).repr t) ↑b' * (S.contr (c i)) ((b (c i)) (↑b' i) ⊗ₜ[k] (b (S.τ (c i))) ((basisIdxCongr ⋯) (↑b' j)))
theorem
TensorSpecies.Tensor.contrT_basis_repr_apply_eq_sum_fin
{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 + 1 + 1) → C}
{i j : Fin (n + 1 + 1)}
(h : i ≠ j ∧ S.τ (c i) = c j)
(t : S.Tensor c)
(φ : ComponentIdx (c ∘ i.succSuccAbove j))
:
theorem
TensorSpecies.Tensor.contrT_basis_repr_apply_eq_sum_dual
{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}
[S.HasContrDualBases]
{n : ℕ}
{c : Fin (n + 1 + 1) → C}
{i j : Fin (n + 1 + 1)}
(h : i ≠ j ∧ S.τ (c i) = c j)
(t : S.Tensor c)
(φ : ComponentIdx (c ∘ i.succSuccAbove j))
:
((basis (c ∘ i.succSuccAbove j)).repr ((contrT n i j h) t)) φ = ∑ x : basisIdx (c i),
((basis c).repr t)
↑((ComponentIdx.DropPairSection.ofFinEquiv ⋯ φ)
(x, (basisIdxCongr ⋯) ((HasContrDualBases.contrDualIdxEquiv S (c i)).symm x)))
For a species with dual bases (HasContrDualBases), a component of a contraction is a single
sum over the labels at the first contracted index: the δ law
(HasContrDualBases.contr_basis_eq_ite) fixes the label at the second. This collapses the double
sum of contrT_basis_repr_apply_eq_sum_fin.
theorem
TensorSpecies.Tensor.contrT_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}
{n : ℕ}
{c : Fin (n + 1 + 1) → C}
{i j : Fin (n + 1 + 1)}
(h : i ≠ j ∧ S.τ (c i) = c j)
(b✝ : ComponentIdx c)
:
(contrT n i j h) ((basis c) b✝) = Pure.contrPCoeff i j h (Pure.basisVector c b✝) • (basis (c ∘ i.succSuccAbove j)) (ComponentIdx.dropPair i j b✝)