A computational approach to emergent spacetime, gravity, and quantum mechanics.
HCSN (Holographic Computational Spin-Network) explores the hypothesis that the universe is fundamentally computational β discrete events and causal relations give rise to spacetime, gravity, and quantum features.
β¨ Highlights
- Minimal, local rewrite rules drive evolution.
- Diagnostics test emergence of time, dimensionality, and metric structure.
- Designed as a research playground: toy universes, experiments, and visualization.
Table of Contents
- Overview
- Docs
- Axioms
- Repository Structure
- Quick Start
- How to Run a Toy Universe
- Diagnostics Explained
- Stable Spacetime-like Behavior
- Current Research Focus
- Contributing
- Acknowledgements & License
HCSN proposes a discrete, causal, and computational substrate:
- Events are vertices in a hypergraph; relations are (hyper)edges.
- Dynamics are local rewrite rules (edge creation, vertex fusion).
- Geometry, dimension, and time are emergent, not fundamental.
The long-term goal is to identify the minimal rule set that produces universes consistent with:
- Lorentz invariance (emergent)
- 4D spacetime structures
- Holographic scaling of information
- Quantum probabilistic behavior (Born rule)
This is full Documentation of this theory. Click here to read the Documentation
| Axiom | Name | Summary |
|---|---|---|
| 1 | Discreteness | Reality is discrete β events (vertices) are fundamental. |
| 2 | Causality | Events are partially ordered by causal relations. |
| 3 | Minimal Dynamics | Local rewrite rules drive evolution: Edge Creation & Vertex Fusion. |
| 4 | Holography | Information capacity scales with boundary (not volume). |
| 5 | Geometricity | Stable geometry emerges when β¨kβ© β 8 (a dimensional attractor). |
| 6 | Persistence | Hierarchical stability & error-correction via redundant causal loops. |
HCSN-Theory/
βββ engine/ # Core simulation engine
β βββ hypergraph.py # Vertices, hyperedges, causality
β βββ rules.py # Rewrite rules
β βββ rewrite_engine.py # Acceptance dynamics
β βββ observables.py # Physical diagnostics
βββ experiments/ # Reproducible experiments
β βββ exp_phase_diagram.py
β βββ exp_critical_scan.py
β βββ exp_worldline_interactions.py
βββ notebooks/ # Visualization & exploration (Jupyter)
βββ figures/ # Generated plots & assets
βββ theory/ # Conceptual documentation
β βββ hcsn_summary.md
βββ README.md
Requirements
- Python 3.10 or later
- No external dependencies by default (pure Python). If notebooks or plotting are used, consider: matplotlib, numpy, jupyter.
Clone and run:
git clone https://github.com/hcsn-theory/HCSN-Theory.git
cd HCSN-Theory
python3 run_simulation.pyThis runs a toy universe and prints diagnostics every N steps (see config/flags in the engine if present).
- Configure parameters (if available) in
engineor via command-line flags. - Start the simulation:
python3 run_simulation.py
- Key printed diagnostics (periodic):
- average coordination β¨kβ©
- causal depth (L)
- interaction concentration (Ξ¦)
- closure density (Ξ¨)
- hierarchical stability (Ξ©)
Tip: Increase logging or enable snapshotting in rewrite_engine.py for analysis and visualization.
| Symbol | Name | Meaning |
|---|---|---|
| β¨kβ© | Avg coordination | Controls effective dimensionality; geometric attractor near 8. |
| L | Causal depth | Maximum causal chain length β emergent time scale. |
| Ξ¦ | Interaction concentration | Measures hub dominance (want small Ξ¦ for uniformity). |
| Ξ¨ | Closure density | Redundancy in causal closure (error correction). |
| Ξ© | Hierarchical closure | RG-like stability across scales (non-zero indicates persistence). |
Interpretation guide:
- β¨kβ© β 7.5β8.5 β spacetime-like, stable geometry.
- Small Ξ¦ β suppressed hubs, more uniform interactions.
- Non-zero Ξ© across scales β hierarchical persistence and robustness.
Empirical indicators in simulations:
- β¨kβ© stabilizes near 7.5β8.5
- Ξ¦ remains small (no runaway hub formation)
- Ξ© > 0 across multiple scales
- Closure density Ξ¨ indicates sufficient redundancy for persistent structure
Negative results (failures) are equally valuable β they highlight missing axioms or rule constraints.
Active directions:
- Prevent metric collapse under coarse-graining
- Implement logarithmic information metrics (holographic tests)
- Enforce holographic bounds dynamically in evolution
- Search for Lorentz-invariant fixed points of the rule dynamics
- Explore mechanisms that produce quantum probabilistic outcomes (Born rule)
We welcome contributions from:
- physicists (GR, QFT, quantum gravity)
- mathematicians (graph theory, category theory)
- programmers (simulation performance, visualization)
- curious minds who can test assumptions
Getting started:
- Fork the repo, create a feature branch.
- Add reproducible experiments under
experiments/. - Document new rules, diagnostics, and observed behaviors.
- Open PRs with clear descriptions, expected behavior, and reproducibility notes.
Guidelines:
- Write reproducible code and seed RNGs where appropriate.
- Add tests or small example scripts demonstrating changes.
- Keep changes modular β new rules or observables should live in
engine/.
See notebooks/ for visualization experiments and step-by-step explorations. If a plotting stack is available, export snapshots to figures/ for inclusion in reports.
If you use HCSN-Theory in research, please cite the repo and include a reference to the simulation version/commit used. Consider adding a DOI via Zenodo for formal citation.
Please cite it as follows:
The HCSN Research Group, @hcsn. (2025). The Holographic Computational Spin-Network (HCSN): Theory & Simulation (Version 1.0.0) [Computer software]. https://github.com/hcsn-theory/HCSN-Theory
For LaTeX/Overleaf users:
@software{HCSN2025,
author = {The HCSN Research Group, @hcsn.},
title = {The Holographic Computational Spin-Network (HCSN): Theory & Simulation},
version = {1.0.0},
year = {2025},
url = {[https://github.com/hcsn-theory/HCSN-Theory](https://github.com/hcsn-theory/HCSN-Theory)}
}This project is active research and published under Apache 2.0 licence. For collaboration or questions, open an issue or contact the maintainers via GitHub: hcsn-theory
The HCSN Research Group is maintained by @hcsn.
Philosophy
βThe universe may not be described by computation β it may be computation.β
HCSN treats this as a testable hypothesis: build minimal computational rules and examine what emerges.
Enjoy exploring! π§©