Tensor species #
- A tensor species is a structure including all of the ingredients needed to define a type of tensor.
- Examples of tensor species will include real Lorentz tensors, complex Lorentz tensors, and Einstein tensors.
- Tensor species are built upon symmetric monoidal categories.
The structure TensorSpecies contains the necessary structure needed to define
a system of tensors with index notation. Examples of TensorSpecies include real Lorentz tensors,
complex Lorentz tensors, and ordinary Euclidean tensors.
- τ : C → C
A map from
CtoC. An involution. - τ_involution : Function.Involutive self.τ
The condition that
τis an involution. - contr (c : C) : ((rep c).tprod (rep (self.τ c))).IntertwiningMap (Representation.trivial k G k)
The contraction of vectors with dual colors.
- unit (c : C) : (Representation.trivial k G k).IntertwiningMap ((rep (self.τ c)).tprod (rep c))
The invariant unit tensor for a given color.
- contr_tmul_symm (c : C) (x : V c) (y : V (self.τ c)) : (self.contr c) (x ⊗ₜ[k] y) = (self.contr (self.τ c)) (y ⊗ₜ[k] (Equiv.cast ⋯) x)
Contraction is symmetric with respect to duals.
- unit_symm (c : C) : (self.unit c) 1 = (LinearMap.lTensor (V (self.τ c)) ↑(LinearEquiv.cast ⋯)) ((TensorProduct.comm k (V (self.τ (self.τ c))) (V (self.τ c))) ((self.unit (self.τ c)) 1))
The unit is symmetric.
- contr_unit (c : C) (x : V c) : (TensorProduct.lid k (V c)) ((LinearMap.rTensor (V c) (self.contr c).toLinearMap) ((TensorProduct.assoc k (V c) (V (self.τ c)) (V c)).symm (x ⊗ₜ[k] (self.unit c) 1))) = x
Contraction with unit leaves invariant.
Instances For
Properties of the basis #
The casting between basisIdx c and basisIdx c1.
Equations
Instances For
basisIdxCongr only depends on its endpoints up to HEq of the arguments: equal target
colours and heterogeneously equal labels give equal casts.
A transported label is heterogeneously equal to the original.
For a species whose every colour carries the same label type I, a label transport is the
identity.
The contraction of two basis vectors does not change when their colour is transported along an equality and their labels with it.
map_basis_eq with the cast spelled Equiv.cast, the form contr_tmul_symm applies to its
first vector.
The number of indices n from a tensor.
Equations
Instances For
Metric #
Instance of a metric on a tensor species. For each color c an invariant tensor
in V c ⊗ V c, whose contraction against the metric of the dual color τ c is the unit.
Not every species has one: it requires every color to be self-dual,
which fails for the fundamental of SU(N), 3 ≤ N.
- metric (c : C) : (Representation.trivial k G k).IntertwiningMap ((rep c).tprod (rep c))
The invariant metric tensor for a given color.
- contr_metric (c : C) : (TensorProduct.comm k (V c) (V (S.τ c))) ((LinearEquiv.lTensor (V c) (TensorProduct.lid k (V (S.τ c)))) ((LinearMap.lTensor (V c) (LinearMap.rTensor (V (S.τ c)) (S.contr c).toLinearMap)) ((LinearMap.lTensor (V c) ↑(TensorProduct.assoc k (V c) (V (S.τ c)) (V (S.τ c))).symm) ((TensorProduct.assoc k (V c) (V c) (TensorProduct k (V (S.τ c)) (V (S.τ c)))) ((metric S c) 1 ⊗ₜ[k] (metric S (S.τ c)) 1))))) = (S.unit c) 1
On contracting metrics we get the unit.
Instances
The metric of a species with a metric, at the color c.
Equations
- S.metric c = TensorSpecies.WithMetric.metric S c
Instances For
On contracting metrics we get the unit.