Skip to main content

Aletheia

Author Ariel Sánchez and The Aletheia Team
Contributors Ariel Sánchez, Andres Ruiz, Facundo Rodriguez, Carlos Correa, Andrea Fiorilli, Matteo Esposito, Jenny Gonzalez Jara, Nelson D. Padilla
Source Source code at GitLab
Documentation Documentation at MPCDF Pages
Installation pip install AletheiaCosmo
References Sánchez et al. (2026) (MNRAS / arXiv)
Fiorilli et al. (2026) (Mass Function, in prep)

Aletheia is an accurate and robust Python package that provides emulated predictions for the non-linear matter power spectrum and the halo mass function.

At its core, Aletheia is based on the evolution mapping framework, which provides a high degree of flexibility and allows the emulator to cover a wide cosmology parameter space at continuous redshifts up to $z \approx 4$.

Aletheia (Ἀλήθεια), in ancient Greek, means truth or unconcealment. In mythology, she was the personification of Truth.

Emulated Parameters

The current release of Aletheia is trained on the following key parameters (for more details, see the full documentation):

Parameter Description
$\omega_b$ Physical baryon density parameter
$\omega_c$ Physical cold dark matter density parameter
$n_s$ Primordial scalar spectral index
$\sigma_{12}$ RMS of matter fluctuations at $R=12,{\rm Mpc}$

The emulator is trained on shape parameters spanning $\pm 5\sigma$ of Planck 2018 constraints and a wide clustering range of $0.2 < \sigma_{12} < 1.0$. For the halo mass function, predictions are valid within a dynamically calculated $\sigma_{12}$-dependent window of peak heights ($\nu$).

It also robustly handles variations in dark energy through the evolution mapping technique, allowing for inputs of $A_{\rm{s}}$, $w_0$, $w_a$, $\omega_{\rm DE}$ and $\omega_k$.

Getting Started

You can install the latest stable release of the code directly from PyPI:

pip install AletheiaCosmo

Once installed, you can follow the Jupyter Notebook tutorial or the Quick Start Guide for an example of how to make predictions.

A minimal example is as simple as:

import numpy as np
from aletheiacosmo import AletheiaEmu

# 1. Define cosmology using the built-in helper
cosmo_params = AletheiaEmu.create_cosmo_dict(
    h=0.67,
    omega_b=0.0224,
    omega_c=0.120,
    n_s=0.96,
    A_s=2.1e-9,
    model='LCDM'
)

# 2. Initialize the emulator
emu = AletheiaEmu()

# 3. Get the non-linear P(k) at z=1.0
# Scales to be considered, in 1/Mpc
k = np.logspace(-2, 0.3, 100)
z = 1.0
# Return the non-linear power spectrum in units of Mpc^3
p_nonlinear = emu.get_pnl(k, cosmo_params, z)

# 4. Get the differential halo mass function dn/dlnM at z=1.0
M = np.logspace(13.3, 14.8, 50) # Halo masses in Msun
dn_dlnM = emu.nM_dlogM(M, cosmo_params, z) # Returns Mpc^-3

Developer Version

If you wish to modify the code or contribute to development, you can install the developer version:

# Clone the repository
git clone [https://gitlab.mpcdf.mpg.de/arielsan/aletheia.git](https://gitlab.mpcdf.mpg.de/arielsan/aletheia.git)
cd aletheia

# Install in editable mode
pip install -e .

License

This package is made publicly available under the MIT License.

Project Status

Aletheia is under active development. Follow the public repository at https://gitlab.mpcdf.mpg.de/arielsan/aletheia to ensure you are always up-to-date with the latest release.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aletheiacosmo-1.1.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aletheiacosmo-1.1.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file aletheiacosmo-1.1.0.tar.gz.

File metadata

  • Download URL: aletheiacosmo-1.1.0.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for aletheiacosmo-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ac7cd845c8b3ea515d8925504c7287e05764d96a46ff4a28d95337e89c50bfbd
MD5 0b078c0cc427cdce61d960f57d384ca7
BLAKE2b-256 4ce7dfa26337d9d9db79262aa9e6ed0d09f3dac4672e4dbf547a7dcedec83e46

See more details on using hashes here.

File details

Details for the file aletheiacosmo-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: aletheiacosmo-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for aletheiacosmo-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 954f1bfc043f19b0898a058afc278462e3200d8247930c2b41116af2a6b596e7
MD5 2ed4e9af00d0796c51cb4ee118456331
BLAKE2b-256 d9e6ced2b656a1c16c88606507a22b0fdf01829a9ecbfd80e825d4bc295be1fe

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page