xPert: Computer algebra for metric perturbation theory
David Brizuela, Jose M. Martin-Garcia, Guillermo A. Mena Marugan
TL;DR
The paper addresses the challenge of performing high-order metric perturbations in general relativity by introducing xPert, a Mathematica/xAct package that uses explicit nonrecursive formulas for curvature perturbations and efficient index canonicalization. It provides a modular toolkit to construct and manipulate nth-order perturbations, including gauge changes, with demonstrated performance up to high orders. The main contributions are the implementation of nonrecursive expansion formulas, integration with the xAct suite, and practical timing demonstrations that show feasibility on standard hardware. This work enables accurate, nonlinear perturbative analyses in GR, cosmology, and quantum-field-in-curved-space contexts, while remaining freely available as GPL software.
Abstract
We present the tensor computer algebra package xPert for fast construction and manipulation of the equations of metric perturbation theory, around arbitrary backgrounds. It is based on the combination of explicit combinatorial formulas for the n-th order perturbation of curvature tensors and their gauge changes, and the use of highly efficient techniques of index canonicalization, provided by the underlying tensor system xAct, for Mathematica. We give examples of use and show the efficiency of the system with timings plots: it is possible to handle orders n=4 or n=5 within seconds, or reach n=10 with timings below 1 hour.
