# ZETA-L0/1.0 — Zetawave Frozen Mathematical Genesis Specification

**License:** Public Domain / Dual-Licensed (`CC0-1.0 OR MIT`)  
**Canonical JSON:** `https://zetawave.org/spec/l0-v1.json`  
**Portable Zero-Dependency JS Engine:** `https://zetawave.org/spec/zeta-l0-portable.js`

---

## 1. Frozen Genesis Constants

| Constant | Value | Meaning |
|---|---|---|
| `SPEC_ID` | `"ZETA-L0/1.0"` | Immutable mathematical protocol version |
| `GENESIS_EPOCH_ISO` | `"2026-12-04T00:00:00.000Z"` | POSIX UTC epoch $T_0$ (`1796342400000` ms) |
| `GENESIS_X0` | `1000000000000` ($10^{12}$) | Prime cursor at $T_0$ (~4,237y backward runway, <0.1%/century drift) |
| `PACE_LAMBDA` | `0.28125` ($9/32$) | Target mean prime rate (~1 prime every 3.556 seconds forever) |
| `WAVE_OMEGA` | `0.00390625` ($2^{-8}$) | Constant stationary wave phase speed (anti-freeze guarantee) |
| `SLOW_PACE_SCALE` | `0.3125` ($5/16$) | Left-hand bass cursor speed multiplier |
| `SLOW_LI_OFFSET` | `-1000000000` | Left-hand Li offset so bass & treble never collide |
| `RMS_NORM` | `0.09628588800186236` | Exact 50-zero wave RMS normalization |

---

## 2. Closed-Form Stateless Time Mapping

For any standard POSIX UTC timestamp $t_{\text{ms}}$ (negative or positive relative to $T_0$):

1. **Prime Number Cursor $x(t)$** via inverse logarithmic integral $\operatorname{Li}^{-1}$:
   $$\operatorname{Li}(x(t)) = \operatorname{Li}(10^{12}) + \lambda \cdot \frac{t_{\text{ms}} - T_0}{1000}$$
   Evaluated statelessly per frame using Chebyshev Clenshaw polynomials (`CHEB_A`, `CHEB_B`) and 7 Halley iterations (exact back to $x \ge 65536$, ~4,237 years prior to $T_0$).

2. **Stationary Zeta Wave Field $\Phi(u(t))$** (never slows down or freezes):
   $$u(t) = \ln(10^{12}) + \omega \cdot \frac{t_{\text{ms}} - T_0}{1000}$$
   $$\Phi(u) = -\frac{1}{\text{RMS\_NORM}} \sum_{k=1}^{50} w_k \cos(\gamma_k u - \theta_k)$$
   Evaluated with pure IEEE-754 `cLn` and 24-bit split Cody-Waite `cCosSin` (0 ULP cross-engine parity for $|u| \le 4\times 10^{14}$).

3. **Macro Prime Tide $\Phi_{\text{macro}}(x)$** evaluates the same sum at $\ln x(t)$ for multi-month seasonal drift.

---

## 3. Discrete Prime Signals (Deterministic 12-Base Miller–Rabin)

Bases `[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]` are unconditionally exact for every integer $n < 3.317 \times 10^{24}$:
- **Dirichlet Lane:** $p \bmod 10 \in \{1, 3, 7, 9\}$ (guaranteed balanced under GRH).
- **Constellations:** `TWIN` ($p+2$ prime, ~74.4s), `COUSIN` ($p+4$, ~74.4s), `GAP6` ($p+6$, ~37.2s), `SOPHIE_GERMAIN` ($2p+1$), `SAFE_PRIME` ($(p-1)/2$).
- **Prime Desert:** Exact seconds elapsed since the previous prime landing.

---

## 4. Six Frozen Golden Test Vectors (0 ULP IEEE-754 Exact)

| Vector | UTC Timestamp | Cursor `x(t)` (IEEE-754 Hex) | Stationary Wave `Phi(u)` | Next Twin |
|---|---|---|---|---|
| V0 (-38 Years · 1988) | `1988-06-15T12:00:00.000Z` | `990567634620.8951` (`0x426cd44dd2d79ca5`) | `0.675868` (`0x3fe5a0b6244a6db4`) | `990567635261` |
| V1 (Genesis T0) | `2026-12-04T00:00:00.000Z` | `1000000000000.0000` (`0x426d1a94a2000000`) | `0.085108` (`0x3fb5c9a7a52f2f65`) | `1000000000061` |
| V2 (+3 Days · Anti-Freeze) | `2026-12-07T00:00:00.000Z` | `1000002014301.5127` (`0x426d1a98798bb068`) | `0.878149` (`0x3fec19cb82e66c0e`) | `1000002015377` |
| V3 (+1 Year) | `2027-12-04T00:00:00.000Z` | `1000245074428.5411` (`0x426d1c68133f9151`) | `-1.816370` (`0xbffd0fda68e1a290`) | `1000245074441` |
| V4 (+100 Years) | `2126-12-04T00:00:00.000Z` | `1024534246535.3713` (`0x426dd15ffe90ebe2`) | `-0.053790` (`0xbfab8a631840d34e`) | `1024534246751` |
| V5 (+1,000 Years) | `3026-12-04T00:00:00.000Z` | `1246247251942.3962` (`0x427222a1fefe6657`) | `-1.312905` (`0xbff501a91fd4b083`) | `1246247251979` |
