Mercury (Hg): a relativistic N-body simulation for Horndeski gravity
astro-ph.CO, gr-qc, physics.comp-ph
Submitted: 2026-11-02
Updated: 2026-11-02
Comments: 44 pages, 15 figures, 4 tables
License: http://creativecommons.org/licenses/by/4.0/
The gist: We present Mercury, a relativistic N-body code for cosmological simulations in the α-basis formulation of Horndeski gravity.
Terminology
Abstract
We present Mercury, a relativistic N-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 α K, α B, α M, α T and the effective Planck mass M* squared. This generalises our previous implementation of Horndeski subclass models, namely k-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 k-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 M* squared 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.
Sources
- The Cosmic Linear Anisotropy Solving System (CLASS) II: Approximation schemes
- CAMB v2: cosmological power spectra for high-precision surveys
- hi_class: Horndeski in the Cosmic Linear Anisotropy Solving System
- hi_class: Background Evolution, Initial Conditions and Approximation Schemes
- Effective Field Theory of Cosmic Acceleration: an implementation in CAMB
- Maximal freedom at minimum cost: linear large-scale structure in general modifications of gravity
- mochi_class: Modelling Optimisation to Compute Horndeski In class
- Euclid. I. Overview of the Euclid mission
- Cosmological Tests of Modified Gravity
- General relativity and cosmic structure formation
- gevolution: a cosmological N-body code based on General Relativity
- $k$-evolution: a relativistic N-body code for clustering dark energy
- Parametrising non-linear dark energy perturbations
- asevolution: a relativistic N-body implementation of the (a)symmetron
- asimulation: Domain formation and impact on observables in resolved cosmological simulations of the (a)symmetron
- Gravitational waves from dark domain walls
- KGB-evolution: a relativistic $N$-body code for kinetic gravity braiding models
- The Theorem of Ostrogradsky
- Imperfect Dark Energy from Kinetic Gravity Braiding
- Effective Field Theory of Dark Energy: a Review
Related papers
- 21cmEMUv3: a hybrid diffusion-LSTM emulator of 21cmFAST summary observables
- Connecting field-level and n-point function measurements of galaxy bias
- The Impact of Cosmic Variance and Satellites on JWST Clustering Measurements at Redshift around 6
- Universality of Primordial Anisotropies in Gravitational Wave Background
- KiDS-1000 cosmic shear reanalysis using MetaCalibration
- 2Flow2SN: Dusty Supernova Cosmology with Photometric Redshifts and Contamination using Neural Simulation-Based Inference