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.

Metadata

Release files for AletheiaCosmo 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AletheiaCosmo 1.1.0
File Size Uploaded
aletheiacosmo-1.1.0.tar.gz 22.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AletheiaCosmo 1.1.0
File Interpreter ABI Platform
aletheiacosmo-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.4 kB

Release files / aletheiacosmo-1.1.0.tar.gz

Download URL aletheiacosmo-1.1.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ac7cd845c8b3ea515d8925504c7287e05764d96a46ff4a28d95337e89c50bfbd
BLAKE2b-256 checksum
How to use checksums
4ce7dfa26337d9d9db79262aa9e6ed0d09f3dac4672e4dbf547a7dcedec83e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.14

Release files / aletheiacosmo-1.1.0-py3-none-any.whl

Download URL aletheiacosmo-1.1.0-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
954f1bfc043f19b0898a058afc278462e3200d8247930c2b41116af2a6b596e7
BLAKE2b-256 checksum
How to use checksums
d9e6ced2b656a1c16c88606507a22b0fdf01829a9ecbfd80e825d4bc295be1fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.14

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.1.1

2 release files

0.1.0

2 release 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