Complete cosmic emergence simulation with self-reflective observation and live visualization for GenesisAeon
Project description
universums-sim
"A system that listens — a pattern that lives."
universums-sim is a complete cosmic emergence simulation package for the GenesisAeon framework. It provides a self-reflective N-body + field-theory simulation engine driven by an extended Unified Lagrangian, live mandala visualisation, sonification of emergence events, and a full Dash GUI — all behind a clean Typer CLI.
Mathematical Foundation
Unified Lagrangian
The total action of the system is:
$$S = \int \mathcal{L} , dt$$
where the Lagrangian density combines kinetic, gravitational, scalar, entropic, and topological terms:
$$\mathcal{L} = T_{\text{kin}} - V_{\text{grav}} - V_{\text{scalar}} - V_{\text{entropy}} - V_{\text{topo}}$$
Kinetic energy:
$$T_{\text{kin}} = \frac{1}{2} \sum_{i=1}^{N} m_i \left|\mathbf{v}_i\right|^2$$
Gravitational potential (softened):
$$V_{\text{grav}} = -\frac{G}{2} \sum_{i \neq j} \frac{m_i m_j}{\left|\mathbf{r}_{ij}\right| + \varepsilon}$$
Higgs-type scalar potential:
$$V_{\text{scalar}} = \frac{\lambda}{4}\phi^4 - \frac{\mu^2}{2}\phi^2, \quad \phi = \frac{\langle|\mathbf{r}|\rangle}{\sqrt{S}}$$
Entropic potential:
$$V_{\text{entropy}} = \kappa \cdot S \ln!\left(\frac{S}{S_0}\right)$$
Chern-Simons topological term:
$$V_{\text{topo}} = \xi \cdot \Omega, \quad \Omega = \sum_i \left(\mathbf{r}_i \times \mathbf{v}_i\right)_z$$
Emergence Rate
The instantaneous emergence rate at step $n$ is:
$$R_e(n) = \alpha \cdot S(n) \cdot \left(1 - \frac{S(n)}{S_{\max}}\right) \cdot e^{-\beta\left|\nabla H\right|}$$
Collapse Detection (Virial Ratio)
$$Q = \frac{2 T_{\text{kin}}}{|V_{\text{grav}}|}$$
| $Q$ | State |
|---|---|
| $Q > 2$ | EXPANDING |
| $1 \le Q \le 2$ | STABLE |
| $0.5 \le Q < 1$ | CONTRACTING |
| $Q < 0.5$ | CRITICAL |
| $V \to -\infty$ | SINGULARITY |
CosmicMoment
Each simulation tick produces a CosmicMoment snapshot:
$$\mathcal{M}_n = \left{ n,; t_n,; S(n),; R_e(n),; H(n),; \Phi(n),; {E_k},; Q_n \right}$$
Installation
# Minimal (simulation + CLI only)
pip install universums-sim
# Full stack (all GenesisAeon packages)
pip install 'universums-sim[full-stack]'
# GUI dashboard
pip install 'universums-sim[gui]'
# Sonification
pip install 'universums-sim[sonify]'
# Everything
pip install 'universums-sim[full-stack,gui,sonify]'
Quick Start
from universums_sim import UniverseSimulator
from universums_sim.simulation.core import SimulationConfig
cfg = SimulationConfig(n_particles=64, seed=42)
sim = UniverseSimulator(cfg)
for moment in sim.run(steps=100):
print(moment)
CLI
# Basic run
universums-sim run --steps 500 --entropy 1.0
# With live visualization
universums-sim run --steps 500 --visualize
# With sonification
universums-sim run --steps 500 --sonify
# Full GUI dashboard (opens http://localhost:8050)
universums-sim run --steps 1000 --gui
# Save to JSON
universums-sim run --steps 500 --output sim.json
# Export to CSV
universums-sim export sim.json --format csv
# Show version and citation
universums-sim info
Package Structure
src/universums_sim/
├── simulation/
│ ├── core.py # UniverseSimulator, CosmicMoment, SimulationConfig
│ ├── lagrangian.py # UnifiedLagrangian, CollapseState
│ └── emergence.py # EmergenceEngine, EmergenceEvent, EmergenceType
├── cli/
│ └── main.py # Typer CLI (run / replay / export / info)
├── visualization/
│ └── live.py # MandalaRenderer, Emergence3D, SonificationEngine,
│ # DashDashboard, LiveVisualizer
├── governance/
│ └── entropy.py # EntropyGovernor, GovernancePolicy (UTAC)
└── integrations/
└── registry.py # IntegrationRegistry (full-stack detection)
Optional Dependencies ([full-stack] extra)
| Package | Version | Role |
|---|---|---|
genesis-os |
>= 0.2.0 | Base OS layer for GenesisAeon |
aeon-ai |
>= 0.2.0 | AI inference integration |
cosmic-web |
>= 0.1.0 | Cosmic web connectivity |
fieldtheory |
>= 0.1.0 | Field-theory primitives |
mirror-machine |
>= 0.1.0 | Self-reflective loop engine |
advanced-weighting-systems |
>= 0.1.0 | Weighted entropy dynamics |
sigillin |
>= 0.1.0 | Symbolic sigil control |
entropy-governance |
>= 0.1.0 | Entropy policy enforcement |
utac-core |
>= 0.1.0 | Universal Thermodynamic Autonomy |
mandala-visualizer |
>= 0.1.0 | Sacred-geometry rendering |
sonification |
>= 0.1.0 | Emergence-to-audio mapping |
climate-dashboard |
>= 0.1.0 | Climate entropy dashboard |
implosive-genesis |
>= 0.1.0 | Implosion dynamics |
entropy-table |
>= 0.1.0 | Tabular entropy tracking |
Development
git clone https://github.com/GenesisAeon/universums-sim
cd universums-sim
pip install -e '.[dev]'
# Tests (>600, >99% coverage)
pytest
# Linting
ruff check src tests
# Type checking
mypy src
# Docs
mkdocs serve
Scientific Citation
@software{genesisaeon_universumssim_2024,
author = {GenesisAeon},
title = {universums-sim: Complete Cosmic Emergence Simulation},
year = 2024,
publisher = {Zenodo},
version = {0.1.0},
doi = {10.5281/zenodo.19161241},
url = {https://doi.org/10.5281/zenodo.19161241}
}
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file universums_sim-0.3.1.tar.gz.
File metadata
- Download URL: universums_sim-0.3.1.tar.gz
- Upload date:
- Size: 22.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e32ed4dd41ea0877caf03ad2131bcccbb95ccba17600df4983b9a444b7142483
|
|
| MD5 |
61fbf7f0606c5d094ad4ecb45f0f2296
|
|
| BLAKE2b-256 |
18ed05ce520d48fdbcf537bc63248b885f7f535163c1b508884bffc5fad5a63e
|
Provenance
The following attestation bundles were made for universums_sim-0.3.1.tar.gz:
Publisher:
release.yml on GenesisAeon/universums-sim
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
universums_sim-0.3.1.tar.gz -
Subject digest:
e32ed4dd41ea0877caf03ad2131bcccbb95ccba17600df4983b9a444b7142483 - Sigstore transparency entry: 1186458853
- Sigstore integration time:
-
Permalink:
GenesisAeon/universums-sim@84a37217be707d1b65648fe55ef64cf1177671bb -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/GenesisAeon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@84a37217be707d1b65648fe55ef64cf1177671bb -
Trigger Event:
push
-
Statement type:
File details
Details for the file universums_sim-0.3.1-py3-none-any.whl.
File metadata
- Download URL: universums_sim-0.3.1-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
854e5b04b7297b08228b8f526dbeafc6bd1225d1299795c6993c5967c985981a
|
|
| MD5 |
6d11ba307adf4b5b857956863f6f5e53
|
|
| BLAKE2b-256 |
a2c10c7c463109dea8fb80c199df367313bcbb72eac4a4c128b6354acf783a97
|
Provenance
The following attestation bundles were made for universums_sim-0.3.1-py3-none-any.whl:
Publisher:
release.yml on GenesisAeon/universums-sim
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
universums_sim-0.3.1-py3-none-any.whl -
Subject digest:
854e5b04b7297b08228b8f526dbeafc6bd1225d1299795c6993c5967c985981a - Sigstore transparency entry: 1186458861
- Sigstore integration time:
-
Permalink:
GenesisAeon/universums-sim@84a37217be707d1b65648fe55ef64cf1177671bb -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/GenesisAeon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@84a37217be707d1b65648fe55ef64cf1177671bb -
Trigger Event:
push
-
Statement type: