Hi,
I just wanted to say that the best solution in this case is to use ToCanonical or Simplification, applied to the whole expression. As Thomas said, both should work in original case in this thread.
The use of ReplaceDummies as recommended in the previous email is not appropriate, for three reasons:
- ReplaceDummies is used on one of the two terms only. This will just change the names of the dummies of that term, in general to names that do not coincide with the dummy names of the other terms of the sum.
- Even if used on the whole expression, ReplaceDummies does not try to use common dummy names for different terms. It is SameDummies that does such a thing. In fact, ToCanonical always uses SameDummies internally on a sum of terms. (Recall that Simplification is just a combination of ToCanonical and Simplify).
- ToCanonical (and hence Simplification) can move indices up and down with the metric, or use the symmetry groups of the tensors, while ReplaceDummies and SameDummies cannot.
So again, the recommendation is: use systematically Simplification (or ToCanonical for longer sums of terms in which Simplify may be slow). Use of SameDummies, ReplaceDummies and other internal tools should be exercised with care, only when operations must be guided step by step for some reason.
Cheers,
Jose.