PhyslibSearch

Physlib.Relativity.Tensors.OfInt

4 declarations

abbrev

Tensor with integer components

#TensorInt

A tensor with integer components with respect to the basis. Given a natural number \( n \) and an index configuration \( c : \{0, 1, \dots, n-1\} \to C \), it is defined as a function mapping the component indices associated with \( c \) to the integers \( \mathbb{Z} \).

definition

Tensor from integer components ff

#toTensor

Given a tensor with integer components fTensorInt(S,c)f \in \text{TensorInt}(S, c), where ff is a function mapping the set of component indices ComponentIdx(c)\text{ComponentIdx}(c) to Z\mathbb{Z}, this function constructs the corresponding element in the tensor space S.Tensor(c)S.\text{Tensor}(c). It does so by casting each integer component f(b)f(b) to the underlying field kk and using these as the coordinates for the basis of the tensor space.

theorem

The bb-th basis coordinate of toTensor(f)\text{toTensor}(f) is f(b)f(b)

#basis_repr_apply

Let nn be a natural number and c:{0,1,,n1}Cc: \{0, 1, \dots, n-1\} \to C be an index configuration. Let ff be a function mapping the component indices ComponentIdx(c)\text{ComponentIdx}(c) to the integers Z\mathbb{Z} (an element of TensorInt(S,c)\text{TensorInt}(S, c)). Let toTensor(f)\text{toTensor}(f) be the tensor in the space S.Tensor(c)S.\text{Tensor}(c) obtained by casting these integer components to the underlying field. Then, for any basis index bComponentIdx(c)b \in \text{ComponentIdx}(c), the bb-th coordinate of toTensor(f)\text{toTensor}(f) with respect to the basis Tensor.basis(c)\text{Tensor.basis}(c) is equal to the integer f(b)f(b) cast into the field.

theorem

The bb-th basis vector is the tensor with components δb,b\delta_{b, b'}

#basis_eq_tensorInt

Let nn be a natural number and c:{0,1,,n1}Cc: \{0, 1, \dots, n-1\} \to C be an index configuration. For any component index bComponentIdx(c)b \in \text{ComponentIdx}(c), the bb-th element of the basis for the tensor space S.Tensor(c)S.\text{Tensor}(c) is equal to the tensor toTensor(f)\text{toTensor}(f) constructed from the integer-valued function f:ComponentIdx(c)Zf: \text{ComponentIdx}(c) \to \mathbb{Z} defined by f(b)=1f(b') = 1 if b=bb' = b and f(b)=0f(b') = 0 otherwise.