Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

SSZ (Segmented Spacetime) Calculation Suite - Production toolkit for singularity-free gravity calculations. 186 tests, GPS validated, Google Colab ready.

License

Notifications You must be signed in to change notification settings

error-wtf/segmented-calculation-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segmented Spacetime Calculation Suite

Tests Python License Regimes Colab

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


🚀 Quick Start

Option 1: 🌐 Online (Google Colab - No Installation)

Open In Colab

  1. Click the badge above to open in Google Colab
  2. Run all cells (Runtime → Run all)
  3. The notebook clones this repository and launches the full app
  4. You get a public shareable link (e.g., https://xxxxx.gradio.live)
  5. 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.

Option 2: 💻 Offline (Local Gradio Web UI)

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:7863

Features:

  • 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.

Option 3: CLI

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

✅ Validation Results

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

Features

  • 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

Installation

pip install -r requirements.txt

📐 Core Formulas

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

Key Constants

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!)

Critical Physics Insight

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"


📖 Important Documentation

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


Built-in Datasets

  • 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)

CSV Format

Upload CSV files with columns:

  • name - Object name
  • M_solar or mass - Mass in solar masses
  • R_km or radius - Radius in km
  • z_obs or z - Observed redshift (for comparison)

🔗 Related SSZ Repositories

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

License

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

About

SSZ (Segmented Spacetime) Calculation Suite - Production toolkit for singularity-free gravity calculations. 186 tests, GPS validated, Google Colab ready.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages