Skip to main content

Cosmological application layer for Regime-Limited Dynamical Systems (RLDS)

Project description

rlds-cosmo

RLDS-COSMO is the cosmological application layer of the Regime-Limited Dynamical Systems (RLDS) framework. It provides a reproducible high-redshift GRB forecast toolkit for testing the RLDS dark-sector closure against CPL/ΛCDM baselines.

License: MIT Python RLDS overview DOI

Position in the RLDS software family

  • rlds-mat is the mathematical core: RLDS reduction criteria, auxiliary-function geometry, attractor verification, and stability analysis.
  • rlds-cosmo is the first application layer: shooting self-consistency for dark-sector cosmology, high-redshift GRB forecast machinery, and a Cobaya-compatible theory wrapper.

RLDS-MAT DOI: https://doi.org/10.5281/zenodo.20342965
RLDS overview DOI: https://doi.org/10.5281/zenodo.19670133

Headline GRB forecast

For the current RLDS posterior, the package reproduces the high-redshift GRB signature:

  • median distance-modulus residual in 4 < z < 8: about −40 mmag over the posterior;
  • best-fit example: about −32 mmag in 4 < z < 8;
  • detection forecast at σ_μ = 0.25 mag: approximately 2.3σ for N_GRB = 200 and >3σ for N_GRB = 500 for the posterior median signal;
  • Cobaya-compatible theory wrapper for use in standard cosmological pipelines.

The sign convention is

Δμ = μ_CPL+Planck − μ_RLDS

so a negative value means the RLDS prediction is brighter at high redshift than the CPL+Planck counter-fit.

Installation

From a local checkout:

pip install -e .

After PyPI publication:

pip install rlds-cosmo

Quick start

from rlds_cosmo import ShootingRLDS, best_fit_params, predict_grb_residual

model = ShootingRLDS(**best_fit_params())

print(f"Omega_m = {model.Omega_m:.4f}")
print(f"w_eff(z=1) = {model.w_eff(1.0):.5f}")

result = predict_grb_residual(model)
print(f"<Δμ> z=4-8 = {result['avg_4_8_mmag']:+.1f} mmag")
print(f"CPL counter-fit: w0={result['w0_cpl']:+.3f}, wa={result['wa_cpl']:+.3f}")

Expected best-fit-scale output:

Omega_m = 0.2998
w_eff(z=1) = -1.00149
<Δμ> z=4-8 = -32.1 mmag

Command line

rlds-cosmo info
rlds-cosmo quickstart
rlds-cosmo headline --samples 100 --output grb_headline.png

The headline command regenerates the four-panel GRB figure from posterior samples.

What is included

Module Purpose
rlds_cosmo.model Core ShootingRLDS cosmology and observables
rlds_cosmo.posterior Bundled posterior chain and propagation helpers
rlds_cosmo.forecast GRB residual forecast and CPL counter-fit machinery
rlds_cosmo.cobaya_module Cobaya Theory plugin
rlds_cosmo.lcdm Reference ΛCDM utilities

Cobaya integration

theory:
  rlds_cosmo.cobaya_module.RLDSTheory:
    speed: 50

params:
  K:       {prior: {min: 0.005, max: 0.25}, ref: 0.012}
  H0:      {prior: {min: 60.0,  max: 75.0}, ref: 67.44}
  R_c:     {prior: {min: 0.30,  max: 0.60}, ref: 0.51}
  Delta_R: {prior: {min: 0.03,  max: 0.20}, ref: 0.15}
  alpha:   {prior: {min: 3.01,  max: 3.30}, ref: 3.010}
  Omega_m_derived: {derived: true}

See examples/02_cobaya_demo.py and examples/rlds_demo.yaml.

Reproducing the GRB figure

python examples/01_grb_headline.py

or, after installation:

rlds-cosmo headline --samples 200 --output grb_headline.png

Runtime depends on the number of posterior samples. A 100–200 sample run is enough for a fast reproducibility check; larger runs are used for publication figures.

Important naming note

The distribution name is:

rlds-cosmo

The Python import name is:

import rlds_cosmo

The import package is intentionally not named rlds, to avoid conflicts with unrelated packages and to mirror the existing rlds_mat core package.

Citing

If you use this code, cite the RLDS overview record:

Kubanski, A. (2026). RLDS dark-sector research program. Zenodo. DOI: 10.5281/zenodo.19670133

When referring to the mathematical core, cite RLDS-MAT:

RLDS-MAT DOI: 10.5281/zenodo.20342965

License

MIT. See LICENSE.

Project details


Download files

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

Source Distribution

rlds_cosmo-0.1.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

rlds_cosmo-0.1.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file rlds_cosmo-0.1.0.tar.gz.

File metadata

  • Download URL: rlds_cosmo-0.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for rlds_cosmo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e798faffec0ba4fc5b120cdd5df30c8fa1cb034467932bc2778941b2ea843000
MD5 67d22c26f9954380647b9b4686b04a71
BLAKE2b-256 5c12a9c1ba24cbd312aea7519c56f609de1f5ea8b2ba1f973afc0c123565508e

See more details on using hashes here.

File details

Details for the file rlds_cosmo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rlds_cosmo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for rlds_cosmo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1182e1ff9832a4f183dbaedf74974cf0ee261c3adf85147addc999de0affc211
MD5 dae8d880ffbf72da5d45e3445867a55e
BLAKE2b-256 8f801580e322c2159168b787c298c2e7d25106256acca00b5bd2834a15c5d3f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page