@aleph-ai/tinyaleph 1.2.1 → 1.4.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.
- package/README.md +609 -13
- package/backends/bioinformatics/binding.js +503 -0
- package/backends/bioinformatics/dna-computing.js +664 -0
- package/backends/bioinformatics/encoding.js +339 -0
- package/backends/bioinformatics/folding.js +454 -0
- package/backends/bioinformatics/genetic-code.js +269 -0
- package/backends/bioinformatics/index.js +522 -0
- package/backends/bioinformatics/transcription.js +221 -0
- package/backends/bioinformatics/translation.js +264 -0
- package/backends/cryptographic/index.js +455 -2
- package/backends/index.js +25 -1
- package/core/beacon.js +735 -0
- package/core/compound.js +532 -0
- package/core/crt-homology.js +1004 -0
- package/core/enochian-vocabulary.js +910 -0
- package/core/enochian.js +744 -0
- package/core/errors.js +587 -0
- package/core/hilbert.js +1105 -2
- package/core/index.js +192 -13
- package/core/inference.js +605 -0
- package/core/lambda.js +284 -33
- package/core/logger.js +350 -0
- package/core/prime.js +136 -1
- package/core/quaternion-semantics.js +623 -0
- package/core/reduction.js +391 -1
- package/core/resonance.js +245 -616
- package/core/rformer-crt.js +892 -0
- package/core/symbols/archetypes.js +478 -0
- package/core/symbols/base.js +302 -0
- package/core/symbols/elements.js +487 -0
- package/core/symbols/hieroglyphs.js +303 -0
- package/core/symbols/iching.js +471 -0
- package/core/symbols/index.js +77 -0
- package/core/symbols/tarot.js +211 -0
- package/core/symbols.js +22 -0
- package/core/topology.js +655 -0
- package/docs/README.md +54 -0
- package/docs/design/BIOINFORMATICS_BACKEND_DESIGN.md +493 -0
- package/docs/guide/06-symbolic-ai.md +370 -0
- package/docs/guide/README.md +2 -1
- package/docs/reference/05-symbolic-ai.md +570 -0
- package/docs/reference/06-bioinformatics.md +546 -0
- package/docs/reference/07-topology.md +257 -0
- package/docs/reference/08-observer.md +421 -0
- package/docs/reference/09-crt-homology.md +369 -0
- package/docs/reference/README.md +32 -2
- package/docs/theory/11-prgraph-memory.md +559 -0
- package/docs/theory/12-resonant-attention.md +661 -0
- package/modular.js +264 -4
- package/package.json +1 -1
package/core/index.js
CHANGED
|
@@ -4,6 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
const { Hypercomplex } = require('./hypercomplex');
|
|
6
6
|
|
|
7
|
+
// CRT-Homology Module (Chinese Remainder Theorem + Birkhoff Attention + Homology Loss)
|
|
8
|
+
const {
|
|
9
|
+
extendedGCD,
|
|
10
|
+
modInverse,
|
|
11
|
+
areCoprime,
|
|
12
|
+
softmax,
|
|
13
|
+
ResidueEncoder,
|
|
14
|
+
CRTReconstructor,
|
|
15
|
+
BirkhoffProjector,
|
|
16
|
+
HomologyLoss,
|
|
17
|
+
CRTModularLayer,
|
|
18
|
+
CRTFusedAttention,
|
|
19
|
+
CoprimeSelector,
|
|
20
|
+
createCRTLayer,
|
|
21
|
+
createFusedAttention,
|
|
22
|
+
DEFAULT_PRIMES_SMALL,
|
|
23
|
+
DEFAULT_PRIMES_MEDIUM,
|
|
24
|
+
DEFAULT_PRIMES_SEMANTIC
|
|
25
|
+
} = require('./crt-homology');
|
|
26
|
+
|
|
7
27
|
// Formal Type System (mtspbc.pdf implementation)
|
|
8
28
|
const {
|
|
9
29
|
NounType, AdjType, SentenceType,
|
|
@@ -30,6 +50,11 @@ const {
|
|
|
30
50
|
Translator, TypeDirectedTranslator,
|
|
31
51
|
LambdaEvaluator, Semantics, ConceptInterpreter
|
|
32
52
|
} = require('./lambda');
|
|
53
|
+
|
|
54
|
+
// Enochian Packet Layer (Section 7.4)
|
|
55
|
+
const enochian = require('./enochian');
|
|
56
|
+
const enochianVocabulary = require('./enochian-vocabulary');
|
|
57
|
+
|
|
33
58
|
const {
|
|
34
59
|
FANO_LINES,
|
|
35
60
|
octonionMultiplyIndex,
|
|
@@ -53,20 +78,70 @@ const {
|
|
|
53
78
|
ResonanceOperators,
|
|
54
79
|
EntropyDrivenEvolution,
|
|
55
80
|
encodeMemory,
|
|
56
|
-
symbolicCompute
|
|
57
|
-
} = require('./hilbert');
|
|
58
|
-
|
|
59
|
-
// Prime Resonance Network components
|
|
60
|
-
const {
|
|
61
|
-
PHI, PHI_CONJ, DELTA_S,
|
|
81
|
+
symbolicCompute,
|
|
62
82
|
QuaternionPrime,
|
|
63
83
|
PrimeResonanceIdentity,
|
|
64
84
|
PhaseLockedRing,
|
|
65
85
|
HolographicField,
|
|
66
86
|
EntangledNode,
|
|
67
|
-
ResonantFragment
|
|
87
|
+
ResonantFragment,
|
|
88
|
+
DELTA_S
|
|
89
|
+
} = require('./hilbert');
|
|
90
|
+
|
|
91
|
+
// Golden Ratio Resonance (from symprime symbolic AI)
|
|
92
|
+
const {
|
|
93
|
+
ResonanceCalculator,
|
|
94
|
+
resonanceSignature,
|
|
95
|
+
findFibonacciSequences,
|
|
96
|
+
PHI,
|
|
97
|
+
PHI_THRESHOLD,
|
|
98
|
+
PHI_BONUS,
|
|
99
|
+
calculateResonance,
|
|
100
|
+
findGoldenPairs,
|
|
101
|
+
findMostResonant
|
|
68
102
|
} = require('./resonance');
|
|
69
103
|
|
|
104
|
+
// Symbol Database (200+ emoji symbols from symprime)
|
|
105
|
+
const {
|
|
106
|
+
SymbolDatabase,
|
|
107
|
+
SymbolCategory,
|
|
108
|
+
PrimeGenerator,
|
|
109
|
+
symbolDatabase,
|
|
110
|
+
getSymbol,
|
|
111
|
+
getSymbolByPrime,
|
|
112
|
+
search: searchSymbols,
|
|
113
|
+
encode: encodeSymbols,
|
|
114
|
+
decode: decodeSymbols
|
|
115
|
+
} = require('./symbols');
|
|
116
|
+
|
|
117
|
+
// Semantic Inference Engine (from symprime)
|
|
118
|
+
const {
|
|
119
|
+
SemanticInference,
|
|
120
|
+
EntityExtractor,
|
|
121
|
+
InferenceMethod,
|
|
122
|
+
semanticInference,
|
|
123
|
+
entityExtractor,
|
|
124
|
+
inferSymbol,
|
|
125
|
+
inferSymbols,
|
|
126
|
+
extractEntities,
|
|
127
|
+
extractAndInfer,
|
|
128
|
+
inferWithResonance,
|
|
129
|
+
inferMostResonant
|
|
130
|
+
} = require('./inference');
|
|
131
|
+
|
|
132
|
+
// Compound Builder (multi-symbol concepts from symprime)
|
|
133
|
+
const {
|
|
134
|
+
CompoundBuilder,
|
|
135
|
+
CompoundSymbol,
|
|
136
|
+
SymbolSequence,
|
|
137
|
+
compoundBuilder,
|
|
138
|
+
createCompound,
|
|
139
|
+
getCompound,
|
|
140
|
+
createSequence,
|
|
141
|
+
getSequence,
|
|
142
|
+
findCompoundsContaining
|
|
143
|
+
} = require('./compound');
|
|
144
|
+
|
|
70
145
|
// ResoFormer ML primitives
|
|
71
146
|
const {
|
|
72
147
|
Quaternion,
|
|
@@ -94,6 +169,14 @@ const {
|
|
|
94
169
|
ResoFormer
|
|
95
170
|
} = require('./rformer-layers');
|
|
96
171
|
|
|
172
|
+
// CRT-enhanced ResoFormer layers
|
|
173
|
+
const {
|
|
174
|
+
CRTResonantAttention,
|
|
175
|
+
HomologyRegularizedBlock,
|
|
176
|
+
CRTResoFormer,
|
|
177
|
+
createCRTResoFormer
|
|
178
|
+
} = require('./rformer-crt');
|
|
179
|
+
|
|
97
180
|
// Prime Entanglement Graph
|
|
98
181
|
const {
|
|
99
182
|
EntanglementEdge,
|
|
@@ -154,11 +237,6 @@ module.exports = {
|
|
|
154
237
|
EntropyDrivenEvolution,
|
|
155
238
|
encodeMemory,
|
|
156
239
|
symbolicCompute,
|
|
157
|
-
|
|
158
|
-
// Prime Resonance Network
|
|
159
|
-
PHI,
|
|
160
|
-
PHI_CONJ,
|
|
161
|
-
DELTA_S,
|
|
162
240
|
QuaternionPrime,
|
|
163
241
|
PrimeResonanceIdentity,
|
|
164
242
|
PhaseLockedRing,
|
|
@@ -166,6 +244,55 @@ module.exports = {
|
|
|
166
244
|
EntangledNode,
|
|
167
245
|
ResonantFragment,
|
|
168
246
|
|
|
247
|
+
// Constants
|
|
248
|
+
DELTA_S,
|
|
249
|
+
|
|
250
|
+
// Golden Ratio Resonance (symprime symbolic AI)
|
|
251
|
+
PHI,
|
|
252
|
+
PHI_THRESHOLD,
|
|
253
|
+
PHI_BONUS,
|
|
254
|
+
ResonanceCalculator,
|
|
255
|
+
resonanceSignature,
|
|
256
|
+
findFibonacciSequences,
|
|
257
|
+
calculateResonance,
|
|
258
|
+
findGoldenPairs,
|
|
259
|
+
findMostResonant,
|
|
260
|
+
|
|
261
|
+
// Symbol Database (symprime symbolic AI)
|
|
262
|
+
SymbolDatabase,
|
|
263
|
+
SymbolCategory,
|
|
264
|
+
PrimeGenerator,
|
|
265
|
+
symbolDatabase,
|
|
266
|
+
getSymbol,
|
|
267
|
+
getSymbolByPrime,
|
|
268
|
+
searchSymbols,
|
|
269
|
+
encodeSymbols,
|
|
270
|
+
decodeSymbols,
|
|
271
|
+
|
|
272
|
+
// Semantic Inference (symprime symbolic AI)
|
|
273
|
+
SemanticInference,
|
|
274
|
+
EntityExtractor,
|
|
275
|
+
InferenceMethod,
|
|
276
|
+
semanticInference,
|
|
277
|
+
entityExtractor,
|
|
278
|
+
inferSymbol,
|
|
279
|
+
inferSymbols,
|
|
280
|
+
extractEntities,
|
|
281
|
+
extractAndInfer,
|
|
282
|
+
inferWithResonance,
|
|
283
|
+
inferMostResonant,
|
|
284
|
+
|
|
285
|
+
// Compound Builder (symprime symbolic AI)
|
|
286
|
+
CompoundBuilder,
|
|
287
|
+
CompoundSymbol,
|
|
288
|
+
SymbolSequence,
|
|
289
|
+
compoundBuilder,
|
|
290
|
+
createCompound,
|
|
291
|
+
getCompound,
|
|
292
|
+
createSequence,
|
|
293
|
+
getSequence,
|
|
294
|
+
findCompoundsContaining,
|
|
295
|
+
|
|
169
296
|
// ResoFormer ML Primitives
|
|
170
297
|
Quaternion,
|
|
171
298
|
SparsePrimeState,
|
|
@@ -257,5 +384,57 @@ module.exports = {
|
|
|
257
384
|
TypeDirectedTranslator,
|
|
258
385
|
LambdaEvaluator,
|
|
259
386
|
Semantics,
|
|
260
|
-
ConceptInterpreter
|
|
387
|
+
ConceptInterpreter,
|
|
388
|
+
|
|
389
|
+
// Enochian Packet Layer (Section 7.4 - twist-based validation)
|
|
390
|
+
enochian,
|
|
391
|
+
enochianVocabulary,
|
|
392
|
+
ENOCHIAN_PRIMES: enochian.ENOCHIAN_PRIMES,
|
|
393
|
+
ENOCHIAN_MODES: enochian.MODES,
|
|
394
|
+
twistAngle: enochian.twistAngle,
|
|
395
|
+
totalTwist: enochian.totalTwist,
|
|
396
|
+
isTwistClosed: enochian.isTwistClosed,
|
|
397
|
+
findClosedSequences: enochian.findClosedSequences,
|
|
398
|
+
EnochianSymbol: enochian.EnochianSymbol,
|
|
399
|
+
EnochianPacket: enochian.EnochianPacket,
|
|
400
|
+
EnochianEncoder: enochian.EnochianEncoder,
|
|
401
|
+
EnochianDecoder: enochian.EnochianDecoder,
|
|
402
|
+
EnochianPacketBuilder: enochian.EnochianPacketBuilder,
|
|
403
|
+
EnhancedEnochianEncoder: enochian.EnhancedEnochianEncoder,
|
|
404
|
+
EnhancedEnochianDecoder: enochian.EnhancedEnochianDecoder,
|
|
405
|
+
// Enochian Vocabulary
|
|
406
|
+
ENOCHIAN_ALPHABET: enochianVocabulary.ENOCHIAN_ALPHABET,
|
|
407
|
+
PRIME_BASIS: enochianVocabulary.PRIME_BASIS,
|
|
408
|
+
CORE_VOCABULARY: enochianVocabulary.CORE_VOCABULARY,
|
|
409
|
+
THE_NINETEEN_CALLS: enochianVocabulary.THE_NINETEEN_CALLS,
|
|
410
|
+
EnochianWord: enochianVocabulary.EnochianWord,
|
|
411
|
+
EnochianCall: enochianVocabulary.EnochianCall,
|
|
412
|
+
EnochianEngine: enochianVocabulary.EnochianEngine,
|
|
413
|
+
SedenionElement: enochianVocabulary.SedenionElement,
|
|
414
|
+
TwistOperator: enochianVocabulary.TwistOperator,
|
|
415
|
+
validateTwistClosure: enochianVocabulary.validateTwistClosure,
|
|
416
|
+
|
|
417
|
+
// CRT-Homology Module (Coprime Modular Algebra + Birkhoff Polytope + Homology Loss)
|
|
418
|
+
extendedGCD,
|
|
419
|
+
modInverse,
|
|
420
|
+
areCoprime,
|
|
421
|
+
softmax,
|
|
422
|
+
ResidueEncoder,
|
|
423
|
+
CRTReconstructor,
|
|
424
|
+
BirkhoffProjector,
|
|
425
|
+
HomologyLoss,
|
|
426
|
+
CRTModularLayer,
|
|
427
|
+
CRTFusedAttention,
|
|
428
|
+
CoprimeSelector,
|
|
429
|
+
createCRTLayer,
|
|
430
|
+
createFusedAttention,
|
|
431
|
+
DEFAULT_PRIMES_SMALL,
|
|
432
|
+
DEFAULT_PRIMES_MEDIUM,
|
|
433
|
+
DEFAULT_PRIMES_SEMANTIC,
|
|
434
|
+
|
|
435
|
+
// CRT-enhanced ResoFormer (Birkhoff attention + Homology regularization)
|
|
436
|
+
CRTResonantAttention,
|
|
437
|
+
HomologyRegularizedBlock,
|
|
438
|
+
CRTResoFormer,
|
|
439
|
+
createCRTResoFormer
|
|
261
440
|
};
|