Production-ready toolkit for SSZ (Segmented Spacetime) calculations
Validated against GPS, Pound-Rebka, and 47 ESO spectroscopy measurements
© 2025 Carmen Wrede & Lino Casu
Contact: mail@error.wtf
- Click the badge above to open in Google Colab
- Run all cells (Runtime → Run all)
- The notebook clones this repository and launches the full app
- You get a public shareable link (e.g.,
https://xxxxx.gradio.live) - Share this link - full features: Single Calc, Batch, Theory Plots, 186 Tests!
Tip: If no public link appears, use Runtime → Factory reset runtime and run all cells again.
git clone https://github.com/error-wtf/segmented-calculation-suite.git
cd segmented-calculation-suite
pip install -r requirements.txt
python app.py # Opens web UI at http://127.0.0.1:7863Features:
- Single Object - Calculate Ξ, D, z for any mass/radius
- Batch Processing - Upload CSV with multiple objects
- Interactive Plots - Time dilation & segment density curves
- Presets - Sun, Sirius B, Neutron Stars
- Artifacts - Every run saves to
./reports/<run_id>/
Screenshot: Run python app.py to see the interactive web interface.
python -m segcalc single -m 2.0 -r 13.7 # Single calculation
python -m segcalc batch -i data.csv # Batch processing
python -m segcalc info # Show formulas| Test | Expected | Result | Status |
|---|---|---|---|
| Ξ(r_s) | 0.802 | 0.802 | ✅ |
| D_SSZ(r_s) | 0.555 | 0.555 (FINITE!) | ✅ |
| GPS Correction | ~45 μs/day | 45.7 μs/day | ✅ |
| Pound-Rebka | 2.46×10⁻¹⁵ | 2.46×10⁻¹⁵ | ✅ |
| Unit Tests | 186/186 | 186/186 passing | ✅ |
- CLI Interface - Single/batch calculations from command line
- Xi Regime System - Weak/Strong/Blend with C² Hermite interpolation
- Power Law - E_norm = 1 + 0.32×(r_s/R)^0.98 (R² = 0.997)
- PPN Methods - Light deflection, Shapiro delay, perihelion precession
- Neutron Star Dataset - 8 NICER-validated pulsars
- Compact Object Dataset - 17 objects (WD + NS + BH)
- Run Management - Full artifacts per calculation run
pip install -r requirements.txt| Quantity | Formula | Notes |
|---|---|---|
| Schwarzschild radius | r_s = 2GM/c² | Fundamental scale |
| Segment density (Weak) | Ξ = r_s/(2r) | r/r_s > 10 |
| Segment density (Strong) | Ξ = 1 - exp(-φ·r_s/r) | r/r_s < 1.8 |
| SSZ time dilation | D_SSZ = 1/(1+Ξ) | For time comparisons |
| GR time dilation | D_GR = √(1-r_s/r) | Standard GR |
| SSZ Redshift | z_SSZ = z_GR × (1 + Δ(M)/100) | Key result! |
| Δ(M) correction | Δ = A·exp(-α·r_s) + B | ~1-2% for solar masses |
| Power Law | E_norm = 1 + 0.32×(r_s/R)^0.98 | R² = 0.997 |
| Light Deflection | α = (1+γ)r_s/b = 2r_s/b | PPN with γ=1 |
| Constant | Value | Meaning |
|---|---|---|
| φ (Golden Ratio) | 1.618034 | Fundamental SSZ parameter |
| r*/r_s | 1.595 | Universal intersection point |
| Ξ(r_s) | 0.802 | Segment density at horizon |
| D_SSZ(r_s) | 0.555 | FINITE (no singularity!) |
SSZ redshift matches GR almost exactly, with only a small Δ(M) φ-correction:
z_SSZ ≈ z_GR × (1 + 1.25%) # For neutron stars
This is proven in the "Dual Velocities" paper:
"In the segmented model γ_s is matched identical, therefore z(r) is identical"
Why do different SSZ repositories show different intersection points (1.39 vs 1.59)?
This is NOT an inconsistency — it's a perspective switch:
| Definition | Formula | Intersection |
|---|---|---|
| (A) Metric Factor | D = √g_tt | r*/r_s ≈ 1.39 |
| (B) Effective Pace | D = 1/(1+Ξ) | r*/r_s ≈ 1.59 |
Both are correct — they model the same physics from complementary viewpoints. At the horizon (r = r_s), both give identical results: Ξ = 0.802, D = 0.555.
📄 Full explanation: docs/gr-ssz-match.md
- Sample Objects (15 stars, planets, compact objects)
- Sample Galaxies (5 nearby galaxies)
- Pulsars (8 neutron stars)
- Black Holes (10 stellar and supermassive)
- Gaia Nearby Stars (online fetch)
- ESO Spectroscopy (online fetch)
Upload CSV files with columns:
name- Object nameM_solarormass- Mass in solar massesR_kmorradius- Radius in kmz_obsorz- Observed redshift (for comparison)
| Repository | Description |
|---|---|
| Unified Results | Comprehensive validation across 13 astronomical objects |
| SSZ Metric Pure | 4D tensor formulation, Einstein/Ricci curvature |
| SEGMENTED_SPACETIME | Theoretical foundations and derivations |
| SSZ Qubits | Quantum applications, 74 validation tests |
| SSZ Paper Plots | Publication-ready visualizations |
| Cygnus X-1 Tests | Black hole validation dataset |
| SSZ Schumann | Schumann resonance experiment |
Anti-Capitalist Software License v1.4
© 2025 Carmen Wrede & Lino Casu
This is anti-capitalist software, released for free use by individuals and organizations that do not operate by capitalist principles.
Permitted users:
- Individuals laboring for themselves
- Non-profit organizations
- Educational institutions
- Worker-owned cooperatives
- Organizations with annual expenses below $1,000,000 USD
For academic/scientific use, please cite:
Wrede, C., Casu, L. (2025). Segmented Spacetime Calculation Suite. GitHub. https://github.com/error-wtf/segmented-calculation-suite
Contact: mail@error.wtf