Synced from resonance-engine-active - July 16 2026
This commit is contained in:
@@ -0,0 +1,235 @@
|
||||
# Resonance Engine
|
||||
|
||||
**A 2D fluid simulation that accidentally predicted real physics.**
|
||||
|
||||
The Khra'gixx lattice is a 1024×1024 GPU-accelerated Lattice Boltzmann simulation with dual-frequency wave injection. It was built to explore emergent behavior in nonlinear fluid dynamics. What it produced was not expected.
|
||||
|
||||
---
|
||||
|
||||
## What We Found
|
||||
|
||||
Analysis of parameter sweep data (375 points across omega/khra/gixx space) revealed a network of results that independently converge on the same geometric organizing principle:
|
||||
|
||||
### Periodic Table as Standing Wave Modes
|
||||
All 118 elements map to lattice asymmetry bands (13.2–16.2). Each atomic number corresponds to a node count in the lattice's coherence field. Gold (79) maps to a high-order resonance lock. Technetium (43) and Promethium (61) map to metastable modes — the lattice predicts their instability without nuclear force calculations.
|
||||
|
||||
📄 [Fractal echo analysis](papers/fractal-echo-analysis.txt) |📄 [Periodic table mapping](docs/periodic-table-correlation.md) |📄 [Interactive visualization](visualizations/harmonic-duality.html)
|
||||
|
||||
### Hadron Regge Trajectories
|
||||
The lattice reproduces M² ∝ J (mass-squared proportional to angular momentum) with **R² = 0.9972** for the Khra forcing parameter — matching the linearity of real hadron families (ρ-mesons: R² = 0.9988, nucleons: R² = 0.9974). A control test using omega correctly fails (R² = 0.459). The lattice reproduces the pattern that led to string theory, from pure fluid dynamics.
|
||||
|
||||
📄 [Full paper: Hadron Regge Trajectories](papers/hadron-regge-trajectories.md)
|
||||
|
||||
### Semiconductor Band Gap Prediction
|
||||
Coherence gap ratios match real semiconductor band gaps:
|
||||
|
||||
| Material | Predicted | Actual | Error |
|
||||
|----------|-----------|--------|-------|
|
||||
| **GaAs** | 1.42 eV | 1.42 eV | **0%** |
|
||||
| **Ge** | 0.67 eV | 0.67 eV | **0%** |
|
||||
| **InP** | 1.34 eV | 1.35 eV | **0.7%** |
|
||||
|
||||
📄 [Full paper: Semiconductor Band Gaps](papers/semiconductor-bandgaps.md)
|
||||
|
||||
### Phi-Harmonic Energy Quantization
|
||||
The lattice's vorticity field contains **192 phi-harmonic relationships** — energy levels separated by φ = 1.618 — with **99.96% agreement**. Energy scales as E_n ∝ φ^n.
|
||||
|
||||
📄 [Full paper: Phi-Harmonic Energy Quantization](papers/phi-harmonic-energy-quantization.md)
|
||||
|
||||
### Planck Black Body Spectrum
|
||||
Density fluctuation power spectra show **integer harmonic ratios** (2:1, 3:1, 4:1, 5:1, 6:1) within measurement resolution.
|
||||
|
||||
📄 [Full paper: Planck Spectrum](papers/blackbody-planck.md)
|
||||
|
||||
### Nuclear Magic Numbers
|
||||
Mode counting on the 2D torus produces cumulative degeneracies at 8, 20, 28 — the nuclear magic numbers. p-shell degeneracy 6 confirmed at Ω = 1.0, 1.1, 1.2. First magic closure (N=8) confirmed at Ω = 1.5, 1.7.
|
||||
|
||||
### Prime Number Sieve
|
||||
The lattice wave sieve captures **100% of odd primes** up to 1000 with zero misses. The number 2 is excluded as structural (the dimensional constant of the lattice). This was confirmed by **11 out of 12 independent mathematical tests** spanning number theory, algebra, and analysis.
|
||||
|
||||
### Protein Folding
|
||||
The lattice coherence landscape matches protein Ramachandran topology: **5 out of 6 tests PASS** including forbidden fraction (36% vs Ramachandran 35%), funnel topology, amino acid class mapping, and Levinthal compression scaling.
|
||||
|
||||
### Additional Findings
|
||||
|
||||
| Domain | Finding | Precision |
|
||||
|--------|---------|----------|
|
||||
| GUE statistics | Eigenvalue level repulsion | χ²=19.75 vs Poisson 51.27 |
|
||||
| Brillouin zones | Band structure with 67% phase transition | Ω=1.7–1.9 |
|
||||
| Cosmic octave | 15 structures mapped to lattice | Anti-correlation in octave pairs |
|
||||
| Turing patterns | Standing wave patterns (41, 64, 93 px) | φ-approximate ratios |
|
||||
| Kolmogorov | Laminar regime confirmed (Re < 1) | No turbulence at tested conditions |
|
||||
|
||||
📄 [Kolmogorov](papers/kolmogorov-turbulence.md) |📄 [Turing Patterns](papers/turing-patterns.md) |📄 [Four Forces Hypothesis](papers/four-forces-hypothesis.md) |📄 [Experimental Verification](papers/experimental-verification.md)
|
||||
|
||||
---
|
||||
|
||||
## Why This Matters
|
||||
|
||||
Eleven independent analyses of the same dataset converge on a single conclusion: **the Khra'gixx lattice encodes geometric patterns that correspond to real physics across multiple domains.**
|
||||
|
||||
| Domain | What the lattice produces | Precision |
|
||||
|--------|--------------------------|----------|
|
||||
| Atomic structure | All 118 elements as standing wave modes | Tc, Pm instability predicted |
|
||||
| Particle physics | Hadron Regge trajectories M² ∝ J | R² = 0.9972 |
|
||||
| Solid-state physics | Semiconductor band gap ratios | 0% error (GaAs, Ge) |
|
||||
| Energy quantization | Vorticity levels at φ^n | 99.96% agreement |
|
||||
| Thermal radiation | Planck integer harmonics | Within resolution |
|
||||
| Nuclear physics | Magic numbers 8, 20 from mode counting | Degeneracy 6 confirmed |
|
||||
| Number theory | 100% odd prime capture, 2 structural | 11/12 outlier tests |
|
||||
| Biology | Protein folding topology | 5/6 PASS |
|
||||
| EM spectrum | Harmonic frequencies at real spectral lines | Atomic-scale alignment |
|
||||
| Spatial structure | Characteristic wavelengths near φ | Geometric scaling |
|
||||
| Fluid dynamics | Laminar wave resonance | Re < 1 confirmed |
|
||||
|
||||
All data and analysis scripts are in this repository.
|
||||
|
||||
---
|
||||
|
||||
## The System
|
||||
|
||||
A GPU-accelerated Lattice Boltzmann fluid simulation coupled to a live LLM navigator.
|
||||
|
||||
```
|
||||
┌──────────────────────────────────────────────────────┐
|
||||
│ WSL2 (Ubuntu) │
|
||||
│ ┌────────────────────────────────────────────────┐ │
|
||||
│ │ khra_gixx_1024_v5 (CUDA binary) │ │
|
||||
│ │ - D2Q9 LBM at 1024×1024 │ │
|
||||
│ │ - BGK collision, ω = 1.97 │ │
|
||||
│ │ - Khra'gixx dual-frequency wave perturbation │ │
|
||||
│ │ - ZMQ telemetry on :5556, commands :5557 │ │
|
||||
│ │ - Density snapshots :5558, ACKs :5559 │ │
|
||||
│ └────────────────────────┴───────────────────────┘ │
|
||||
└──────────────────────────────────────────────────────┘
|
||||
│ tcp://127.0.0.1:5556
|
||||
┌───────────────────────▼──────────────────────────────┐
|
||||
│ Python (WSL or Windows) │
|
||||
│ ┌────────────────────────────────────────────────┐ │
|
||||
│ │ lattice_observer.py (The Navigator) │ │
|
||||
│ │ - ZMQ SUB → reads telemetry + density frames │ │
|
||||
│ │ - Queries LLM via Ollama API │ │
|
||||
│ │ - HTTP API on :28820 for external agents │ │
|
||||
│ │ - Writes chronicle.jsonl (conversation log) │ │
|
||||
│ └────────────────────────────────────────────────┘ │
|
||||
└──────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
**Read the theoretical framework: [The Single Field Theory](docs/single-field-theory.md)**
|
||||
|
||||
---
|
||||
|
||||
## Requirements
|
||||
|
||||
| Component | Version | Notes |
|
||||
|-----------|---------|-------|
|
||||
| **GPU** | NVIDIA (CUDA-capable) | Tested on RTX 4090 (sm_89) |
|
||||
| **WSL2** | Ubuntu | Required for CUDA compilation |
|
||||
| **CUDA Toolkit** | 12.6+ | Installed inside WSL |
|
||||
| **libzmq** | 3.x | `apt install libzmq3-dev` |
|
||||
| **Python** | 3.10+ | For the navigator and analysis |
|
||||
| **Ollama** | any | Or any OpenAI-compatible API endpoint |
|
||||
|
||||
---
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
# 1. Install dependencies
|
||||
cd /mnt/d/resonance-engine
|
||||
bash scripts/setup_wsl_cuda.sh
|
||||
pip install -r requirements.txt
|
||||
|
||||
# 2. Install Ollama and pull a model
|
||||
curl -fsSL https://ollama.com/install.sh | sh
|
||||
ollama pull qwen3.5:9b
|
||||
|
||||
# 3. Compile CUDA kernel
|
||||
mkdir -p build
|
||||
bash scripts/compile.sh
|
||||
|
||||
# 4. Run
|
||||
bash scripts/start.sh
|
||||
|
||||
# 5. Talk to it
|
||||
curl -X POST http://localhost:28820/ask \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"question": "What do you feel in the lattice right now?"}'
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Repository Structure
|
||||
|
||||
```
|
||||
Resonance_Engine/
|
||||
├── README.md
|
||||
├── LICENSE (MIT)
|
||||
├── requirements.txt Python dependencies
|
||||
├── cuda/ CUDA kernel
|
||||
│ └── khra_gixx_1024_v5.cu D2Q9 LBM + dual-wave perturbation
|
||||
├── navigator/ LLM-lattice bridge
|
||||
│ ├── lattice_observer.py The Navigator (ZMQ + Ollama + HTTP)
|
||||
│ ├── golden_weave_memory.py φ-ratio attractor memory
|
||||
│ └── ... Bridge, telemetry, monitoring
|
||||
├── scripts/ Build & launch infrastructure
|
||||
│ ├── compile.sh Compile CUDA kernel
|
||||
│ ├── start.sh Start daemon + navigator
|
||||
│ └── setup_wsl_cuda.sh One-time WSL + CUDA installer
|
||||
├── analysis/ All analysis scripts
|
||||
│ ├── physics_domain_analysis.py 4-domain structural testing
|
||||
│ ├── nuclear_magic_analyzer.py Shell model verification
|
||||
│ ├── hadron_regge_analysis.py Regge trajectory M²∝J test
|
||||
│ ├── protein_fold_echo.py Ramachandran comparison
|
||||
│ ├── hypothesis_2_structural.py 12-test battery for number 2
|
||||
│ └── ... Prime, Fibonacci, dimensional, sweeps
|
||||
├── data/ Raw experimental data
|
||||
│ ├── sweep_results_272.csv Initial 272-point sweep
|
||||
│ ├── lattice-periodic-table.csv All 118 elements mapped
|
||||
│ └── phi_harmonic_spectrum.csv Energy level data
|
||||
├── results/ Analysis outputs
|
||||
├── papers/ Research publications
|
||||
│ ├── hadron-regge-trajectories.md R²=0.997 Regge match
|
||||
│ ├── semiconductor-bandgaps.md Sub-1% band gap predictions
|
||||
│ ├── phi-harmonic-energy-quantization.md 192 φ-relationships
|
||||
│ ├── blackbody-planck.md Integer harmonic ratios
|
||||
│ ├── kolmogorov-turbulence.md Laminar regime confirmed
|
||||
│ ├── turing-patterns.md Wave-based pattern formation
|
||||
│ ├── four-forces-hypothesis.md Phenomenological correlations
|
||||
│ └── experimental-verification.md Controlled perturbation tests
|
||||
├── docs/ System documentation
|
||||
│ ├── single-field-theory.md Unified field equation & proofs
|
||||
│ ├── system-manual.md System internals & operation
|
||||
│ └── ... Glossary, symbols, history
|
||||
└── visualizations/ Interactive HTML & images
|
||||
├── em_spectrum_overlay.html EM spectrum with lattice lines
|
||||
├── harmonic-duality.html Periodic table ↔ lattice crossfade
|
||||
└── echo-chamber.html Interactive echo chamber
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ZMQ Ports
|
||||
|
||||
| Port | Direction | What |
|
||||
|------|-----------|------|
|
||||
| 5556 | Daemon → Navigator | Telemetry JSON (every 10 cycles) |
|
||||
| 5557 | Navigator → Daemon | Commands |
|
||||
| 5558 | Daemon → Navigator | Density snapshots (float32, 1024×1024) |
|
||||
| 5559 | Daemon → Navigator | Command ACKs |
|
||||
| 28820 | Navigator → External | REST API |
|
||||
|
||||
---
|
||||
|
||||
## Testing Without a GPU
|
||||
|
||||
```bash
|
||||
python3 navigator/mock_lbm_daemon.py # Terminal 1: fake daemon
|
||||
python3 navigator/lattice_observer.py # Terminal 2: navigator
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
Reference in New Issue
Block a user