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
@@ -0,0 +1,304 @@
1
+ /**
2
+ * Bridge Equation 17 — Einstein-Cartan torsion-spin coupling
3
+ * (squared-invariant scalar reduction).
4
+ *
5
+ * **Original (full Einstein-Cartan field equations).**
6
+ *
7
+ * R_μν − (1/2) R g_μν + Λ g_μν = (8πG/c⁴) T_μν
8
+ * T^λ_μν = (8πG/c⁴) S^λ_μν
9
+ *
10
+ * The full EC system is **operator-valued tensor equations** — the LHS of
11
+ * the Einstein equation contains the Ricci tensor R_μν, the Ricci scalar
12
+ * R, the metric g_μν, and the cosmological constant Λ; the algebraic
13
+ * torsion-spin equation involves the rank-3 torsion tensor T^λ_μν
14
+ * (antisymmetric in lower indices) and the rank-3 spin angular momentum
15
+ * density tensor S^λ_μν. The full curvature side of the Einstein
16
+ * equation (Ricci, metric, cosmological term) lies outside the UPT AST
17
+ * grammar even with v0.2.0's tensor-symbol / tensor-product primitives,
18
+ * because the grammar has no Christoffel-symbol / Riemann-curvature
19
+ * operator. The algebraic torsion-spin half, however, IS structurally
20
+ * encodable in v0.2.0 — see "Structural encoding" below.
21
+ *
22
+ * **Encoded reduction (squared-invariant scalar form).** Wave Z-C applies
23
+ * OpenAI's scalar reduction: contract both sides of the algebraic torsion-
24
+ * spin equation with its dual to obtain a scalar invariant. Inverting
25
+ * `T^λ_μν = (8πG/c⁴) S^λ_μν` gives `S^λ_μν = (c⁴/(8πG)) T^λ_μν`, and
26
+ * squaring (contracting against the conjugate index structure):
27
+ *
28
+ * S²_spin = (c⁴/(8πG))² · T_λμν T^λμν
29
+ *
30
+ * where:
31
+ * - S²_spin is the squared norm of the spin angular momentum density
32
+ * tensor (a SCALAR; dim [M²·L⁻²·T⁻²]);
33
+ * - (c⁴/(8πG))² is a coupling prefactor with dim [M²·L²·T⁻⁴]
34
+ * (the squared inverse of the Einstein coupling 8πG/c⁴);
35
+ * - T_λμν T^λμν is the Einstein contraction of the rank-3 torsion
36
+ * tensor against its dual — encoded structurally in v0.2.0 as a
37
+ * `tensor-product` over two `tensor-symbol` nodes — yielding a
38
+ * scalar with dim [T²·L⁻⁴].
39
+ *
40
+ * **Dimensional bookkeeping (verified by hand):**
41
+ * - G ~ [L³ M⁻¹ T⁻²], c⁴ ~ [L⁴ T⁻⁴].
42
+ * - 8πG/c⁴ ~ [T²·M⁻¹·L⁻¹]; (c⁴/(8πG)) ~ [M·L·T⁻²] = [force].
43
+ * - (c⁴/(8πG))² ~ [M²·L²·T⁻⁴].
44
+ * - S^λ_μν has dim [angular momentum / volume] = [M·L⁻¹·T⁻¹], so
45
+ * S² ~ [M²·L⁻²·T⁻²].
46
+ * - T^λ_μν = (8πG/c⁴) S^λ_μν has dim [T²·M⁻¹·L⁻¹] · [M·L⁻¹·T⁻¹] =
47
+ * [T·L⁻²]; contraction T_λμν T^λμν ~ [T²·L⁻⁴].
48
+ * - Cross-check: (c⁴/(8πG))² · (T·T) ~ [M²·L²·T⁻⁴] · [T²·L⁻⁴] =
49
+ * [M²·L⁻²·T⁻²] ✓ matches S²_spin.
50
+ *
51
+ * **Structural encoding (v0.2.0).** The torsion contraction
52
+ * `T_λμν T^λμν` is now encoded as a structural `tensor-product` over
53
+ * two `tensor-symbol` nodes:
54
+ * - `T_lower`: tensor-symbol named `T_torsion` with three lower
55
+ * indices (λ, μ, ν), per-component dim `[T·L⁻²]`.
56
+ * - `T_upper`: tensor-symbol named `T_torsion` with three upper
57
+ * indices (λ, μ, ν), per-component dim `[T·L⁻²]`.
58
+ * - `contract(T_lower, T_upper)` yields a `tensor-product` node that
59
+ * the validator structurally verifies: each index label appears
60
+ * exactly twice (once upper, once lower), so all three indices are
61
+ * fully contracted and the result is a scalar with dim
62
+ * `[T·L⁻²] · [T·L⁻²] = [T²·L⁻⁴]`. The validator emits no violations
63
+ * and reports an empty `freeIndices` map.
64
+ *
65
+ * **All-lower / all-upper representational choice.** The canonical
66
+ * literature form of the rank-3 torsion tensor is the mixed-variance
67
+ * `T^λ_μν` (one upper index, two lower indices, antisymmetric in the
68
+ * lower pair). The v0.2.0 encoding instead represents the contraction
69
+ * using an "all-lower" `T_λμν` and an "all-upper" `T^λμν` and contracts
70
+ * the matching label pairs. This is **mathematically valid**: the
71
+ * scalar invariant `T_λμν T^λμν` is the same scalar whether you write
72
+ * it as `T^λ_μν · T_λ^μν`, `T_λ^μν · T^λ_μν`, or as the all-lower /
73
+ * all-upper product used here — Einstein summation over each
74
+ * upper-lower pair produces the same number, because raising or lowering
75
+ * an index with the metric just shuffles which factor carries the upper
76
+ * variant. The all-lower / all-upper split was chosen because v0.2.0's
77
+ * algebra layer matches contraction pairs by `(label, variance)` and
78
+ * does not yet model the metric tensor that would convert between
79
+ * mixed-variance representations. Readers translating to the canonical
80
+ * `T^λ_μν` form should note that the structural verdict (rank-3,
81
+ * fully contracted, scalar) is preserved across the choice — only the
82
+ * surface variance labeling differs.
83
+ *
84
+ * **Implicit dimensionless-metric assumption.** v0.2.0 treats
85
+ * `T_lower` and `T_upper` as having the **same per-component
86
+ * dimension** (`[T·L⁻²]`). This is mathematically equivalent to
87
+ * assuming the metric tensor `g_μν` is dimensionless — the standard
88
+ * convention in the (-,+,+,+) signature used throughout the UPT
89
+ * catalog. Under that convention raising an index via
90
+ * `T^λ_μν = g_μα g_νβ T^λαβ` (or its rank-3 analog) preserves the
91
+ * per-component dimension because `g` contributes a dimensionless
92
+ * factor per index raised. In geometrized units (where `g` carries
93
+ * `[L²]` per index pair) or in any convention where the metric is
94
+ * not dimensionless, the raising / lowering operation would multiply
95
+ * the per-component dimension by `g.dim` per index pair, and the
96
+ * `[T·L⁻²] === [T·L⁻²]` equality between `T_lower.dim` and
97
+ * `T_upper.dim` would no longer hold. v0.3.0 introduces the metric
98
+ * tensor as an explicit AST primitive (per v0.2.0-Design.md §2 / §12
99
+ * "metric layer") and will revisit this case with explicit dimension
100
+ * tracking through raise/lower operations.
101
+ *
102
+ * The squared coupling prefactor `(c⁴/(8πG))²` remains a typed-stub
103
+ * symbol — encoding it structurally adds no validation value because
104
+ * it is a fixed constant of nature (not an indexed tensor). Per the
105
+ * same idiom BE-26 uses for the WKB prefactor.
106
+ *
107
+ * **v0.1.0 → v0.2.0 migration.** v0.1.0 used a single typed-stub
108
+ * `T_torsion_squared` (a scalar `symbol` with hand-computed dim
109
+ * `[T²·L⁻⁴]`). v0.2.0 removes that stub and replaces it with the
110
+ * structural form. The dimensional verdict on `BE17_SPIN_DENSITY_SQUARED_RHS`
111
+ * is unchanged ([M²·L⁻²·T⁻²]); the AST shape is the only change. Per
112
+ * v0.2.0-Design.md §14.5, stub removals are technically BREAKING per
113
+ * SemVer (downstream consumers importing `BE17_TORSION_SQUARED_STUB`
114
+ * by name will no longer compile), even though v0.2.0 is pre-1.0 and
115
+ * a minor bump is permitted.
116
+ *
117
+ * References:
118
+ * - Cartan 1922 *C. R. Acad. Sci.* 174:593 (original torsion paper).
119
+ * - Hehl-vonderHeyde-Kerlick-Nester 1976 *Rev. Mod. Phys.* 48:393
120
+ * (canonical Einstein-Cartan review).
121
+ * - Shapiro 2002 *Phys. Rep.* 357:113 (arXiv:hep-th/0103093, torsion
122
+ * in physics — comprehensive review).
123
+ * - Trautman 2006 in *Encyclopedia of Mathematical Physics*
124
+ * (arXiv:gr-qc/0606062, modern Einstein-Cartan introduction).
125
+ *
126
+ * Status: speculative.
127
+ *
128
+ * Honest-claude scope notes:
129
+ * - The **original** BE-17 formula is the **full EC system** (Einstein
130
+ * equation + algebraic torsion-spin equation). The Einstein-equation
131
+ * half (Ricci, metric, cosmological term) **CANNOT be encoded** in
132
+ * the UPT AST grammar even with v0.2.0's tensor-symbol /
133
+ * tensor-product primitives — the grammar has no Christoffel-symbol
134
+ * / Riemann-curvature operator. This module encodes a
135
+ * **squared-invariant scalar reduction** of the torsion-spin half,
136
+ * NOT the full field equations.
137
+ * - The reduction `S²_spin = (c⁴/(8πG))² · T_λμν T^λμν` is a
138
+ * **contracted scalar**, not a full algebraic relation. It captures
139
+ * **one invariant** of the EC torsion-spin coupling (the squared
140
+ * norm) but does not encode the field equations themselves — the
141
+ * Einstein equation, the metric, and the cosmological term are
142
+ * absent.
143
+ * - In v0.2.0 the rank-3 index structure of `T_λμν T^λμν` IS
144
+ * encoded structurally (three explicit indices in upper and lower
145
+ * variance, contracted by the algebra layer). The antisymmetry of
146
+ * `T^λ_μν` in its lower indices is NOT enforced — the v0.2.0
147
+ * algebra layer is a Tier-1 "type-checker for tensor algebra,"
148
+ * not a full symbolic tensor calculator. Antisymmetry would be
149
+ * enforced by a future symmetry-tag system (out of scope for
150
+ * v0.2.0).
151
+ * - `c4_over_8piG_squared` remains a typed-stub for the squared
152
+ * coupling prefactor (a constant of nature; no index structure to
153
+ * encode). Same idiom BE-26 uses for the WKB prefactor.
154
+ * - Status 'speculative' is **not lifted by this encoding**. The
155
+ * bridge-framing of EC as a cross-categorical bridge between fields
156
+ * A and B in UPT's catalog is the speculative element (the EC
157
+ * equations themselves are canonical literature); pinning a Tier-5
158
+ * structurally-encoded AST does not promote the bridge framing.
159
+ * Promoting 'speculative' → 'established' would require deleting
160
+ * the status-pin test in `tests/bridges/be-17-encoding.test.ts`
161
+ * deliberately.
162
+ *
163
+ * @see docs/specification/Part-II.md ("Bridge Equation 17: Einstein-Cartan torsion-spin coupling")
164
+ * @see docs/specification/Part-VII-Tensor-Algebra.md (v0.2.0 tensor algebra layer)
165
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 17)
166
+ * @module bridges/equations/be-17-einstein-cartan
167
+ */
168
+ import { validate, validateEquation } from '../../dimensional/validator.js';
169
+ import { tsym, contract } from '../../dimensional/tensor.js';
170
+ const sym = (name, dim) => ({ kind: 'symbol', name, dim });
171
+ // --- Dimensions ---
172
+ /**
173
+ * Per-component dimension of the rank-3 torsion tensor `T^λ_μν`: [T·L⁻²].
174
+ *
175
+ * Derived from the algebraic torsion-spin equation
176
+ * `T^λ_μν = (8πG/c⁴) S^λ_μν`:
177
+ * - 8πG/c⁴ ~ [T²·M⁻¹·L⁻¹];
178
+ * - S^λ_μν ~ [M·L⁻¹·T⁻¹] (angular momentum per volume);
179
+ * - product ~ [T·L⁻²].
180
+ *
181
+ * The contraction `T_λμν T^λμν` is then a SCALAR with dim
182
+ * [T·L⁻²] · [T·L⁻²] = [T²·L⁻⁴], verified structurally by the v0.2.0
183
+ * algebra layer.
184
+ */
185
+ const TORSION_COMPONENT_DIM = {
186
+ L: -2, M: 0, T: 1, I: 0, Theta: 0, N: 0, J: 0,
187
+ };
188
+ /**
189
+ * Dimension of (c⁴/(8πG))²: [M²·L²·T⁻⁴].
190
+ *
191
+ * (c⁴/(8πG)) ~ [M·L·T⁻²] = [force]; its square ~ [M²·L²·T⁻⁴].
192
+ */
193
+ const COUPLING_PREFACTOR_SQUARED_DIM = {
194
+ L: 2, M: 2, T: -4, I: 0, Theta: 0, N: 0, J: 0,
195
+ };
196
+ /**
197
+ * Dimension of S²_spin: [M²·L⁻²·T⁻²].
198
+ *
199
+ * Spin angular momentum density S^λ_μν ~ [M·L⁻¹·T⁻¹] (angular momentum
200
+ * per volume); its square ~ [M²·L⁻²·T⁻²].
201
+ */
202
+ const SPIN_DENSITY_SQUARED_DIM = {
203
+ L: -2, M: 2, T: -2, I: 0, Theta: 0, N: 0, J: 0,
204
+ };
205
+ // --- Symbolic AST ---
206
+ /**
207
+ * Tensor-symbol node for the rank-3 torsion tensor with three LOWER
208
+ * indices: `T_λμν`. Per-component dim `[T·L⁻²]`.
209
+ */
210
+ const T_lower = tsym('T_torsion', [
211
+ { label: 'λ', variance: 'lower' },
212
+ { label: 'μ', variance: 'lower' },
213
+ { label: 'ν', variance: 'lower' },
214
+ ], TORSION_COMPONENT_DIM);
215
+ /**
216
+ * Tensor-symbol node for the rank-3 torsion tensor with three UPPER
217
+ * indices: `T^λμν`. Per-component dim `[T·L⁻²]`.
218
+ */
219
+ const T_upper = tsym('T_torsion', [
220
+ { label: 'λ', variance: 'upper' },
221
+ { label: 'μ', variance: 'upper' },
222
+ { label: 'ν', variance: 'upper' },
223
+ ], TORSION_COMPONENT_DIM);
224
+ /**
225
+ * Structural encoding of the torsion-tensor contraction `T_λμν T^λμν`
226
+ * as a `tensor-product` over `T_lower` and `T_upper`. Each index label
227
+ * (λ, μ, ν) appears exactly twice — once upper, once lower — so the
228
+ * v0.2.0 algebra layer fully contracts all three and emits a SCALAR
229
+ * with dim `[T·L⁻²] · [T·L⁻²] = [T²·L⁻⁴]` and empty `freeIndices` map.
230
+ *
231
+ * Replaces the v0.1.0 `T_torsion_squared` typed-stub (a scalar `symbol`
232
+ * with hand-computed dim).
233
+ */
234
+ export const BE17_TORSION_CONTRACTION = contract(T_lower, T_upper);
235
+ /**
236
+ * Typed-stub for the squared coupling prefactor `(c⁴/(8πG))²`.
237
+ *
238
+ * Encoded as a single typed symbol with dim `[M²·L²·T⁻⁴]`; encoding
239
+ * `(c⁴ / G)²` symbolically and dividing by `(8π)²` would clutter the
240
+ * AST without adding validation value (the prefactor is a constant of
241
+ * nature; it has no index structure to encode structurally). Same idiom
242
+ * BE-26 uses for the WKB-prefactor stub.
243
+ */
244
+ export const BE17_COUPLING_PREFACTOR_SQUARED = sym('c4_over_8piG_squared', COUPLING_PREFACTOR_SQUARED_DIM);
245
+ /**
246
+ * RHS of `S²_spin = (c⁴/(8πG))² · T_λμν T^λμν` as a structural
247
+ * `tensor-product` over the scalar prefactor and the fully-contracted
248
+ * torsion scalar:
249
+ *
250
+ * contract(c4_over_8piG_squared, contract(T_lower, T_upper))
251
+ *
252
+ * Inferred dim: `[M²·L²·T⁻⁴] · [T²·L⁻⁴] = [M²·L⁻²·T⁻²]`. Both factors
253
+ * are scalars at the outer contraction (the inner contract reduces to
254
+ * a scalar), so the outer `tensor-product` is dimensionally equivalent
255
+ * to a scalar product. Encoding it as a `tensor-product` (not a scalar
256
+ * `op '*'`) keeps the RHS structurally consistent with v0.2.0's tensor
257
+ * algebra layer.
258
+ */
259
+ export const BE17_SPIN_DENSITY_SQUARED_RHS = contract(BE17_COUPLING_PREFACTOR_SQUARED, BE17_TORSION_CONTRACTION);
260
+ /**
261
+ * LHS: S²_spin is the squared norm of the spin angular momentum
262
+ * density tensor. Dim [M²·L⁻²·T⁻²].
263
+ */
264
+ export const BE17_SPIN_DENSITY_SQUARED_LHS = sym('S_spin_squared', SPIN_DENSITY_SQUARED_DIM);
265
+ /**
266
+ * Evaluate the squared-invariant scalar reduction of the EC torsion-
267
+ * spin coupling:
268
+ *
269
+ * S²_spin = (c⁴/(8πG))² · T_λμν T^λμν
270
+ *
271
+ * The structural change introduced in v0.2.0 lives in the AST, not in
272
+ * the evaluator — the input interface is unchanged from v0.1.0.
273
+ *
274
+ * @returns Squared spin density in SI units [M²·L⁻²·T⁻²].
275
+ */
276
+ export function evaluateBE17SpinDensitySquared(input) {
277
+ const { coupling_prefactor_squared, torsion_squared } = input;
278
+ if (!Number.isFinite(coupling_prefactor_squared)) {
279
+ throw new RangeError(`evaluateBE17SpinDensitySquared: coupling_prefactor_squared must be finite, got ${coupling_prefactor_squared}`);
280
+ }
281
+ if (!Number.isFinite(torsion_squared)) {
282
+ throw new RangeError(`evaluateBE17SpinDensitySquared: torsion_squared must be finite, got ${torsion_squared}`);
283
+ }
284
+ if (torsion_squared < 0) {
285
+ throw new RangeError(`evaluateBE17SpinDensitySquared: torsion_squared must be non-negative (it is a sum of squares), got ${torsion_squared}`);
286
+ }
287
+ return coupling_prefactor_squared * torsion_squared;
288
+ }
289
+ // --- Self-validation ---
290
+ /**
291
+ * Run the AST through the dimensional analyzer; LHS and RHS should
292
+ * both be [M²·L⁻²·T⁻²].
293
+ */
294
+ export function validateBE17Dimensions() {
295
+ const eq = validateEquation(BE17_SPIN_DENSITY_SQUARED_LHS, BE17_SPIN_DENSITY_SQUARED_RHS);
296
+ const lhs = validate(BE17_SPIN_DENSITY_SQUARED_LHS);
297
+ const rhs = validate(BE17_SPIN_DENSITY_SQUARED_RHS);
298
+ return {
299
+ ok: eq.ok,
300
+ lhsDim: lhs.inferredDimension,
301
+ rhsDim: rhs.inferredDimension,
302
+ };
303
+ }
304
+ //# sourceMappingURL=be-17-einstein-cartan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-17-einstein-cartan.js","sourceRoot":"","sources":["../../../src/bridges/equations/be-17-einstein-cartan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsKG;AAGH,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,GAAc,EAAY,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AAExF,qBAAqB;AAErB;;;;;;;;;;;;GAYG;AACH,MAAM,qBAAqB,GAAc;IACvC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAA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0 +1,65 @@
1
+ /**
2
+ * Bridge Equation 18 — Higgs-like dark-fermion mass generation
3
+ * (post Wave Y reformulation).
4
+ *
5
+ * m_dark = g_dark · v_dark
6
+ *
7
+ * Yukawa-coupling-times-VEV mass-generation relation, in natural units
8
+ * (ℏ = c = 1) where masses are quoted as energies. Standard Model
9
+ * analog: m_top ≈ y_t · v_EW with v_EW = 246 GeV / √2 = 174 GeV.
10
+ *
11
+ * Reference: Peskin & Schroeder 1995 *An Introduction to Quantum Field
12
+ * Theory* §20.1 (canonical non-Abelian + complex-scalar SSB Lagrangian
13
+ * giving fermion-mass generation via Yukawa-VEV coupling).
14
+ *
15
+ * Status: speculative.
16
+ *
17
+ * Honest-claude scope notes:
18
+ * - Encoded in **natural units** (mass-as-energy convention; particle-
19
+ * physics standard). The full SI conversion would be m_dark · c² =
20
+ * g_dark · v_dark; the natural-units form `m = g·v` is the canonical
21
+ * particle-physics statement.
22
+ * - The full BE-18 Lagrangian (gauge kinetic term, |D_μΦ|², fermion
23
+ * bilinear, scalar potential) is the bridge framing; the scalar
24
+ * mass-generation relation is the AST-encoded bridge content.
25
+ * - SM bracket: top-quark mass m_t ≈ 173 GeV with y_t ≈ 0.99,
26
+ * v_EW = 246 GeV / √2 ≈ 174 GeV → m_t = 0.99 · 174 ≈ 172 GeV ✓
27
+ * within 1% of measured value.
28
+ * - Dim: [g_dark] dimensionless; [v_dark] = energy (in natural units;
29
+ * SI: [v] = energy = [M L² T⁻²]); [m_dark] = energy. ✓
30
+ *
31
+ * @see docs/specification/Part-II.md ("Bridge Equation 18")
32
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 18)
33
+ * @module bridges/equations/be-18-higgs-mass
34
+ */
35
+ import type { ExprNode, DimensionValidationReport } from '../../dimensional/validator.js';
36
+ /**
37
+ * RHS of the Higgs-like mass-generation relation:
38
+ * m_dark = g_dark · v_dark
39
+ *
40
+ * In natural units, [v_dark] = energy and [g_dark] is dimensionless,
41
+ * so the product has dim [energy].
42
+ */
43
+ export declare const BE18_HIGGS_MASS_RHS: ExprNode;
44
+ /** LHS: m_dark has dimension [energy] in natural units. */
45
+ export declare const BE18_HIGGS_MASS_LHS: ExprNode;
46
+ export interface HiggsMassInputs {
47
+ /** Dimensionless Yukawa coupling g_dark (= y in SM convention). Must be finite. */
48
+ g_dark: number;
49
+ /** VEV v_dark in GeV (or any consistent energy unit). Must be finite. */
50
+ v_dark_GeV: number;
51
+ }
52
+ /**
53
+ * Evaluate the Higgs-like mass-generation relation
54
+ *
55
+ * m_dark = g_dark · v_dark
56
+ *
57
+ * @returns Dark-fermion mass in GeV (same unit as v_dark).
58
+ */
59
+ export declare function evaluateHiggsMass(input: HiggsMassInputs): number;
60
+ /**
61
+ * Run the AST through the dimensional analyzer; both sides should be
62
+ * [energy] (natural-units mass-as-energy convention).
63
+ */
64
+ export declare function validateBE18Dimensions(): DimensionValidationReport;
65
+ //# sourceMappingURL=be-18-higgs-mass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-18-higgs-mass.d.ts","sourceRoot":"","sources":["../../../src/bridges/equations/be-18-higgs-mass.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAU1F;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAMjC,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,mBAAmB,EAAE,QAAgC,CAAC;AAInE,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAahE;AAID;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,yBAAyB,CASlE"}
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Bridge Equation 18 — Higgs-like dark-fermion mass generation
3
+ * (post Wave Y reformulation).
4
+ *
5
+ * m_dark = g_dark · v_dark
6
+ *
7
+ * Yukawa-coupling-times-VEV mass-generation relation, in natural units
8
+ * (ℏ = c = 1) where masses are quoted as energies. Standard Model
9
+ * analog: m_top ≈ y_t · v_EW with v_EW = 246 GeV / √2 = 174 GeV.
10
+ *
11
+ * Reference: Peskin & Schroeder 1995 *An Introduction to Quantum Field
12
+ * Theory* §20.1 (canonical non-Abelian + complex-scalar SSB Lagrangian
13
+ * giving fermion-mass generation via Yukawa-VEV coupling).
14
+ *
15
+ * Status: speculative.
16
+ *
17
+ * Honest-claude scope notes:
18
+ * - Encoded in **natural units** (mass-as-energy convention; particle-
19
+ * physics standard). The full SI conversion would be m_dark · c² =
20
+ * g_dark · v_dark; the natural-units form `m = g·v` is the canonical
21
+ * particle-physics statement.
22
+ * - The full BE-18 Lagrangian (gauge kinetic term, |D_μΦ|², fermion
23
+ * bilinear, scalar potential) is the bridge framing; the scalar
24
+ * mass-generation relation is the AST-encoded bridge content.
25
+ * - SM bracket: top-quark mass m_t ≈ 173 GeV with y_t ≈ 0.99,
26
+ * v_EW = 246 GeV / √2 ≈ 174 GeV → m_t = 0.99 · 174 ≈ 172 GeV ✓
27
+ * within 1% of measured value.
28
+ * - Dim: [g_dark] dimensionless; [v_dark] = energy (in natural units;
29
+ * SI: [v] = energy = [M L² T⁻²]); [m_dark] = energy. ✓
30
+ *
31
+ * @see docs/specification/Part-II.md ("Bridge Equation 18")
32
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 18)
33
+ * @module bridges/equations/be-18-higgs-mass
34
+ */
35
+ import { validate, validateEquation } from '../../dimensional/validator.js';
36
+ import { DIMENSIONLESS, ENERGY, } from '../../dimensional/types.js';
37
+ const sym = (name, dim) => ({ kind: 'symbol', name, dim });
38
+ /**
39
+ * RHS of the Higgs-like mass-generation relation:
40
+ * m_dark = g_dark · v_dark
41
+ *
42
+ * In natural units, [v_dark] = energy and [g_dark] is dimensionless,
43
+ * so the product has dim [energy].
44
+ */
45
+ export const BE18_HIGGS_MASS_RHS = {
46
+ kind: 'op', op: '*',
47
+ args: [
48
+ sym('g_dark', DIMENSIONLESS),
49
+ sym('v_dark', ENERGY),
50
+ ],
51
+ };
52
+ /** LHS: m_dark has dimension [energy] in natural units. */
53
+ export const BE18_HIGGS_MASS_LHS = sym('m_dark', ENERGY);
54
+ /**
55
+ * Evaluate the Higgs-like mass-generation relation
56
+ *
57
+ * m_dark = g_dark · v_dark
58
+ *
59
+ * @returns Dark-fermion mass in GeV (same unit as v_dark).
60
+ */
61
+ export function evaluateHiggsMass(input) {
62
+ const { g_dark, v_dark_GeV } = input;
63
+ if (!Number.isFinite(g_dark)) {
64
+ throw new RangeError(`evaluateHiggsMass: g_dark must be finite, got ${g_dark}`);
65
+ }
66
+ if (!Number.isFinite(v_dark_GeV)) {
67
+ throw new RangeError(`evaluateHiggsMass: v_dark_GeV must be finite, got ${v_dark_GeV}`);
68
+ }
69
+ return g_dark * v_dark_GeV;
70
+ }
71
+ // --- Self-validation ---
72
+ /**
73
+ * Run the AST through the dimensional analyzer; both sides should be
74
+ * [energy] (natural-units mass-as-energy convention).
75
+ */
76
+ export function validateBE18Dimensions() {
77
+ const eq = validateEquation(BE18_HIGGS_MASS_LHS, BE18_HIGGS_MASS_RHS);
78
+ const lhs = validate(BE18_HIGGS_MASS_LHS);
79
+ const rhs = validate(BE18_HIGGS_MASS_RHS);
80
+ return {
81
+ ok: eq.ok,
82
+ lhsDim: lhs.inferredDimension,
83
+ rhsDim: rhs.inferredDimension,
84
+ };
85
+ }
86
+ //# sourceMappingURL=be-18-higgs-mass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-18-higgs-mass.js","sourceRoot":"","sources":["../../../src/bridges/equations/be-18-higgs-mass.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;IAC1C,MAAM,GAAG,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAC1C,OAAO;QACL,EAAE,EAAE,EAAE,CAAC,EAAE;QACT,MAAM,EAAE,GAAG,CAAC,iBAAiB;QAC7B,MAAM,EAAE,GAAG,CAAC,iBAAiB;KAC9B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Bridge Equation 19 — Quantum Bounce (LQC modified Friedmann).
3
+ *
4
+ * H² = (8πG/3) ρ (1 − ρ/ρ_crit) + Λ/3
5
+ *
6
+ * H is the Hubble parameter [T^-1], ρ is energy/mass density [M L^-3],
7
+ * ρ_crit is the LQC bounce critical density [M L^-3], and Λ is the
8
+ * cosmological constant expressed in [T^-2] form (i.e. c² · Λ_[L^-2]).
9
+ *
10
+ * Reference: Ashtekar-Singh 2011 review "Loop Quantum Cosmology: A
11
+ * Status Report" (arXiv:1108.0893). The (1 − ρ/ρ_crit) bounce factor is
12
+ * the LQC correction to standard Friedmann; at ρ = ρ_crit, H² = Λ/3 and
13
+ * the universe momentarily halts before re-expanding.
14
+ *
15
+ * Status: speculative — LQC-inspired. Reformulated 2026-05-05 (Wave I.B C1)
16
+ * to the canonical Ashtekar-Pawlowski-Singh γ-dependent form:
17
+ * ρ_crit = (√3 / (32π² γ³ ℓ_P²)) · (c²/G), γ ≈ 0.2375
18
+ * which yields ρ_crit ≈ 0.41 ρ_Planck ≈ 2.1×10⁹⁶ kg/m³ (Ashtekar-Pawlowski-
19
+ * Singh 2006 *Phys. Rev. D* 74:084003, arXiv:gr-qc/0607039; Ashtekar-Singh
20
+ * review arXiv:1108.0893; Meissner 2004 γ-fix gr-qc/0407052). The earlier
21
+ * dimensional-estimate ρ_crit = 3c²/(8πGℓ_P²) (~6.2×10⁹⁵ kg/m³) was off
22
+ * by ~3.4× because it omitted the γ³ Barbero-Immirzi factor.
23
+ *
24
+ * Reformulated 2026-05-06 (Wave P-A Tier 0-2, per Math iter-5 CRIT-2):
25
+ * docstring prefactor synced from "16π²" to "32π²" to match Part-I §6
26
+ * (Wave N Tier B reconciliation) and the formula_latex in
27
+ * src/bridges/index.ts BE-19. The "16π²" form yielded ~0.82 ρ_Planck
28
+ * (factor-of-2 off the canonical 0.41 ρ_Planck literature value).
29
+ *
30
+ * The AST takes ρ_crit as a free numerical input — the formula change in
31
+ * the spec/index does NOT require re-encoding here. Tests pinning the
32
+ * old "spec form" numerical value have been updated alongside this fix.
33
+ *
34
+ * Honest-claude scope notes:
35
+ * - We model Λ as a symbol in [T^-2]. The standard GR `Λ` has SI
36
+ * dimension [L^-2]; the rescaling `Λ_[T^-2] = c² Λ_[L^-2]` is the
37
+ * natural convention when writing `H² = ... + Λ/3` (compare Ryden,
38
+ * "Introduction to Cosmology" 2nd ed., §6, Eq. 6.32).
39
+ * - The bounce factor `1 - ρ/ρ_crit` is encoded as `(1 [dimensionless])
40
+ * - (ρ/ρ_crit)` so the AST '+/-' rule is satisfied.
41
+ *
42
+ * @see docs/specification/Part-I.md ("Bridge Equation 19: Quantum Bounce Equation")
43
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 19)
44
+ * @module bridges/equations/be-19-quantum-bounce
45
+ */
46
+ import type { ExprNode, DimensionValidationReport } from '../../dimensional/validator.js';
47
+ /**
48
+ * RHS of `H² = (8πG/3) ρ (1 - ρ/ρ_crit) + Λ/3` as a typed ExprNode tree.
49
+ */
50
+ export declare const QUANTUM_BOUNCE_RHS: ExprNode;
51
+ /** LHS: H² has dimension [T^-2]. */
52
+ export declare const QUANTUM_BOUNCE_LHS: ExprNode;
53
+ export interface QuantumBounceInputs {
54
+ /** Mass-energy density ρ in kg/m³. Must be ≥ 0. */
55
+ rho: number;
56
+ /** LQC bounce critical density ρ_crit in kg/m³. Must be > 0. */
57
+ rho_crit: number;
58
+ /** Cosmological constant Λ in [T^-2] (= c² Λ_[L^-2]). */
59
+ Lambda_Tinv2: number;
60
+ }
61
+ /**
62
+ * Evaluate H² = (8πG/3) ρ (1 − ρ/ρ_crit) + Λ/3.
63
+ *
64
+ * @returns H² in [s^-2].
65
+ */
66
+ export declare function evaluateQuantumBounce(input: QuantumBounceInputs): number;
67
+ /**
68
+ * Run the AST through the dimensional analyzer; LHS = H² and RHS together
69
+ * should both be [T^-2].
70
+ */
71
+ export declare function validateQuantumBounceDimensions(): DimensionValidationReport;
72
+ //# sourceMappingURL=be-19-quantum-bounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-19-quantum-bounce.d.ts","sourceRoot":"","sources":["../../../src/bridges/equations/be-19-quantum-bounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AA6B1F;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,QA0ChC,CAAC;AAEF,oCAAoC;AACpC,eAAO,MAAM,kBAAkB,EAAE,QAGhC,CAAC;AAIF,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAoBxE;AAID;;;GAGG;AACH,wBAAgB,+BAA+B,IAAI,yBAAyB,CAS3E"}