universal-physics-tensor 0.24.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -9
- package/bin/upt.mjs +843 -685
- package/dist/canonical/entries/atomic.d.ts +17 -0
- package/dist/canonical/entries/atomic.d.ts.map +1 -0
- package/dist/canonical/entries/atomic.js +71 -0
- package/dist/canonical/entries/atomic.js.map +1 -0
- package/dist/canonical/entries/electromagnetism.d.ts +18 -0
- package/dist/canonical/entries/electromagnetism.d.ts.map +1 -0
- package/dist/canonical/entries/electromagnetism.js +212 -0
- package/dist/canonical/entries/electromagnetism.js.map +1 -0
- package/dist/canonical/entries/fluids-waves.d.ts +18 -0
- package/dist/canonical/entries/fluids-waves.d.ts.map +1 -0
- package/dist/canonical/entries/fluids-waves.js +130 -0
- package/dist/canonical/entries/fluids-waves.js.map +1 -0
- package/dist/canonical/entries/mechanics.d.ts +18 -0
- package/dist/canonical/entries/mechanics.d.ts.map +1 -0
- package/dist/canonical/entries/mechanics.js +275 -0
- package/dist/canonical/entries/mechanics.js.map +1 -0
- package/dist/canonical/entries/thermo-nuclear-cosmo.d.ts +18 -0
- package/dist/canonical/entries/thermo-nuclear-cosmo.d.ts.map +1 -0
- package/dist/canonical/entries/thermo-nuclear-cosmo.js +56 -0
- package/dist/canonical/entries/thermo-nuclear-cosmo.js.map +1 -0
- package/dist/canonical/registry.d.ts.map +1 -1
- package/dist/canonical/registry.js +10 -0
- package/dist/canonical/registry.js.map +1 -1
- package/dist/composition/compose.d.ts.map +1 -1
- package/dist/composition/compose.js +14 -0
- package/dist/composition/compose.js.map +1 -1
- package/dist/composition/dimension-adjacency.d.ts +39 -0
- package/dist/composition/dimension-adjacency.d.ts.map +1 -0
- package/dist/composition/dimension-adjacency.js +44 -0
- package/dist/composition/dimension-adjacency.js.map +1 -0
- package/dist/composition/graph-viz-svg.d.ts +31 -0
- package/dist/composition/graph-viz-svg.d.ts.map +1 -0
- package/dist/composition/graph-viz-svg.js +45 -0
- package/dist/composition/graph-viz-svg.js.map +1 -0
- package/dist/composition/graph-viz.d.ts +100 -0
- package/dist/composition/graph-viz.d.ts.map +1 -0
- package/dist/composition/graph-viz.js +256 -0
- package/dist/composition/graph-viz.js.map +1 -0
- package/dist/composition/index.d.ts +8 -0
- package/dist/composition/index.d.ts.map +1 -1
- package/dist/composition/index.js +4 -0
- package/dist/composition/index.js.map +1 -1
- package/dist/composition/user-equation.d.ts +136 -0
- package/dist/composition/user-equation.d.ts.map +1 -0
- package/dist/composition/user-equation.js +247 -0
- package/dist/composition/user-equation.js.map +1 -0
- package/dist/dimensional/dimension-inference.d.ts +37 -0
- package/dist/dimensional/dimension-inference.d.ts.map +1 -0
- package/dist/dimensional/dimension-inference.js +79 -0
- package/dist/dimensional/dimension-inference.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/numerical/formula-dimension.d.ts +16 -1
- package/dist/numerical/formula-dimension.d.ts.map +1 -1
- package/dist/numerical/formula-dimension.js +116 -84
- package/dist/numerical/formula-dimension.js.map +1 -1
- package/dist/numerical/formula-registry.d.ts +11 -1
- package/dist/numerical/formula-registry.d.ts.map +1 -1
- package/dist/numerical/formula-registry.js +12 -0
- package/dist/numerical/formula-registry.js.map +1 -1
- package/package.json +92 -91
package/README.md
CHANGED
|
@@ -61,12 +61,14 @@ npm run upt -- audit # derive the bridges
|
|
|
61
61
|
npm run upt -- predict # empty regime cells as link hypotheses
|
|
62
62
|
npm run upt -- discover # vet link candidates (merge/unlock/consistency)
|
|
63
63
|
npm run upt -- discover --source=canonical # run the funnel on standard physics ALONE (no bridges)
|
|
64
|
-
npm run upt -- discover --derive # surface machine-derived identity consequences (
|
|
64
|
+
npm run upt -- discover --derive # surface machine-derived identity consequences (--max-orders / --anchor flags available)
|
|
65
65
|
npm run upt -- connectors # which isolated bridges can connect to the core
|
|
66
66
|
npm run upt -- coverage # audit each bridge's empirical grounding
|
|
67
67
|
npm run upt -- canonical # the standard-physics L-layer registry (answer key)
|
|
68
68
|
npm run upt -- recover # validate bridges against standard physics
|
|
69
69
|
npm run upt -- symbolic --simplify # compose + fold bridges' SYMBOLIC forms (MathTS simplify)
|
|
70
|
+
npm run upt -- map --source=both --format=mermaid # VISUAL map of the graph (Mermaid; also --format=dot|svg, --proposed, --out=PATH)
|
|
71
|
+
npm run upt -- map --equation "period = 2*pi*sqrt(length/gravity)" # drop YOUR OWN equation onto the map: dimensional check + where it lands
|
|
70
72
|
# ...and YOUR OWN equations:
|
|
71
73
|
npm run upt -- eval "hbar*c^3/(8*pi*G*M*k_B)" hbar=1.054571817e-34 c=299792458 G=6.6743e-11 M=1.989e30 k_B=1.380649e-23
|
|
72
74
|
npm run upt -- derive period:time length:length gravity:acceleration --formula "2*pi*sqrt(length/gravity)"
|
|
@@ -85,7 +87,8 @@ and a built-in, dependency-free parser otherwise — transparently, via a
|
|
|
85
87
|
|
|
86
88
|
See [`cli/README.md`](cli/README.md) for the full CLI reference — every command
|
|
87
89
|
and alias, the `--source=catalog|canonical|both` flag, input syntax, exit codes,
|
|
88
|
-
and troubleshooting.
|
|
90
|
+
and troubleshooting. [`docs/architecture/PHYSICS_MAP.md`](docs/architecture/PHYSICS_MAP.md)
|
|
91
|
+
shows the rendered map (`upt map --format=mermaid|dot|svg`).
|
|
89
92
|
|
|
90
93
|
## Installation
|
|
91
94
|
|
|
@@ -244,31 +247,41 @@ delivered a measured **5-6× RK4 geodesic-integrator speedup** (see [CHANGELOG](
|
|
|
244
247
|
|
|
245
248
|
## Development Status
|
|
246
249
|
|
|
247
|
-
**Current version:** v0.
|
|
248
|
-
|
|
249
|
-
|
|
250
|
+
**Current version:** v0.27.0 (GitHub release; npm `latest` is still
|
|
251
|
+
[v0.25.0](https://www.npmjs.com/package/universal-physics-tensor) — the
|
|
252
|
+
parser-consolidation program publishes to npm once all phases land) — building on
|
|
253
|
+
the **v0.8.0 → v0.23.0** rollup arc (composition
|
|
250
254
|
graph + GW170817 / BE-23 data confrontations + catalog adjudication, Part-IX
|
|
251
255
|
Phase C/D, the full catalog→graph migration, the bridge-inference +
|
|
252
256
|
symbolic-composition tooling, the G-9 geometrized-units adapters, the
|
|
253
257
|
distributional/variational grammar primitives, the AST bridge-gradient path, and
|
|
254
|
-
the **canonical-equation L-layer** with bridge↔canonical linkage). v0.24.0
|
|
258
|
+
the **canonical-equation L-layer** with bridge↔canonical linkage). v0.24.0 added
|
|
255
259
|
the **identity-consequence surfacer** (`upt discover --derive` → machine-derived
|
|
256
260
|
candidate relations, held out of the catalog pending §XXVII-B review; see
|
|
257
261
|
[Part-XI](docs/specification/Part-XI-Proposed-Equations.md)), **canonical-only
|
|
258
262
|
discovery** (`--source=catalog|canonical|both`), canonical-graph quality fixes
|
|
259
263
|
(magnitude-gate sourcing, variable-name unification, the declared
|
|
260
264
|
compton↔de-Broglie link), and architecture refactors (the `tensor↔cell` runtime
|
|
261
|
-
cycle removed; the `numerical→bridges` upward dependency dropped).
|
|
265
|
+
cycle removed; the `numerical→bridges` upward dependency dropped). v0.25.0 adds
|
|
266
|
+
**physics-map visualization** — `upt map --format=mermaid|dot|svg` renders the
|
|
267
|
+
graph (quantities = nodes, equations = junctions) from live data; SVG via the
|
|
268
|
+
optional `@viz-js/viz` peer (see
|
|
269
|
+
[`docs/architecture/PHYSICS_MAP.md`](docs/architecture/PHYSICS_MAP.md)). v0.26.0
|
|
270
|
+
adds **`upt map --equation`** — drop your own equation onto the map, with
|
|
271
|
+
**dimensional validation** and a dimension-based "did you mean?" — backed by a
|
|
272
|
+
public **`parsePhysics`** (string → dimensional `ExprNode`) and single-unknown
|
|
273
|
+
dimensional inference. v0.27.0 **consolidates the ASTs** — both parser front-ends
|
|
274
|
+
now transpile through one normalized path to `ExprNode`, the single semantic IR.
|
|
262
275
|
|
|
263
276
|
| Metric | Value |
|
|
264
277
|
|---|---|
|
|
265
278
|
| Bridge catalog | **44** (IDs 11-54) — 8 established · 33 speculative · 3 highly-speculative · 0 invalid; membership-adjudicated **36 bridges · 5 not-a-bridge · 3 contested**; **41-edge composition graph** (full migration, 131 centralized quantity nodes) with a bridge-inference suite — **identifiability classifier**, **retrodiction harness**, **Buckingham-π enumerator**, unified by an **`explainQuantity`** entry point, plus (v0.12) the candidate-vetting **discovery loop**, regime-prediction map, empirical-coverage audit, and **symbolic composition** (the Observable contract + MathTS simplification) |
|
|
266
|
-
| Test suite | **
|
|
279
|
+
| Test suite | **2929** passing (4 skipped, 1 todo; incl. property-based algebra tests) across 283 files — gated by CI |
|
|
267
280
|
| `tsc --noEmit` | clean (src + strict `tsc -p tsconfig.tests.json`) |
|
|
268
281
|
| GR validation anchors | BE-52 Mercury perihelion relErr 1.8×10⁻⁷ · BE-37 Shapiro delay relErr ~2×10⁻⁸ |
|
|
269
282
|
| First derived relation | E_min(M) = ℏc³ln2/(8πGM) from BE-42 ∘ BE-16, relErr ≤ 10⁻¹² (pre-registered CT-1) |
|
|
270
283
|
| First data confrontation | GW170817 → BE-36: recomputed bounds +6.5×10⁻¹⁶ / −3.1×10⁻¹⁵ vs published +7×10⁻¹⁶ / −3×10⁻¹⁵ |
|
|
271
|
-
| Core capability | Dimensional AST validator (23 node kinds; valence-homogeneity + symbolic-exponent grammar, v0.13; distributional/variational primitives, v0.14) · curvature + Einstein-field-equation layers · GL4 symplectic geodesic integrator · composition graph (`composeEdges` + symbolic `composeSymbolic`) · geometrized-units adapters (G-9 increment 1, v0.13) · canonical-equation **L-layer** + bridge↔canonical linkage / F4 guard (v0.22) · **identity-consequence surfacer** (`upt discover --derive`,
|
|
284
|
+
| Core capability | Dimensional AST validator (23 node kinds; valence-homogeneity + symbolic-exponent grammar, v0.13; distributional/variational primitives, v0.14) · curvature + Einstein-field-equation layers · GL4 symplectic geodesic integrator · composition graph (`composeEdges` + symbolic `composeSymbolic`) · geometrized-units adapters (G-9 increment 1, v0.13) · canonical-equation **L-layer** + bridge↔canonical linkage / F4 guard (v0.22) · **identity-consequence surfacer** (`upt discover --derive`, v0.24) · **physics-map visualization** (`upt map --format=mermaid\|dot\|svg`) |
|
|
272
285
|
|
|
273
286
|
Release history lives in the **[CHANGELOG](CHANGELOG.md)** — from the v0.1.0
|
|
274
287
|
catalog-closure milestone (40/40 AST encodings via the Wave A→Z encoding arc,
|