Ahmad Nouri-Zonoz, Farbod Hassani, Julian Adamek, Emilio Bellini, Martin Kunz
Useful, well-documented public code generalising a line of relativistic DE simulations to the full linear α-basis, but physics remains linear in the scalar sector and validation is modest.
We present Mercury, a relativistic -body code for cosmological simulations in the -basis formulation of Horndeski gravity. Mercury extends a particle-mesh scheme by incorporating the dynamics of the additional scalar degree of freedom and the corresponding modified Einstein equations, expressed in terms of the time-dependent functions and the effective Planck mass . This generalises our previous implementation of Horndeski subclass models, namely -essence and kinetic gravity braiding (KGB), to the general linear Horndeski -basis. The code evolves the additional scalar degree of freedom and its effective stress--energy tensor alongside the nonlinear matter and metric fields, so that nonlinear structure formation sources the scalar-field evolution and feeds back on the gravitational potentials. Through its interface with hi_class, Mercury supports both phenomenological -function parametrisations and covariant Horndeski theories; we demonstrate the latter using nKGB, the Cubic Galileon, and Brans--Dicke models. We validate the implementation against hi_class in the linear regime and recover the expected nonlinear -essence and KGB limits. For the luminal Horndeski models considered here, we show how a running effective Planck mass generates gravitational slip through the scalar anisotropic stress and modifies the friction terms governing the vector and tensor metric perturbations. The evolution of also modifies the normalisation and scale dependence of the effective dark-energy density contrast, leaving a corresponding imprint on its power spectrum. The present framework provides an intermediate step towards nonlinear Horndeski simulations, in which nonlinear scalar self-interactions and screening effects can be incorporated consistently within the same relativistic framework.
Mercury generalises the authors' earlier k-evolution and KGB-evolution codes, which are built on gevolution, to the general linear Horndeski α-basis (α_K, α_B, α_M, α_T plus a running effective Planck mass M*²). The scalar degree of freedom is evolved on the lattice with its linear equation of motion, but it is sourced by nonlinear matter and metric fields. Its effective stress-energy, including the anisotropic stress, feeds back into a modified Hamiltonian constraint and trace-free solver. The solver also changes the vector and tensor friction terms through α_M and the tensor speed through α_T.
The main practical novelty is the interface to hi_class. Any model in hi_class, whether specified through α-parametrisations or covariant Horndeski actions, can be run in a relativistic N-body setting. The paper demonstrates six models: three EFT limits (kess, KGB, luminal Horndeski) and three covariant ones (nKGB, Cubic Galileon, Brans–Dicke).
The key conceptual limitation is that the scalar dynamics stay linear. There are no nonlinear scalar self-interactions and no screening, so this is an "intermediate step" and not a full nonlinear Horndeski simulation. Much of the novelty is therefore engineering and generalisation, not a new physical regime.
Interest is high in dynamical dark energy (DESI hints at w0wa, with phantom crossing) and in scalar–tensor extensions. Simulation tools that go beyond ΛCDM are a recognised bottleneck. The paper is timely, but it is an incremental technical step in a series (k-evolution, KGB-evolution) from the same group.
This is a solid, useful code paper that will be cited by those using or extending gevolution-based codes and by people interested in relativistic modified-gravity simulations. It is unlikely to change the field's direction until a nonlinear scalar sector is added.
Generated Nov 3, 2026
Useful, well-documented public code generalising a line of relativistic DE simulations to the full linear α-basis, but physics remains linear in the scalar sector and validation is modest.