Contractions on pure tensors #
Pure.contrPCoeff #
dropPair #
Given i j : Fin (n + 1 + 1), c : Fin (n + 1 + 1) → C and a pure tensor p : Pure S c,
dropPair i j _ p is the tensor formed by dropping the ith and jth parts of p.
Equations
- TensorSpecies.Tensor.Pure.dropPair i j hij p m = p (i.succSuccAbove j m)
Instances For
Two permP–dropPair–dropPair towers over a common pure tensor agree once their composite
slot maps agree pointwise. Comparing two orders of dropping two pairs of slots this way keeps
every slot map an opaque variable, so the comparison closes by unification rather than by
whnf-reducing the color and index-map composites.
Two permP–dropPair–permP towers over a common pure tensor agree once their composite
slot maps agree pointwise. The one-contraction, inner-relabelled sibling of
permP_dropPair_dropPair_congr.
Contraction coefficient #
Given a pure tensor p : Pure S c and a i j : Fin n
corresponding to dual colors in c, contrPCoeff i j _ p is the
element of the underlying ring k formed by contracting p i and p j.
Equations
- TensorSpecies.Tensor.Pure.contrPCoeff i j hij p = (S.contr (c i)) (p i ⊗ₜ[k] (LinearEquiv.cast ⋯) (p j))
Instances For
contrPCoeff is insensitive to its proof arguments once the two contracted slots agree. Lets a
coefficient comparison rewrite the slots without a congr search through the proof fields.
Contractions #
For c : Fin (n + 1 + 1) → C, i j : Fin (n + 1 + 1) with dual color, and a pure tensor
p : Pure S c, contrP i j _ p is the tensor (not pure due to the n = 0 case)
formed by contracting the ith index of p
with the jth index.
Equations
- TensorSpecies.Tensor.Pure.contrP i j hij p = TensorSpecies.Tensor.Pure.contrPCoeff i j hij p • (TensorSpecies.Tensor.Pure.dropPair i j ⋯ p).toTensor
Instances For
contrP as a multilinear map #
The multi-linear map formed by contracting a pair of indices of pure tensors.
Equations
- One or more equations did not get rendered due to their size.