Dear all,
I am trying to use SeriesData (or equivalently expressions containing O[r]) inside rules in xAct to speed up asymptotic calculations.
T[-a, -b] == h[-a, -b] + O[r]
Works fine as an equality. However, when I try to turn this into a rule, xAct complains about index inhomogeneity, since the left-hand side carries indices [-A, -B] while O[r] does not.
My goal is to systematically replace tensors by truncated series expansions using SeriesData, but in a way compatible with xAct’s index structure and pattern matching.
What is the recommended way to implement perturbative series rules in xAct while preserving index homogeneity?
Best regards,
Ehsan