universal-physics-tensor 0.4.5

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 (299) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +377 -0
  3. package/dist/bridges/equations/be-11-decoherence-master.d.ts +83 -0
  4. package/dist/bridges/equations/be-11-decoherence-master.d.ts.map +1 -0
  5. package/dist/bridges/equations/be-11-decoherence-master.js +116 -0
  6. package/dist/bridges/equations/be-11-decoherence-master.js.map +1 -0
  7. package/dist/bridges/equations/be-12-coherence-length.d.ts +80 -0
  8. package/dist/bridges/equations/be-12-coherence-length.d.ts.map +1 -0
  9. package/dist/bridges/equations/be-12-coherence-length.js +128 -0
  10. package/dist/bridges/equations/be-12-coherence-length.js.map +1 -0
  11. package/dist/bridges/equations/be-13-einstein-trace.d.ts +89 -0
  12. package/dist/bridges/equations/be-13-einstein-trace.d.ts.map +1 -0
  13. package/dist/bridges/equations/be-13-einstein-trace.js +143 -0
  14. package/dist/bridges/equations/be-13-einstein-trace.js.map +1 -0
  15. package/dist/bridges/equations/be-14-ryu-takayanagi.d.ts +67 -0
  16. package/dist/bridges/equations/be-14-ryu-takayanagi.d.ts.map +1 -0
  17. package/dist/bridges/equations/be-14-ryu-takayanagi.js +112 -0
  18. package/dist/bridges/equations/be-14-ryu-takayanagi.js.map +1 -0
  19. package/dist/bridges/equations/be-15-emergence.d.ts +164 -0
  20. package/dist/bridges/equations/be-15-emergence.d.ts.map +1 -0
  21. package/dist/bridges/equations/be-15-emergence.js +204 -0
  22. package/dist/bridges/equations/be-15-emergence.js.map +1 -0
  23. package/dist/bridges/equations/be-16-landauer.d.ts +180 -0
  24. package/dist/bridges/equations/be-16-landauer.d.ts.map +1 -0
  25. package/dist/bridges/equations/be-16-landauer.js +206 -0
  26. package/dist/bridges/equations/be-16-landauer.js.map +1 -0
  27. package/dist/bridges/equations/be-17-einstein-cartan.d.ts +245 -0
  28. package/dist/bridges/equations/be-17-einstein-cartan.d.ts.map +1 -0
  29. package/dist/bridges/equations/be-17-einstein-cartan.js +304 -0
  30. package/dist/bridges/equations/be-17-einstein-cartan.js.map +1 -0
  31. package/dist/bridges/equations/be-18-higgs-mass.d.ts +65 -0
  32. package/dist/bridges/equations/be-18-higgs-mass.d.ts.map +1 -0
  33. package/dist/bridges/equations/be-18-higgs-mass.js +86 -0
  34. package/dist/bridges/equations/be-18-higgs-mass.js.map +1 -0
  35. package/dist/bridges/equations/be-19-quantum-bounce.d.ts +72 -0
  36. package/dist/bridges/equations/be-19-quantum-bounce.d.ts.map +1 -0
  37. package/dist/bridges/equations/be-19-quantum-bounce.js +151 -0
  38. package/dist/bridges/equations/be-19-quantum-bounce.js.map +1 -0
  39. package/dist/bridges/equations/be-20-vacuum-energy.d.ts +72 -0
  40. package/dist/bridges/equations/be-20-vacuum-energy.d.ts.map +1 -0
  41. package/dist/bridges/equations/be-20-vacuum-energy.js +115 -0
  42. package/dist/bridges/equations/be-20-vacuum-energy.js.map +1 -0
  43. package/dist/bridges/equations/be-21-kss-bound.d.ts +72 -0
  44. package/dist/bridges/equations/be-21-kss-bound.d.ts.map +1 -0
  45. package/dist/bridges/equations/be-21-kss-bound.js +103 -0
  46. package/dist/bridges/equations/be-21-kss-bound.js.map +1 -0
  47. package/dist/bridges/equations/be-22-topological-entanglement.d.ts +90 -0
  48. package/dist/bridges/equations/be-22-topological-entanglement.d.ts.map +1 -0
  49. package/dist/bridges/equations/be-22-topological-entanglement.js +123 -0
  50. package/dist/bridges/equations/be-22-topological-entanglement.js.map +1 -0
  51. package/dist/bridges/equations/be-23-syk-planckian.d.ts +89 -0
  52. package/dist/bridges/equations/be-23-syk-planckian.d.ts.map +1 -0
  53. package/dist/bridges/equations/be-23-syk-planckian.js +155 -0
  54. package/dist/bridges/equations/be-23-syk-planckian.js.map +1 -0
  55. package/dist/bridges/equations/be-24-foerster-fret.d.ts +81 -0
  56. package/dist/bridges/equations/be-24-foerster-fret.d.ts.map +1 -0
  57. package/dist/bridges/equations/be-24-foerster-fret.js +121 -0
  58. package/dist/bridges/equations/be-24-foerster-fret.js.map +1 -0
  59. package/dist/bridges/equations/be-25-iit-phi.d.ts +220 -0
  60. package/dist/bridges/equations/be-25-iit-phi.d.ts.map +1 -0
  61. package/dist/bridges/equations/be-25-iit-phi.js +259 -0
  62. package/dist/bridges/equations/be-25-iit-phi.js.map +1 -0
  63. package/dist/bridges/equations/be-25-orch-or.d.ts +78 -0
  64. package/dist/bridges/equations/be-25-orch-or.d.ts.map +1 -0
  65. package/dist/bridges/equations/be-25-orch-or.js +121 -0
  66. package/dist/bridges/equations/be-25-orch-or.js.map +1 -0
  67. package/dist/bridges/equations/be-26-dna-tunneling.d.ts +75 -0
  68. package/dist/bridges/equations/be-26-dna-tunneling.d.ts.map +1 -0
  69. package/dist/bridges/equations/be-26-dna-tunneling.js +138 -0
  70. package/dist/bridges/equations/be-26-dna-tunneling.js.map +1 -0
  71. package/dist/bridges/equations/be-27-effective-temperature.d.ts +81 -0
  72. package/dist/bridges/equations/be-27-effective-temperature.d.ts.map +1 -0
  73. package/dist/bridges/equations/be-27-effective-temperature.js +120 -0
  74. package/dist/bridges/equations/be-27-effective-temperature.js.map +1 -0
  75. package/dist/bridges/equations/be-28-onsager-entropy-production.d.ts +175 -0
  76. package/dist/bridges/equations/be-28-onsager-entropy-production.d.ts.map +1 -0
  77. package/dist/bridges/equations/be-28-onsager-entropy-production.js +203 -0
  78. package/dist/bridges/equations/be-28-onsager-entropy-production.js.map +1 -0
  79. package/dist/bridges/equations/be-29-jarzynski.d.ts +86 -0
  80. package/dist/bridges/equations/be-29-jarzynski.d.ts.map +1 -0
  81. package/dist/bridges/equations/be-29-jarzynski.js +132 -0
  82. package/dist/bridges/equations/be-29-jarzynski.js.map +1 -0
  83. package/dist/bridges/equations/be-30-flm-first-law.d.ts +93 -0
  84. package/dist/bridges/equations/be-30-flm-first-law.d.ts.map +1 -0
  85. package/dist/bridges/equations/be-30-flm-first-law.js +109 -0
  86. package/dist/bridges/equations/be-30-flm-first-law.js.map +1 -0
  87. package/dist/bridges/equations/be-31-causal-set-bd.d.ts +96 -0
  88. package/dist/bridges/equations/be-31-causal-set-bd.d.ts.map +1 -0
  89. package/dist/bridges/equations/be-31-causal-set-bd.js +133 -0
  90. package/dist/bridges/equations/be-31-causal-set-bd.js.map +1 -0
  91. package/dist/bridges/equations/be-32-quantum-reference-frame.d.ts +113 -0
  92. package/dist/bridges/equations/be-32-quantum-reference-frame.d.ts.map +1 -0
  93. package/dist/bridges/equations/be-32-quantum-reference-frame.js +155 -0
  94. package/dist/bridges/equations/be-32-quantum-reference-frame.js.map +1 -0
  95. package/dist/bridges/equations/be-33-hertz-millis.d.ts +77 -0
  96. package/dist/bridges/equations/be-33-hertz-millis.d.ts.map +1 -0
  97. package/dist/bridges/equations/be-33-hertz-millis.js +113 -0
  98. package/dist/bridges/equations/be-33-hertz-millis.js.map +1 -0
  99. package/dist/bridges/equations/be-34-kibble-zurek.d.ts +76 -0
  100. package/dist/bridges/equations/be-34-kibble-zurek.d.ts.map +1 -0
  101. package/dist/bridges/equations/be-34-kibble-zurek.js +139 -0
  102. package/dist/bridges/equations/be-34-kibble-zurek.js.map +1 -0
  103. package/dist/bridges/equations/be-35-conformal-bootstrap.d.ts +117 -0
  104. package/dist/bridges/equations/be-35-conformal-bootstrap.d.ts.map +1 -0
  105. package/dist/bridges/equations/be-35-conformal-bootstrap.js +167 -0
  106. package/dist/bridges/equations/be-35-conformal-bootstrap.js.map +1 -0
  107. package/dist/bridges/equations/be-36-gw-speed-bound.d.ts +77 -0
  108. package/dist/bridges/equations/be-36-gw-speed-bound.d.ts.map +1 -0
  109. package/dist/bridges/equations/be-36-gw-speed-bound.js +107 -0
  110. package/dist/bridges/equations/be-36-gw-speed-bound.js.map +1 -0
  111. package/dist/bridges/equations/be-37-shapiro-delay.d.ts +260 -0
  112. package/dist/bridges/equations/be-37-shapiro-delay.d.ts.map +1 -0
  113. package/dist/bridges/equations/be-37-shapiro-delay.js +429 -0
  114. package/dist/bridges/equations/be-37-shapiro-delay.js.map +1 -0
  115. package/dist/bridges/equations/be-38-mond.d.ts +86 -0
  116. package/dist/bridges/equations/be-38-mond.d.ts.map +1 -0
  117. package/dist/bridges/equations/be-38-mond.js +122 -0
  118. package/dist/bridges/equations/be-38-mond.js.map +1 -0
  119. package/dist/bridges/equations/be-39-asymptotic-safety.d.ts +106 -0
  120. package/dist/bridges/equations/be-39-asymptotic-safety.d.ts.map +1 -0
  121. package/dist/bridges/equations/be-39-asymptotic-safety.js +155 -0
  122. package/dist/bridges/equations/be-39-asymptotic-safety.js.map +1 -0
  123. package/dist/bridges/equations/be-40-composite-higgs.d.ts +81 -0
  124. package/dist/bridges/equations/be-40-composite-higgs.d.ts.map +1 -0
  125. package/dist/bridges/equations/be-40-composite-higgs.js +149 -0
  126. package/dist/bridges/equations/be-40-composite-higgs.js.map +1 -0
  127. package/dist/bridges/equations/be-41-swampland.d.ts +67 -0
  128. package/dist/bridges/equations/be-41-swampland.d.ts.map +1 -0
  129. package/dist/bridges/equations/be-41-swampland.js +109 -0
  130. package/dist/bridges/equations/be-41-swampland.js.map +1 -0
  131. package/dist/bridges/equations/be-42-hawking-temperature.d.ts +67 -0
  132. package/dist/bridges/equations/be-42-hawking-temperature.d.ts.map +1 -0
  133. package/dist/bridges/equations/be-42-hawking-temperature.js +109 -0
  134. package/dist/bridges/equations/be-42-hawking-temperature.js.map +1 -0
  135. package/dist/bridges/equations/be-43-er-epr.d.ts +73 -0
  136. package/dist/bridges/equations/be-43-er-epr.d.ts.map +1 -0
  137. package/dist/bridges/equations/be-43-er-epr.js +114 -0
  138. package/dist/bridges/equations/be-43-er-epr.js.map +1 -0
  139. package/dist/bridges/equations/be-44-soft-hair.d.ts +151 -0
  140. package/dist/bridges/equations/be-44-soft-hair.d.ts.map +1 -0
  141. package/dist/bridges/equations/be-44-soft-hair.js +185 -0
  142. package/dist/bridges/equations/be-44-soft-hair.js.map +1 -0
  143. package/dist/bridges/equations/be-45-tcc.d.ts +116 -0
  144. package/dist/bridges/equations/be-45-tcc.d.ts.map +1 -0
  145. package/dist/bridges/equations/be-45-tcc.js +157 -0
  146. package/dist/bridges/equations/be-45-tcc.js.map +1 -0
  147. package/dist/bridges/equations/be-46-multiverse-measure.d.ts +163 -0
  148. package/dist/bridges/equations/be-46-multiverse-measure.d.ts.map +1 -0
  149. package/dist/bridges/equations/be-46-multiverse-measure.js +198 -0
  150. package/dist/bridges/equations/be-46-multiverse-measure.js.map +1 -0
  151. package/dist/bridges/equations/be-47-bbn-dark-sector.d.ts +72 -0
  152. package/dist/bridges/equations/be-47-bbn-dark-sector.d.ts.map +1 -0
  153. package/dist/bridges/equations/be-47-bbn-dark-sector.js +121 -0
  154. package/dist/bridges/equations/be-47-bbn-dark-sector.js.map +1 -0
  155. package/dist/bridges/equations/be-48-grw-localization.d.ts +84 -0
  156. package/dist/bridges/equations/be-48-grw-localization.d.ts.map +1 -0
  157. package/dist/bridges/equations/be-48-grw-localization.js +107 -0
  158. package/dist/bridges/equations/be-48-grw-localization.js.map +1 -0
  159. package/dist/bridges/equations/be-49-quantum-darwinism.d.ts +97 -0
  160. package/dist/bridges/equations/be-49-quantum-darwinism.d.ts.map +1 -0
  161. package/dist/bridges/equations/be-49-quantum-darwinism.js +129 -0
  162. package/dist/bridges/equations/be-49-quantum-darwinism.js.map +1 -0
  163. package/dist/bridges/equations/be-50-wheeler-feynman.d.ts +120 -0
  164. package/dist/bridges/equations/be-50-wheeler-feynman.d.ts.map +1 -0
  165. package/dist/bridges/equations/be-50-wheeler-feynman.js +151 -0
  166. package/dist/bridges/equations/be-50-wheeler-feynman.js.map +1 -0
  167. package/dist/bridges/gravitational-lensing.d.ts +52 -0
  168. package/dist/bridges/gravitational-lensing.d.ts.map +1 -0
  169. package/dist/bridges/gravitational-lensing.js +48 -0
  170. package/dist/bridges/gravitational-lensing.js.map +1 -0
  171. package/dist/bridges/index.d.ts +104 -0
  172. package/dist/bridges/index.d.ts.map +1 -0
  173. package/dist/bridges/index.js +1663 -0
  174. package/dist/bridges/index.js.map +1 -0
  175. package/dist/bridges/perihelion-precession.d.ts +62 -0
  176. package/dist/bridges/perihelion-precession.d.ts.map +1 -0
  177. package/dist/bridges/perihelion-precession.js +68 -0
  178. package/dist/bridges/perihelion-precession.js.map +1 -0
  179. package/dist/core/tensor.d.ts +135 -0
  180. package/dist/core/tensor.d.ts.map +1 -0
  181. package/dist/core/tensor.js +376 -0
  182. package/dist/core/tensor.js.map +1 -0
  183. package/dist/core/types.d.ts +131 -0
  184. package/dist/core/types.d.ts.map +1 -0
  185. package/dist/core/types.js +25 -0
  186. package/dist/core/types.js.map +1 -0
  187. package/dist/dimensional/algebra.d.ts +34 -0
  188. package/dist/dimensional/algebra.d.ts.map +1 -0
  189. package/dist/dimensional/algebra.js +90 -0
  190. package/dist/dimensional/algebra.js.map +1 -0
  191. package/dist/dimensional/bridge-check.d.ts +48 -0
  192. package/dist/dimensional/bridge-check.d.ts.map +1 -0
  193. package/dist/dimensional/bridge-check.js +137 -0
  194. package/dist/dimensional/bridge-check.js.map +1 -0
  195. package/dist/dimensional/connection-validators.d.ts +53 -0
  196. package/dist/dimensional/connection-validators.d.ts.map +1 -0
  197. package/dist/dimensional/connection-validators.js +84 -0
  198. package/dist/dimensional/connection-validators.js.map +1 -0
  199. package/dist/dimensional/connection.d.ts +40 -0
  200. package/dist/dimensional/connection.d.ts.map +1 -0
  201. package/dist/dimensional/connection.js +81 -0
  202. package/dist/dimensional/connection.js.map +1 -0
  203. package/dist/dimensional/constants.d.ts +30 -0
  204. package/dist/dimensional/constants.d.ts.map +1 -0
  205. package/dist/dimensional/constants.js +31 -0
  206. package/dist/dimensional/constants.js.map +1 -0
  207. package/dist/dimensional/errors.d.ts +161 -0
  208. package/dist/dimensional/errors.d.ts.map +1 -0
  209. package/dist/dimensional/errors.js +254 -0
  210. package/dist/dimensional/errors.js.map +1 -0
  211. package/dist/dimensional/fresh-label.d.ts +26 -0
  212. package/dist/dimensional/fresh-label.d.ts.map +1 -0
  213. package/dist/dimensional/fresh-label.js +31 -0
  214. package/dist/dimensional/fresh-label.js.map +1 -0
  215. package/dist/dimensional/metric-validators.d.ts +124 -0
  216. package/dist/dimensional/metric-validators.d.ts.map +1 -0
  217. package/dist/dimensional/metric-validators.js +141 -0
  218. package/dist/dimensional/metric-validators.js.map +1 -0
  219. package/dist/dimensional/metric.d.ts +67 -0
  220. package/dist/dimensional/metric.d.ts.map +1 -0
  221. package/dist/dimensional/metric.js +177 -0
  222. package/dist/dimensional/metric.js.map +1 -0
  223. package/dist/dimensional/tensor.d.ts +153 -0
  224. package/dist/dimensional/tensor.d.ts.map +1 -0
  225. package/dist/dimensional/tensor.js +138 -0
  226. package/dist/dimensional/tensor.js.map +1 -0
  227. package/dist/dimensional/types.d.ts +50 -0
  228. package/dist/dimensional/types.d.ts.map +1 -0
  229. package/dist/dimensional/types.js +66 -0
  230. package/dist/dimensional/types.js.map +1 -0
  231. package/dist/dimensional/validator.d.ts +84 -0
  232. package/dist/dimensional/validator.d.ts.map +1 -0
  233. package/dist/dimensional/validator.js +505 -0
  234. package/dist/dimensional/validator.js.map +1 -0
  235. package/dist/index.d.ts +25 -0
  236. package/dist/index.d.ts.map +1 -0
  237. package/dist/index.js +37 -0
  238. package/dist/index.js.map +1 -0
  239. package/dist/numerical/be37-covariant-eikonal.d.ts +90 -0
  240. package/dist/numerical/be37-covariant-eikonal.d.ts.map +1 -0
  241. package/dist/numerical/be37-covariant-eikonal.js +79 -0
  242. package/dist/numerical/be37-covariant-eikonal.js.map +1 -0
  243. package/dist/numerical/connection-lowering-helpers.d.ts +107 -0
  244. package/dist/numerical/connection-lowering-helpers.d.ts.map +1 -0
  245. package/dist/numerical/connection-lowering-helpers.js +315 -0
  246. package/dist/numerical/connection-lowering-helpers.js.map +1 -0
  247. package/dist/numerical/engine-registry.d.ts +50 -0
  248. package/dist/numerical/engine-registry.d.ts.map +1 -0
  249. package/dist/numerical/engine-registry.js +82 -0
  250. package/dist/numerical/engine-registry.js.map +1 -0
  251. package/dist/numerical/errors.d.ts +28 -0
  252. package/dist/numerical/errors.d.ts.map +1 -0
  253. package/dist/numerical/errors.js +39 -0
  254. package/dist/numerical/errors.js.map +1 -0
  255. package/dist/numerical/float64-engine.d.ts +53 -0
  256. package/dist/numerical/float64-engine.d.ts.map +1 -0
  257. package/dist/numerical/float64-engine.js +638 -0
  258. package/dist/numerical/float64-engine.js.map +1 -0
  259. package/dist/numerical/geodesic-integrator.d.ts +62 -0
  260. package/dist/numerical/geodesic-integrator.d.ts.map +1 -0
  261. package/dist/numerical/geodesic-integrator.js +103 -0
  262. package/dist/numerical/geodesic-integrator.js.map +1 -0
  263. package/dist/numerical/grid-field.d.ts +24 -0
  264. package/dist/numerical/grid-field.d.ts.map +1 -0
  265. package/dist/numerical/grid-field.js +2 -0
  266. package/dist/numerical/grid-field.js.map +1 -0
  267. package/dist/numerical/index.d.ts +80 -0
  268. package/dist/numerical/index.d.ts.map +1 -0
  269. package/dist/numerical/index.js +75 -0
  270. package/dist/numerical/index.js.map +1 -0
  271. package/dist/numerical/lowering.d.ts +48 -0
  272. package/dist/numerical/lowering.d.ts.map +1 -0
  273. package/dist/numerical/lowering.js +443 -0
  274. package/dist/numerical/lowering.js.map +1 -0
  275. package/dist/numerical/mathts-engine.d.ts +55 -0
  276. package/dist/numerical/mathts-engine.d.ts.map +1 -0
  277. package/dist/numerical/mathts-engine.js +164 -0
  278. package/dist/numerical/mathts-engine.js.map +1 -0
  279. package/dist/numerical/metric-inverse.d.ts +31 -0
  280. package/dist/numerical/metric-inverse.d.ts.map +1 -0
  281. package/dist/numerical/metric-inverse.js +68 -0
  282. package/dist/numerical/metric-inverse.js.map +1 -0
  283. package/dist/numerical/null-ray-integrator.d.ts +13 -0
  284. package/dist/numerical/null-ray-integrator.d.ts.map +1 -0
  285. package/dist/numerical/null-ray-integrator.js +53 -0
  286. package/dist/numerical/null-ray-integrator.js.map +1 -0
  287. package/dist/numerical/pderiv.d.ts +43 -0
  288. package/dist/numerical/pderiv.d.ts.map +1 -0
  289. package/dist/numerical/pderiv.js +121 -0
  290. package/dist/numerical/pderiv.js.map +1 -0
  291. package/dist/numerical/tensor-engine.d.ts +114 -0
  292. package/dist/numerical/tensor-engine.d.ts.map +1 -0
  293. package/dist/numerical/tensor-engine.js +64 -0
  294. package/dist/numerical/tensor-engine.js.map +1 -0
  295. package/dist/numerical/types.d.ts +37 -0
  296. package/dist/numerical/types.d.ts.map +1 -0
  297. package/dist/numerical/types.js +8 -0
  298. package/dist/numerical/types.js.map +1 -0
  299. package/package.json +72 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Daniel Simon Jr.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,377 @@
1
+ # Universal Physics Tensor Framework
2
+
3
+ **Computational framework for exploring unified physics through tensor formalism**
4
+
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
+ [![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
+
9
+ ## Vision
10
+
11
+ Modern physics is fragmented across scales and domains: quantum mechanics governs the microscopic, general relativity explains the cosmic, and statistical mechanics bridges between them. Each regime has its own mathematics, assumptions, and approximations. **What if we could represent all of physics in a single mathematical object?**
12
+
13
+ The Universal Physics Tensor Framework (UPTF) proposes a rank-6 tensor **Π** living in a product space of:
14
+ - **Scale** (quantum → mesoscopic → classical → cosmological)
15
+ - **Force** (gravitational, electromagnetic, weak, strong, emergent)
16
+ - **Symmetry** (Poincaré, gauge, conformal, supersymmetry (`'susy'` in code))
17
+ - **Information** (von Neumann, Shannon, Kolmogorov, quantum discord)
18
+ - **Dimension** (dimensional analysis constraints)
19
+ - **Topology** (topological invariants)
20
+
21
+ This framework provides a computational laboratory for exploring:
22
+ - **Bridge equations** connecting different physical regimes
23
+ - **Emergence** of macroscopic laws from microscopic interactions
24
+ - **Information-geometry** connections between computation and spacetime
25
+ - **Unification** patterns across seemingly disparate phenomena
26
+
27
+ ## Important Context
28
+
29
+ **I am not a physicist by trade.** I'm a systems engineer specializing in Test Program Set development for defense avionics. This project applies **engineering systems thinking** to theoretical physics questions.
30
+
31
+ Think of this as:
32
+ - **A computational framework** for exploring ideas
33
+ - **An engineering approach** to organizing physical knowledge
34
+ - **A collaboration platform** inviting physicists to validate/improve
35
+ - **NOT claiming to have "solved" or "unified" physics**
36
+ - **NOT peer-reviewed theoretical physics** (yet)
37
+
38
+ **Physicists:** Your expertise is welcomed and needed! Please contribute validation, corrections, and improvements.
39
+
40
+ ## Quick Start
41
+
42
+ ```bash
43
+ # Clone the repository
44
+ git clone https://github.com/danielsimonjr/universal-physics-tensor.git
45
+ cd universal-physics-tensor
46
+
47
+ # Install dependencies
48
+ npm install
49
+
50
+ # Build the project
51
+ npm run build
52
+
53
+ # Run the smoke test
54
+ node test-example.js
55
+ ```
56
+
57
+ ## Installation
58
+
59
+ ```bash
60
+ npm install universal-physics-tensor
61
+ ```
62
+
63
+ Or install directly from GitHub:
64
+
65
+ ```bash
66
+ # Clone and build locally
67
+ git clone https://github.com/danielsimonjr/universal-physics-tensor.git
68
+ cd universal-physics-tensor
69
+ npm install
70
+ npm run build
71
+ ```
72
+
73
+ ```typescript
74
+ import { UniversalTensor } from 'universal-physics-tensor';
75
+ import type { PhysicalLaw, BridgeEquation } from 'universal-physics-tensor';
76
+
77
+ // Create a tensor instance
78
+ const tensor = new UniversalTensor({
79
+ rank: 3, // Start simple
80
+ scales: ['quantum', 'classical'],
81
+ forces: ['electromagnetic', 'gravitational'],
82
+ });
83
+
84
+ // Register a known law (e.g., Schrödinger equation)
85
+ const schrodinger: PhysicalLaw = {
86
+ id: 'schrodinger',
87
+ name: 'Schrödinger Equation',
88
+ equation: 'iℏ ∂ψ/∂t = Ĥψ',
89
+ scales: ['quantum'],
90
+ forces: ['electromagnetic'],
91
+ symmetries: ['poincare'], // strictly Galilean for non-relativistic Schrödinger; 'poincare' used as placeholder (no 'galilean' in current Symmetry type)
92
+ confidence: 1.0,
93
+ };
94
+ tensor.addLaw(schrodinger);
95
+
96
+ // Query laws applicable to the quantum regime
97
+ const quantumLaws = tensor.queryLaws({ scale: 'quantum' });
98
+ console.log(quantumLaws.map(l => l.name));
99
+ ```
100
+
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).
102
+
103
+ ## Core Concepts
104
+
105
+ ### The Universal Tensor
106
+
107
+ The tensor **Π** is decomposed (classified) into three components:
108
+
109
+ **Π = L + B + E**
110
+
111
+ Where:
112
+ - **L** (Laws): Known physics on the diagonal (QM, GR, SM, etc.)
113
+ - **B** (Bridges): Off-diagonal equations connecting regimes
114
+ - **E** (Emergence): Higher-order correlations producing emergent phenomena
115
+
116
+ > **Note on notation:** the "+" here denotes disjoint union of catalog entries (each tensor slot holds content of exactly one category), not algebraic addition. Different slots may hold quantities of different physical dimensions (e.g., a Lagrangian density and a decoherence rate) and cannot be summed numerically. See [Part I §1.2](docs/specification/Part-I.md) for the formal treatment.
117
+
118
+ ### Bridge Equations
119
+
120
+ Bridge equations connect different physical regimes:
121
+
122
+ **Quantum ↔ Classical:**
123
+ - Decoherence Master Equation
124
+ - Mesoscopic Coherence Length
125
+
126
+ **Information ↔ Geometry:**
127
+ - Landauer-Wheeler Information-Geometry Equation
128
+ - Holographic Quantum Error Correction
129
+
130
+ **Microscopic ↔ Macroscopic:**
131
+ - Universal Emergence Equation
132
+ - Complexity-Entropy Production Relation
133
+
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–50). Part III covers algorithmic implementation.
135
+
136
+ ## Documentation
137
+
138
+ ### Formal Specification (6-Part Series)
139
+ Complete theoretical foundation of the Universal Physics Tensor Framework:
140
+
141
+ - **[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-50 across condensed matter, quantum biology, emergent spacetime
143
+ - **[Part III: Computational Implementation](docs/specification/Part-III.md)** - Algorithms, information-theoretic bounds, ML integration
144
+ - **[Part IV: Validation & Implications](docs/specification/Part-IV.md)** - Experimental pathways, philosophical implications, applications
145
+ - **[Part V: Advanced Mathematics & Protocols](docs/specification/Part-V.md)** - Category theory extensions, validation protocols, algorithmic analysis
146
+ - **[Part VI: Deployment & Governance](docs/specification/Part-VI.md)** - Implementation strategies, applications, governance frameworks
147
+
148
+ ### Planning & Development
149
+ - **[Development Plan](docs/planning/Development-Plan.md)** - Phased implementation roadmap
150
+ - **[Implementation Plan](docs/planning/Implementation-Plan.md)** - Technical architecture
151
+ - **[System Requirements](docs/planning/System-Requirements.md)** - Functional requirements
152
+
153
+ ### Code Documentation
154
+ - **[Examples](examples/)** - Usage examples and code samples
155
+ - **[Documentation Index](docs/README.md)** - Complete documentation guide
156
+
157
+ ## Benchmarks
158
+
159
+ UPT ships benchmark infrastructure via [Vitest bench](https://vitest.dev/guide/features.html#benchmarking):
160
+
161
+ ```bash
162
+ npm run bench # interactive run (median, p99, ops/sec)
163
+ npm run bench:ci # verbose run for CI log capture
164
+ ```
165
+
166
+ v0.4.5 baseline results are recorded in [`docs/architecture/benchmarks.md`](docs/architecture/benchmarks.md).
167
+ These are **correctness-first baselines, not optimization targets** — no threshold
168
+ gates in v0.4.5. Thresholds and comparative analysis are v0.5.0 scope.
169
+
170
+ ## Development Status
171
+
172
+ **Current Version:** v0.4.5 (released 2026-05-17). Refactor + benchmark scaffold release.
173
+ Dead-code removal (4 deprecated/unused exports), `Float64Tensor` visibility cleanup,
174
+ `flattenNA` JSDoc fix, bridge-test helper consolidation across 39 files (+84 LOC net),
175
+ and `bench/` infrastructure with AD + BE-37 eikonal + Schwarzschild geodesic baseline
176
+ benchmarks. No new features, no bridge work, no breaking changes. See
177
+ [CHANGELOG](CHANGELOG.md) for full details.
178
+
179
+ ### v0.4.5 — refactor + benchmark baselines (2026-05-17)
180
+
181
+ | Metric | Value |
182
+ |---|---|
183
+ | Bridge catalog | **42 / 42** (IDs 11-52, unchanged from v0.4.0) |
184
+ | Test suite | passing (see `npm test`) |
185
+ | `tsc --noEmit` | clean |
186
+ | Benchmark suites | 4 (sanity, AD, BE-37 eikonal, Schwarzschild geodesic) |
187
+ | Breaking changes | none |
188
+
189
+ **Honest framing:** This is a pure refactor + benchmark scaffold release.
190
+ LOC delta across the bridge-test migration is +84 net (helper file +81 LOC;
191
+ migration across 39 files is +3 LOC net). Benchmarks establish correctness-first
192
+ baselines for v0.5.0+ comparison — not optimization wins.
193
+
194
+ **Deferred to v0.5.0:** Faraday-cascade BREAKING changes, symplectic
195
+ geodesic integrator + bisection perihelion finder, benchmark threshold
196
+ gates, Three.js viz.
197
+
198
+ ### v0.4.0 — connection layer + AD + 2 new bridges (2026-05-15)
199
+
200
+ | Metric | Value |
201
+ |---|---|
202
+ | Bridge catalog | **42 / 42** (IDs 11-52) |
203
+ | Test suite | passing (see `npm test`) |
204
+ | `tsc --noEmit` | clean |
205
+ | New public-surface entries | 11 (`christoffel`, `CovariantDerivativeNode`, `integrateGeodesic`, `evaluateGravitationalLensing`, `evaluatePerihelionPrecession`, `evaluateBE37CovariantEikonalNumerical`, `hasAutogradSupport`, `EngineCapabilityError`, `DuplicateCoordinateWarning`, `ForwardGradResult`, `ReverseGradResult`) |
206
+ | AD engines | `Float64ReferenceEngine` + `MathTSEngine` (both pass identical conformance suite) |
207
+ | Default engine | `MathTSEngine` when optional deps installed; degrades to `Float64ReferenceEngine` with `console.warn` |
208
+
209
+ **Honest framing:** Both engines run the same naive O(n) algorithms in
210
+ v0.4.0; the MathTSEngine-default flip is a dep-shape + code-path-signal
211
+ change, not a performance win. MathTSEngine becomes default because that
212
+ is where the AD capability lives.
213
+
214
+ **Deferred to v0.5.0:** Faraday-cascade BREAKING changes, symplectic
215
+ geodesic integrator + bisection perihelion finder (needed for
216
+ RK4-cross-validation of Mercury's Δφ ≈ 5.02e-7 rad/orbit), Three.js
217
+ viz.
218
+
219
+ ### ✅ Numerical backend (v0.3.5, 2026-05-14)
220
+
221
+ Numerical-contraction backend: `TensorEngine` interface +
222
+ `Float64ReferenceEngine` (zero-dep, default) + `MathTSEngine` (backed
223
+ by `@danielsimonjr/mathts-tensor`). AST→engine lowering, two-way
224
+ numerical partial derivatives, `InverseMetricInconsistencyWarning`,
225
+ BE-37 Shapiro-delay eikonal end-to-end to ±1e-9 relative error.
226
+
227
+ ### ✅ Catalog closed at 40/40 (v0.1.0, 2026-05-12)
228
+
229
+ First tagged release; transitions the project out
230
+ of pre-formalization to a stable scaffold. SemVer applies from this
231
+ release onward.
232
+
233
+ ### ✅ Catalog closed at 40/40 (master `b358257`, 2026-05-11)
234
+
235
+ The Tier-5 AST encoding rollout reached **full coverage** with the
236
+ Wave Z arc (commits `9cb299f` through `b358257`). Every bridge in
237
+ `src/bridges/index.ts` has a non-null `dimensional_signature`, an AST
238
+ module in `src/bridges/equations/`, a numerical evaluator with
239
+ input-validation guards, and per-bridge encoding tests.
240
+
241
+ **Final invariants:**
242
+
243
+ | Metric | Value |
244
+ |---|---|
245
+ | AST encodings | **40 / 40** |
246
+ | `dimensional_signature === null` count | 0 |
247
+ | `status === 'invalid'` count | 0 |
248
+ | `tractability_class === 'undefined'` count | 0 |
249
+ | Test suite | **1161 / 1161** passing across 68 files |
250
+ | Status distribution | 6 established · 31 speculative · 3 highly-speculative · 0 invalid |
251
+
252
+ **Catalog:** 40 bridge equations indexed in `src/bridges/index.ts`, each
253
+ with structured `KnownIssue` records (severity / description / fixable),
254
+ references, dependencies, and disposition status. Spec ↔ index drift
255
+ guard: `tests/bridges/spec-vs-index.test.ts` asserts every audit-marker
256
+ in the spec markdown has a matching entry.
257
+
258
+ **Dimensional analyzer** (`src/dimensional/`): operator-blind scalar AST
259
+ with primitives `symbol | op (* / + - ^) | integral | derivative`. 22
260
+ named SI dimensions with round-trip `format()`. Validator hardening: `^`
261
+ arity guard, switch-exhaustiveness `never` arm, integral / derivative
262
+ shape guards, informative violation diagnostics. `inferDimensionForBridge`
263
+ consults `EXPECTED_DIMENSION_BY_BRIDGE` for cross-checking; the lookup
264
+ table now has 40 entries (one per encoded bridge).
265
+
266
+ **Encoding patterns established during the rollout:** typed-stubs for
267
+ transcendentals and operator-valued interiors (log/exp/tensor
268
+ contractions absorbed into single dimensioned symbols);
269
+ squared-form to avoid fractional exponents (S², L²=Γt, Q_soft²);
270
+ ensemble-average stubs (Jarzynski ⟨exp(-βW)⟩); observational-bound
271
+ dimensionless ratios (GW170817 |c_GW-c|/c); integral primitive for
272
+ boundary integrals (BE-26 WKB, BE-44 soft-hair L²-norm); and **bridge
273
+ reformulation** — replacing broken or contested formulations with
274
+ canonical literature forms while preserving the bridge label
275
+ (precedent: BE-25 Penrose-Hameroff → IIT Φ_max; Wave Z applied this
276
+ to BE-16 → Landauer, BE-37 → Shapiro delay, BE-28 → Onsager σ).
277
+
278
+ **Catalog round-trip invariant:** every entry's encoded RHS validates
279
+ back to its registered `dimensional_signature` via
280
+ `tests/bridges/dimensional-signature-catalog.test.ts`. All 40 entries
281
+ are signature-populated and round-trip-verified.
282
+
283
+ **Cross-LLM validation:** the three highest-stakes Wave-Z reformulations
284
+ (BE-16 Landauer, BE-37 Shapiro, BE-28 Onsager — all promoted from
285
+ `status='invalid'`) were independently cross-validated by both OpenAI
286
+ o3 and Gemini Pro. Both reasoners agreed on the verdict for all three.
287
+ The BE-28 Onsager relabeling carries a prominent `⚠ CRITICAL WARNING`
288
+ in its module docstring: the encoded `σ = Σᵢ Jᵢ Xᵢ` is the *definiendum*
289
+ of MEPP, not the variational maximization principle itself.
290
+
291
+ **Test suite:** 1161 tests across 68 files, including property-style
292
+ sweeps, limit identities, honest-archaeology disposition pins, and
293
+ catalog-wide round-trip invariants. `npm test` runs the full suite in
294
+ ~15 s on a modern dev box; typecheck is clean.
295
+
296
+ **Planning artifacts** in `docs/planning/`: Tier-5 encoding triage memo
297
+ (refreshed 2026-05-11 with Wave Z closure record), BE-37 VSL
298
+ disposition brief, dimensionless-stub convention doc, Bridge
299
+ Remediation Plan (R0-R5 audit chain), v0.1.0 release procedure.
300
+
301
+ ### Planned (post-closure)
302
+
303
+ - **v0.1.0 release** — trigger condition met; cut is a discretionary
304
+ release decision documented in `v0.1.0-Release-Procedure.md`.
305
+ - **Grammar extensions for genuinely-deferred primitives:** Dirac-δ
306
+ correlators (would enable a fuller BE-15 Hohenberg-Halperin Model A
307
+ Langevin encoding), variational-δ operator (would enable a faithful
308
+ MEPP encoding for BE-28 that captures the maximization claim).
309
+ Neither is currently planned — both are scope expansions beyond the
310
+ scalar-AST design.
311
+ - **Wider rank-6 tensor with numerical operations** — the
312
+ catalog-encoding work has been the priority; tensor operators are the
313
+ next conceptual layer.
314
+ - **Three.js / game-engine class visualization** in a separate repo
315
+ (out of UPT scope per project decision; see
316
+ `docs/planning/Future-Production-Hardening.md`).
317
+ - **Experimental data validation pipelines** — applicable now that
318
+ catalog encoding is complete.
319
+ - **Collaboration with physics researchers** — the open question is
320
+ recruiting them (see Contributing section).
321
+
322
+ ## Contributing
323
+
324
+ Contributions are welcome, especially from:
325
+ - **Physicists** - Validate equations, suggest corrections, add physics insights
326
+ - **Mathematicians** - Verify formalism, improve rigor, suggest optimizations
327
+ - **Engineers** - Improve architecture, add features, optimize performance
328
+ - **Educators** - Create examples, improve documentation, develop tutorials
329
+
330
+ ## Background & Philosophy
331
+
332
+ This project emerged from a simple question: **"If I had to design a test program set for all of physics, how would I structure it?"**
333
+
334
+ In Test Program Set (TPS) development for avionics, we create systems that:
335
+ - Interface across multiple domains (hardware, software, physics)
336
+ - Bridge different measurement scales (micro to macro)
337
+ - Maintain consistency across transformations
338
+ - Enable diagnostic troubleshooting
339
+
340
+ The same systems thinking applies to physics:
341
+ - Known laws = verified test procedures (diagonal elements)
342
+ - Bridge equations = interface adapters (off-diagonal elements)
343
+ - Emergence = higher-order system behaviors (correlations)
344
+ - Validation = experimental data matching (consistency checks)
345
+
346
+ This is an **engineer's approach to theoretical physics** — systematic, organized, and open to collaboration with domain experts.
347
+
348
+ ## License
349
+
350
+ MIT License - see [LICENSE](LICENSE) for details.
351
+
352
+ ## Author
353
+
354
+ **Daniel Simon Jr.**
355
+ - Systems Engineer specializing in Test Program Set Development
356
+ - Electrical Engineering, University of Texas at Dallas
357
+ - Currently: Senior Test Engineer, Lockheed Martin
358
+ - Interests: Integrating Philosophy, Science, and Technology
359
+
360
+ **Connect:**
361
+ - GitHub: [@danielsimonjr](https://github.com/danielsimonjr)
362
+ - LinkedIn: [danielsimonjr](https://linkedin.com/in/danielsimonjr)
363
+ - Substack: [Simon Says!](https://danielsimonjr.substack.com)
364
+ - Website: [danielsimonjr.github.io/resume](https://danielsimonjr.github.io/resume/)
365
+
366
+ ## Acknowledgments
367
+
368
+ This work builds on the shoulders of giants:
369
+ - Tensor formalism from differential geometry
370
+ - Bridge equations inspired by effective field theory
371
+ - Information-theoretic insights from quantum information theory
372
+ - Emergence concepts from condensed matter physics
373
+ - Systems thinking from engineering practice
374
+
375
+ ---
376
+
377
+ **Disclaimer:** This is an exploratory computational framework, not peer-reviewed physics research. All results should be validated against experimental data and theoretical physics literature. Collaboration with professional physicists is actively sought to improve accuracy and rigor.
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Bridge Equation 11 — Decoherence Master Equation (Lindblad form).
3
+ *
4
+ * The bridge entry's main formula is the GKSL/Lindblad master equation
5
+ *
6
+ * ∂ρ/∂t = -(i/ℏ)[H, ρ]
7
+ * + Σ_k γ_k(λ) [ L_k ρ L_k† − ½ {L_k† L_k, ρ} ]
8
+ *
9
+ * with the coupling-dependent rate (corrected 2026-05-04, Caldeira-Leggett
10
+ * weak-coupling form)
11
+ *
12
+ * γ_k(λ) = γ_0 (λ / λ_0)²
13
+ *
14
+ * where γ_0 is a reference rate (s^-1), λ is the system-environment coupling,
15
+ * and λ_0 is a reference coupling chosen so γ_k(λ_0) = γ_0.
16
+ *
17
+ * References:
18
+ * - Lindblad, Commun. Math. Phys. 48:119 (1976) — Lindblad form.
19
+ * - Gorini-Kossakowski-Sudarshan, J. Math. Phys. 17:821 (1976) — GKSL.
20
+ * - Caldeira & Leggett, Physica A 121, 587 (1983) — system-bath model.
21
+ * - Caldeira & Leggett, Phys. Rev. A 31, 1059 (1985), §III.B — γ ∝ λ².
22
+ * - Breuer & Petruccione, *The Theory of Open Quantum Systems* (OUP 2002),
23
+ * §3.6, §4.5 — weak-coupling derivation.
24
+ *
25
+ * Status: established (within open-quantum-systems theory).
26
+ *
27
+ * Honest-claude scope notes:
28
+ * - The full Lindblad equation cannot be encoded as a typed ExprNode tree
29
+ * in this MVP: the analyzer tracks only SI dimensions, not operator
30
+ * algebra, commutators [H,ρ], or anti-commutators {A,B}. Density
31
+ * matrices ρ and Lindblad operators L_k carry operator structure that
32
+ * this analyzer is not designed to validate.
33
+ * - What we DO encode is the (corrected) auxiliary rate function
34
+ * γ_k(λ) = γ_0 (λ/λ_0)², which is an honest scalar relation in
35
+ * [frequency] = [T^-1]. This validates that the corrected rate is
36
+ * dimensionally consistent and gives downstream code a numerical
37
+ * evaluator.
38
+ * - Tier 4.5 follow-up (operator-aware ExprNode): would let us encode the
39
+ * LHS dρ/dt and the unitary-and-dissipator RHS terms; out of scope for
40
+ * the R0 audit fix.
41
+ *
42
+ * @see docs/specification/Part-I.md ("Bridge Equation 11: Decoherence Master Equation")
43
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 11)
44
+ * @module bridges/equations/be-11-decoherence-master
45
+ */
46
+ import type { ExprNode, DimensionValidationReport } from '../../dimensional/validator.js';
47
+ /**
48
+ * RHS of the corrected Caldeira-Leggett weak-coupling rate as a typed
49
+ * ExprNode tree: γ_0 * (λ / λ_0)^2.
50
+ *
51
+ * Both λ and λ_0 share the same (unspecified, but identical) dimension, so
52
+ * the ratio is dimensionless; raising to the 2nd power keeps it
53
+ * dimensionless; multiplying by γ_0 (frequency) gives [frequency].
54
+ *
55
+ * We model λ and λ_0 as DIMENSIONLESS in the AST. Physically the user may
56
+ * choose λ to be a dimensionless coupling (most common) or a coupling with
57
+ * its own dimension; either way the *ratio* λ/λ_0 is dimensionless, so the
58
+ * scalar AST encoding faithfully captures the dimensional content.
59
+ */
60
+ export declare const DECOHERENCE_RATE_RHS: ExprNode;
61
+ /** LHS of the equation: a single symbol of dimension [frequency]. */
62
+ export declare const DECOHERENCE_RATE_LHS: ExprNode;
63
+ export interface DecoherenceRateInputs {
64
+ /** Reference rate γ_0 in inverse seconds (s^-1). Must be ≥ 0. */
65
+ gamma0_per_s: number;
66
+ /** System-environment coupling strength (any consistent unit). */
67
+ lambda: number;
68
+ /** Reference coupling λ_0 (same unit as λ). Must be > 0. */
69
+ lambda0: number;
70
+ }
71
+ /**
72
+ * Evaluate γ_k(λ) = γ_0 * (λ / λ_0)^2 (Caldeira-Leggett weak-coupling form).
73
+ *
74
+ * @returns Decoherence rate in s^-1.
75
+ */
76
+ export declare function evaluateDecoherenceRate(input: DecoherenceRateInputs): number;
77
+ /**
78
+ * Run the rate-function AST through the dimensional analyzer and confirm
79
+ * both sides are [frequency]. Returns the inferred dimensions for
80
+ * traceability.
81
+ */
82
+ export declare function validateDecoherenceRateDimensions(): DimensionValidationReport;
83
+ //# sourceMappingURL=be-11-decoherence-master.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-11-decoherence-master.d.ts","sourceRoot":"","sources":["../../../src/bridges/equations/be-11-decoherence-master.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAY1F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAelC,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,EAAE,QAAoC,CAAC;AAIxE,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,CAmB5E;AAID;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,CAS7E"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Bridge Equation 11 — Decoherence Master Equation (Lindblad form).
3
+ *
4
+ * The bridge entry's main formula is the GKSL/Lindblad master equation
5
+ *
6
+ * ∂ρ/∂t = -(i/ℏ)[H, ρ]
7
+ * + Σ_k γ_k(λ) [ L_k ρ L_k† − ½ {L_k† L_k, ρ} ]
8
+ *
9
+ * with the coupling-dependent rate (corrected 2026-05-04, Caldeira-Leggett
10
+ * weak-coupling form)
11
+ *
12
+ * γ_k(λ) = γ_0 (λ / λ_0)²
13
+ *
14
+ * where γ_0 is a reference rate (s^-1), λ is the system-environment coupling,
15
+ * and λ_0 is a reference coupling chosen so γ_k(λ_0) = γ_0.
16
+ *
17
+ * References:
18
+ * - Lindblad, Commun. Math. Phys. 48:119 (1976) — Lindblad form.
19
+ * - Gorini-Kossakowski-Sudarshan, J. Math. Phys. 17:821 (1976) — GKSL.
20
+ * - Caldeira & Leggett, Physica A 121, 587 (1983) — system-bath model.
21
+ * - Caldeira & Leggett, Phys. Rev. A 31, 1059 (1985), §III.B — γ ∝ λ².
22
+ * - Breuer & Petruccione, *The Theory of Open Quantum Systems* (OUP 2002),
23
+ * §3.6, §4.5 — weak-coupling derivation.
24
+ *
25
+ * Status: established (within open-quantum-systems theory).
26
+ *
27
+ * Honest-claude scope notes:
28
+ * - The full Lindblad equation cannot be encoded as a typed ExprNode tree
29
+ * in this MVP: the analyzer tracks only SI dimensions, not operator
30
+ * algebra, commutators [H,ρ], or anti-commutators {A,B}. Density
31
+ * matrices ρ and Lindblad operators L_k carry operator structure that
32
+ * this analyzer is not designed to validate.
33
+ * - What we DO encode is the (corrected) auxiliary rate function
34
+ * γ_k(λ) = γ_0 (λ/λ_0)², which is an honest scalar relation in
35
+ * [frequency] = [T^-1]. This validates that the corrected rate is
36
+ * dimensionally consistent and gives downstream code a numerical
37
+ * evaluator.
38
+ * - Tier 4.5 follow-up (operator-aware ExprNode): would let us encode the
39
+ * LHS dρ/dt and the unitary-and-dissipator RHS terms; out of scope for
40
+ * the R0 audit fix.
41
+ *
42
+ * @see docs/specification/Part-I.md ("Bridge Equation 11: Decoherence Master Equation")
43
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 11)
44
+ * @module bridges/equations/be-11-decoherence-master
45
+ */
46
+ import { validate, validateEquation } from '../../dimensional/validator.js';
47
+ import { FREQUENCY, DIMENSIONLESS, } from '../../dimensional/types.js';
48
+ // --- Symbolic AST: γ_k(λ) = γ_0 * (λ / λ_0)^2 ---
49
+ const sym = (name, dim) => ({ kind: 'symbol', name, dim });
50
+ /**
51
+ * RHS of the corrected Caldeira-Leggett weak-coupling rate as a typed
52
+ * ExprNode tree: γ_0 * (λ / λ_0)^2.
53
+ *
54
+ * Both λ and λ_0 share the same (unspecified, but identical) dimension, so
55
+ * the ratio is dimensionless; raising to the 2nd power keeps it
56
+ * dimensionless; multiplying by γ_0 (frequency) gives [frequency].
57
+ *
58
+ * We model λ and λ_0 as DIMENSIONLESS in the AST. Physically the user may
59
+ * choose λ to be a dimensionless coupling (most common) or a coupling with
60
+ * its own dimension; either way the *ratio* λ/λ_0 is dimensionless, so the
61
+ * scalar AST encoding faithfully captures the dimensional content.
62
+ */
63
+ export const DECOHERENCE_RATE_RHS = {
64
+ kind: 'op', op: '*',
65
+ args: [
66
+ sym('gamma_0', FREQUENCY),
67
+ {
68
+ kind: 'op', op: '^',
69
+ args: [
70
+ {
71
+ kind: 'op', op: '/',
72
+ args: [sym('lambda', DIMENSIONLESS), sym('lambda_0', DIMENSIONLESS)],
73
+ },
74
+ sym('2', DIMENSIONLESS),
75
+ ],
76
+ },
77
+ ],
78
+ };
79
+ /** LHS of the equation: a single symbol of dimension [frequency]. */
80
+ export const DECOHERENCE_RATE_LHS = sym('gamma_k', FREQUENCY);
81
+ /**
82
+ * Evaluate γ_k(λ) = γ_0 * (λ / λ_0)^2 (Caldeira-Leggett weak-coupling form).
83
+ *
84
+ * @returns Decoherence rate in s^-1.
85
+ */
86
+ export function evaluateDecoherenceRate(input) {
87
+ const { gamma0_per_s, lambda, lambda0 } = input;
88
+ if (!Number.isFinite(gamma0_per_s) || gamma0_per_s < 0) {
89
+ throw new RangeError(`evaluateDecoherenceRate: gamma0_per_s must be a finite non-negative number, got ${gamma0_per_s}`);
90
+ }
91
+ if (!Number.isFinite(lambda)) {
92
+ throw new RangeError(`evaluateDecoherenceRate: lambda must be finite, got ${lambda}`);
93
+ }
94
+ if (!Number.isFinite(lambda0) || lambda0 <= 0) {
95
+ throw new RangeError(`evaluateDecoherenceRate: lambda0 must be a finite positive number, got ${lambda0}`);
96
+ }
97
+ const ratio = lambda / lambda0;
98
+ return gamma0_per_s * ratio * ratio;
99
+ }
100
+ // --- Self-validation ---
101
+ /**
102
+ * Run the rate-function AST through the dimensional analyzer and confirm
103
+ * both sides are [frequency]. Returns the inferred dimensions for
104
+ * traceability.
105
+ */
106
+ export function validateDecoherenceRateDimensions() {
107
+ const eq = validateEquation(DECOHERENCE_RATE_LHS, DECOHERENCE_RATE_RHS);
108
+ const lhs = validate(DECOHERENCE_RATE_LHS);
109
+ const rhs = validate(DECOHERENCE_RATE_RHS);
110
+ return {
111
+ ok: eq.ok,
112
+ lhsDim: lhs.inferredDimension,
113
+ rhsDim: rhs.inferredDimension,
114
+ };
115
+ }
116
+ //# sourceMappingURL=be-11-decoherence-master.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-11-decoherence-master.js","sourceRoot":"","sources":["../../../src/bridges/equations/be-11-decoherence-master.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAGH,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAEL,SAAS,EACT,aAAa,GACd,MAAM,4BAA4B,CAAC;AAEpC,mDAAmD;AAEnD,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,GAAc,EAAY,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AAExF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAa;IAC5C,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG;IACnB,IAAI,EAAE;QACJ,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC;QACzB;YACE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG;YACnB,IAAI,EAAE;gBACJ;oBACE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG;oBACnB,IAAI,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;iBACrE;gBACD,GAAG,CAAC,GAAG,EAAE,aAAa,CAAC;aACxB;SACF;KACF;CACF,CAAC;AAEF,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAa,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAaxE;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAA4B;IAClE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAChD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;QACvD,MAAM,IAAI,UAAU,CAClB,mFAAmF,YAAY,EAAE,CAClG,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,UAAU,CAClB,uDAAuD,MAAM,EAAE,CAChE,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,UAAU,CAClB,0EAA0E,OAAO,EAAE,CACpF,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/B,OAAO,YAAY,GAAG,KAAK,GAAG,KAAK,CAAC;AACtC,CAAC;AAED,0BAA0B;AAE1B;;;;GAIG;AACH,MAAM,UAAU,iCAAiC;IAC/C,MAAM,EAAE,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;IACxE,MAAM,GAAG,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAC3C,MAAM,GAAG,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAC3C,OAAO;QACL,EAAE,EAAE,EAAE,CAAC,EAAE;QACT,MAAM,EAAE,GAAG,CAAC,iBAAiB;QAC7B,MAAM,EAAE,GAAG,CAAC,iBAAiB;KAC9B,CAAC;AACJ,CAAC"}