Component indices #
i. Overview #
For a tensor species S and a list of colors c : Fin n → C, ComponentIdx S c
is the type of choices of a basis index for every color in c. For example, for a
tensor with colors ![.up, .down], an element of ComponentIdx ![.up, .down]
records one contravariant component index and one covariant component index.
This file contains the basic definition and congruence/cast API. Operations on component indices induced by tensor products and contractions live in sibling files.
ii. Key results #
TensorSpecies.Tensor.ComponentIdxis the type of component indices for a tensor with a given list of colors.TensorSpecies.Tensor.ComponentIdx.congr_rightrelates entries whose positions are equal.TensorSpecies.Tensor.ComponentIdx.castcasts component indices along equivalent color maps.
iii. Table of contents #
- A. Basic definitions
iv. References #
- None.
A. Basic definitions #
Given a list of indices c : Fin n → C, the type ComponentIdx c is the type of
component indices of a tensor with those colors. For instance, if c = ![.up, .down],
then an element of ComponentIdx c specifies one basis index for .up and one for
.down.
Equations
- TensorSpecies.Tensor.ComponentIdx c = ((j : Fin n) → basisIdx (c j))
Instances For
Casting of a ComponentIdx through equivalent color maps.
Equations
- TensorSpecies.Tensor.ComponentIdx.cast h hc b j = (TensorSpecies.basisIdxCongr ⋯) (b (Fin.cast ⋯ j))