PhyslibSearch

Physlib.Relativity.Tensors.Contraction.Basic

6 declarations

definition

Tensor contraction at indices ii and jj

#contrT

For a tensor species SS over a ring kk, let c:{0,,n+1}Cc: \{0, \dots, n+1\} \to C be a color sequence of length n+2n+2. Given two distinct indices i,j{0,,n+1}i, j \in \{0, \dots, n+1\} such that the color at jj is the dual of the color at ii (i.e., S.τ(c(i))=c(j)S.\tau(c(i)) = c(j)), the contraction map `contrT` is the kk-linear map TensorS(c)TensorS(cdropPairEmbi,j)\text{Tensor}_S(c) \to \text{Tensor}_S(c \circ \text{dropPairEmb}_{i,j}) defined by lifting the multilinear contraction map of pure tensors to the tensor product. This map reduces the rank of the tensor from n+2n+2 to nn by contracting the ii-th and jj-th indices using the natural pairing of dual colors, where the resulting tensor's color sequence is obtained by skipping the indices ii and jj in cc.

theorem

contrT\text{contrT} of a Pure Tensor equals contrP\text{contrP}

#contrT_pure

For a tensor species SS over a ring kk and a color sequence c:{0,,n+1}Cc: \{0, \dots, n+1\} \to C, let pp be a pure tensor. Given two distinct indices i,j{0,,n+1}i, j \in \{0, \dots, n+1\} such that the color at jj is the dual of the color at ii (S.τ(c(i))=c(j)S.\tau(c(i)) = c(j)), the kk-linear contraction map contrTi,j\text{contrT}_{i,j} applied to the image of pp in the tensor product space is equal to the contraction of the pure tensor contrPi,j(p)\text{contrP}_{i,j}(p). That is, contrTi,j(toTensor(p))=contrPi,j(p)\text{contrT}_{i,j}(\text{toTensor}(p)) = \text{contrP}_{i,j}(p) where toTensor(p)\text{toTensor}(p) is the tensor product k=0n+1pk\bigotimes_{k=0}^{n+1} p_k and contrPi,j(p)\text{contrP}_{i,j}(p) is the contraction defined by the pairing of the ii-th and jj-th components of pp.

theorem

Tensor Contraction is GG-Equivariant: contrTi,j(gt)=gcontrTi,j(t)\text{contrT}_{i,j}(g \cdot t) = g \cdot \text{contrT}_{i,j}(t)

#contrT_equivariant

Let SS be a tensor species over a ring kk and GG be a group. For a sequence of colors c:{0,,n+1}Cc: \{0, \dots, n+1\} \to C, let tS.Tensor(c)t \in S.\text{Tensor}(c) be a tensor. Given two distinct indices i,j{0,,n+1}i, j \in \{0, \dots, n+1\} such that the color at jj is the dual of the color at ii (i.e., S.τ(c(i))=c(j)S.\tau(c(i)) = c(j)), the tensor contraction map contrTi,j\text{contrT}_{i,j} is equivariant with respect to the group action of GG. That is, for any gGg \in G: contrTi,j(gt)=gcontrTi,j(t)\text{contrT}_{i,j}(g \cdot t) = g \cdot \text{contrT}_{i,j}(t) where the action on the left is on the tensor space of rank n+2n+2 and the action on the right is on the contracted tensor space of rank nn.

theorem

contrT\text{contrT} of a Permuted Tensor equals the Permutation of the contrT\text{contrT}

#contrT_permT

Let SS be a tensor species over a ring kk. Let c:Fin(n+2)Cc: \text{Fin}(n+2) \to C and c1:Fin(n1+2)Cc_1: \text{Fin}(n_1+2) \to C be color sequences, and let σ:Fin(n1+2)Fin(n+2)\sigma: \text{Fin}(n_1+2) \to \text{Fin}(n+2) be a map satisfying the permutation condition cσ=c1c \circ \sigma = c_1 (which implies σ\sigma is a bijection). For any tensor tTensorS(c)t \in \text{Tensor}_S(c) and any two distinct indices i,jFin(n1+2)i, j \in \text{Fin}(n_1+2) such that the color at index jj is the dual of the color at index ii (i.e., S.τ(c1(i))=c1(j)S.\tau(c_1(i)) = c_1(j)), the contraction of the permuted tensor at indices ii and jj is equal to the permutation of the contraction of tt at indices σ(i)\sigma(i) and σ(j)\sigma(j) by the induced map σ\sigma': contrTi,j(permT(σ,t))=permT(σ,contrTσ(i),σ(j)(t))\text{contrT}_{i, j}(\text{permT}(\sigma, t)) = \text{permT}(\sigma', \text{contrT}_{\sigma(i), \sigma(j)}(t)) where σ=dropPairOfMap(i,j,σ)\sigma' = \text{dropPairOfMap}(i, j, \sigma) is the bijection between the reduced index sets Fin(n1)\text{Fin}(n_1) and Fin(n)\text{Fin}(n) induced by σ\sigma after removing indices {i,j}\{i, j\} from the domain and {σ(i),σ(j)}\{\sigma(i), \sigma(j)\} from the codomain.

theorem

Symmetry of Tensor Contraction: contrTi,j(t)=permT(id,contrTj,i(t))\text{contrT}_{i, j}(t) = \text{permT}(\text{id}, \text{contrT}_{j, i}(t))

#contrT_symm

For a tensor species SS over a ring kk and a tensor tt with rank n+2n+2 and color sequence c:{0,,n+1}Cc: \{0, \dots, n+1\} \to C, let i,j{0,,n+1}i, j \in \{0, \dots, n+1\} be distinct indices such that the color at jj is the dual of the color at ii (i.e., S.τ(c(i))=c(j)S.\tau(c(i)) = c(j)). The kk-linear contraction of tt at indices ii and jj is equal to the contraction of tt at indices jj and ii up to an identity permutation: contrTi,j(t)=permT(id,h,contrTj,i(t))\text{contrT}_{i, j}(t) = \text{permT}(\text{id}, h, \text{contrT}_{j, i}(t)) where permT\text{permT} is the kk-linear map that reorders indices, id\text{id} is the identity map on {0,,n1}\{0, \dots, n-1\}, and hh is the permutation condition ensuring that the resulting color sequences cdropPairEmbi,jc \circ \text{dropPairEmb}_{i, j} and cdropPairEmbj,ic \circ \text{dropPairEmb}_{j, i} are equivalent.

theorem

Commutativity of Successive Tensor Contractions (contrT\text{contrT})

#contrT_comm

Let SS be a tensor species over a ring kk. Let tt be a tensor of rank n+4n+4 associated with a color sequence c:Fin(n+4)Cc: \text{Fin}(n+4) \to C. Suppose we perform two successive contractions. The first contraction is at indices i1,j1Fin(n+4)i_1, j_1 \in \text{Fin}(n+4) where i1j1i_1 \neq j_1 and S.τ(c(i1))=c(j1)S.\tau(c(i_1)) = c(j_1). This results in a tensor contrTi1,j1(t)\text{contrT}_{i_1, j_1}(t) of rank n+2n+2. We then perform a second contraction at indices i2,j2Fin(n+2)i_2, j_2 \in \text{Fin}(n+2) where i2j2i_2 \neq j_2 and the colors of the corresponding indices in the reduced tensor are duals. To express the commutativity, we define the corresponding indices for the reverse order: - Let i2=dropPairEmbi1,j1(i2)i_2' = \text{dropPairEmb}_{i_1, j_1}(i_2) and j2=dropPairEmbi1,j1(j2)j_2' = \text{dropPairEmb}_{i_1, j_1}(j_2) be the indices in the original rank n+4n+4 tensor that correspond to i2i_2 and j2j_2 after i1i_1 and j1j_1 have been removed. - Let i1=dropPairEmbPrei2,j2(i1)i_1' = \text{dropPairEmbPre}_{i_2', j_2'}(i_1) and j1=dropPairEmbPrei2,j2(j1)j_1' = \text{dropPairEmbPre}_{i_2', j_2'}(j_1) be the indices in the rank n+2n+2 tensor (obtained after contracting i2i_2' and j2j_2') that correspond to the original indices i1i_1 and j1j_1. Then the result of the sequential contractions is independent of the order, up to a canonical identification: contrTi2,j2(contrTi1,j1(t))=permT(id,h,contrTi1,j1(contrTi2,j2(t)))\text{contrT}_{i_2, j_2}(\text{contrT}_{i_1, j_1}(t)) = \text{permT}(\text{id}, h, \text{contrT}_{i_1', j_1'}(\text{contrT}_{i_2', j_2'}(t))) where permT(id,h,)\text{permT}(\text{id}, h, \cdot) is the canonical isomorphism (reindexing) between the resulting tensor spaces.