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,220 @@
1
+ /**
2
+ * Bridge Equation 25 — Consciousness ↔ Information Integration (IIT Φ).
3
+ *
4
+ * Encodes the **inner intrinsic-information form** from Integrated
5
+ * Information Theory (Tononi; Oizumi-Albantakis-Tononi 2014 IIT 3.0;
6
+ * Albantakis et al. 2023 IIT 4.0):
7
+ *
8
+ * ii(s, s̃) = p(s̃ | s) · log₂[ p(s̃ | s) / p(s̃) ]
9
+ *
10
+ * where `s` is a candidate-substrate state and `s̃` a successor state
11
+ * in its transition probability matrix (TPM). `ii(s, s̃)` measures, in
12
+ * bits, the irreducibility of the conditional probability `p(s̃|s)`
13
+ * against the substrate-marginal `p(s̃)`.
14
+ *
15
+ * The full canonical Φ_max formula is
16
+ *
17
+ * Φ_max(S) = min_{θ ∈ partitions(S)} [ ii(s, s̃) - ii_θ(s, s̃) ]
18
+ *
19
+ * The outer `min_θ` is the **minimum information partition (MIP)** —
20
+ * a discrete optimization over the set of bipartitions of the
21
+ * substrate. The UPT AST grammar (`symbol | op (* / + - ^) | integral |
22
+ * derivative`) has no `min` primitive over a discrete index set, so the
23
+ * MIP outer structure is **deferred grammar-extension** (same status
24
+ * as BE-15 stochastic noise and BE-28 Lagrange multipliers). This
25
+ * module encodes the **inner** ii(s, s̃) — the kernel that the MIP
26
+ * minimizes — as DIMENSIONLESS.
27
+ *
28
+ * **Bits is a pseudo-unit, not an SI dimension.** Φ and ii have units
29
+ * of bits when log₂ is used (or nats with ln, hartleys with log₁₀).
30
+ * Bits is not in the SI 7-base system; it is the LHS of a unit-free
31
+ * pure number when measured in the canonical IIT convention. The
32
+ * dimensional analyzer therefore types ii as DIMENSIONLESS `[1]`. The
33
+ * encoding committee preserves the "bits" semantics by docstring
34
+ * convention; the validator only enforces that all components are
35
+ * dimensionally consistent.
36
+ *
37
+ * **Dimensionless-stub pattern for log₂.** The AST has no `log`
38
+ * primitive. Following the same idiom as BE-26 (exp(-WKB)), BE-41
39
+ * (exp(...)), BE-45 (log()), BE-46 (exp()), and BE-50 (no log/exp;
40
+ * algebraic), we encode `log₂[p(s̃|s)/p(s̃)]` as a fresh DIMENSIONLESS
41
+ * symbol stub `log2_ratio_ii` and expose the inner ratio
42
+ * `p(s̃|s)/p(s̃)` separately as `BE25_LOG_RATIO_ARG` so a lemma test
43
+ * can verify the argument is dimensionless directly.
44
+ *
45
+ * **AST structure (multiplicative, not additive — note the difference
46
+ * from BE-45).** BE-45's RHS `log(M_P/H_inf) − γ·log(r/0.01)` is a
47
+ * *sum* of two log-stubs. BE-25's `p(s̃|s) · log₂[p(s̃|s)/p(s̃)]` is a
48
+ * *product* — a probability times a log-stub. Both are encoded with
49
+ * the same fresh-symbol-stub convention; only the outer operator
50
+ * differs.
51
+ *
52
+ * Bracket-checks (numerical evaluator computes ii(s,s̃) = p_cond ·
53
+ * log₂(p_cond/p_marg)):
54
+ * - Maximum irreducibility (p_cond = 1, p_marg → 0⁺): ii → +∞;
55
+ * - No irreducibility (p_cond = p_marg, e.g. both 0.5):
56
+ * ii = 0.5 · log₂(1) = 0;
57
+ * - "Surprise" case (p_cond = 0.5, p_marg = 0.25):
58
+ * ii = 0.5 · log₂(2) = 0.5 bits;
59
+ * - Shannon-zero (p_cond = 0, p_marg arbitrary): ii = 0 (limit);
60
+ * - Impossible-joint (p_cond > 0, p_marg = 0): KL-divergence
61
+ * diverges — caller error (RangeError thrown).
62
+ *
63
+ * References:
64
+ * - Tononi 2008 *Biol. Bull.* 215:216 (canonical original IIT
65
+ * formulation; integrated information as a measure of
66
+ * consciousness).
67
+ * - Oizumi, Albantakis & Tononi 2014 *PLoS Comput. Biol.* 10:e1003588
68
+ * (IIT 3.0; calculable Φ via earth-mover's distance / Wasserstein
69
+ * metric over partitions; minimum information partition; the
70
+ * canonical computational-IIT reference).
71
+ * - Albantakis, Barbosa, Findlay, Grasso, Haun, Marshall, Mayner,
72
+ * Zaeemzadeh, Boly, Juel, Sasai, Fujii, David, Bjørndahl, Lemmon,
73
+ * Allen, Mosquera, Ladd, Hassan, Hendren, Kim, Yu, Tian, Chen,
74
+ * Tsuchiya & Tononi 2023 *PLoS Comput. Biol.* 19:e1011465
75
+ * (arXiv:2212.14787; IIT 4.0 with explicit axiom-postulate
76
+ * framework).
77
+ * - Wikipedia "Phi (integrated information theory)" / "Integrated
78
+ * information theory" (canonical Φ formula via MIP and intrinsic
79
+ * information ii(s,s̃) = p(s̃|s) log₂[p(s̃|s)/p(s̃)]).
80
+ * - Aaronson 2014 blog "Why I am not an integrated information
81
+ * theorist" (computational counterexamples yielding arbitrarily
82
+ * large Φ for systems generally not regarded as conscious;
83
+ * canonical contested-framework citation).
84
+ *
85
+ * Status: speculative (NOT lifted by this encoding).
86
+ *
87
+ * Honest-claude scope notes:
88
+ * - This module encodes the **inner** ii(s, s̃) only. The outer
89
+ * `min_θ` over partitions (MIP) and the partition-conditional
90
+ * `ii_θ` lemma are NOT encoded — both require a `min`-over-index-
91
+ * set grammar extension that the UPT AST does not currently
92
+ * support. The same deferral applies to BE-15 (stochastic noise)
93
+ * and BE-28 (Lagrange multipliers).
94
+ * - Status 'speculative' is **not lifted by this encoding**. IIT
95
+ * itself is calculable and well-defined; the bridge framing
96
+ * (consciousness ↔ maximally-integrated-information) is contested
97
+ * by Aaronson 2014 (computational counterexamples) and Doerig
98
+ * 2019 (unfolding argument). Pinning a Tier-5 AST does not
99
+ * promote the bridge claim.
100
+ * - The 0·log(0) = 0 limit (p_cond → 0) is enforced by the
101
+ * numerical evaluator following Shannon's canonical convention
102
+ * and Oizumi-Albantakis-Tononi 2014. The p_marg = 0 with
103
+ * p_cond > 0 case (KL-divergence singularity) is rejected with
104
+ * RangeError because the joint outcome is physically inconsistent
105
+ * (the system did transition to s̃ but the marginal says s̃ is
106
+ * impossible).
107
+ * - Φ_max is exponential in substrate size (EXPTIME); the numerical
108
+ * evaluator here only computes ii for a single (s, s̃) pair, not
109
+ * the outer MIP minimization. Computing Φ_max for substrates with
110
+ * more than ~10 elements is intractable in practice.
111
+ * - **Encoded form vs. IIT 4.0 canonical metric (Wave-Z final-review
112
+ * scope note, 2026-05-11):** the encoded
113
+ * `ii(s,s̃) = p(s̃|s) · log₂[p(s̃|s)/p(s̃)]` is the *pointwise-KL*
114
+ * / Wikipedia / IIT-pedagogical simplified form of the intrinsic
115
+ * information. IIT 3.0 (Oizumi-Albantakis-Tononi 2014) and IIT 4.0
116
+ * (Albantakis et al. 2023) use the **earth-mover's distance**
117
+ * (Wasserstein metric) as the canonical irreducibility measure on
118
+ * the cause-effect repertoire, NOT the pointwise log-ratio. The
119
+ * two agree in spirit and give qualitatively similar Φ rankings
120
+ * for small systems but differ quantitatively. The encoded log-
121
+ * ratio is preferred here because (a) it has a closed-form scalar
122
+ * reduction the AST grammar can express, and (b) it is the form
123
+ * most commonly cited in introductory IIT references. Encoding
124
+ * the Wasserstein metric would require a transport-plan primitive
125
+ * the UPT AST does not have.
126
+ *
127
+ * @see docs/specification/Part-II.md ("Bridge Equation 25: Consciousness — Information Integration Bridge")
128
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 25)
129
+ * @see src/bridges/equations/be-25-orch-or.ts (archived; legacy Penrose-Hameroff form)
130
+ * @module bridges/equations/be-25-iit-phi
131
+ */
132
+ import type { ExprNode, DimensionValidationReport } from '../../dimensional/validator.js';
133
+ /**
134
+ * Lemma AST: the conditional probability `p(s̃|s)` (DIMENSIONLESS,
135
+ * ∈ [0, 1]).
136
+ *
137
+ * Exposed as a separate node so it can be reused inside both
138
+ * `BE25_LOG_RATIO_ARG` and `BE25_INTRINSIC_INFORMATION_RHS`. The
139
+ * validator only sees its dimension (DIMENSIONLESS); the [0, 1] range
140
+ * is a semantic property enforced by the numerical evaluator's
141
+ * input-validation guards, not the type system.
142
+ */
143
+ export declare const BE25_P_CONDITIONAL: ExprNode;
144
+ /**
145
+ * Lemma AST: the marginal probability `p(s̃)` (DIMENSIONLESS, ∈ [0, 1]).
146
+ *
147
+ * Same convention as `BE25_P_CONDITIONAL`: dimension is DIMENSIONLESS;
148
+ * the [0, 1] range is enforced numerically, not type-theoretically.
149
+ */
150
+ export declare const BE25_P_MARGINAL: ExprNode;
151
+ /**
152
+ * Lemma AST: the log₂ argument `p(s̃|s) / p(s̃)` (DIMENSIONLESS, the
153
+ * ratio of two probabilities).
154
+ *
155
+ * Exposed for the lemma test that verifies the argument is
156
+ * dimensionless (per the dimensionless-stub convention; see
157
+ * `src/dimensional/README.md` "Encoding transcendental functions").
158
+ */
159
+ export declare const BE25_LOG_RATIO_ARG: ExprNode;
160
+ /**
161
+ * Lemma AST: the `log₂[p(s̃|s) / p(s̃)]` factor, encoded as a fresh
162
+ * DIMENSIONLESS symbol stub `log2_ratio_ii` (the AST has no `log`
163
+ * primitive; following the BE-26 / BE-41 / BE-45 / BE-46 dimensionless-
164
+ * stub idiom). The actual log argument is exposed separately via
165
+ * `BE25_LOG_RATIO_ARG` so the lemma test can verify it is
166
+ * dimensionless.
167
+ */
168
+ export declare const BE25_LOG2_FACTOR: ExprNode;
169
+ /**
170
+ * RHS of `ii(s, s̃) = p(s̃|s) · log₂[p(s̃|s) / p(s̃)]` as a typed
171
+ * ExprNode tree:
172
+ *
173
+ * p_cond · log2_ratio_ii
174
+ *
175
+ * `log2_ratio_ii` is a DIMENSIONLESS symbol stub for `log₂(...)`; the
176
+ * argument `p_cond / p_marg` is exposed via `BE25_LOG_RATIO_ARG` and
177
+ * verified dimensionless directly. The product of two dimensionless
178
+ * symbols is DIMENSIONLESS — same shape as BE-46's `A · exp_factor`.
179
+ */
180
+ export declare const BE25_INTRINSIC_INFORMATION_RHS: ExprNode;
181
+ /**
182
+ * LHS: ii(s, s̃) is in bits (DIMENSIONLESS in the SI sense — bits is
183
+ * a pseudo-unit not in the SI 7-base system).
184
+ */
185
+ export declare const BE25_INTRINSIC_INFORMATION_LHS: ExprNode;
186
+ export interface IntrinsicInformationInputs {
187
+ /** Conditional probability p(s̃|s) ∈ [0, 1]. Must be finite. */
188
+ p_cond: number;
189
+ /** Marginal probability p(s̃) ∈ (0, 1]. Must be finite. When `p_cond > 0`, must be > 0 (KL-divergence singularity rejected). */
190
+ p_marg: number;
191
+ }
192
+ /**
193
+ * Evaluate the inner intrinsic information of a (s, s̃) transition
194
+ * pair:
195
+ *
196
+ * ii(s, s̃) = p_cond · log₂(p_cond / p_marg)
197
+ *
198
+ * Edge cases (Shannon convention; matches Oizumi-Albantakis-Tononi
199
+ * 2014 IIT 3.0):
200
+ *
201
+ * - p_cond = 0: returns 0 (the canonical limit 0 · log(0) = 0).
202
+ * The value of p_marg is not consulted in this branch.
203
+ * - p_cond > 0 and p_marg = 0: throws RangeError. The joint outcome
204
+ * is physically inconsistent — the system did transition to s̃
205
+ * but the marginal says s̃ has zero probability; the KL-divergence
206
+ * diverges to +∞.
207
+ * - p_cond = p_marg: returns 0 (no irreducibility — conditional
208
+ * equals marginal means s̃ was no more or less likely given s).
209
+ *
210
+ * @returns Intrinsic information in bits (dimensionless; can be
211
+ * negative when p_cond < p_marg — i.e., conditioning on s makes s̃
212
+ * less likely than the unconditional marginal).
213
+ */
214
+ export declare function evaluateIntrinsicInformation(input: IntrinsicInformationInputs): number;
215
+ /**
216
+ * Run the AST through the dimensional analyzer; LHS and RHS should
217
+ * both be DIMENSIONLESS.
218
+ */
219
+ export declare function validateBE25Dimensions(): DimensionValidationReport;
220
+ //# sourceMappingURL=be-25-iit-phi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-25-iit-phi.d.ts","sourceRoot":"","sources":["../../../src/bridges/equations/be-25-iit-phi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAW1F;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAuC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,QAAuC,CAAC;AAEtE;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAMhC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAA8C,CAAC;AAE9E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,EAAE,QAM5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,QAAmC,CAAC;AAIjF,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,gIAAgI;IAChI,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,0BAA0B,GAAG,MAAM,CAyBtF;AAID;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,yBAAyB,CAYlE"}
@@ -0,0 +1,259 @@
1
+ /**
2
+ * Bridge Equation 25 — Consciousness ↔ Information Integration (IIT Φ).
3
+ *
4
+ * Encodes the **inner intrinsic-information form** from Integrated
5
+ * Information Theory (Tononi; Oizumi-Albantakis-Tononi 2014 IIT 3.0;
6
+ * Albantakis et al. 2023 IIT 4.0):
7
+ *
8
+ * ii(s, s̃) = p(s̃ | s) · log₂[ p(s̃ | s) / p(s̃) ]
9
+ *
10
+ * where `s` is a candidate-substrate state and `s̃` a successor state
11
+ * in its transition probability matrix (TPM). `ii(s, s̃)` measures, in
12
+ * bits, the irreducibility of the conditional probability `p(s̃|s)`
13
+ * against the substrate-marginal `p(s̃)`.
14
+ *
15
+ * The full canonical Φ_max formula is
16
+ *
17
+ * Φ_max(S) = min_{θ ∈ partitions(S)} [ ii(s, s̃) - ii_θ(s, s̃) ]
18
+ *
19
+ * The outer `min_θ` is the **minimum information partition (MIP)** —
20
+ * a discrete optimization over the set of bipartitions of the
21
+ * substrate. The UPT AST grammar (`symbol | op (* / + - ^) | integral |
22
+ * derivative`) has no `min` primitive over a discrete index set, so the
23
+ * MIP outer structure is **deferred grammar-extension** (same status
24
+ * as BE-15 stochastic noise and BE-28 Lagrange multipliers). This
25
+ * module encodes the **inner** ii(s, s̃) — the kernel that the MIP
26
+ * minimizes — as DIMENSIONLESS.
27
+ *
28
+ * **Bits is a pseudo-unit, not an SI dimension.** Φ and ii have units
29
+ * of bits when log₂ is used (or nats with ln, hartleys with log₁₀).
30
+ * Bits is not in the SI 7-base system; it is the LHS of a unit-free
31
+ * pure number when measured in the canonical IIT convention. The
32
+ * dimensional analyzer therefore types ii as DIMENSIONLESS `[1]`. The
33
+ * encoding committee preserves the "bits" semantics by docstring
34
+ * convention; the validator only enforces that all components are
35
+ * dimensionally consistent.
36
+ *
37
+ * **Dimensionless-stub pattern for log₂.** The AST has no `log`
38
+ * primitive. Following the same idiom as BE-26 (exp(-WKB)), BE-41
39
+ * (exp(...)), BE-45 (log()), BE-46 (exp()), and BE-50 (no log/exp;
40
+ * algebraic), we encode `log₂[p(s̃|s)/p(s̃)]` as a fresh DIMENSIONLESS
41
+ * symbol stub `log2_ratio_ii` and expose the inner ratio
42
+ * `p(s̃|s)/p(s̃)` separately as `BE25_LOG_RATIO_ARG` so a lemma test
43
+ * can verify the argument is dimensionless directly.
44
+ *
45
+ * **AST structure (multiplicative, not additive — note the difference
46
+ * from BE-45).** BE-45's RHS `log(M_P/H_inf) − γ·log(r/0.01)` is a
47
+ * *sum* of two log-stubs. BE-25's `p(s̃|s) · log₂[p(s̃|s)/p(s̃)]` is a
48
+ * *product* — a probability times a log-stub. Both are encoded with
49
+ * the same fresh-symbol-stub convention; only the outer operator
50
+ * differs.
51
+ *
52
+ * Bracket-checks (numerical evaluator computes ii(s,s̃) = p_cond ·
53
+ * log₂(p_cond/p_marg)):
54
+ * - Maximum irreducibility (p_cond = 1, p_marg → 0⁺): ii → +∞;
55
+ * - No irreducibility (p_cond = p_marg, e.g. both 0.5):
56
+ * ii = 0.5 · log₂(1) = 0;
57
+ * - "Surprise" case (p_cond = 0.5, p_marg = 0.25):
58
+ * ii = 0.5 · log₂(2) = 0.5 bits;
59
+ * - Shannon-zero (p_cond = 0, p_marg arbitrary): ii = 0 (limit);
60
+ * - Impossible-joint (p_cond > 0, p_marg = 0): KL-divergence
61
+ * diverges — caller error (RangeError thrown).
62
+ *
63
+ * References:
64
+ * - Tononi 2008 *Biol. Bull.* 215:216 (canonical original IIT
65
+ * formulation; integrated information as a measure of
66
+ * consciousness).
67
+ * - Oizumi, Albantakis & Tononi 2014 *PLoS Comput. Biol.* 10:e1003588
68
+ * (IIT 3.0; calculable Φ via earth-mover's distance / Wasserstein
69
+ * metric over partitions; minimum information partition; the
70
+ * canonical computational-IIT reference).
71
+ * - Albantakis, Barbosa, Findlay, Grasso, Haun, Marshall, Mayner,
72
+ * Zaeemzadeh, Boly, Juel, Sasai, Fujii, David, Bjørndahl, Lemmon,
73
+ * Allen, Mosquera, Ladd, Hassan, Hendren, Kim, Yu, Tian, Chen,
74
+ * Tsuchiya & Tononi 2023 *PLoS Comput. Biol.* 19:e1011465
75
+ * (arXiv:2212.14787; IIT 4.0 with explicit axiom-postulate
76
+ * framework).
77
+ * - Wikipedia "Phi (integrated information theory)" / "Integrated
78
+ * information theory" (canonical Φ formula via MIP and intrinsic
79
+ * information ii(s,s̃) = p(s̃|s) log₂[p(s̃|s)/p(s̃)]).
80
+ * - Aaronson 2014 blog "Why I am not an integrated information
81
+ * theorist" (computational counterexamples yielding arbitrarily
82
+ * large Φ for systems generally not regarded as conscious;
83
+ * canonical contested-framework citation).
84
+ *
85
+ * Status: speculative (NOT lifted by this encoding).
86
+ *
87
+ * Honest-claude scope notes:
88
+ * - This module encodes the **inner** ii(s, s̃) only. The outer
89
+ * `min_θ` over partitions (MIP) and the partition-conditional
90
+ * `ii_θ` lemma are NOT encoded — both require a `min`-over-index-
91
+ * set grammar extension that the UPT AST does not currently
92
+ * support. The same deferral applies to BE-15 (stochastic noise)
93
+ * and BE-28 (Lagrange multipliers).
94
+ * - Status 'speculative' is **not lifted by this encoding**. IIT
95
+ * itself is calculable and well-defined; the bridge framing
96
+ * (consciousness ↔ maximally-integrated-information) is contested
97
+ * by Aaronson 2014 (computational counterexamples) and Doerig
98
+ * 2019 (unfolding argument). Pinning a Tier-5 AST does not
99
+ * promote the bridge claim.
100
+ * - The 0·log(0) = 0 limit (p_cond → 0) is enforced by the
101
+ * numerical evaluator following Shannon's canonical convention
102
+ * and Oizumi-Albantakis-Tononi 2014. The p_marg = 0 with
103
+ * p_cond > 0 case (KL-divergence singularity) is rejected with
104
+ * RangeError because the joint outcome is physically inconsistent
105
+ * (the system did transition to s̃ but the marginal says s̃ is
106
+ * impossible).
107
+ * - Φ_max is exponential in substrate size (EXPTIME); the numerical
108
+ * evaluator here only computes ii for a single (s, s̃) pair, not
109
+ * the outer MIP minimization. Computing Φ_max for substrates with
110
+ * more than ~10 elements is intractable in practice.
111
+ * - **Encoded form vs. IIT 4.0 canonical metric (Wave-Z final-review
112
+ * scope note, 2026-05-11):** the encoded
113
+ * `ii(s,s̃) = p(s̃|s) · log₂[p(s̃|s)/p(s̃)]` is the *pointwise-KL*
114
+ * / Wikipedia / IIT-pedagogical simplified form of the intrinsic
115
+ * information. IIT 3.0 (Oizumi-Albantakis-Tononi 2014) and IIT 4.0
116
+ * (Albantakis et al. 2023) use the **earth-mover's distance**
117
+ * (Wasserstein metric) as the canonical irreducibility measure on
118
+ * the cause-effect repertoire, NOT the pointwise log-ratio. The
119
+ * two agree in spirit and give qualitatively similar Φ rankings
120
+ * for small systems but differ quantitatively. The encoded log-
121
+ * ratio is preferred here because (a) it has a closed-form scalar
122
+ * reduction the AST grammar can express, and (b) it is the form
123
+ * most commonly cited in introductory IIT references. Encoding
124
+ * the Wasserstein metric would require a transport-plan primitive
125
+ * the UPT AST does not have.
126
+ *
127
+ * @see docs/specification/Part-II.md ("Bridge Equation 25: Consciousness — Information Integration Bridge")
128
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 25)
129
+ * @see src/bridges/equations/be-25-orch-or.ts (archived; legacy Penrose-Hameroff form)
130
+ * @module bridges/equations/be-25-iit-phi
131
+ */
132
+ import { validate, validateEquation } from '../../dimensional/validator.js';
133
+ import { DIMENSIONLESS, } from '../../dimensional/types.js';
134
+ const sym = (name, dim) => ({ kind: 'symbol', name, dim });
135
+ // --- Symbolic AST ---
136
+ /**
137
+ * Lemma AST: the conditional probability `p(s̃|s)` (DIMENSIONLESS,
138
+ * ∈ [0, 1]).
139
+ *
140
+ * Exposed as a separate node so it can be reused inside both
141
+ * `BE25_LOG_RATIO_ARG` and `BE25_INTRINSIC_INFORMATION_RHS`. The
142
+ * validator only sees its dimension (DIMENSIONLESS); the [0, 1] range
143
+ * is a semantic property enforced by the numerical evaluator's
144
+ * input-validation guards, not the type system.
145
+ */
146
+ export const BE25_P_CONDITIONAL = sym('p_cond', DIMENSIONLESS);
147
+ /**
148
+ * Lemma AST: the marginal probability `p(s̃)` (DIMENSIONLESS, ∈ [0, 1]).
149
+ *
150
+ * Same convention as `BE25_P_CONDITIONAL`: dimension is DIMENSIONLESS;
151
+ * the [0, 1] range is enforced numerically, not type-theoretically.
152
+ */
153
+ export const BE25_P_MARGINAL = sym('p_marg', DIMENSIONLESS);
154
+ /**
155
+ * Lemma AST: the log₂ argument `p(s̃|s) / p(s̃)` (DIMENSIONLESS, the
156
+ * ratio of two probabilities).
157
+ *
158
+ * Exposed for the lemma test that verifies the argument is
159
+ * dimensionless (per the dimensionless-stub convention; see
160
+ * `src/dimensional/README.md` "Encoding transcendental functions").
161
+ */
162
+ export const BE25_LOG_RATIO_ARG = {
163
+ kind: 'op', op: '/',
164
+ args: [
165
+ BE25_P_CONDITIONAL,
166
+ BE25_P_MARGINAL,
167
+ ],
168
+ };
169
+ /**
170
+ * Lemma AST: the `log₂[p(s̃|s) / p(s̃)]` factor, encoded as a fresh
171
+ * DIMENSIONLESS symbol stub `log2_ratio_ii` (the AST has no `log`
172
+ * primitive; following the BE-26 / BE-41 / BE-45 / BE-46 dimensionless-
173
+ * stub idiom). The actual log argument is exposed separately via
174
+ * `BE25_LOG_RATIO_ARG` so the lemma test can verify it is
175
+ * dimensionless.
176
+ */
177
+ export const BE25_LOG2_FACTOR = sym('log2_ratio_ii', DIMENSIONLESS);
178
+ /**
179
+ * RHS of `ii(s, s̃) = p(s̃|s) · log₂[p(s̃|s) / p(s̃)]` as a typed
180
+ * ExprNode tree:
181
+ *
182
+ * p_cond · log2_ratio_ii
183
+ *
184
+ * `log2_ratio_ii` is a DIMENSIONLESS symbol stub for `log₂(...)`; the
185
+ * argument `p_cond / p_marg` is exposed via `BE25_LOG_RATIO_ARG` and
186
+ * verified dimensionless directly. The product of two dimensionless
187
+ * symbols is DIMENSIONLESS — same shape as BE-46's `A · exp_factor`.
188
+ */
189
+ export const BE25_INTRINSIC_INFORMATION_RHS = {
190
+ kind: 'op', op: '*',
191
+ args: [
192
+ BE25_P_CONDITIONAL,
193
+ BE25_LOG2_FACTOR,
194
+ ],
195
+ };
196
+ /**
197
+ * LHS: ii(s, s̃) is in bits (DIMENSIONLESS in the SI sense — bits is
198
+ * a pseudo-unit not in the SI 7-base system).
199
+ */
200
+ export const BE25_INTRINSIC_INFORMATION_LHS = sym('ii', DIMENSIONLESS);
201
+ /**
202
+ * Evaluate the inner intrinsic information of a (s, s̃) transition
203
+ * pair:
204
+ *
205
+ * ii(s, s̃) = p_cond · log₂(p_cond / p_marg)
206
+ *
207
+ * Edge cases (Shannon convention; matches Oizumi-Albantakis-Tononi
208
+ * 2014 IIT 3.0):
209
+ *
210
+ * - p_cond = 0: returns 0 (the canonical limit 0 · log(0) = 0).
211
+ * The value of p_marg is not consulted in this branch.
212
+ * - p_cond > 0 and p_marg = 0: throws RangeError. The joint outcome
213
+ * is physically inconsistent — the system did transition to s̃
214
+ * but the marginal says s̃ has zero probability; the KL-divergence
215
+ * diverges to +∞.
216
+ * - p_cond = p_marg: returns 0 (no irreducibility — conditional
217
+ * equals marginal means s̃ was no more or less likely given s).
218
+ *
219
+ * @returns Intrinsic information in bits (dimensionless; can be
220
+ * negative when p_cond < p_marg — i.e., conditioning on s makes s̃
221
+ * less likely than the unconditional marginal).
222
+ */
223
+ export function evaluateIntrinsicInformation(input) {
224
+ const { p_cond, p_marg } = input;
225
+ if (!Number.isFinite(p_cond) || p_cond < 0 || p_cond > 1) {
226
+ throw new RangeError(`evaluateIntrinsicInformation: p_cond must be a finite probability in [0, 1], got ${p_cond}`);
227
+ }
228
+ if (!Number.isFinite(p_marg) || p_marg < 0 || p_marg > 1) {
229
+ throw new RangeError(`evaluateIntrinsicInformation: p_marg must be a finite probability in [0, 1], got ${p_marg}`);
230
+ }
231
+ // Shannon convention: 0 · log(0/anything) = 0 (the canonical limit).
232
+ // Return 0 BEFORE consulting p_marg so the p_cond = 0 / p_marg = 0
233
+ // joint zero does not raise.
234
+ if (p_cond === 0)
235
+ return 0;
236
+ // p_cond > 0 here; p_marg = 0 is the KL-divergence singularity.
237
+ if (p_marg === 0) {
238
+ throw new RangeError(`evaluateIntrinsicInformation: p_marg = 0 with p_cond = ${p_cond} > 0 ` +
239
+ `is the KL-divergence singularity (impossible-joint-event); ` +
240
+ `the system transitioned to s̃ but the marginal says s̃ has zero probability.`);
241
+ }
242
+ return p_cond * Math.log2(p_cond / p_marg);
243
+ }
244
+ // --- Self-validation ---
245
+ /**
246
+ * Run the AST through the dimensional analyzer; LHS and RHS should
247
+ * both be DIMENSIONLESS.
248
+ */
249
+ export function validateBE25Dimensions() {
250
+ const eq = validateEquation(BE25_INTRINSIC_INFORMATION_LHS, BE25_INTRINSIC_INFORMATION_RHS);
251
+ const lhs = validate(BE25_INTRINSIC_INFORMATION_LHS);
252
+ const rhs = validate(BE25_INTRINSIC_INFORMATION_RHS);
253
+ return {
254
+ ok: eq.ok,
255
+ lhsDim: lhs.inferredDimension,
256
+ rhsDim: rhs.inferredDimension,
257
+ };
258
+ }
259
+ //# sourceMappingURL=be-25-iit-phi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-25-iit-phi.js","sourceRoot":"","sources":["../../../src/bridges/equations/be-25-iit-phi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkIG;AAGH,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAEL,aAAa,GACd,MAAM,4BAA4B,CAAC;AAEpC,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,GAAc,EAAY,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AAExF,uBAAuB;AAEvB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAa,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAa,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAa;IAC1C,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG;IACnB,IAAI,EAAE;QACJ,kBAAkB;QAClB,eAAe;KAChB;CACF,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAa,GAAG,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE9E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAa;IACtD,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG;IACnB,IAAI,EAAE;QACJ,kBAAkB;QAClB,gBAAgB;KACjB;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAa,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AAWjF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAiC;IAC5E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACjC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,UAAU,CAClB,oFAAoF,MAAM,EAAE,CAC7F,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,UAAU,CAClB,oFAAoF,MAAM,EAAE,CAC7F,CAAC;IACJ,CAAC;IACD,qEAAqE;IACrE,mEAAmE;IACnE,6BAA6B;IAC7B,IAAI,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IAC3B,gEAAgE;IAChE,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;QACjB,MAAM,IAAI,UAAU,CAClB,0DAA0D,MAAM,OAAO;YACrE,6DAA6D;YAC7D,8EAA8E,CACjF,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;AAC7C,CAAC;AAED,0BAA0B;AAE1B;;;GAGG;AACH,MAAM,UAAU,sBAAsB;IACpC,MAAM,EAAE,GAAG,gBAAgB,CACzB,8BAA8B,EAC9B,8BAA8B,CAC/B,CAAC;IACF,MAAM,GAAG,GAAG,QAAQ,CAAC,8BAA8B,CAAC,CAAC;IACrD,MAAM,GAAG,GAAG,QAAQ,CAAC,8BAA8B,CAAC,CAAC;IACrD,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,78 @@
1
+ /**
2
+ * ============================================================================
3
+ * ARCHIVED MODULE — DO NOT USE FOR BE-25 DIMENSIONAL CLAIMS
4
+ * Archived 2026-05-06 (Wave Q B2, per CS iter-6 C2).
5
+ *
6
+ * This module encodes the dropped Penrose-Hameroff `t_OR` collapse-time
7
+ * form. BE-25 was reformulated to canonical IIT Φ_max in Wave P-D R-D2
8
+ * (2026-05-06). The IIT form is substrate-agnostic and Φ has no SI
9
+ * dimension (units are bits when log₂ is used), so this AST is no
10
+ * longer load-bearing for any bridge-equation claim.
11
+ *
12
+ * The module is preserved for historical traceability and for
13
+ * regression-testing the dimensional analyzer (via
14
+ * `tests/bridges/be-25-encoding.test.ts`). It has been removed from
15
+ * `EXPECTED_DIMENSION_BY_BRIDGE` (`src/dimensional/bridge-check.ts`)
16
+ * and from the round-trip `dimensional-signature-catalog.test.ts`.
17
+ * ============================================================================
18
+ *
19
+ * Bridge Equation 25 — Penrose-Hameroff Orch-OR Collapse Time (DROPPED).
20
+ *
21
+ * t_OR = ℏ / E_G = ℏ / (Δm c² Δx / ℓ_P) = ℏ ℓ_P / (Δm c² Δx)
22
+ *
23
+ * Where Δm is the mass difference between the superposed states and Δx
24
+ * is their separation. The denominator quantity E_G is interpreted as
25
+ * a gravitational self-energy.
26
+ *
27
+ * Reference: Penrose 1996 Gen. Rel. Grav. 28:581; Hameroff-Penrose 1996.
28
+ *
29
+ * Status: archived (was 'highly-speculative' before Wave L Tier E3
30
+ * 'invalid' before Wave P-D R-D2 IIT reformulation).
31
+ *
32
+ * Honest-claude scope notes:
33
+ * - The spec's E_G = Δm c² Δx / ℓ_P contains a Δx/ℓ_P factor not
34
+ * present in Penrose's original gravitational self-energy
35
+ * E_G ~ G(Δm)²/Δx — see the BE-25 known_issues entry. We encode
36
+ * the spec-as-written; the bracket-check therefore gives a
37
+ * sub-Planckian collapse time, NOT Penrose's ms-order prediction.
38
+ * This is faithful to the spec and consistent with the documented
39
+ * issue.
40
+ * - Mainstream Tegmark 2000 (arXiv:quant-ph/9907009) decoherence
41
+ * analysis is also preserved as a known_issue on the entry; this
42
+ * module does not address that critique.
43
+ *
44
+ * @see docs/specification/Part-II.md ("Bridge Equation 25: Consciousness - Quantum Information Bridge")
45
+ * @see src/bridges/index.ts BRIDGE_EQUATIONS.find(e => e.id === 25)
46
+ * @module bridges/equations/be-25-orch-or
47
+ */
48
+ import type { ExprNode, DimensionValidationReport } from '../../dimensional/validator.js';
49
+ /**
50
+ * RHS of the Orch-OR collapse-time formula as a typed ExprNode tree.
51
+ *
52
+ * t_OR = (ℏ · ℓ_P) / (Δm · c² · Δx)
53
+ *
54
+ * This is the algebraic re-arrangement of `ℏ / (Δm c² Δx / ℓ_P)`; the
55
+ * spec-form is preserved in the encoding but written with the inverse
56
+ * brought out so the AST has a clean numerator / denominator structure.
57
+ */
58
+ export declare const ORCH_OR_RHS: ExprNode;
59
+ /** LHS: t_OR has dimension [time]. */
60
+ export declare const ORCH_OR_LHS: ExprNode;
61
+ export interface OrchORInputs {
62
+ /** Mass difference Δm in kg. Must be > 0. */
63
+ delta_m: number;
64
+ /** Spatial separation Δx in m. Must be > 0. */
65
+ delta_x: number;
66
+ }
67
+ /**
68
+ * Evaluate t_OR = ℏ ℓ_P / (Δm c² Δx).
69
+ *
70
+ * @returns Orch-OR collapse time in seconds.
71
+ */
72
+ export declare function evaluateOrchOR(input: OrchORInputs): number;
73
+ /**
74
+ * Run the AST through the dimensional analyzer; both sides should be
75
+ * [time].
76
+ */
77
+ export declare function validateOrchORDimensions(): DimensionValidationReport;
78
+ //# sourceMappingURL=be-25-orch-or.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"be-25-orch-or.d.ts","sourceRoot":"","sources":["../../../src/bridges/equations/be-25-orch-or.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAmB1F;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,QAwBzB,CAAC;AAEF,sCAAsC;AACtC,eAAO,MAAM,WAAW,EAAE,QAA4B,CAAC;AAIvD,MAAM,WAAW,YAAY;IAC3B,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAc1D;AAID;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,yBAAyB,CASpE"}