Physlib.Relativity.Tensors.Evaluation
Evaluation of tensor indices
## The evaluation coefficient.
Evaluation for a pure tensor.
Evaluation for a pure tensor as multilinear map.
16 declarations
-th basis coefficient of the -th vector in a pure tensor
Let be a tensor species over a field and be a sequence of colors representing a collection of vector spaces . A pure tensor is defined as an element of the dependent product , representing the tensor . Given an index and a basis index , the function `evalPCoeff` returns the -th coordinate of the -th component vector with respect to the basis of provided by the tensor species.
`evalPCoeff` after `update` at the same index equals the new vector's coefficient
Let be a tensor species over a field and be a sequence of colors representing a collection of vector spaces . Let be a pure tensor, representing the product . Let be the function that returns the -th coordinate of the -th component vector with respect to the basis of provided by the species. For any index , basis index , and vector , the -th basis coefficient of the -th component of the pure tensor updated at index with is equal to the -th basis coefficient of : where denotes the -th coordinate of in the basis of .
`evalPCoeff` is invariant under `update` at distinct indices
Let be a tensor species over a field and be a sequence of colors representing a collection of vector spaces . Let be a pure tensor, defined as an element of the dependent product , which represents the simple tensor . Let be the function that returns the -th coordinate of the -th component vector with respect to the basis of . For any index and , let denote an index in distinct from . If the -th component of is updated with a new vector , the -th basis coefficient of the -th component vector remains unchanged:
Evaluation of the -th index of a pure tensor at basis index
Let be a tensor species over a field and be a sequence of colors. A pure tensor of type is a family of vectors representing the tensor product , where each belongs to the vector space associated with color . Given an index and a basis index for the vector space , the function returns the tensor of rank formed by evaluating the -th index of at the -th basis element. This is defined as: where is the -th coordinate of the vector with respect to the basis of provided by the tensor species .
Additivity of Pure Tensor Evaluation with respect to Component Updates
Let be a tensor species over a field and be a sequence of colors, where each corresponds to a vector space . Let be a pure tensor (formally an element of the dependent product ) representing the simple tensor . Let be the operation that evaluates the -th index of at the -th basis element of , returning a tensor of rank . For any indices , a basis index for , and vectors , the evaluation operation is additive with respect to updating the -th component of the pure tensor: where denotes the pure tensor with its -th component replaced by .
Scalar Multiplicativity of under Component Update
Let be a tensor species over a field and be a sequence of colors, where denotes the vector space associated with color . Let be a pure tensor of type , representing the family of vectors where . For any indices , a basis index for the vector space , a scalar , and a vector , the evaluation of the -th index at basis index is homogeneous with respect to scalar multiplication in the -th component: where denotes the pure tensor obtained by replacing the -th component of with , and is the rank- tensor defined by , where is the -th coordinate of with respect to the basis of .
Multilinear map for the evaluation of the -th index at basis index
Let be a tensor species over a field and be a sequence of colors. For a fixed index and a basis index for the vector space (the space associated with color ), the function `evalPMultilinear i b` is the multilinear map from the product of vector spaces to the space of tensors of rank with the color sequence (where the -th color is omitted). Given a tuple of vectors , the map is defined by: where is the -th coordinate of the vector with respect to the basis of provided by the tensor species .
-linear map for the evaluation of the -th tensor index at basis index
Let be a tensor species over a field and be a sequence of colors. For a fixed index and a basis index for the vector space associated with the color , the -linear map maps a tensor to a tensor of rank with the color sequence (the original sequence with the -th element omitted). This map is defined as the linear extension of the multilinear evaluation map, which acts on a pure tensor as: where is the -th coordinate of the vector with respect to the basis of provided by the tensor species .
Let be a tensor species over a field and be a sequence of colors. For any index , any basis index for the vector space associated with the color , and any pure tensor (representing the tuple of vectors ), the -linear evaluation map applied to the tensor is equal to the direct evaluation of the pure tensor . That is, where is the image of the vectors in the tensor product space, and is defined as .
Evaluation of the -th index of a tensor basis element
Let be a tensor species over a field and be a sequence of colors. Let denote the basis element of the tensor space corresponding to the multi-index . For any index position and any basis index of the vector space , the evaluation of the -th index of at is given by: where is the multi-index of length obtained by removing the -th component from , and is the corresponding basis element in the reduced tensor space .
Evaluation commutes with tensor index permutation (Commutativity of and )
Let be a tensor species over a field . Let and be two color sequences, and let be a reindexing (a bijection such that ). For any tensor , any index , and any basis index of the vector space , the evaluation of the -th index of the permuted tensor at is equal to: where: 1. is the basis index viewed as an index for (noting that ). 2. is the induced reindexing on the reduced color sequences after removing from the target and from the source. 3. is the linear map that reorders tensor indices. 4. is the linear map that evaluates a tensor index at a specific basis element.
Evaluation and Contraction of Tensor Indices Commute
Let be a tensor species over a field , and let be a tensor of rank with color sequence . For an index and a basis index of the vector space , let be the evaluation of at the -th index. Let be two distinct indices such that the contraction is well-defined on the evaluated tensor (i.e., the color at is the dual of the color at in the sequence ). Then, evaluating the -th index and then contracting the pair is equivalent to first contracting the corresponding pair in the original tensor and then evaluating the residual index , up to a canonical reindexing: where: 1. and are the indices in the original rank tensor that map to and after is removed. 2. is the index in the rank tensor corresponding to the original index after indices and are removed via contraction. 3. is the basis index under the canonical identification of color spaces. 4. is the reindexing map corresponding to the commutativity of skipping one index and skipping a pair of indices ().
Evaluation Commutes with Tensor Product on the Right Factor
Let be a tensor species over a field . Let be a tensor of rank with color sequence , and be a tensor of rank with color sequence . For any index and any basis index of the vector space associated with color , the evaluation of the -th index of the right factor commutes with the tensor product operation: where denotes the tensor product `prodT`, is the evaluation map at the -th index, and is the canonical reindexing (permutation) that identifies the color sequence of with the color sequence of after the -th index has been removed.
Evaluation of a single-index basis tensor is the Kronecker delta
Let be a tensor species over a field . For a color , let denote the basis vector of the rank-1 tensor space corresponding to the index . Let be the linear map that evaluates the -th index of a tensor at the basis index , and let be the linear isomorphism that maps a rank-0 tensor to its corresponding scalar in . Then, evaluating the basis tensor at the index yields the Kronecker delta: where the comparison is performed under the canonical identification of the index types.
if for all
Let be a tensor species over a field , and let be a sequence of colors defining a tensor space. For any two tensors of rank with color sequence , if for every index and every basis index of the associated vector space , the evaluations and are equal, then . Here, denotes the tensor of rank obtained by evaluating the -th slot of at the -th basis vector.
Equality of tensors via evaluation of a single index
Let be a tensor species over a field , and let be a sequence of colors. Let and be tensors in . If there exists a fixed index such that for every basis index of the vector space associated with the color , the evaluation of the -th tensor index satisfies , then .
