Evaluation of tensor indices #
## The evaluation coefficient.
Given a i : Fin (n + 1), a b : basisIdx (c i) and a pure tensor
p : Pure S c, evalPCoeff i b p is the bth component of p i.
Equations
- TensorSpecies.Tensor.Pure.evalPCoeff i φ p = ((b (c i)).repr (p i)) φ
Instances For
Evaluation for a pure tensor. #
Given a i : Fin (n + 1), a φ : basisIdx (c i) and a pure tensor
p : Pure S c, evalP i φ p is the tensor formed by evaluating the ith index
of p at φ.
Equations
- TensorSpecies.Tensor.Pure.evalP i φ p = TensorSpecies.Tensor.Pure.evalPCoeff i φ p • (p.drop i).toTensor
Instances For
Evaluation for a pure tensor as multilinear map. #
The multi-linear map formed by evaluation of an index of pure tensors.
Equations
- TensorSpecies.Tensor.Pure.evalPMultilinear i φ = { toFun := fun (p : (i : Fin (n + 1)) → V (c i)) => TensorSpecies.Tensor.Pure.evalP i φ p, map_update_add' := ⋯, map_update_smul' := ⋯ }
Instances For
Evaluation of a tensor at a given index and basis element.
Equations
Instances For
The commutation of evaluation with permutations. #
Commuting evaluation with permutations.
The commutation of evaluation with evaluation. #
Commutation of two evaluations on a tensor basis vector.
Evaluating two tensor indices commutes, up to the canonical reindexing identifying the two possible orders in which the indices are removed.
The commutation of evaluation with contraction. #
Commuting evaluation with contraction. Evaluating index k and then contracting the
pair i j equals contracting the corresponding pair k.succAbove i, k.succAbove j and
then evaluating the residual index, up to the identity reindexing
IsReindexing.succAbove_succSuccAbove_comm.
The commutation of evaluation with products. #
Evaluating an index in the right factor of a tensor product commutes with forming the product, up to the identity reindexing which identifies the two ways of removing that index from the appended color list.
Other properties of evaluation #
Evaluating the single-index basis tensor basis ![c] (single.symm b) at the index x
yields the field element 1 if b = x (transported across ![c] 0 = c) and 0 otherwise:
evaluation of a one-index basis tensor is the Kronecker delta.
Basis expansion of a one-index tensor: every t : Tensor S ![c] is the sum over basis
indices i of its evaluation coefficient toScalar (evalT 0 i t) times the corresponding
basis tensor.
Reconstruction of a tensor from the evaluations of its last index: every t : Tensor S c
is the sum over basis indices i of the evaluation evalT (Fin.last n) i t tensored with
the basis covector basis ![c (Fin.last n)] (single.symm i), with the appended index
permuted back into the last slot.
Reconstruction of a tensor from the evaluations of its first index: every t : Tensor S c
is the sum over basis indices i of the basis covector basis ![c 0] (single.symm i) tensored
with the evaluation evalT 0 i t, with the prepended index permuted back into the first slot.
This is the first-index analogue of eq_sum_evalT.