universal-physics-tensor 0.7.3 → 0.14.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.
Files changed (293) hide show
  1. package/README.md +147 -109
  2. package/bin/upt.mjs +508 -0
  3. package/dist/bridges/be23-planckian-confrontation.d.ts +162 -0
  4. package/dist/bridges/be23-planckian-confrontation.d.ts.map +1 -0
  5. package/dist/bridges/be23-planckian-confrontation.js +196 -0
  6. package/dist/bridges/be23-planckian-confrontation.js.map +1 -0
  7. package/dist/bridges/be36-gw170817-confrontation.d.ts +111 -0
  8. package/dist/bridges/be36-gw170817-confrontation.d.ts.map +1 -0
  9. package/dist/bridges/be36-gw170817-confrontation.js +100 -0
  10. package/dist/bridges/be36-gw170817-confrontation.js.map +1 -0
  11. package/dist/bridges/bridge-equations.d.ts +129 -0
  12. package/dist/bridges/bridge-equations.d.ts.map +1 -0
  13. package/dist/bridges/bridge-equations.js +130 -0
  14. package/dist/bridges/bridge-equations.js.map +1 -0
  15. package/dist/bridges/catalog-adapter.d.ts +1 -1
  16. package/dist/bridges/catalog-adapter.js +1 -1
  17. package/dist/bridges/confrontation-coverage.d.ts +67 -0
  18. package/dist/bridges/confrontation-coverage.d.ts.map +1 -0
  19. package/dist/bridges/confrontation-coverage.js +83 -0
  20. package/dist/bridges/confrontation-coverage.js.map +1 -0
  21. package/dist/bridges/equations/_be-helpers.d.ts +2 -1
  22. package/dist/bridges/equations/_be-helpers.d.ts.map +1 -1
  23. package/dist/bridges/equations/be-12-coherence-length.d.ts +1 -1
  24. package/dist/bridges/equations/be-13-einstein-trace.d.ts +2 -2
  25. package/dist/bridges/equations/be-13-einstein-trace.js +1 -1
  26. package/dist/bridges/equations/be-14-ryu-takayanagi.d.ts +2 -2
  27. package/dist/bridges/equations/be-15-emergence.d.ts +19 -5
  28. package/dist/bridges/equations/be-15-emergence.d.ts.map +1 -1
  29. package/dist/bridges/equations/be-15-emergence.js +18 -4
  30. package/dist/bridges/equations/be-15-emergence.js.map +1 -1
  31. package/dist/bridges/equations/be-16-landauer.d.ts +1 -1
  32. package/dist/bridges/equations/be-17-einstein-cartan.d.ts +1 -1
  33. package/dist/bridges/equations/be-18-higgs-mass.d.ts +1 -1
  34. package/dist/bridges/equations/be-19-quantum-bounce.d.ts +1 -1
  35. package/dist/bridges/equations/be-20-vacuum-energy.d.ts +4 -4
  36. package/dist/bridges/equations/be-20-vacuum-energy.d.ts.map +1 -1
  37. package/dist/bridges/equations/be-20-vacuum-energy.js +4 -2
  38. package/dist/bridges/equations/be-20-vacuum-energy.js.map +1 -1
  39. package/dist/bridges/equations/be-22-topological-entanglement.d.ts +1 -1
  40. package/dist/bridges/equations/be-23-syk-planckian.d.ts +1 -1
  41. package/dist/bridges/equations/be-24-foerster-fret.d.ts +1 -1
  42. package/dist/bridges/equations/be-25-iit-phi.d.ts +1 -1
  43. package/dist/bridges/equations/be-25-orch-or.d.ts +13 -1
  44. package/dist/bridges/equations/be-25-orch-or.d.ts.map +1 -1
  45. package/dist/bridges/equations/be-25-orch-or.js +12 -0
  46. package/dist/bridges/equations/be-25-orch-or.js.map +1 -1
  47. package/dist/bridges/equations/be-26-dna-tunneling.d.ts +2 -2
  48. package/dist/bridges/equations/be-26-dna-tunneling.js +1 -1
  49. package/dist/bridges/equations/be-27-effective-temperature.d.ts +1 -1
  50. package/dist/bridges/equations/be-28-onsager-entropy-production.d.ts +1 -1
  51. package/dist/bridges/equations/be-29-jarzynski.d.ts +1 -1
  52. package/dist/bridges/equations/be-30-flm-first-law.d.ts +2 -2
  53. package/dist/bridges/equations/be-31-causal-set-bd.d.ts +1 -1
  54. package/dist/bridges/equations/be-32-quantum-reference-frame.d.ts +1 -1
  55. package/dist/bridges/equations/be-33-hertz-millis.d.ts +1 -1
  56. package/dist/bridges/equations/be-34-kibble-zurek.d.ts +1 -1
  57. package/dist/bridges/equations/be-35-conformal-bootstrap.d.ts +1 -1
  58. package/dist/bridges/equations/be-36-gw-speed-bound.d.ts +12 -5
  59. package/dist/bridges/equations/be-36-gw-speed-bound.d.ts.map +1 -1
  60. package/dist/bridges/equations/be-36-gw-speed-bound.js +11 -4
  61. package/dist/bridges/equations/be-36-gw-speed-bound.js.map +1 -1
  62. package/dist/bridges/equations/be-38-mond.d.ts +1 -1
  63. package/dist/bridges/equations/be-39-asymptotic-safety.d.ts +2 -2
  64. package/dist/bridges/equations/be-40-composite-higgs.d.ts +1 -1
  65. package/dist/bridges/equations/be-41-swampland.d.ts +1 -1
  66. package/dist/bridges/equations/be-43-er-epr.d.ts +1 -1
  67. package/dist/bridges/equations/be-44-soft-hair.d.ts +1 -1
  68. package/dist/bridges/equations/be-45-tcc.d.ts +1 -1
  69. package/dist/bridges/equations/be-46-multiverse-measure.d.ts +1 -1
  70. package/dist/bridges/equations/be-47-bbn-dark-sector.d.ts +1 -1
  71. package/dist/bridges/equations/be-48-grw-localization.d.ts +1 -1
  72. package/dist/bridges/equations/be-49-quantum-darwinism.d.ts +1 -1
  73. package/dist/bridges/equations/be-50-wheeler-feynman.d.ts +1 -1
  74. package/dist/bridges/index.d.ts +10 -7
  75. package/dist/bridges/index.d.ts.map +1 -1
  76. package/dist/bridges/index.js +47 -34
  77. package/dist/bridges/index.js.map +1 -1
  78. package/dist/bridges/membership.d.ts +44 -0
  79. package/dist/bridges/membership.d.ts.map +1 -0
  80. package/dist/bridges/membership.js +59 -0
  81. package/dist/bridges/membership.js.map +1 -0
  82. package/dist/bridges/rejected.d.ts +40 -0
  83. package/dist/bridges/rejected.d.ts.map +1 -0
  84. package/dist/bridges/rejected.js +81 -0
  85. package/dist/bridges/rejected.js.map +1 -0
  86. package/dist/composition/bridge-analysis.d.ts +189 -0
  87. package/dist/composition/bridge-analysis.d.ts.map +1 -0
  88. package/dist/composition/bridge-analysis.js +445 -0
  89. package/dist/composition/bridge-analysis.js.map +1 -0
  90. package/dist/composition/bridge-prediction.d.ts +95 -0
  91. package/dist/composition/bridge-prediction.d.ts.map +1 -0
  92. package/dist/composition/bridge-prediction.js +0 -0
  93. package/dist/composition/bridge-prediction.js.map +1 -0
  94. package/dist/composition/catalog-graph.d.ts +20 -0
  95. package/dist/composition/catalog-graph.d.ts.map +1 -0
  96. package/dist/composition/catalog-graph.js +39 -0
  97. package/dist/composition/catalog-graph.js.map +1 -0
  98. package/dist/composition/compose-surface.d.ts +12 -0
  99. package/dist/composition/compose-surface.d.ts.map +1 -0
  100. package/dist/composition/compose-surface.js +10 -0
  101. package/dist/composition/compose-surface.js.map +1 -0
  102. package/dist/composition/compose-symbolic.d.ts +75 -0
  103. package/dist/composition/compose-symbolic.d.ts.map +1 -0
  104. package/dist/composition/compose-symbolic.js +157 -0
  105. package/dist/composition/compose-symbolic.js.map +1 -0
  106. package/dist/composition/compose.d.ts +110 -0
  107. package/dist/composition/compose.d.ts.map +1 -0
  108. package/dist/composition/compose.js +231 -0
  109. package/dist/composition/compose.js.map +1 -0
  110. package/dist/composition/consistency.d.ts +24 -0
  111. package/dist/composition/consistency.d.ts.map +1 -0
  112. package/dist/composition/consistency.js +26 -0
  113. package/dist/composition/consistency.js.map +1 -0
  114. package/dist/composition/discovery.d.ts +104 -0
  115. package/dist/composition/discovery.d.ts.map +1 -0
  116. package/dist/composition/discovery.js +165 -0
  117. package/dist/composition/discovery.js.map +1 -0
  118. package/dist/composition/edge.d.ts +139 -0
  119. package/dist/composition/edge.d.ts.map +1 -0
  120. package/dist/composition/edge.js +72 -0
  121. package/dist/composition/edge.js.map +1 -0
  122. package/dist/composition/edges/calibration.d.ts +107 -0
  123. package/dist/composition/edges/calibration.d.ts.map +1 -0
  124. package/dist/composition/edges/calibration.js +373 -0
  125. package/dist/composition/edges/calibration.js.map +1 -0
  126. package/dist/composition/edges/catalog-full.d.ts +299 -0
  127. package/dist/composition/edges/catalog-full.d.ts.map +1 -0
  128. package/dist/composition/edges/catalog-full.js +989 -0
  129. package/dist/composition/edges/catalog-full.js.map +1 -0
  130. package/dist/composition/edges/catalog-tranche.d.ts +112 -0
  131. package/dist/composition/edges/catalog-tranche.d.ts.map +1 -0
  132. package/dist/composition/edges/catalog-tranche.js +241 -0
  133. package/dist/composition/edges/catalog-tranche.js.map +1 -0
  134. package/dist/composition/enumerate.d.ts +67 -0
  135. package/dist/composition/enumerate.d.ts.map +1 -0
  136. package/dist/composition/enumerate.js +78 -0
  137. package/dist/composition/enumerate.js.map +1 -0
  138. package/dist/composition/explain.d.ts +102 -0
  139. package/dist/composition/explain.d.ts.map +1 -0
  140. package/dist/composition/explain.js +244 -0
  141. package/dist/composition/explain.js.map +1 -0
  142. package/dist/composition/expr-eval.d.ts +33 -0
  143. package/dist/composition/expr-eval.d.ts.map +1 -0
  144. package/dist/composition/expr-eval.js +95 -0
  145. package/dist/composition/expr-eval.js.map +1 -0
  146. package/dist/composition/expr-simplify.d.ts +60 -0
  147. package/dist/composition/expr-simplify.d.ts.map +1 -0
  148. package/dist/composition/expr-simplify.js +330 -0
  149. package/dist/composition/expr-simplify.js.map +1 -0
  150. package/dist/composition/expr-subst.d.ts +29 -0
  151. package/dist/composition/expr-subst.d.ts.map +1 -0
  152. package/dist/composition/expr-subst.js +60 -0
  153. package/dist/composition/expr-subst.js.map +1 -0
  154. package/dist/composition/identifiability.d.ts +103 -0
  155. package/dist/composition/identifiability.d.ts.map +1 -0
  156. package/dist/composition/identifiability.js +148 -0
  157. package/dist/composition/identifiability.js.map +1 -0
  158. package/dist/composition/index.d.ts +37 -0
  159. package/dist/composition/index.d.ts.map +1 -0
  160. package/dist/composition/index.js +27 -0
  161. package/dist/composition/index.js.map +1 -0
  162. package/dist/composition/quantities.d.ts +297 -0
  163. package/dist/composition/quantities.d.ts.map +1 -0
  164. package/dist/composition/quantities.js +1017 -0
  165. package/dist/composition/quantities.js.map +1 -0
  166. package/dist/composition/quantity.d.ts +59 -0
  167. package/dist/composition/quantity.d.ts.map +1 -0
  168. package/dist/composition/quantity.js +36 -0
  169. package/dist/composition/quantity.js.map +1 -0
  170. package/dist/composition/retrodiction.d.ts +94 -0
  171. package/dist/composition/retrodiction.d.ts.map +1 -0
  172. package/dist/composition/retrodiction.js +171 -0
  173. package/dist/composition/retrodiction.js.map +1 -0
  174. package/dist/composition/symbolic-constants.d.ts +33 -0
  175. package/dist/composition/symbolic-constants.d.ts.map +1 -0
  176. package/dist/composition/symbolic-constants.js +50 -0
  177. package/dist/composition/symbolic-constants.js.map +1 -0
  178. package/dist/composition/uncertainty.d.ts +45 -0
  179. package/dist/composition/uncertainty.d.ts.map +1 -0
  180. package/dist/composition/uncertainty.js +59 -0
  181. package/dist/composition/uncertainty.js.map +1 -0
  182. package/dist/core/axes-registry.d.ts +1 -1
  183. package/dist/core/axes-registry.js +1 -1
  184. package/dist/core/cell.d.ts +0 -8
  185. package/dist/core/cell.d.ts.map +1 -1
  186. package/dist/core/cell.js +1 -1
  187. package/dist/core/cell.js.map +1 -1
  188. package/dist/core/constants.d.ts +15 -1
  189. package/dist/core/constants.d.ts.map +1 -1
  190. package/dist/core/constants.js +15 -1
  191. package/dist/core/constants.js.map +1 -1
  192. package/dist/core/flux-rules.d.ts +10 -13
  193. package/dist/core/flux-rules.d.ts.map +1 -1
  194. package/dist/core/flux-rules.js +19 -10
  195. package/dist/core/flux-rules.js.map +1 -1
  196. package/dist/core/labeled-tensor.d.ts +80 -1
  197. package/dist/core/labeled-tensor.d.ts.map +1 -1
  198. package/dist/core/labeled-tensor.js +263 -17
  199. package/dist/core/labeled-tensor.js.map +1 -1
  200. package/dist/core/universal-index.d.ts +1 -1
  201. package/dist/core/universal-index.js +1 -1
  202. package/dist/dimensional/buckingham.d.ts +103 -0
  203. package/dist/dimensional/buckingham.d.ts.map +1 -0
  204. package/dist/dimensional/buckingham.js +284 -0
  205. package/dist/dimensional/buckingham.js.map +1 -0
  206. package/dist/dimensional/dimension-spec.d.ts +24 -0
  207. package/dist/dimensional/dimension-spec.d.ts.map +1 -0
  208. package/dist/dimensional/dimension-spec.js +110 -0
  209. package/dist/dimensional/dimension-spec.js.map +1 -0
  210. package/dist/dimensional/field-equation-helpers.d.ts +1 -1
  211. package/dist/dimensional/field-equation-helpers.js +1 -1
  212. package/dist/dimensional/friedmann-equation.d.ts +1 -1
  213. package/dist/dimensional/friedmann-equation.js +1 -1
  214. package/dist/dimensional/gauge-field.d.ts +1 -1
  215. package/dist/dimensional/gauge-field.js +1 -1
  216. package/dist/dimensional/klein-gordon-equation.d.ts +8 -5
  217. package/dist/dimensional/klein-gordon-equation.d.ts.map +1 -1
  218. package/dist/dimensional/klein-gordon-equation.js +8 -5
  219. package/dist/dimensional/klein-gordon-equation.js.map +1 -1
  220. package/dist/dimensional/tensor-trace.d.ts +1 -1
  221. package/dist/dimensional/tensor-trace.js +1 -1
  222. package/dist/dimensional/validator.d.ts +13 -3
  223. package/dist/dimensional/validator.d.ts.map +1 -1
  224. package/dist/dimensional/validator.js +129 -42
  225. package/dist/dimensional/validator.js.map +1 -1
  226. package/dist/index.d.ts +32 -2
  227. package/dist/index.d.ts.map +1 -1
  228. package/dist/index.js +63 -2
  229. package/dist/index.js.map +1 -1
  230. package/dist/numerical/be37-covariant-eikonal.d.ts.map +1 -1
  231. package/dist/numerical/be37-covariant-eikonal.js +15 -18
  232. package/dist/numerical/be37-covariant-eikonal.js.map +1 -1
  233. package/dist/numerical/curvature-lowering-helpers.d.ts +7 -13
  234. package/dist/numerical/curvature-lowering-helpers.d.ts.map +1 -1
  235. package/dist/numerical/curvature-lowering-helpers.js +1 -1
  236. package/dist/numerical/curvature-lowering-helpers.js.map +1 -1
  237. package/dist/numerical/derivative-lowering.d.ts +2 -1
  238. package/dist/numerical/derivative-lowering.d.ts.map +1 -1
  239. package/dist/numerical/formula-dimension.d.ts +40 -0
  240. package/dist/numerical/formula-dimension.d.ts.map +1 -0
  241. package/dist/numerical/formula-dimension.js +199 -0
  242. package/dist/numerical/formula-dimension.js.map +1 -0
  243. package/dist/numerical/formula-mathts.d.ts +27 -0
  244. package/dist/numerical/formula-mathts.d.ts.map +1 -0
  245. package/dist/numerical/formula-mathts.js +98 -0
  246. package/dist/numerical/formula-mathts.js.map +1 -0
  247. package/dist/numerical/formula-registry.d.ts +30 -0
  248. package/dist/numerical/formula-registry.d.ts.map +1 -0
  249. package/dist/numerical/formula-registry.js +88 -0
  250. package/dist/numerical/formula-registry.js.map +1 -0
  251. package/dist/numerical/formula.d.ts +75 -0
  252. package/dist/numerical/formula.d.ts.map +1 -0
  253. package/dist/numerical/formula.js +275 -0
  254. package/dist/numerical/formula.js.map +1 -0
  255. package/dist/numerical/geometrized.d.ts +51 -0
  256. package/dist/numerical/geometrized.d.ts.map +1 -0
  257. package/dist/numerical/geometrized.js +66 -0
  258. package/dist/numerical/geometrized.js.map +1 -0
  259. package/dist/numerical/gl4-integrator.d.ts +8 -6
  260. package/dist/numerical/gl4-integrator.d.ts.map +1 -1
  261. package/dist/numerical/gl4-integrator.js +6 -6
  262. package/dist/numerical/gl4-integrator.js.map +1 -1
  263. package/dist/numerical/klein-gordon.d.ts +145 -0
  264. package/dist/numerical/klein-gordon.d.ts.map +1 -0
  265. package/dist/numerical/klein-gordon.js +145 -0
  266. package/dist/numerical/klein-gordon.js.map +1 -0
  267. package/dist/numerical/kretschmann.d.ts +43 -12
  268. package/dist/numerical/kretschmann.d.ts.map +1 -1
  269. package/dist/numerical/kretschmann.js +116 -29
  270. package/dist/numerical/kretschmann.js.map +1 -1
  271. package/dist/numerical/lowering.d.ts +18 -0
  272. package/dist/numerical/lowering.d.ts.map +1 -1
  273. package/dist/numerical/lowering.js +54 -42
  274. package/dist/numerical/lowering.js.map +1 -1
  275. package/dist/numerical/null-ic.d.ts +1 -1
  276. package/dist/numerical/null-ic.d.ts.map +1 -1
  277. package/dist/numerical/null-ic.js +3 -2
  278. package/dist/numerical/null-ic.js.map +1 -1
  279. package/dist/numerical/painleve-gullstrand-metric.d.ts +18 -6
  280. package/dist/numerical/painleve-gullstrand-metric.d.ts.map +1 -1
  281. package/dist/numerical/painleve-gullstrand-metric.js +31 -16
  282. package/dist/numerical/painleve-gullstrand-metric.js.map +1 -1
  283. package/dist/numerical/perihelion-finder.d.ts +4 -3
  284. package/dist/numerical/perihelion-finder.d.ts.map +1 -1
  285. package/dist/numerical/perihelion-finder.js +5 -4
  286. package/dist/numerical/perihelion-finder.js.map +1 -1
  287. package/dist/numerical/types.d.ts +6 -3
  288. package/dist/numerical/types.d.ts.map +1 -1
  289. package/dist/numerical/weyl-lowering.d.ts +4 -4
  290. package/dist/numerical/weyl-lowering.d.ts.map +1 -1
  291. package/dist/numerical/weyl-lowering.js +14 -1
  292. package/dist/numerical/weyl-lowering.js.map +1 -1
  293. package/package.json +19 -8
package/README.md CHANGED
@@ -3,8 +3,9 @@
3
3
  **Computational framework for exploring unified physics through tensor formalism**
4
4
 
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
+ [![CI](https://github.com/danielsimonjr/universal-physics-tensor/actions/workflows/ci.yml/badge.svg)](https://github.com/danielsimonjr/universal-physics-tensor/actions/workflows/ci.yml)
6
7
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org/)
7
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue)](https://www.typescriptlang.org/)
8
+ [![TypeScript](https://img.shields.io/badge/TypeScript-6.0+-blue)](https://www.typescriptlang.org/)
8
9
 
9
10
  ## Vision
10
11
 
@@ -52,8 +53,32 @@ npm run build
52
53
 
53
54
  # Run the smoke test
54
55
  node test-example.js
56
+
57
+ # Bridge-inference CLI (no TypeScript needed) — `upt` subcommands:
58
+ npm run upt -- explain hawking-temperature mass=1.989e30 # explain a built-in quantity
59
+ npm run upt -- priority # triage speculative bridges
60
+ npm run upt -- audit # derive the bridges by dimensions
61
+ npm run upt -- predict # empty regime cells as link hypotheses
62
+ npm run upt -- discover # vet link candidates (merge/unlock/consistency)
63
+ npm run upt -- connectors # which isolated bridges can connect to the core
64
+ npm run upt -- coverage # audit each bridge's empirical grounding
65
+ npm run upt -- symbolic --simplify # compose + fold bridges' SYMBOLIC forms (MathTS simplify)
66
+ # ...and YOUR OWN equations:
67
+ 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
68
+ npm run upt -- derive period:time length:length gravity:acceleration --formula "2*pi*sqrt(length/gravity)"
69
+ # → period ∝ length^0.5·gravity^-0.5 ; formula dimension: [time] ✓ matches target ;
70
+ # formula MATCHES, recovered prefactor ≈ 6.2832 (2π)
71
+ npm run upt -- help
72
+ # Once published, the same commands run via `npx universal-physics-tensor <cmd>`.
73
+ # (`npm run explain` and `npm run bridge-priority` remain as aliases.)
55
74
  ```
56
75
 
76
+ `eval`/`derive --formula` use the MathTS expression engine
77
+ (`@danielsimonjr/mathts-functions`) when the optional peers are installed,
78
+ and a built-in, dependency-free parser otherwise — transparently, via a
79
+ `FormulaParser` registry (add `--debug` to see which is active). UPT keeps
80
+ **zero hard dependencies**; the MathTS packages are optional.
81
+
57
82
  ## Installation
58
83
 
59
84
  ```bash
@@ -98,7 +123,12 @@ const quantumLaws = tensor.queryLaws({ scale: 'quantum' });
98
123
  console.log(quantumLaws.map(l => l.name));
99
124
  ```
100
125
 
101
- > **Note:** This example uses only the APIs currently implemented. Computable bridge equation solvers (e.g., a `BridgeEquations` class with `decoherence(...)` methods) are specified in Parts I–III but not yet implemented — see [Development Status](#development-status).
126
+ > **Note:** Each catalogued bridge ships a computable `evaluate*()` function, and
127
+ > the `BridgeEquations` facade (v0.14) gathers them under readable method names —
128
+ > e.g. `BridgeEquations.decoherenceRate({ gamma0_per_s, lambda, lambda0 })` (BE-11)
129
+ > or `BridgeEquations.hawkingTemperature({ M_kg })` (BE-42). The formal spec
130
+ > (Parts I–III) defines the underlying physics and AST encodings; the facade is
131
+ > the convenience layer over those evaluators.
102
132
 
103
133
  ## Core Concepts
104
134
 
@@ -131,19 +161,55 @@ Bridge equations connect different physical regimes:
131
161
  - Universal Emergence Equation
132
162
  - Complexity-Entropy Production Relation
133
163
 
134
- See [Part I](docs/specification/Part-I.md) and [Part II](docs/specification/Part-II.md) of the formal specification for the complete bridge equation catalog (Bridge Equations 11–52). Part III covers algorithmic implementation.
164
+ See [Part I](docs/specification/Part-I.md) and [Part II](docs/specification/Part-II.md) of the formal specification for the complete bridge equation catalog (Bridge Equations 11–54). Part III covers algorithmic implementation. The catalog is also published as a reviewable JSON artifact at [`data/bridge-catalog.json`](data/bridge-catalog.json).
165
+
166
+ ### Composing Bridges (v0.8.0)
167
+
168
+ Bridges are edges in a typed quantity graph, and compatible edges
169
+ **compose** — with an exact dimensional check at the junction, validity
170
+ domains carried through, and confidence demoted to the weakest link:
171
+
172
+ ```typescript
173
+ import { composeEdges, be42Edge, be16Edge, M_SUN_KG } from 'universal-physics-tensor';
174
+
175
+ // Hawking temperature (M → T_H) ∘ Landauer bound (T → E_min)
176
+ const erasureCost = composeEdges(be42Edge, be16Edge);
177
+ erasureCost.evaluate({ mass: M_SUN_KG }); // ≈ 5.9e-31 J — E_min(M) = ℏc³ln2/(8πGM)
178
+ erasureCost.confidence; // 'highly-speculative' (min of the operands)
179
+ ```
180
+
181
+ That derived relation — the minimum erasure cost at a black-hole
182
+ horizon — is the framework's first **derived** (rather than encoded)
183
+ literature-anchored result, pre-registered before implementation and
184
+ pinned to relErr ≤ 10⁻¹² (see [Part IX](docs/specification/Part-IX-Composition.md)
185
+ and `docs/planning/v0.8.0-Design.md`). A computable **membership
186
+ criterion** (a bridge's endpoint quantities must differ in regime) now
187
+ adjudicates the catalog — 36 bridges · 5 not-a-bridge · 3 contested —
188
+ with rejections recorded in a reviewable negative catalog
189
+ (`src/bridges/rejected.ts`).
190
+
191
+ Since v0.12, composition is also **symbolic** (`composeSymbolic`): bridges may
192
+ carry an optional `symbolic` `ExprNode` form, and composing two of them
193
+ substitutes one AST into the other's junction, dimensionally validated and
194
+ numerically evaluable — not just a chained numeric closure. The composed form
195
+ can be folded by MathTS `simplify` (optional peer), so CT-1 reduces to
196
+ `ℏc³ln2/(8πGM)` with `k_B` cancelled. See `upt symbolic --simplify`.
135
197
 
136
198
  ## Documentation
137
199
 
138
- ### Formal Specification (6-Part Series)
139
- Complete theoretical foundation of the Universal Physics Tensor Framework:
200
+ ### Formal Specification
201
+ Complete theoretical foundation of the Universal Physics Tensor Framework
202
+ see the **[specification index](docs/specification/README.md)** for the full
203
+ reader's map and the **[spec revision history](docs/specification/CHANGELOG.md)**
204
+ for how the documents evolved.
140
205
 
141
206
  - **[Part I: Foundation & Mathematical Framework](docs/specification/Part-I.md)** - Tensor structure, Π = L + B + E decomposition, Bridge Equations 11-20
142
- - **[Part II: Extended Bridge Equation Catalog](docs/specification/Part-II.md)** - Bridge Equations 21-52 across condensed matter, quantum biology, emergent spacetime
207
+ - **[Part II: Extended Bridge Equation Catalog](docs/specification/Part-II.md)** - Bridge Equations 21-54 across condensed matter, quantum biology, emergent spacetime
143
208
  - **[Part III: Computational Implementation](docs/specification/Part-III.md)** - Algorithms, information-theoretic bounds, ML integration
144
209
  - **[Part IV: Validation & Implications](docs/specification/Part-IV.md)** - Experimental pathways, philosophical implications, applications
145
210
  - **[Part V: Advanced Mathematics & Protocols](docs/specification/Part-V.md)** - Category theory extensions, validation protocols, algorithmic analysis
146
211
  - **[Part VI: Deployment & Governance](docs/specification/Part-VI.md)** - Implementation strategies, applications, governance frameworks
212
+ - **Supplements** - [Part VII: Tensor Algebra](docs/specification/Part-VII-Tensor-Algebra.md) · [Part VIII: Metric Layer](docs/specification/Part-VIII-Metric-Layer.md) · [Part IX: Composition](docs/specification/Part-IX-Composition.md) · [Part X: Curvature & Field Equations](docs/specification/Part-X-Curvature-and-Field-Equations.md)
147
213
 
148
214
  ### Planning & Development
149
215
  - **[Development Plan](docs/planning/Development-Plan.md)** - Phased implementation roadmap
@@ -170,118 +236,90 @@ delivered a measured **5-6× RK4 geodesic-integrator speedup** (see [CHANGELOG](
170
236
 
171
237
  ## Development Status
172
238
 
173
- **Current Version:** v0.6.0 (released 2026-05-20). Einstein field equation
174
- closure + curvature classification + Shapiro investigation. See
175
- [CHANGELOG](CHANGELOG.md) for full details.
176
-
177
- ### v0.6.0 Einstein field equation closure + curvature classification (2026-05-20)
239
+ **Current version:** v0.7.3 on npm
240
+ ([`universal-physics-tensor`](https://www.npmjs.com/package/universal-physics-tensor));
241
+ the branch carries unreleased **v0.8.0 v0.14** milestones (composition graph +
242
+ GW170817 / BE-23 data confrontations + catalog adjudication, Part-IX Phase C/D,
243
+ the full catalog→graph migration, the bridge-inference + symbolic-composition
244
+ tooling, the G-9 geometrized-units adapters, and the v0.14 work — distributional/
245
+ variational grammar primitives, the `BridgeEquations` facade, G-9 increment 2's
246
+ public adapters, and the `LabeledTensor` axis-order fix + `mergeAxes`/`splitAxis`)
247
+ awaiting a single **rollup tag** — see the [CHANGELOG](CHANGELOG.md) `[Unreleased]`
248
+ block.
178
249
 
179
250
  | Metric | Value |
180
251
  |---|---|
181
- | Bridge catalog | **42 / 42** (IDs 11-52, unchanged from v0.4.0) |
182
- | Test suite | **1693** passing (179 files, 1 skip + 1 todo) |
183
- | `tsc --noEmit` | clean |
184
- | Breaking changes | `christoffelFn` / `schwarzschildChristoffelFn` now return `Float64Array(64)` (λ-major) instead of nested `number[4][4][4]`; `pderivNumericalFn` default `order` flipped `2 → 4` |
185
-
186
- 36 tasks across 4 phases:
187
-
188
- - **Killing-vector machinery** — `KillingVectorNode` + `ConservedChargeNode`
189
- AST kinds; `verifyKillingEquation` and `evaluateConservedCharge` — the first
190
- structural encoding of a continuous symmetry and its Noether charge.
191
- - **Einstein field equation closure** `StressEnergyTensorNode`,
192
- `CosmologicalConstantNode`, `EinsteinFieldEquationNode`, plus
193
- `validateEinsteinFieldEquation` / `evaluateEinsteinEquationResidual`. Closes
194
- the gap BE-17's docstring had documented as impossible: matter-coupled
195
- `G_μν = κ T_μν` is now structurally encodable alongside the vacuum case.
196
- - **Curvature classification** — `WeylTensorNode`, `KretschmannScalarNode`,
197
- `computeKretschmann`, and the `CurvatureCompositeNode<K,S>` factory extracted
198
- from the now-five-instance curvature pattern (`CURVATURE_KIND_REGISTRY`
199
- provides introspection across curvature node kinds).
200
- - **Release-prep** — BR-2 `christoffelFn` flat-array refactor (BREAKING; **5-
201
- RK4 speedup**), `pderivNumericalFn` 4th-order default, and the PC-1.5 Shapiro
202
- residual-floor investigation (`docs/architecture/pc-1.5-shapiro-residual-floor.md`).
203
-
204
- **Honest framing:** Per Decision #9, no bridge status pins were promoted from
205
- `speculative` `established` structural encoding is necessary but not
206
- sufficient; observational grounding must be established independently.
207
-
208
- ### Release history
209
-
210
- Earlier milestones (full detail in [CHANGELOG](CHANGELOG.md)):
211
-
212
- - **v0.5.1** (2026-05-19) stability/hygiene patch; constants canonicalization,
213
- diagnostic-warning propagation through the curvature pipeline.
214
- - **v0.5.0** (2026-05-18) GR foundations: GL4 symplectic integrator, bisection
215
- perihelion finder, `RiemannTensorNode`, `ricci`/`einstein`/`bianchiResidual`
216
- helpers, BE-52 Mercury and BE-37 Shapiro activations.
217
- - **v0.4.5/v0.4.6** (2026-05-17/18) — refactor + benchmark scaffold;
218
- `bench/` infrastructure with correctness-first baselines.
219
- - **v0.4.0** (2026-05-15) connection layer (Christoffel),
220
- automatic differentiation (`Float64ReferenceEngine` + `MathTSEngine`),
221
- bridges BE-51/BE-52 added (catalog 40 42).
222
- - **v0.3.5** (2026-05-14) numerical-contraction backend: `TensorEngine`
223
- interface, AST→engine lowering, BE-37 Shapiro-delay eikonal end-to-end.
224
-
225
- ### Milestone catalog closed at 40/40 (v0.1.0, 2026-05-12)
226
-
227
- > Historical snapshot of the v0.1.0 catalog-closure event. Counts below are
228
- > v0.1.0-era figures, not current statesee the v0.6.0 table above for
229
- > current numbers (42 bridges, 1693 tests).
230
-
231
- First tagged release; the Tier-5 AST encoding rollout reached **full coverage**
232
- with the Wave Z arc (commits `9cb299f` through `b358257`). Every bridge in
233
- `src/bridges/index.ts` had a non-null `dimensional_signature`, an AST module in
234
- `src/bridges/equations/`, a numerical evaluator with input-validation guards,
235
- and per-bridge encoding tests. SemVer applies from this release onward.
236
-
237
- | Metric (v0.1.0) | Value |
238
- |---|---|
239
- | AST encodings | **40 / 40** |
240
- | `dimensional_signature === null` count | 0 |
241
- | `status === 'invalid'` count | 0 |
242
- | Test suite | **1161 / 1161** passing across 68 files |
243
- | Status distribution | 6 established · 31 speculative · 3 highly-speculative · 0 invalid |
244
-
245
- **Encoding patterns established during the rollout:** typed-stubs for
246
- transcendentals and operator-valued interiors (log/exp/tensor
247
- contractions absorbed into single dimensioned symbols);
248
- squared-form to avoid fractional exponents (S², L²=Γt, Q_soft²);
249
- ensemble-average stubs (Jarzynski ⟨exp(-βW)⟩); observational-bound
250
- dimensionless ratios (GW170817 |c_GW-c|/c); integral primitive for
251
- boundary integrals (BE-26 WKB, BE-44 soft-hair L²-norm); and **bridge
252
- reformulation** — replacing broken or contested formulations with
253
- canonical literature forms while preserving the bridge label
254
- (precedent: BE-25 Penrose-Hameroff → IIT Φ_max; Wave Z applied this
255
- to BE-16 → Landauer, BE-37 → Shapiro delay, BE-28 → Onsager σ).
256
-
257
- **Cross-LLM validation:** the three highest-stakes Wave-Z reformulations
258
- (BE-16 Landauer, BE-37 Shapiro, BE-28 Onsager — all promoted from
259
- `status='invalid'`) were independently cross-validated by both OpenAI
260
- o3 and Gemini Pro.
261
-
262
- ### Planned (post-closure)
263
-
264
- - **v0.1.0 release** — trigger condition met; cut is a discretionary
265
- release decision documented in `v0.1.0-Release-Procedure.md`.
266
- - **Grammar extensions for genuinely-deferred primitives:** Dirac-δ
267
- correlators (would enable a fuller BE-15 Hohenberg-Halperin Model A
268
- Langevin encoding), variational-δ operator (would enable a faithful
269
- MEPP encoding for BE-28 that captures the maximization claim).
270
- Neither is currently planned — both are scope expansions beyond the
271
- scalar-AST design.
272
- - **Wider rank-6 tensor with numerical operations** — the
273
- catalog-encoding work has been the priority; tensor operators are the
274
- next conceptual layer.
252
+ | 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) |
253
+ | Test suite | **2620** passing (5 skipped, 1 todo; incl. property-based algebra tests) — gated by CI |
254
+ | `tsc --noEmit` | clean (src + strict `tsc -p tsconfig.tests.json`) |
255
+ | GR validation anchors | BE-52 Mercury perihelion relErr 1.8×10⁻⁷ · BE-37 Shapiro delay relErr ~2×10⁻⁸ |
256
+ | First derived relation | E_min(M) = ℏc³ln2/(8πGM) from BE-42 ∘ BE-16, relErr ≤ 10⁻¹² (pre-registered CT-1) |
257
+ | First data confrontation | GW170817 → BE-36: recomputed bounds +6.5×10⁻¹⁶ / −3.1×10⁻¹⁵ vs published +7×10⁻¹⁶ / −3×10⁻¹⁵ |
258
+ | 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) |
259
+
260
+ Release history lives in the **[CHANGELOG](CHANGELOG.md)** from the v0.1.0
261
+ catalog-closure milestone (40/40 AST encodings via the Wave A→Z encoding arc,
262
+ with cross-LLM validation of the highest-stakes reformulations) through the
263
+ GR-foundations releases (v0.4.x–v0.6.0), the v0.7.x intelligent-index / gradient
264
+ series, the v0.8–v0.11 composition + catalog→graph arc, and the v0.12–v0.13
265
+ inference / symbolic-composition / units work. The formal
266
+ spec's own revision ledger is at
267
+ [docs/specification/CHANGELOG.md](docs/specification/CHANGELOG.md).
268
+
269
+ ### Roadmap
270
+
271
+ - **Units-normalization (G-9)** — increment 1 (the geometrized-units boundary
272
+ adapters, dimension-functor-driven) shipped in v0.13; **increment 2 (v0.14)**
273
+ promoted the adapters (`toGeometrized`/`fromGeometrized`/`geometrizedFactor`/
274
+ `NonGeometrizableDimensionError`) to the public API, added a geometrized-native
275
+ Schwarzschild fixture (x⁰=ct chart) + an SI↔geometrized Kretschmann equivalence
276
+ test (the adapter exercised on the mass input, `M_geom = GM/c²`); the FD
277
+ order-2 claw-back was cut as a provable unit-invariant no-op. **Increment 3**
278
+ (deferred, own plan+vet): subsuming the `unitless*` fixture family + routing
279
+ the DEFAULT GR pipeline onto the geometrized fast path.
280
+ - **Bridge-inference + symbolic-composition tooling** — **DONE (v0.12–v0.13)**:
281
+ the discovery loop, regime-prediction, coverage audit, orphan-connector
282
+ analysis, `composeSymbolic` (the Observable contract) + optional MathTS
283
+ simplification all REVIEW SURFACES for physicist judgment, not automated
284
+ discovery.
285
+ - **Grammar extensions for genuinely-deferred primitives** **GRAMMAR DONE
286
+ (v0.14)**: the `dirac-delta` correlator (`[δ(x)]=[x]⁻¹`) and the
287
+ `variational-derivative` operator (`[δF/δφ]=[F]/([φ]·[μ])`) are now scalar
288
+ `ExprNode` arms (Adam+Eve-vetted;
289
+ `docs/planning/v0.14-Distributional-Grammar-Design.md`). The full Model-A
290
+ Langevin / fluctuation-dissipation relation BE-15 documented as un-encodable
291
+ now validates dimensionally homogeneous. The CATALOG re-encoding that USES the
292
+ new grammar — BE-15's faithful Langevin form, and a faithful BE-28 MEPP
293
+ variational maximization (BE-28's σ=ΣJX carries a CRITICAL WARNING that it is
294
+ the *definiendum*, not the maximization principle) — is a physics-curation
295
+ decision deferred to a physicist (CONTRIBUTING.md); barrier 3 (functional
296
+ integration over field configurations) remains out of scope. (A separate
297
+ bounded grammar extension — symbolic exponents on a dimensionless base —
298
+ landed in v0.13, letting BE-33 carry its faithful `(T/T₀)^(−1/z)` form.)
299
+ - ~~Catalog quantity-graph migration~~**DONE (v0.11, 2026-06-11)**:
300
+ the full 41-edge graph is live, gated by the name-collision
301
+ namespacing rule (`CompositionAliasError` + reviewable
302
+ `SOURCE_ALIAS_DISPOSITIONS`); the ~90 new quantity-naming judgments
303
+ are the standing physicist-review surface.
304
+ - **More data confrontations** GW170817 BE-36 and the BE-23
305
+ Planckian-dissipation check (Legros et al. 2019, honest
306
+ aggregate-level encoding) have shipped; upgrading BE-23 to the
307
+ per-material α table is the next bounded step.
275
308
  - **Three.js / game-engine class visualization** in a separate repo
276
309
  (out of UPT scope per project decision; see
277
310
  `docs/planning/Future-Production-Hardening.md`).
278
- - **Experimental data validation pipelines** — applicable now that
279
- catalog encoding is complete.
280
- - **Collaboration with physics researchers** the open question is
281
- recruiting them (see Contributing section).
311
+ - **Collaboration with physics researchers** — eight bounded review tasks
312
+ are waiting in [CONTRIBUTING.md](CONTRIBUTING.md), including the three
313
+ contested membership adjudications (BE-44/46/50) and the CI-1/CI-2
314
+ dynamic-scaling call surfaced by the orphan-connector analysis.
282
315
 
283
316
  ## Contributing
284
317
 
318
+ See **[CONTRIBUTING.md](CONTRIBUTING.md)** — it lists bounded,
319
+ no-code-required physics-review tasks (catalog adjudications, encoding
320
+ checks against the literature, quantity-identification reviews) plus
321
+ the dev quick-start, and explains the JSON catalog review surface.
322
+
285
323
  Contributions are welcome, especially from:
286
324
  - **Physicists** - Validate equations, suggest corrections, add physics insights
287
325
  - **Mathematicians** - Verify formalism, improve rigor, suggest optimizations