Tensor Canonicalization
The Wolfram Language includes a powerful tensor canonicalizer, which can bring expressions involving products, contractions, and transpositions of tensors with symmetries into a standard form. From these standard forms, computations can be optimized, and new identities can be derived.
Declare T to be a rank-4 tensor in dimension with the transposition symmetries of the Riemann tensor. There are then 105 possible complete contractions of :