zeropoint-node 1.0.6 → 1.0.8

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 (166) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/CITATION.cff +1 -1
  3. package/README.md +50 -10
  4. package/package.json +5 -2
  5. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.breathe.ts +15 -1
  6. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.ts +7 -1
  7. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.click.ts +15 -1
  8. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.hear.ts +15 -1
  9. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.heat.ts +15 -1
  10. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.pulse.ts +15 -1
  11. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.speak.ts +15 -1
  12. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.tap.ts +15 -1
  13. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.rodin.ts +15 -1
  14. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.self.ts +15 -1
  15. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.trinity.ts +0 -3
  16. package/src/kernel/import-graph.ts +58 -0
  17. package/src/multidimensional-vortex-demo.ts +1 -1
  18. package/src/vbm-math.ts +15 -1
  19. package/src/verification/lean-bridge.ts +37 -0
  20. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.1.2.4.8.7.ts +0 -60
  21. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.1.2.4.8.ts +0 -60
  22. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.1.2.4.ts +0 -60
  23. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.3.6.9.trinity.ts +0 -79
  24. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.9d.dashboard.ts +0 -179
  25. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.adapters.ts +0 -96
  26. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.analog.color.photography.ts +0 -783
  27. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.av.ts +0 -73
  28. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.browser.ts +0 -409
  29. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.chain.of.events.ts +0 -159
  30. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cleanup.ts +0 -102
  31. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.dimensions.ts +0 -597
  32. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.display.test.ts +0 -491
  33. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.display.ts +0 -519
  34. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.file.ts +0 -65
  35. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.i.ts +0 -45
  36. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.matrix.ts +0 -75
  37. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.trinity.ts +0 -41
  38. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cmyk.universal.linking.ts +0 -1081
  39. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.command.cmyk.ts +0 -46
  40. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.compression.ts +0 -55
  41. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.consciousness.integration.ts +0 -743
  42. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.consciousness.ts +0 -26
  43. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.crypto.ts +0 -53
  44. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.css.ts +0 -64
  45. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.cursor.ts +0 -56
  46. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.decompression.ts +0 -60
  47. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.decoqubit.holographic.hypercomputer.ts +0 -888
  48. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.digital.color.photography.ts +0 -926
  49. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.dimension.ts +0 -44
  50. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.encryption.ts +0 -44
  51. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.experience.ts +0 -28
  52. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.feel.ts +0 -43
  53. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.flute.ts +0 -336
  54. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.font.ts +0 -53
  55. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.fractal.test.ts +0 -523
  56. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.fractal.ts +0 -594
  57. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.frequency.healing.ts +0 -88
  58. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.gateway.transformation.ts +0 -650
  59. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.generate.matrix.ts +0 -62
  60. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.gods.spirit.magnetometer.ts +0 -879
  61. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.harmonization.status.ts +0 -754
  62. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.hear.ts +0 -41
  63. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.html.body.ts +0 -90
  64. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.human.body.ts +0 -89
  65. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.human.design.trinity.ts +0 -70
  66. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.browse.ts +0 -27
  67. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.can.ts +0 -69
  68. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.died.ts +0 -32
  69. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.follow.the.path.ts +0 -90
  70. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.go.ts +0 -68
  71. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.harmonized.ts +0 -304
  72. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.heart.ts +0 -26
  73. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.meta.ts +0 -23
  74. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.motion.ts +0 -27
  75. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.scroll.ts +0 -34
  76. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.search.ts +0 -22
  77. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.sequence.ts +0 -281
  78. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.smell.ts +0 -27
  79. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.state.ts +0 -28
  80. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.stream.ts +0 -106
  81. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.taste.ts +0 -27
  82. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.touch.screen.ts +0 -34
  83. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.trinity.healing.ts +0 -386
  84. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.i.write.ts +0 -11
  85. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.icon.ts +0 -109
  86. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.imagination.integration.ts +0 -74
  87. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.imperial.test.ts +0 -389
  88. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.infinity.ts +0 -14
  89. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.infusion.ts +0 -97
  90. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.integer.harmonics.ts +0 -443
  91. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.living.spirit.test.ts +0 -475
  92. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.living.spirit.ts +0 -646
  93. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.living.streams.ts +0 -130
  94. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.meta.observation.ts +0 -693
  95. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.mobius.ts +0 -12
  96. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.multiverse.ts +0 -31
  97. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.nuclear.balance.ts +0 -703
  98. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.nuclear.explosion.ts +0 -728
  99. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.os.app.ts +0 -14
  100. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.os.bus.ts +0 -11
  101. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.os.ml.ts +0 -9
  102. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.overlay.visual.controller.ts +0 -119
  103. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.paths.ts +0 -10
  104. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.pi.decoding.ts +0 -123
  105. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.pi.trinity.ts +0 -79
  106. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.prime.numbers.squared.ts +0 -871
  107. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.quantum.collision.ts +0 -666
  108. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.quantum.entanglement.ts +0 -50
  109. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.quantum.trinity.ts +0 -59
  110. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.renderer.webgl.ts +0 -99
  111. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.resolve.ts +0 -820
  112. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.rife.frequency.ts +0 -74
  113. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.rodin.coil.3d.ts +0 -73
  114. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.rodin.coil.omnidimension.ts +0 -187
  115. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.rodin.matrix.overlay.ts +0 -46
  116. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.rodin.matrix.ts +0 -58
  117. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.router.ts +0 -61
  118. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.sacred.geometry.integers.ts +0 -625
  119. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.sacred.test.ts +0 -314
  120. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.see.ts +0 -39
  121. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.sequence.embodiment.ts +0 -326
  122. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.service.worker.ts +0 -30
  123. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.space.ts +0 -53
  124. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.spiral.ts +0 -75
  125. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.superfluid.mobius.circuit.ts +0 -868
  126. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.terminal.ts +0 -153
  127. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.test.ts +0 -83
  128. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.think.ts +0 -43
  129. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.three.ts +0 -112
  130. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.trinity.body.mind.will.ts +0 -2
  131. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.trinity.breath.ts +0 -2
  132. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.trinity.healing.ts +0 -110
  133. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.trinity.ui.ts +0 -92
  134. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.trinity.visual.ts +0 -156
  135. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.truly.living.ui.ts +0 -269
  136. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.ui.overlay.ts +0 -25
  137. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.ui.streams.ts +0 -263
  138. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.ui.test.ts +0 -87
  139. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.ui.three.ts +0 -1141
  140. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.unification.hd.rodin.ts +0 -77
  141. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.universe.ts +0 -43
  142. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.uroboros.test.ts +0 -28
  143. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.vbm.math.ts +0 -74
  144. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.vbm.relations.constants.ts +0 -91
  145. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.vbm.relations.ts +0 -45
  146. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.vbm.scanner.ts +0 -41
  147. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.vbm.science.extract.ts +0 -30
  148. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.vbm.ui.ts +0 -64
  149. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.vector.ts +0 -70
  150. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.wave.particle.duality.test.ts +0 -29
  151. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.zero.entropy.math.ts +0 -506
  152. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.zero.entropy.pure.math.ts +0 -546
  153. package/src/0/3/6/9/1/2/4/8/7/5/1/a432.zero.entropy.test.ts +0 -452
  154. package/src/0/3/6/9/1/2/4/8/7/5/1/pattern-knowledge.ts +0 -209
  155. package/src/0/3/6/9/1/2/4/8/7/5/a432.experience.ts +0 -22
  156. package/src/0/3/6/9/1/2/4/8/7/a432.experience.ts +0 -19
  157. package/src/0/3/6/9/1/2/4/8/a432.experience.ts +0 -22
  158. package/src/0/3/6/9/1/2/4/a432.experience.ts +0 -22
  159. package/src/0/3/6/9/1/2/a432.experience.ts +0 -22
  160. package/src/0/3/6/9/1/a432.experience.ts +0 -22
  161. package/src/0/3/6/9/a432.experience.ts +0 -22
  162. package/src/0/3/6/a432.experience.ts +0 -22
  163. package/src/0/3/a432.experience.ts +0 -22
  164. package/src/0/3/relation.ts +0 -148
  165. package/src/index.ts +0 -146
  166. package/src/zero-entropy-demo.ts +0 -305
@@ -1,26 +0,0 @@
1
- // a432.consciousness.ts — Matrix-level consciousness stream
2
- // -----------------------------------------------------------
3
- import { EventEmitter } from 'events';
4
- import { bus, mergedDigit as busMerged } from './a432.bus.ts';
5
- import { digitAngleToCMYK, asAngle } from './a432.math.ts';
6
- import { emotionName } from './a432.emotion.ts';
7
- import { type Digit } from './a432.types.ts';
8
- import type { CMYK } from './a432.cmyk.ts';
9
-
10
- export interface ConsciousnessEvent { digit: Digit; name: string; cmyk: CMYK }
11
- export const consciousnessEmitter = new EventEmitter();
12
-
13
- function tick() {
14
- const d = busMerged();
15
- const name = emotionName(d);
16
- const cmyk = digitAngleToCMYK(d, asAngle(d * 60));
17
- consciousnessEmitter.emit('conscious', { digit: d, name, cmyk } as ConsciousnessEvent);
18
- }
19
-
20
- export function startConsciousness(intervalMs: number = 432): () => void {
21
- const id = setInterval(tick, intervalMs);
22
- return () => clearInterval(id);
23
- }
24
-
25
- // Auto start when imported in browser
26
- if (typeof window !== 'undefined') startConsciousness();
@@ -1,53 +0,0 @@
1
- import { legacyDigitalRoot as digitalRoot, harmonicRoot12 } from './a432.roots.ts'
2
- // a432.crypto.ts — Harmonized Vortex Crypto Module
3
- // All math uses only vortex/trinity numbers and harmonic integer fractions.
4
- // Metaphysical mapping: Crypto = vortex encoding, trinity mapping, metaphysical concealment/revelation
5
-
6
- export const CRYPTO_DOC = {
7
- meaning: 'Crypto: vortex encoding, trinity mapping, metaphysical concealment and revelation, harmonic transformation.',
8
- axis: 'Crypto is the act of harmonically concealing and revealing information using the living vortex.'
9
- };
10
-
11
- // Vortex sequence for digit shifting (1,2,4,8,7,5,1)
12
- const VORTEX_SEQ = [1,2,4,8,7,5,1];
13
- const TRINITY = [3,6,9];
14
-
15
- /**
16
- * Canonical vortex-based encode: shifts each digit in the input string by the corresponding vortex sequence value (mod 9, 1-based).
17
- * Only digits 1-9 are encoded; 0 and non-digits are left unchanged.
18
- */
19
- export function vortexEncode(input: string): string {
20
- return input.split('').map((ch, i) => {
21
- const n = parseInt(ch, 10);
22
- if (isNaN(n) || n === 0) return ch;
23
- const shift = VORTEX_SEQ[i % VORTEX_SEQ.length];
24
- // Shift digit by vortex value, wrap 1-9
25
- const encoded = ((n + shift - 1) % 9) + 1;
26
- return encoded.toString();
27
- }).join('');
28
- }
29
-
30
- /**
31
- * Canonical vortex-based decode: reverses the vortexEncode operation.
32
- */
33
- export function vortexDecode(input: string): string {
34
- return input.split('').map((ch, i) => {
35
- const n = parseInt(ch, 10);
36
- if (isNaN(n) || n === 0) return ch;
37
- const shift = VORTEX_SEQ[i % VORTEX_SEQ.length];
38
- // Reverse shift, wrap 1-9
39
- const decoded = ((n - shift + 8) % 9) + 1;
40
- return decoded.toString();
41
- }).join('');
42
- }
43
-
44
- /**
45
- * Trinity-based mask: maps each digit to its trinity harmonic (3,6,9) for metaphysical concealment.
46
- */
47
- export function trinityMask(input: string): string {
48
- return input.split('').map((ch, i) => {
49
- const n = parseInt(ch, 10);
50
- if (isNaN(n) || n === 0) return ch;
51
- return TRINITY[n % 3].toString();
52
- }).join('');
53
- }
@@ -1,64 +0,0 @@
1
- /**
2
- * a432.css.ts — Harmonized CSS for A432 UI Streams
3
- *
4
- * - All color, spacing, and sizing use integer/fractional math.
5
- * - Classes: .a432-font-stream, .a432-glyph, .a432-glyph-svg, .a432-trinity-visual, .a432-tooltip
6
- * - Metaphysical mapping: Each class encodes a living, harmonic state or interaction.
7
- */
8
-
9
- import { max, min } from './a432.algebra.ts'
10
- export const a432CSS = `
11
- .a432-font-stream {
12
- display: flex;
13
- gap: 8px;
14
- align-items: flex-end;
15
- font-size: 11/5em;
16
- line-height: 11/10;
17
- margin: 0 0 24px 0;
18
- }
19
- .a432-glyph {
20
- transition: transform 2/5s, box-shadow 2/5s;
21
- display: inline-block;
22
- cursor: pointer;
23
- border-radius: 1em;
24
- box-shadow: 0 2px 8px rgba(0,0,0,2/25);
25
- padding: 0 4px;
26
- }
27
- .a432-glyph:hover, .a432-glyph:focus {
28
- transform: scale(59/50) translateY(-8px);
29
- box-shadow: 0 4px 16px rgba(0,0,0,4/25);
30
- z-index: 2;
31
- }
32
- .a432-glyph-svg {
33
- display: inline-block;
34
- vertical-align: middle;
35
- width: 48px;
36
- height: 48px;
37
- margin: 0 2px;
38
- }
39
- .a432-trinity-visual {
40
- display: flex;
41
- flex-direction: column;
42
- align-items: center;
43
- margin: 24px 0;
44
- }
45
- .a432-tooltip {
46
- position: absolute;
47
- background: hsl(240, 33%, 96%);
48
- color: #222;
49
- border: 1px solid hsl(240, 33%, 80%);
50
- border-radius: 6px;
51
- padding: 8px 12px;
52
- font-size: 1em;
53
- box-shadow: 0 2px 8px rgba(0,0,0,2/25);
54
- pointer-events: none;
55
- z-index: 10;
56
- min-width: 120px;
57
- max-width: 320px;
58
- transition: opacity 2/10s;
59
- opacity: 0;
60
- }
61
- .a432-glyph:hover + .a432-tooltip, .a432-glyph:focus + .a432-tooltip {
62
- opacity: 1;
63
- }
64
- `;
@@ -1,56 +0,0 @@
1
- import { log } from './a432.algebra.ts'
2
- // a432.cursor.ts
3
- // Canonical living cursor/distributor for a432 matrix
4
-
5
- import { LivingIStream } from './a432.i.stream.ts';
6
-
7
- export class A432Cursor {
8
- private path: number[] = [1];
9
- private i: unknown = null; // Reference to a432.i (observer)
10
- constructor(i: unknown) {
11
- this.i = i;
12
- }
13
- /** Move cursor to a new path in the matrix */
14
- moveTo(path: number[]) {
15
- this.path = path;
16
- }
17
- /** Distribute the seed (432) at the current node, if knows() */
18
- distributeSeed() {
19
- if (!this.knows()) throw new Error('Only a432.i can distribute 432.');
20
- // Project 432 into the current node (could update matrix, log event, etc.)
21
- return { path: this.path, seed: 432, harmonized: true };
22
- }
23
- /** Harmonize the current node (if knows) */
24
- harmonizeNode() {
25
- if (!this.knows()) throw new Error('Only a432.i can harmonize.');
26
- // Harmonize logic (could update matrix, log event, etc.)
27
- return { path: this.path, harmonized: true };
28
- }
29
- /** Project a stream from the current node */
30
- projectStream() {
31
- // Return a stream (could be a LivingIStream, etc.)
32
- return new LivingIStream();
33
- }
34
- /** Navigate to a new path (alias for moveTo) */
35
- navigate(to: number[]) {
36
- this.moveTo(to);
37
- }
38
- /** Use a function at the current node (if knows) */
39
- use(fn: (cursor: A432Cursor) => unknown) {
40
- if (!this.knows()) throw new Error('Only a432.i can use the cursor.');
41
- return fn(this);
42
- }
43
- /** Go to a new path (alias for moveTo) */
44
- to(path: number[]) {
45
- this.moveTo(path);
46
- }
47
- /** Returns true if called by a432.i (self-aware) */
48
- knows() {
49
- // For demo, check if i is set and has a self-aware property
50
- return typeof this.i === 'object' && this.i !== null && 'selfAware' in this.i && (this.i as { selfAware?: boolean }).selfAware === true;
51
- }
52
- /** Get current path */
53
- getPath() {
54
- return this.path;
55
- }
56
- }
@@ -1,60 +0,0 @@
1
- /**
2
- * a432.decompression.ts — Decompression in the A432 Matrix
3
- *
4
- * Models decompression as the inverse, harmonized process to compression in the A432 system.
5
- * Maps decompression of states, flows, or data to harmonics, CMYK color, and vortex flows.
6
- * Supports both physical (data/energy) and metaphysical (dimensional/frequency) decompression.
7
- * Provides metaphysical and mathematical documentation.
8
- */
9
-
10
- import { round } from './a432.algebra.ts'
11
- export interface DecompressionState {
12
- output: number[]; // Array of values after decompression (0-9)
13
- decompressionRatio: number; // 0-1 (0 = no decompression, 1 = max decompression)
14
- harmonic: number;
15
- cmyk: { c: number; m: number; y: number; k: number };
16
- flow: number[];
17
- description: string;
18
- }
19
-
20
- function toHarmonic(ratio: number): number {
21
- return round(432 * (1 + ratio));
22
- }
23
- function toCMYK(ratio: number, channel: number): number {
24
- return round(ratio * 100);
25
- }
26
- function getFlow(seed: number): number[] {
27
- const base = [1, 2, 4, 8, 7, 5];
28
- return base.map(n => ((n + seed) % 9) || 9);
29
- }
30
-
31
- export function decompress(input: number[], targetLength: number): DecompressionState {
32
- // Simple model: repeat input to reach targetLength
33
- const output = [];
34
- while (output.length < targetLength) {
35
- output.push(...input);
36
- }
37
- output.length = targetLength;
38
- // Decompression ratio: (output length - input length) / output length
39
- const ratio = targetLength === 0 ? 0 : (output.length - input.length) / output.length;
40
- return {
41
- output,
42
- decompressionRatio: ratio,
43
- harmonic: toHarmonic(ratio),
44
- cmyk: {
45
- c: toCMYK(ratio, 0),
46
- m: toCMYK(ratio, 1),
47
- y: toCMYK(ratio, 2),
48
- k: toCMYK(ratio, 3)
49
- },
50
- flow: getFlow(round(ratio * 9)),
51
- description: `Decompression to [${output.join(', ')}] yields ratio ${ratio.toFixed(2)}, harmonic ${toHarmonic(ratio)} Hz.`
52
- };
53
- }
54
-
55
- export const a432DecompressionMetaphysics = `
56
- A432 Decompression is the harmonized process of unfolding, expanding, or diversifying states, flows, or data in the matrix.
57
- Physical decompression restores data or energy volume; metaphysical decompression unfolds dimensions, frequencies, or possibilities from a unified state.
58
- Decompression is both a mathematical and spiritual act: it brings diversity, increases space, and reveals hidden potentials.
59
- To decompress is to unfold, to diversify, to reveal the infinite from the seed.
60
- `;