My metric definition:
DefMetricPerturbation[g, h, \[Alpha]];
Making perturbation to the metric exact:
h[LI[n_], a_, b_] := 0 /; n > 1
One easy example of my problem with the repeated dummy indices is clear below:
(Perturbation[Sqrt[-Detg[]], 2] // ExpandPerturbation) /. Detg[] -> -1
which gives
-1/2 h[a,b]h[-a,-b] + 1/2 h[a,-a]h[b,-b] - 1/4 (h[a,-a])^2
The last term is inside red parentheses and I think it is because the dummy index is repeated. Mathematica has written it like that because probably it was -1/4 h[a,-a]h[a,-a]. We know that the second and third term have the same structure and they should be added together. How can I solve this problem?
Best,
Aresh