Metadata-Version: 2.4
Name: metaphysica
Version: 2.4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Education
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Requires-Dist: numpy>=1.24.0
Requires-Dist: mpmath>=1.3.0
Requires-Dist: scipy>=1.10.0
Requires-Dist: sympy>=1.12
Requires-Dist: eml-math>=2.4.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: pytest>=7.0.0 ; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0 ; extra == 'dev'
Requires-Dist: black>=23.0.0 ; extra == 'dev'
Requires-Dist: mypy>=1.0.0 ; extra == 'dev'
Requires-Dist: build>=1.0.0 ; extra == 'dev'
Requires-Dist: twine>=4.0.0 ; extra == 'dev'
Requires-Dist: pandas>=2.0.0 ; extra == 'dev'
Requires-Dist: eml-spectral>=2.3.0 ; extra == 'full'
Requires-Dist: arithma>=2.0.1,<2.0.3 ; extra == 'full'
Requires-Dist: xhtml2pdf>=0.2.16 ; extra == 'full'
Requires-Dist: matplotlib>=3.7.0 ; extra == 'full'
Requires-Dist: pandas>=2.0.0 ; extra == 'full'
Requires-Dist: xhtml2pdf>=0.2.16 ; extra == 'pdf'
Requires-Dist: matplotlib>=3.7.0 ; extra == 'plots'
Requires-Dist: pandas>=2.0.0 ; extra == 'plots'
Requires-Dist: maturin>=1.7,<2.0 ; extra == 'rust'
Requires-Dist: eml-spectral>=2.3.0 ; extra == 'sims'
Requires-Dist: arithma>=2.0.1,<2.0.3 ; extra == 'sims'
Provides-Extra: dev
Provides-Extra: full
Provides-Extra: pdf
Provides-Extra: plots
Provides-Extra: rust
Provides-Extra: sims
License-File: LICENSE
Summary: G2-manifold-derived theoretical physics framework: 125 derived constants, quark + constant datasheet API, bundled static-website generator.
Keywords: physics,simulation,G2-manifold,standard-model,cosmology,unified-field-theory,EML,Sheffer-stroke,datasheet,quarks,particle-physics
Author-email: Andrew Keith Watts <andrew@principia-metaphysica.org>
Maintainer-email: Andrew Keith Watts <andrew@principia-metaphysica.org>
License-Expression: Apache-2.0
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://principia-metaphysica.org
Project-URL: Issues, https://github.com/andrewkwatts-maker/metaphysica/issues
Project-URL: Repository, https://github.com/andrewkwatts-maker/metaphysica
Project-URL: Static-site host, https://github.com/andrewkwatts-maker/PrincipiaMetaphysica

# metaphysica — A speculative G₂-manifold model proposing ~125 candidate physical constants from one derived topological seed (b₂, b₃) = (12, 43)

[![PyPI](https://img.shields.io/pypi/v/metaphysica.svg)](https://pypi.org/project/metaphysica/)
[![Python](https://img.shields.io/pypi/pyversions/metaphysica.svg)](https://pypi.org/project/metaphysica/)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
[![Status: Speculative / Unvalidated](https://img.shields.io/badge/Status-Speculative%20%2F%20Unvalidated-orange.svg)](#research-status)
[![Tests](https://img.shields.io/badge/tests-3011%20collected-brightgreen.svg)](#testing)

> ## Research status
>
> **Principia Metaphysica is a speculative theoretical model. It has not
> been peer-reviewed and is not scientifically validated.** All
> derivations, predictions, and "closures" documented in this repository
> are candidate proposals awaiting experimental confirmation and
> independent expert review. The framework is intended for exploration
> and research purposes only, and no claim in this repository
> represents established scientific fact.

`metaphysica` is the PyPI implementation of **Principia Metaphysica**: a
candidate G₂-manifold model that proposes derivations for ~125 physical
constants from a single topological seed. Every formula carries three
independent representations (Arithma symbolic, EML compressed tree, and
float), cross-checked at registration time.

**The seed is (b₂, b₃) = (12, 43), and it is derived rather than assumed**
(author ruling, 2026-09-22). The construction is a Joyce orbifold
T⁷/(ℤ/2)³ whose A₁ singularities are resolved by Eguchi–Hanson patches:
the reachable Betti numbers satisfy **b₃ = 7 + 3·b₂** with b₂ the count of
A₁ families, so the pair is ONE topological input rather than two. Four
profiles are reachable — (b₂, b₃) = (0,7), (4,19), (8,31), (12,43) — all
four are runnable, and the generation count n_gen = b₂/4 = rank(Γ) gives
0, 1, 2, 3 across them. **Only (12, 43) yields three generations.**

The previous seed **b₃ = 24 remains runnable** as a labelled off-path
branch (`METAPHYSICA_VARIANT_B3_SEED=seed_24`); it is excluded on three
independent grounds — it fails b₃ = 7 + 3b₂, fails b₃ ≡ 7 (mod 12), and
sits below the exhibited TCS range 71–155. Nothing falsified is deleted
here; it is kept runnable and labelled.

### What the derived seed costs, measured

Adopting a derived seed moved every quantity that consumes b₃, and the
costs are published rather than absorbed:

| quantity | at b₃ = 24 | at b₃ = 43 |
|---|---|---|
| η_B (baryon asymmetry) | 1.63σ | **18.16σ** |
| w₀ | −23/24, 0.017σ | −42/43, 0.94σ |
| m_higgs (local) | 125.10 | **70.57** |
| θ₁₃ (flavour ansatz) | 8.67°, 0.8σ | 4.84° |
| racetrack vacuum | Re(T) = 37.85 | **does not exist** |

The racetrack entry is structural, not numerical: the mechanism *is* the
exponent ordering a = 2π/b₃ > b = 2π/D_bulk, and 43 > 26 inverts it, so
the potential becomes a bare runaway with zero stationary points. Three
long-standing internal conflicts (H₀, S₈, Σm_ν) **healed** on the same
ruling. An integer-identity ledger publishes, per branch, which of 15
claimed identities hold: 13 hold at 24 and break at 43; the two that hold
at 43 (b₃ = 7 + 3b₂ and b₂/4 = 3) are the two that are *derived* rather
than observed.

None of this is a selection argument for or against the seed — it is the
cost sheet, published so the ruling can be read rather than trusted.

The bulk is **26-dimensional at signature (24,2)** — 24 space, two times, one
per shadow, each shadow 13D(12,1) — ruled 2026-08-31 and recorded with its
costs (see [Geometry](#geometry--26d-at-242) below). v2.3.x adds a
cross-shadow interaction sector, the candidate-closure gate, and the
bridge-to-channel join; v2.2.0 introduced the unified `get(name, fmt=...)`
retrieval API across 11 output formats and the four Rust acceleration kernels.

---

## Quick start

```bash
pip install metaphysica[full]

# Generate the full static theory site:
metaphysica-build --out ./site

# Serve it locally:
metaphysica-serve --root ./site
```

That's the whole release pipeline. The slim `pip install metaphysica` still
works for the datasheet API alone.

---

## Public API surface

`metaphysica` exposes a small, stable Python API. Every function is fully
typed (`py.typed`) and import-cheap:

| Call | Purpose |
|------|---------|
| `metaphysica.build(out_dir, fast=False, skip_sims=False, only=None)` | Full pipeline: run sims, regenerate JSON / JS / HTML / plots / PDF, copy bundled site assets into `out_dir`. |
| `metaphysica.run_all(out_dir, quiet=False)` | Sims-only — produces `AutoGenerated/*.json` without the website pass. Used by the Phase H smoke tests. |
| `metaphysica.Get(name, as_json=False)` | Datasheet API. Returns a JSON-shaped dict (or JSON string) for any of the 12 quark names or ~50 curated physics constants. |
| `metaphysica.list_quarks()` | Returns the 12 SM quark names (6 quarks + 6 antiquarks) recognised by `Get()`. |
| `metaphysica.list_constants()` | Returns ~50 curated constant names recognised by `Get()` (e.g. `m_planck`, `alpha_em`, `V_us`, `b3`, `phi`). |
| `metaphysica.Launch()` | Companion-app launcher. Locates or clones `metaphysica-app` (the KivyMD desktop / Android explorer) at the matching version tag and runs it. |
| `metaphysica.website.serve` | Pure-stdlib local HTTP server with CORS + no-cache headers. Drives the `metaphysica-serve` console script. |

Console scripts installed alongside the library:

- `metaphysica-build` — full website rebuild
- `metaphysica-serve` — local HTTP server
- `metaphysica-datasheets` — refresh the bundled JSON snapshots
- `metaphysica-app` — companion-app launcher

### `Get()` examples

```python
import metaphysica

metaphysica.Get('Up')['Mass_MeVc2']                       # 2.16
metaphysica.Get('Top')['pm_prediction']['phi_scaling_N']  # 0
metaphysica.Get('m_planck')['value']                      # 2.435e18
metaphysica.Get('alpha_em')['value']                      # 0.00729735...
metaphysica.Get('b3')['value']                            # 24

metaphysica.list_quarks()     # 12 names (6 SM + 6 anti)
metaphysica.list_constants()  # ~50 curated constants
```

Quark name aliases are case-insensitive: `"Up"`, `"up"`, `"u"`, `"Up Quark"`,
`"AntiUp"`, `"anti-up"`, etc. all resolve. The quark schema is a strict
superset of periodica's `data/active/quarks/*.json`, with an added
`pm_prediction` block (Yukawa φ-scaling N, predicted mass, Arithma + EML
expressions, CKM couplings) and a `_provenance` block.

---

## Unified `Get*` API (v2.2.0)

The legacy `Get()` covers quarks and constants only. **v2.2.0 introduces a
unified format-aware dispatcher** that works for every framework entity —
formulas, parameters, gates, 72 certificates, paper sections, plots,
particles, derivations, references, and simulation scripts — in eleven
output formats.

```python
import metaphysica

# One dispatcher, eleven formats:
metaphysica.get('b3', fmt='json')          # → dict   (S1)
metaphysica.get('b3', fmt='yaml')          # → str    (S1)
metaphysica.get('b3', fmt='latex')         # → str    (S1)
metaphysica.get('b3', fmt='arithma')       # → str    (S2)
metaphysica.get('b3', fmt='eml')           # → dict   (S2)
metaphysica.get('b3', fmt='float')         # → 24.0   (S2)
metaphysica.get('certificate-dashboard', fmt='png')   # → bytes (S3, plots)
metaphysica.get('certificate-dashboard', fmt='svg')   # → str   (S3)
metaphysica.get('abstract', fmt='html')               # → str   (S4, sections)
metaphysica.get('abstract', fmt='md')                 # → str   (S4)
metaphysica.get('abstract', fmt='pdf')                # → bytes (S4)
```

### Typed-alias helpers

For IDE tab-completion + readable call sites, every format has a
capitalised alias that returns the precise type:

```python
metaphysica.GetJSON(name)        # dict
metaphysica.GetYAML(name)        # str
metaphysica.GetLaTeX(name)       # str
metaphysica.GetArithma(name)     # str
metaphysica.GetEML(name)         # dict
metaphysica.GetFloat(name)       # float

metaphysica.GetSVG(name)         # str
metaphysica.GetPNG(name)         # bytes
metaphysica.GetPDF(name)         # bytes
metaphysica.GetHTML(name)        # str
metaphysica.GetMarkdown(name)    # str
```

Every call also accepts `out_path=` to write the result straight to disk:

```python
metaphysica.GetPNG('torsion-funnel', out_path='./plot.png')
metaphysica.GetMarkdown('pmns-theta-13', out_path='./theta13.md')
```

### Catalog + iteration

```python
metaphysica.list_all()           # {kind: [canonical_ids, ...]}
metaphysica.list_formulas()      # 422 formula IDs
metaphysica.list_parameters()    # 715 parameter dotted-keys
metaphysica.list_gates()         # G01..G72
metaphysica.list_sections()      # 82 paper sections
metaphysica.list_plots()         # plot manifest IDs
metaphysica.list_particles()     # 12 quarks (+ leptons in v2.3)

# Iterators yield EntityRef carriers — id + payload + source path:
for f in metaphysica.iter_formulas():
    print(f.canonical_id, f.payload.get('value'))
```

### Interactive `help()`

```python
metaphysica.help()           # API overview + kind counts
metaphysica.help('b3')       # entity-specific: kind, value, formats, examples
```

### `metaphysica` CLI

A unified console script lands at install time:

```bash
metaphysica get b3 --fmt json
metaphysica get certificate-dashboard --fmt png --out plot.png
metaphysica get pmns-theta-13 --fmt latex
metaphysica list formula
metaphysica list                 # everything, per kind
metaphysica help b3
metaphysica build --out ./site
```

### Format ↔ kind matrix

|             | json | yaml | latex | arithma | eml | float | svg | png | pdf | html | md |
|-------------|:----:|:----:|:-----:|:-------:|:---:|:-----:|:---:|:---:|:---:|:----:|:--:|
| formula     |  ✓   |  ✓   |   ✓   |    ✓    |  ✓  |   ✓   |  ✓  |  ✓  |     |  ✓   | ✓  |
| parameter   |  ✓   |  ✓   |   ✓   |    ✓    |  ✓  |   ✓   |     |     |     |      | ✓  |
| constant    |  ✓   |  ✓   |   ✓   |    ✓    |  ✓  |   ✓   |     |     |     |      | ✓  |
| quark       |  ✓   |  ✓   |   ✓   |    ✓    |  ✓  |   ✓   |     |     |     |      | ✓  |
| gate        |  ✓   |  ✓   |   ✓   |         |     |       |     |     |  ✓  |  ✓   | ✓  |
| certificate |  ✓   |  ✓   |       |         |     |       |     |     |  ✓  |  ✓   | ✓  |
| section     |  ✓   |  ✓   |       |         |     |       |     |     |  ✓  |  ✓   | ✓  |
| plot        |  ✓   |  ✓   |       |         |     |       |  ✓  |  ✓  |  ✓  |      |    |
| derivation  |  ✓   |  ✓   |       |         |     |       |     |     |     |      | ✓  |
| reference   |  ✓   |  ✓   |       |         |     |       |     |     |     |      | ✓  |
| simulation  |  ✓   |  ✓   |       |         |     |       |     |     |     |      |    |

Asking for an unsupported (kind × format) combination raises
`metaphysica.MetaphysicaFormatError` (a `ValueError` subclass) listing the
allowed formats. Unknown names raise `metaphysica.MetaphysicaKeyError`
(a `KeyError` subclass) with `difflib`-based "did you mean" suggestions.

---

## Triple-track contract

Every formula in `AutoGenerated/formulas.json` carries **three independent
views**, cross-checked at registration:

```
add_formula(
    name      = "alpha_inv_geometric",
    arithma   = arithma.Expression(...),   # symbolic AST (Arithma 2.0.4)
    eml       = eml_math.EMLPoint(...),    # compressed tree (eml-math 1.3+)
    value     = 137.035999084,             # float
)
```

The `triple_assert` helper halts the build if the three views disagree at
numerical precision. The CI gate `tests/test_triple_track.py` enforces this
on every registered formula on every push.

Current status (v2.3.1):

- **1641 tests passing**
- **100% SSOT compliance** — no magic numbers, no ghost literals
- **422 / 422 formulas** triple-tracked
- The website widgets in `Pages/formulas.html` and `Pages/parameters.html`
  show all three views side-by-side, with a toggle between EML's
  rendering formats (SVG / PNG / PDF / HTML / LaTeX / MathML).

---

## The derived seed, and what it costs

Every derivation in `metaphysica` traces back to the third Betti number of
the G₂ manifold. The seed is **(b₂, b₃) = (12, 43)**, derived from the A₁ family count via b₃ = 7 + 3b₂; all
other constants are derived.

Two independent walkers verify this at build time:

- **`AutoGenerated/dependency_chains.json`** — Arithma dependency chains.
  Current coverage: **366 / 422 formulas** trace symbolically to a `b3`
  leaf via `Expression.children()` recursion (1 ambiguous, 55 non-rooted,
  12 degraded walks).
- **`AutoGenerated/eml_dependency_chains.json`** — EML dependency chains.
  Current coverage: **102 / 422 formulas** trace via `EMLPoint.children`
  recursion to a `b3`-labelled leaf. The two walkers disagree by a wide
  margin and that gap is real, not a rounding difference: the EML walker is
  the stricter of the two and its 320 non-rooted formulas are the honest
  headline.

The remaining formulas are derived constants that consume already-derived
values, so the b₃ trace exists transitively. The interactive "Walk to b₃"
widget in `Pages/foundations.html` lets you click any formula and see the
full dependency graph terminate at the seed. Which seed is a switch, not an assumption: every consumer reads it from the `b3_seed` fork.

---

## Rust acceleration kernels (Sprint C1–C4)

`metaphysica` ships an optional Rust core (`rust/physica_core/`) covering the
four numerically-hot loops in the simulation suite. The Rust extension is
strictly opt-in; the pure-Python install path is always the default and is
always functionally equivalent.

| Kernel | Module | Rust home | Tolerance |
|--------|--------|-----------|-----------|
| **C1** — Gauge RG running (one-loop β for SU(3)/SU(2)/U(1), M_Z → M_GUT) | `simulations.PM.gauge.gauge_unification` | `rust/physica_core/src/rg_running.rs` | `rel=1e-9` |
| **C2** — E8 root enumeration (240 roots, length-² filter, Weyl orbit) | `simulations.PM.algebra.e8_root_system` | `rust/physica_core/src/e8.rs` | `rel=1e-9` |
| **C3** — G2 Ricci tensor / octonion contractions | `simulations.PM.geometry.g2_differential` | `rust/physica_core/src/g2_manifold.rs` | `rel=1e-9` |
| **C4** — Cosmology Ricci-flow ODE (RKF45 over `dg/dt = −2 Ric(g)` with 24-pin coupling) | `simulations.PM.cosmology.evolution_engine` | `rust/physica_core/src/cosmology.rs` | `rel=1e-6` |

Build the extension:

```bash
pip install maturin
maturin develop --features python
# Or, via extras:
pip install metaphysica[rust]
```

When the extension is present, `metaphysica._HAS_RUST` flips to `True` and
calls are routed through `_dispatch.py`. When it is missing (slim install,
unsupported platform, or build skipped) every call transparently falls back
to the pure-Python implementation. Parity is enforced by
`tests/test_rust_python_parity.py`.

`METAPHYSICA_RUST_COSMOLOGY=1` opt-in env var gates the C4 path for the
first release while the adaptive step-control behaviour is field-tested.

EML batch operators are *not* ported into `physica_core` — `eml-math` owns
its own Rust optimisations and `metaphysica` dispatches to them via
`eml_math.operators.eml(...)`.

---

## Geometry — 26D at (24,2)

**Ruled 2026-08-31** (`simulations/core/canonical_values.py` → `CANON["bulk"]`;
`AutoGenerated/variants.json` fork `bulk_signature`, status RULED, selected
`24_2`).

- Bulk: **26D, signature (24,2)** — 24 space, two times, one per shadow.
- Shadows: **13D(12,1) × 2**, so 13 + 13 = 26 exactly.
- Pneuma spinor: **Weyl of Cl(24,2) = 4096** (Dirac 2¹³ = 8192).

**Costs accepted with the ruling**, kept on the books rather than dropped:
`D_bulk = D_crit = 26` is **withdrawn** (the two-time bosonic critical
dimension is 27–28); the appeal to Bars for **ghost-freedom is withdrawn**
(Sp(2,ℝ) gauging gives one 24D shadow, not two 13D ones); and the **lattice
obstruction is unanswered** — an even unimodular lattice of signature (p,q)
needs p − q ≡ 0 (mod 8), and 24 − 2 = 22 ≡ 6. Sp(2,ℝ) itself is invoked, not
derived. The **TCS obstruction is independent of all of this and still open**:
Crowley–Nordström forces b₂ + b₃ odd for a twisted connected sum, and the
claimed (4, 24) is even.

### The bridge-to-channel join

φ's seven associative triples are the Fano plane, and the 21 allowed couplings
on the 21 coordinate pairs form seven disjoint triangles — one per Fano point,
its three edges the three lines through that point. Twelve bridges reach
maximal coupling (12 live channels) on exactly 35 = C(7,4) of the
C(21,12) = 293,930 placements: the four-complete-triangle ones.

**One assumption is added, and it must be stated wherever the result is
quoted:** the E₈ block a bridge carries is a property of the **channel**, not
of the face observing it — one global labelling of the 7 Fano lines by 3
blocks, shared by every face. Enumerating all 3⁷ = 2187 labellings then gives
two things that used to be inputs:

- **n_faces = 4 is forced** — four is the maximum number of simultaneously
  "rainbow" Fano points; 5, 6 and 7 are impossible. It was previously read off
  h^{1,1} = 4 of the TCS #187 building block, which the code itself classifies
  FITTED.
- **Genericity is derived** — the 28 line-containing 4-point sets admit *zero*
  labellings; each of the 7 arcs admits exactly 18. It was previously a stated
  criterion ("nothing in the framework forbids collinear labels").

The structure then closes as **K₄** on the four faces: 4 faces = vertices,
6 channel-lines = edges, **12 bridges = the 12 directed edges**, 3 E₈ blocks =
the 3 perfect matchings, 1 spare line incident to no face. "Bridge" is
literal — a directed connection between two faces — and 12 is K₄'s
directed-edge count, not a separate input. The assignment is **unique up to
symmetry**: the block partition is canonical given the arc, the spare colour
touches nothing, and the 7 arcs form a single orbit under Aut(Fano) = PSL(3,2)
(order 168, arc stabiliser 24 acting as the full S₄ on the four faces).
*Conditional kill:* if anything elsewhere distinguishes a Fano direction,
PSL(3,2) breaks and the arc choice becomes physical again.

15400 = 12!/((3!)⁴4!) and 576 = (4!)² are now computed, not asserted; the 576
form a single regular S₄ × S₄ orbit, so stride-4 {i, i+4, i+8} is a coordinate
convention rather than a fitted choice. `n_gen = 3` is fixed twice over
(Leech 24 = 8+8+8; q+1 = 3 lines per point of the order-2 projective plane).

Full statement, with the caveats: `PrincipiaMetaphysica/docs/BRIDGE_CHANNEL_ASSIGNMENT.md`.

---

## Where the framework stands, honestly

The v25.0/v26.0 cycle proposed candidate resolutions for 13 of 15 open issues.
Several of those "closures" have since been re-scored, re-labelled or
falsified, so the table that used to sit here is not reproduced: it recorded
what was claimed in mid-2026, and the live scoreboard has moved.

Read instead:

| Question | Live source |
|---|---|
| Every open issue, with what closed and what did not | `PrincipiaMetaphysica/docs/OUTSTANDING_ISSUES.md` |
| Every scored row, verdict and σ | `AutoGenerated/validation_report.json` |
| The global fit | `AutoGenerated/statistical_rigor_report.json` |
| Gate execution vs gate assertion | `AutoGenerated/GATES_CERTIFICATES.json` → `evaluation_summary` |
| Which forks are RULED and which are OPEN | `AutoGenerated/variants.json` |

Standing facts a reader should not have to dig for:

- **Falsified, kept on the books.** `neutrino.theta13_derived` = asin(1/6) =
  9.594° misses NuFIT 6.0 by ~9σ. The three `algebra.gaugino_cabibbo_*` rows
  sit at 344.7σ / 37.6σ / 25.6σ — "11% agreement, zero free parameters" is
  withdrawn. `sin²(2θ) = 1/b₃` exceeds the sterile-mixing bound. All stay
  registered and labelled; nothing is deleted.
- **Working θ₁₃ headline.** `particle.theta_13_deg` = 8.669° is a genuine
  derivation and scores **0.805σ PASS**. `geometry.theta_13` = 8.54° is the
  NuFIT value restated and is deliberately unscored — it is not a cross-check.
- **Twenty "geometric anchors" are raw experimental INPUT** (status MEASURED),
  not tuning-free consequences of the seed: the NuFIT angles, SH0ES H₀, Planck
  Ω_m, DESI w₀/wₐ, PDG Wolfenstein A and Jarlskog.
- **S₈ is published against both anchors** — 0.718σ PASS vs Planck, **2.733σ
  TENSION vs KiDS-1000**. Friction does *not* resolve the weak-lensing tension.
- **`cosmology.n_s_slow_roll` is an 8.263σ FAIL** against Planck 2018, while
  the geometric `n_s` = 0.9636 passes at 0.27σ. Two internal derivations of the
  same observable disagree, and both stay visible.
- **Dark energy** w₀ = −23/24 with wₐ = −1/√24 sits at **3.19–3.41σ** from DESI
  DR2 in the 2D plane (the two 1D marginals double-count one displacement).
- **`axion.omega_h2` = 0.516** against an observed 0.12 — it overcloses, and it
  is UNBOUNDED, so it does not appear in the pass/fail tally at all.

### Falsifiability — BabyIAXO

The axion/ALP sector remains the primary near-term experimental test
(BabyIAXO/IAXO), and `Pages/falsification.html` renders the predicted
(m_a, g_aγγ) point against the reach lines. The register is explicit that the
ALP point is a **SPECULATIVE ANSATZ**: non-detection cannot falsify the
framework without an independent derivation of it first.

---

## Installation extras

```bash
pip install metaphysica            # slim core: numpy / scipy / sympy / mpmath / eml-math / arithma
                                   #   → enough for the Get() datasheet API
pip install metaphysica[sims]      # + eml-spectral (advanced algebras for the sim engine)
pip install metaphysica[plots]     # + matplotlib + pandas (plot regeneration)
pip install metaphysica[pdf]       # + xhtml2pdf (PDF paper export)
pip install metaphysica[full]      # everything above (recommended for `metaphysica-build`)
pip install metaphysica[rust]      # + optional Rust acceleration kernels (C1–C4)
pip install metaphysica[dev]       # + pytest, black, mypy, build, twine
```

Steps in `metaphysica-build` whose optional extras are missing are skipped
with a friendly install hint, so a slim install never produces a broken
build.

---

## Compatibility

- Python 3.9 – 3.13
- Linux, macOS, Windows (pure-Python wheel; no native deps in the slim install)
- Optional Rust extension built via `maturin` on the standard PyO3 abi3 matrix

---

## Testing

```bash
pip install metaphysica[full,dev]
pytest                              # 1641 tests
pytest tests/test_triple_track.py   # triple-track formula consistency
pytest tests/test_rust_python_parity.py   # Rust ↔ Python parity (if [rust] installed)
```

---

## Stack

The EML stack is layered. Each layer's `Get(name)` returns a JSON datasheet
derived from that layer's theory:

| Layer | Package | `Get()` returns |
|-------|---------|-----------------|
| Maths | [`eml-math`](https://pypi.org/project/eml-math/) | math constants (e, π, φ, …) |
| Symbolic | [`arithma`](https://pypi.org/project/arithma/) | symbolic Expression / Integer / Variable |
| Physics | `metaphysica` (this package) | quarks + physics constants |
| Materials | `periodica` (future) | element / compound datasheets |

---

## Related repositories

- [**PrincipiaMetaphysica**](https://github.com/andrewkwatts-maker/PrincipiaMetaphysica)
  — thin static-site host. Calls `metaphysica.build()` to render and serve
  the rendered theory site at
  [metaphysicæ.com](https://www.metaphysicæ.com). All HTML / JSON / JS
  under the site is regenerated each build.
- [**metaphysica-app**](https://github.com/andrewkwatts-maker/metaphysica-app)
  — interactive PC + mobile (APK) GUI on top of `metaphysica`. Browse the
  framework, explore constants, run derivations interactively.
- [**Arithma**](https://github.com/andrewkwatts-maker/Arithma) — symbolic
  algebra engine; supplies the Arithma view in the triple-track contract.
- [**eml-math**](https://github.com/andrewkwatts-maker/eml-math) —
  compressed-tree math kernel; supplies the EML view in the triple-track
  contract and the full rendering surface (SVG / PNG / PDF / HTML / LaTeX /
  MathML).

---

## Changelog

See [CHANGELOG.md](CHANGELOG.md). Tag `v2.1.0` marks the v25.0 + v26.0
candidate physics additions, the triple-track migration completion, the four
Rust acceleration kernels, and the regression closures (PDF, plots,
validators). Tag `v2.2.0` adds the unified `get(name, fmt=...)` retrieval API
and the honesty polish (research-status disclaimers, hype-language rewrite,
numerology relabelling, consistency beacons). Tag `v2.3.0` adds the
cross-shadow interaction sector; `v2.3.1` the candidate-closure gate. The
current `[Unreleased]` section carries the two-time (24,2) ruling, the
bridge-to-channel join, and the statistics/status/anchor fixes that made the
scoreboard honest.

---

## License

Apache-2.0 — see [LICENSE](LICENSE).

