@aleph-ai/tinyaleph 1.0.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,9 @@ The foundational mathematical primitives:
13
13
  - **Fano** - Fano plane multiplication tables for octonions
14
14
  - **Sieve** - Semantic sieve algorithm for concept filtering
15
15
  - **LLM** - LLM coupling utilities
16
+ - **Types** - Formal type system with N(p)/A(p)/S types
17
+ - **Reduction** - Reduction semantics and normalization
18
+ - **Lambda** - λ-calculus translation and evaluation
16
19
 
17
20
  ### [Physics Module](./02-physics.md)
18
21
 
@@ -41,6 +44,28 @@ High-level orchestration:
41
44
  - **createEngine** - Factory function for engine creation
42
45
  - **registerBackend** - Backend registration system
43
46
 
47
+ ### [Formal Semantics Module](./05-formal-semantics.md)
48
+
49
+ Formal type system and reduction semantics:
50
+
51
+ - **Types** - NounTerm, AdjTerm, ChainTerm, FusionTerm, SentenceTerm
52
+ - **TypeChecker** - Type inference and checking
53
+ - **ReductionSystem** - Small-step reduction with ⊕ operators
54
+ - **Translator** - τ translation to λ-calculus
55
+ - **LambdaEvaluator** - β-reduction and normalization
56
+ - **Semantics** - Model-theoretic interpretation
57
+
58
+ ### [Enochian Module](./06-enochian.md)
59
+
60
+ The angelic language system:
61
+
62
+ - **EnochianEngine** - Word parsing and computation
63
+ - **ENOCHIAN_ALPHABET** - 21-letter alphabet with prime mappings
64
+ - **PRIME_BASIS** - The seven foundation primes
65
+ - **CORE_VOCABULARY** - Traditional Enochian words
66
+ - **SedenionElement** - 16-dimensional operations
67
+ - **TwistOperator** - Angular transformations
68
+
44
69
  ---
45
70
 
46
71
  ## Quick Reference
@@ -241,6 +266,9 @@ console.assert(coherence >= 0 && coherence <= 1);
241
266
  | fano | `core/fano.js` | Fano plane |
242
267
  | sieve | `core/sieve.js` | Semantic sieve |
243
268
  | llm | `core/llm.js` | LLM coupling |
269
+ | types | `core/types.js` | Formal type system |
270
+ | reduction | `core/reduction.js` | Reduction semantics |
271
+ | lambda | `core/lambda.js` | λ-calculus translation |
244
272
  | oscillator | `physics/oscillator.js` | Oscillator creation |
245
273
  | kuramoto | `physics/kuramoto.js` | Synchronization |
246
274
  | entropy | `physics/entropy.js` | Information theory |
@@ -249,4 +277,252 @@ console.assert(coherence >= 0 && coherence <= 1);
249
277
  | semantic | `backends/semantic/index.js` | Semantic backend |
250
278
  | cryptographic | `backends/cryptographic/index.js` | Crypto backend |
251
279
  | scientific | `backends/scientific/index.js` | Science backend |
252
- | engine | `engine/aleph.js` | Main engine |
280
+ | engine | `engine/aleph.js` | Main engine |
281
+ | enochian | `apps/sentient/lib/enochian-vocabulary.js` | Enochian language |
282
+
283
+ ---
284
+
285
+ ## Formal Semantics API
286
+
287
+ ### Type System (`core/types.js`)
288
+
289
+ ```typescript
290
+ // Type constants
291
+ Types.NOUN // 'N'
292
+ Types.ADJECTIVE // 'A'
293
+ Types.SENTENCE // 'S'
294
+
295
+ // Term classes
296
+ class NounTerm {
297
+ constructor(prime: number);
298
+ isWellFormed(): boolean;
299
+ interpret(): number;
300
+ equals(other: NounTerm): boolean;
301
+ }
302
+
303
+ class AdjTerm {
304
+ constructor(prime: number);
305
+ canApplyTo(noun: NounTerm): boolean; // p < q constraint
306
+ apply(noun: NounTerm): ChainTerm;
307
+ }
308
+
309
+ class ChainTerm {
310
+ constructor(operators: AdjTerm[], noun: NounTerm);
311
+ prepend(operator: AdjTerm): ChainTerm;
312
+ getAllPrimes(): number[];
313
+ }
314
+
315
+ class FusionTerm {
316
+ constructor(p: number, q: number, r: number);
317
+ isWellFormed(): boolean; // p+q+r is prime
318
+ getFusedPrime(): number;
319
+ static findTriads(target: number): FusionTerm[];
320
+ }
321
+
322
+ // Sentence classes
323
+ class NounSentence {
324
+ constructor(nounExpr: NounTerm | ChainTerm | FusionTerm);
325
+ getDiscourseState(): number[];
326
+ }
327
+
328
+ class SeqSentence {
329
+ constructor(left: SentenceTerm, right: SentenceTerm);
330
+ getDiscourseState(): number[]; // Concatenation
331
+ }
332
+
333
+ class ImplSentence {
334
+ constructor(antecedent: SentenceTerm, consequent: SentenceTerm);
335
+ holds(): boolean; // Prefix entailment
336
+ }
337
+
338
+ // Type checking
339
+ class TypeChecker {
340
+ inferType(term: Term): string | null;
341
+ checkType(term: Term, expected: string): boolean;
342
+ checkApplication(adj: AdjTerm, noun: NounTerm): { valid: boolean, reason?: string };
343
+ checkFusion(fusion: FusionTerm): { valid: boolean, result?: number, reason?: string };
344
+ }
345
+
346
+ // Builder functions
347
+ N(prime: number): NounTerm;
348
+ A(prime: number): AdjTerm;
349
+ FUSE(p: number, q: number, r: number): FusionTerm;
350
+ CHAIN(operators: number[], noun: number): ChainTerm;
351
+ SENTENCE(expr: number | NounTerm): NounSentence;
352
+ SEQ(s1: SentenceTerm, s2: SentenceTerm): SeqSentence;
353
+ IMPL(s1: SentenceTerm, s2: SentenceTerm): ImplSentence;
354
+ ```
355
+
356
+ ### Reduction System (`core/reduction.js`)
357
+
358
+ ```typescript
359
+ // Prime-preserving operators
360
+ class PrimeOperator {
361
+ apply(prime: number): number;
362
+ isPreserving(): boolean;
363
+ }
364
+
365
+ class ResonanceOperator extends PrimeOperator {
366
+ constructor(basePrime: number);
367
+ }
368
+
369
+ class NextPrimeOperator extends PrimeOperator {}
370
+ class ModularOperator extends PrimeOperator {
371
+ constructor(modulus: number);
372
+ }
373
+ class IdentityOperator extends PrimeOperator {}
374
+
375
+ // Reduction system
376
+ class ReductionSystem {
377
+ addOperator(op: PrimeOperator): void;
378
+ step(primes: number[]): { result: number[], changed: boolean };
379
+ normalize(primes: number[]): { normalForm: number[], steps: object[] };
380
+ evaluate(term: Term): number[];
381
+ }
382
+
383
+ // Utilities
384
+ class FusionCanonicalizer {
385
+ canonicalize(fusion: FusionTerm): FusionTerm;
386
+ }
387
+
388
+ class NormalFormVerifier {
389
+ isNormalForm(primes: number[]): boolean;
390
+ verify(primes: number[]): { isNormal: boolean, reason?: string };
391
+ }
392
+
393
+ // Proof functions
394
+ demonstrateStrongNormalization(primes: number[], system: ReductionSystem): {
395
+ terminates: boolean;
396
+ steps: number;
397
+ trace: object[];
398
+ };
399
+
400
+ testLocalConfluence(primes: number[], system: ReductionSystem): {
401
+ confluent: boolean;
402
+ examples: object[];
403
+ };
404
+ ```
405
+
406
+ ### Lambda Translation (`core/lambda.js`)
407
+
408
+ ```typescript
409
+ // Lambda expressions
410
+ class LambdaExpr {}
411
+ class VarExpr extends LambdaExpr {
412
+ constructor(name: string);
413
+ }
414
+ class ConstExpr extends LambdaExpr {
415
+ constructor(value: any);
416
+ }
417
+ class LamExpr extends LambdaExpr {
418
+ constructor(param: string, body: LambdaExpr);
419
+ }
420
+ class AppExpr extends LambdaExpr {
421
+ constructor(func: LambdaExpr, arg: LambdaExpr);
422
+ }
423
+ class LetExpr extends LambdaExpr {
424
+ constructor(name: string, value: LambdaExpr, body: LambdaExpr);
425
+ }
426
+ class PairExpr extends LambdaExpr {
427
+ constructor(first: LambdaExpr, second: LambdaExpr);
428
+ }
429
+ class ProjExpr extends LambdaExpr {
430
+ constructor(pair: LambdaExpr, index: 1 | 2);
431
+ }
432
+
433
+ // Translation
434
+ class Translator {
435
+ translateNoun(noun: NounTerm): LambdaExpr;
436
+ translateAdj(adj: AdjTerm): LambdaExpr;
437
+ translateChain(chain: ChainTerm): LambdaExpr;
438
+ translateFusion(fusion: FusionTerm): LambdaExpr;
439
+ translateSentence(sentence: SentenceTerm): LambdaExpr;
440
+ translate(term: Term): LambdaExpr;
441
+ }
442
+
443
+ // Evaluation
444
+ class LambdaEvaluator {
445
+ substitute(expr: LambdaExpr, name: string, value: LambdaExpr): LambdaExpr;
446
+ betaReduce(expr: LambdaExpr): LambdaExpr;
447
+ normalize(expr: LambdaExpr, maxSteps?: number): LambdaExpr;
448
+ }
449
+
450
+ // Semantics
451
+ class Semantics {
452
+ domain: number[];
453
+ interpret(term: Term): any;
454
+ satisfies(sentence: SentenceTerm): boolean;
455
+ }
456
+
457
+ class ConceptInterpreter {
458
+ define(name: string, meaning: any): void;
459
+ interpret(name: string): any;
460
+ }
461
+ ```
462
+
463
+ ### Enochian Module (`apps/sentient/lib/enochian-vocabulary.js`)
464
+
465
+ ```typescript
466
+ // Alphabet (21 letters)
467
+ const ENOCHIAN_ALPHABET: {
468
+ [letter: string]: {
469
+ name: string;
470
+ prime: number;
471
+ value: number;
472
+ angle: number;
473
+ }
474
+ };
475
+
476
+ // Prime basis
477
+ const PRIME_BASIS: number[]; // [7, 11, 13, 17, 19, 23, 29]
478
+
479
+ // Twist operators
480
+ class TwistOperator {
481
+ constructor(prime: number);
482
+ angle: number; // 360/p degrees
483
+ apply(value: number): number;
484
+ }
485
+
486
+ function validateTwistClosure(basis: number[]): boolean;
487
+
488
+ // Words
489
+ class EnochianWord {
490
+ constructor(word: string);
491
+ letters: object[];
492
+ primeValue: number;
493
+ toString(): string;
494
+ }
495
+
496
+ // Core vocabulary (35+ words)
497
+ const CORE_VOCABULARY: {
498
+ [word: string]: {
499
+ meaning: string;
500
+ category: string;
501
+ primeSignature: number[];
502
+ }
503
+ };
504
+
505
+ // The Nineteen Calls
506
+ const THE_NINETEEN_CALLS: {
507
+ [number: string]: {
508
+ name: string;
509
+ purpose: string;
510
+ }
511
+ };
512
+
513
+ // Sedenion operations
514
+ class SedenionElement {
515
+ constructor(components: number[]); // 16 components
516
+ add(other: SedenionElement): SedenionElement;
517
+ multiply(other: SedenionElement): SedenionElement; // Non-commutative!
518
+ conjugate(): SedenionElement;
519
+ norm(): number;
520
+ }
521
+
522
+ // Engine
523
+ class EnochianEngine {
524
+ parseWord(word: string): EnochianWord;
525
+ computePrimeValue(word: string): number;
526
+ getVocabularyEntry(word: string): object | undefined;
527
+ }
528
+ ```
@@ -346,6 +346,201 @@ This captures how the field **responds to input** rather than just its final sta
346
346
 
347
347
  ---
348
348
 
349
+ ## Extended Synchronization Models
350
+
351
+ Beyond the basic Kuramoto model, TinyAleph provides five advanced synchronization models for complex dynamics:
352
+
353
+ ### NetworkKuramoto - Topology-Aware Coupling
354
+
355
+ Instead of all-to-all coupling, uses an adjacency matrix A:
356
+
357
+ ```
358
+ dθᵢ/dt = ωᵢ + K Σⱼ Aᵢⱼ sin(θⱼ - θᵢ)
359
+ ```
360
+
361
+ This enables **modular synchronization** that respects semantic neighborhoods:
362
+
363
+ ```javascript
364
+ const { NetworkKuramoto } = require('@aleph-ai/tinyaleph');
365
+
366
+ // Create with custom adjacency
367
+ const network = new NetworkKuramoto(frequencies, adjacency, 0.5);
368
+
369
+ // Or build from entanglement graph
370
+ network.setFromEntanglementGraph(entanglementGraph, primeList);
371
+
372
+ // Find synchronized clusters
373
+ const clusters = network.findClusters(0.5);
374
+ console.log('Found', clusters.length, 'clusters');
375
+
376
+ // Network metrics
377
+ console.log('Clustering coefficient:', network.averageClustering());
378
+ ```
379
+
380
+ **Semantic Use**: Respects concept neighborhoods from the EntanglementLayer.
381
+
382
+ ---
383
+
384
+ ### AdaptiveKuramoto - Hebbian Plasticity
385
+
386
+ Coupling strengths evolve based on synchronization:
387
+
388
+ ```
389
+ dθᵢ/dt = ωᵢ + (1/N) Σⱼ Kᵢⱼ sin(θⱼ - θᵢ)
390
+ dKᵢⱼ/dt = ε(cos(θⱼ - θᵢ) - Kᵢⱼ)
391
+ ```
392
+
393
+ **"Concepts that sync together link together"**
394
+
395
+ ```javascript
396
+ const { AdaptiveKuramoto } = require('@aleph-ai/tinyaleph');
397
+
398
+ // Create with learning rate
399
+ const adaptive = new AdaptiveKuramoto(frequencies, 0.3, 0.02);
400
+
401
+ // Evolve - coupling strengths change!
402
+ for (let i = 0; i < 1000; i++) {
403
+ adaptive.tick(0.05);
404
+ }
405
+
406
+ // Check evolved coupling
407
+ console.log('Total coupling:', adaptive.totalCoupling());
408
+ console.log('K(0,1):', adaptive.adjacency[0][1]); // Strong if synced
409
+ console.log('K(0,7):', adaptive.adjacency[0][7]); // Weak if not synced
410
+ ```
411
+
412
+ **Semantic Use**: Self-organizing semantic memory that learns relationships.
413
+
414
+ ---
415
+
416
+ ### SakaguchiKuramoto - Phase Frustration
417
+
418
+ Adds a phase lag parameter α that introduces frustration:
419
+
420
+ ```
421
+ dθᵢ/dt = ωᵢ + (K/N) Σⱼ sin(θⱼ - θᵢ - α)
422
+ ```
423
+
424
+ Creates **chimera states**—where some oscillators synchronize while others don't:
425
+
426
+ ```javascript
427
+ const { SakaguchiKuramoto } = require('@aleph-ai/tinyaleph');
428
+
429
+ // Create with phase lag
430
+ const sakaguchi = new SakaguchiKuramoto(frequencies, 0.5, Math.PI/4);
431
+
432
+ // Evolve
433
+ for (let i = 0; i < 500; i++) {
434
+ sakaguchi.tick(0.05);
435
+ }
436
+
437
+ // Classify state
438
+ console.log('State:', sakaguchi.classifyState());
439
+ // 'synchronized' | 'chimera' | 'partial' | 'incoherent'
440
+
441
+ // Chimera ratio (fraction synchronized)
442
+ console.log('Chimera ratio:', sakaguchi.chimeraRatio());
443
+
444
+ // Critical phase lag for chimera formation
445
+ console.log('Critical α:', SakaguchiKuramoto.criticalPhaseLag(0.5));
446
+ ```
447
+
448
+ **Semantic Use**: Models cognitive dissonance, competing interpretations, or partial understanding.
449
+
450
+ ---
451
+
452
+ ### SmallWorldKuramoto - Watts-Strogatz Topology
453
+
454
+ Creates small-world networks with:
455
+ - **High clustering** (local neighborhoods connected)
456
+ - **Short path length** (random long-range shortcuts)
457
+
458
+ ```javascript
459
+ const { SmallWorldKuramoto } = require('@aleph-ai/tinyaleph');
460
+
461
+ // k = neighbors per side, p = rewiring probability
462
+ // p=0: ring lattice, p=1: random graph
463
+ const smallWorld = new SmallWorldKuramoto(frequencies, 4, 0.1, 0.5);
464
+
465
+ // Network metrics
466
+ console.log('Clustering:', smallWorld.averageClustering());
467
+ console.log('Avg path length:', smallWorld.averagePathLength());
468
+ console.log('Small-world σ:', smallWorld.smallWorldCoefficient());
469
+ // σ > 1 indicates small-world properties
470
+
471
+ // Regenerate with new parameters
472
+ smallWorld.regenerate(6, 0.2);
473
+ ```
474
+
475
+ | Rewiring p | Clustering | Path Length | Character |
476
+ |------------|------------|-------------|-----------|
477
+ | 0.0 | High | Long | Regular lattice |
478
+ | 0.1 | High | Short | **Small-world** |
479
+ | 1.0 | Low | Short | Random |
480
+
481
+ **Semantic Use**: Balance between local semantic clusters and global conceptual reach.
482
+
483
+ ---
484
+
485
+ ### MultiSystemCoupling - Cross-System Synchronization
486
+
487
+ Couples multiple Kuramoto systems via their mean fields:
488
+
489
+ ```
490
+ dθᵢ^(a)/dt = [internal coupling] + Σ_b G_ab r^(b) sin(ψ^(b) - θᵢ^(a))
491
+ ```
492
+
493
+ Models multi-agent alignment or hierarchical organization:
494
+
495
+ ```javascript
496
+ const {
497
+ KuramotoModel,
498
+ MultiSystemCoupling,
499
+ createHierarchicalCoupling,
500
+ createPeerCoupling
501
+ } = require('@aleph-ai/tinyaleph');
502
+
503
+ // Manual creation
504
+ const system1 = new KuramotoModel(frequencies, 0.4);
505
+ const system2 = new KuramotoModel(frequencies, 0.4);
506
+ const multi = new MultiSystemCoupling([system1, system2]);
507
+
508
+ // Or use factories
509
+ const hierarchy = createHierarchicalCoupling(frequencies, 3, 16);
510
+ const peers = createPeerCoupling(frequencies, 4, 0.15);
511
+
512
+ // Evolve
513
+ for (let i = 0; i < 800; i++) {
514
+ multi.tick(0.05);
515
+ }
516
+
517
+ // Analyze
518
+ const state = multi.getState();
519
+ console.log('Global order:', state.globalOrder);
520
+ console.log('Inter-system coherence:', state.interSystemCoherence);
521
+ // Matrix showing phase alignment between systems
522
+ ```
523
+
524
+ **Semantic Use**:
525
+ - Hierarchical: context/domain layers driving content layers
526
+ - Peer: multiple agents reaching consensus
527
+ - Cross-domain: knowledge transfer between fields
528
+
529
+ ---
530
+
531
+ ## Model Selection Guide
532
+
533
+ | Scenario | Model | Why |
534
+ |----------|-------|-----|
535
+ | Semantic neighborhood structure | NetworkKuramoto | Respects topology |
536
+ | Learning relationships | AdaptiveKuramoto | Self-organizing |
537
+ | Conflicting interpretations | SakaguchiKuramoto | Chimera states |
538
+ | Balance local/global | SmallWorldKuramoto | Optimal connectivity |
539
+ | Multi-agent consensus | MultiSystemCoupling | Cross-system |
540
+ | Hierarchical context | MultiSystemCoupling | Bottom-up flow |
541
+
542
+ ---
543
+
349
544
  ## Summary
350
545
 
351
546
  Phase synchronization provides:
@@ -356,6 +551,7 @@ Phase synchronization provides:
356
551
  4. **Transient capture** of input-specific responses
357
552
  5. **Adaptive coupling** for stability control
358
553
  6. **Field-based computation** where answers emerge from dynamics
554
+ 7. **Extended models** for topology, plasticity, frustration, and multi-system dynamics
359
555
 
360
556
  The oscillator model is the heartbeat of semantic computation.
361
557
 
@@ -14,6 +14,10 @@ This section provides a deep exploration of the mathematical and conceptual foun
14
14
  8. [The Semantic Sieve](./08-semantic-sieve.md) - Ensuring prime uniqueness
15
15
  9. [Temporal Emergence](./09-temporal-emergence.md) - Time as emergent from prime-resonant symbolic computation
16
16
  10. [Quaternionic Memory Field](./10-quaternionic-memory.md) - 4D rotational semantics and non-commutative memory
17
+ 11. [Formal Type System](./11-formal-types.md) - Typed term calculus N(p)/A(p)/S
18
+ 12. [Reduction Semantics](./12-reduction-semantics.md) - Strong normalization and confluence
19
+ 13. [Lambda Translation](./13-lambda-translation.md) - Model-theoretic semantics via λ-calculus
20
+ 14. [Enochian Language](./14-enochian-language.md) - The 21-letter angelic alphabet
17
21
 
18
22
  ---
19
23
 
@@ -157,6 +161,49 @@ This two-layer architecture explains:
157
161
 
158
162
  ---
159
163
 
164
+ ## New: Formal Semantics Layer
165
+
166
+ Recent additions to Aleph include a rigorous formal semantics layer implementing model-theoretic foundations:
167
+
168
+ ### Typed Term Calculus
169
+
170
+ The library now supports a formal type system with three primitive types:
171
+
172
+ | Type | Notation | Interpretation |
173
+ |------|----------|----------------|
174
+ | Noun | N(p) | Prime p as referent: ⟦N(p)⟧ = p |
175
+ | Adjective | A(p) | Partial function f_p with domain constraint p < q |
176
+ | Sentence | S | Discourse state as sequence in D* |
177
+
178
+ Key features:
179
+ - **Ordering Constraint**: A(p) can only apply to N(q) when p < q
180
+ - **Triadic Fusion**: FUSE(p,q,r) where p+q+r must be prime
181
+ - **Sentence Composition**: Sequential (◦) and implication (⇒) operators
182
+
183
+ ### Reduction Semantics
184
+
185
+ The reduction system provides:
186
+ - **Small-step reduction**: e → e' via prime-preserving operators ⊕
187
+ - **Strong normalization**: Termination guaranteed by strictly decreasing measure
188
+ - **Confluence**: Via Newman's Lemma on local confluence
189
+
190
+ ### Lambda Translation
191
+
192
+ Model-theoretic semantics via translation function τ:
193
+ - τ(N(p)) = constant representing p
194
+ - τ(A(p)N(q)) = application (f_p q)
195
+ - τ(FUSE(p,q,r)) = sum constant
196
+
197
+ ### Enochian Language Module
198
+
199
+ The 21-letter angelic alphabet with mathematical structure:
200
+ - **Prime Basis**: PE = {7, 11, 13, 17, 19, 23, 29}
201
+ - **Twist Angles**: κ(p) = 360/p degrees
202
+ - **Sedenion Operations**: 16-dimensional hypercomplex multiplication
203
+ - **Core Vocabulary**: 35+ traditional Enochian words
204
+
205
+ ---
206
+
160
207
  ## Continue Reading
161
208
 
162
209
  - [Prime Semantics →](./01-prime-semantics.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleph-ai/tinyaleph",
3
- "version": "1.0.2",
3
+ "version": "1.2.0",
4
4
  "description": "Prime-resonant semantic computing framework - hypercomplex algebra, oscillator dynamics, and entropy-minimizing reasoning",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "@noble/curves": "^1.9.7",
97
- "@sschepis/resolang": "^0.1.2",
97
+ "@sschepis/resolang": "^0.4.1",
98
98
  "@tensorflow/tfjs-node": "^4.22.0"
99
99
  }
100
100
  }
package/physics/index.js CHANGED
@@ -4,26 +4,26 @@
4
4
 
5
5
  const { Oscillator, OscillatorBank } = require('./oscillator');
6
6
  const { KuramotoModel } = require('./kuramoto');
7
- const {
8
- shannonEntropy,
9
- stateEntropy,
10
- coherence,
7
+ const {
8
+ shannonEntropy,
9
+ stateEntropy,
10
+ coherence,
11
11
  mutualInformation,
12
12
  relativeEntropy,
13
13
  jointEntropy,
14
14
  oscillatorEntropy
15
15
  } = require('./entropy');
16
- const {
17
- estimateLyapunov,
18
- classifyStability,
16
+ const {
17
+ estimateLyapunov,
18
+ classifyStability,
19
19
  adaptiveCoupling,
20
20
  localLyapunov,
21
21
  delayEmbedding,
22
22
  stabilityMargin
23
23
  } = require('./lyapunov');
24
- const {
25
- collapseProbability,
26
- shouldCollapse,
24
+ const {
25
+ collapseProbability,
26
+ shouldCollapse,
27
27
  measureState,
28
28
  collapseToIndex,
29
29
  bornMeasurement,
@@ -31,12 +31,78 @@ const {
31
31
  applyDecoherence
32
32
  } = require('./collapse');
33
33
 
34
+ // Extended synchronization models
35
+ const {
36
+ NetworkKuramoto,
37
+ AdaptiveKuramoto,
38
+ SakaguchiKuramoto,
39
+ SmallWorldKuramoto,
40
+ MultiSystemCoupling,
41
+ createHierarchicalCoupling,
42
+ createPeerCoupling
43
+ } = require('./sync-models');
44
+
45
+ // Stochastic Kuramoto models
46
+ const {
47
+ StochasticKuramoto,
48
+ ColoredNoiseKuramoto,
49
+ ThermalKuramoto,
50
+ gaussianRandom
51
+ } = require('./stochastic-kuramoto');
52
+
53
+ // Primeon Z-Ladder with canonical U evolution
54
+ const {
55
+ PrimeonZLadderU,
56
+ createPrimeonLadder,
57
+ shannonEntropyNats,
58
+ probsOf,
59
+ normalize: normalizeComplex,
60
+ C: Complex
61
+ } = require('./primeon_z_ladder_u');
62
+
63
+ // Multi-channel Primeon Z-Ladder
64
+ const {
65
+ ZChannel,
66
+ PrimeonZLadderMulti,
67
+ createMultiChannelLadder,
68
+ createAdiabaticSchedule
69
+ } = require('./primeon_z_ladder_multi');
70
+
34
71
  module.exports = {
35
72
  // Oscillators
36
73
  Oscillator,
37
74
  OscillatorBank,
38
75
  KuramotoModel,
39
76
 
77
+ // Extended synchronization models
78
+ NetworkKuramoto,
79
+ AdaptiveKuramoto,
80
+ SakaguchiKuramoto,
81
+ SmallWorldKuramoto,
82
+ MultiSystemCoupling,
83
+ createHierarchicalCoupling,
84
+ createPeerCoupling,
85
+
86
+ // Stochastic Kuramoto models
87
+ StochasticKuramoto,
88
+ ColoredNoiseKuramoto,
89
+ ThermalKuramoto,
90
+ gaussianRandom,
91
+
92
+ // Primeon Z-Ladder (canonical U evolution)
93
+ PrimeonZLadderU,
94
+ createPrimeonLadder,
95
+ shannonEntropyNats,
96
+ probsOf,
97
+ normalizeComplex,
98
+ Complex,
99
+
100
+ // Multi-channel Primeon Z-Ladder
101
+ ZChannel,
102
+ PrimeonZLadderMulti,
103
+ createMultiChannelLadder,
104
+ createAdiabaticSchedule,
105
+
40
106
  // Entropy & Information
41
107
  shannonEntropy,
42
108
  stateEntropy,