Use when implementing or extending Continuous Semantic Logic (CSL) — Heady's core geometric AI innovation using vector operations as logical gates. Covers CSL AND (cosine), OR (superposition), NOT (orthogonal projection), IMPLY (projection), XOR, CONSENSUS, GATE operations, plus HDC/VSA binding and bundling, MoE cosine routing, ternary logic, and mathematical proofs. 60+ provisional patents. All parameters use phi-continuous scaling. Keywords: CSL, Continuous Semantic Logic, geometric logic, vector logic, cosine gate, orthogonal projection, semantic NOT, HDC, hyperdimensional computing, VSA, vector symbolic, MoE router, ternary logic, Heady CSL, geometric AI, Sacred Geometry logic.
Use this skill when you need to:
Unit vectors in ℝᴰ, D ∈ {384, 1536}. Truth value: τ(a,b) = cos(θ) ∈ [-1, +1]
+1 = aligned (TRUE), 0 = orthogonal (UNKNOWN), -1 = antipodal (FALSE)
| Gate | Formula | Interpretation |
|---|---|---|
| AND |
| cos(a, b) = (a·b)/(‖a‖·‖b‖) |
| Semantic alignment measure |
| OR | normalize(a + b) | Superposition (soft union) |
| NOT | a - proj_b(a) = a - (a·b/‖b‖²)·b | Orthogonal projection (semantic negation) |
| IMPLY | proj_b(a) = (a·b/‖b‖²)·b | Component of a in direction of b |
| XOR | normalize(a+b) - proj_mutual | Exclusive components |
| CONSENSUS | Σ(wᵢ·vᵢ) / ‖Σ(wᵢ·vᵢ)‖ | Weighted centroid (agent agreement) |
| GATE | value × σ((cos - τ) / temp) | Soft sigmoid gating |
CSL_THRESHOLDS.MINIMUM ≈ 0.500 (noise floor)PHI_TEMPERATURE = ψ³ ≈ 0.236phiGATE(input, gateVec, level) uses phiThreshold(level)adaptiveGATE(input, gateVec, entropy, maxEntropy) auto-adjusts temperatureThree vector families supported:
Core operations:
BIND(a, b): Create compositional representationsBUNDLE(vectors): Aggregate (consensus/similarity)PERMUTE(a, n): Sequence encoding via cyclic shiftENCODE/DECODE: Map values to/from hypervectors via codebooksCapacity: ~96 items at D=384 (analytical estimate)
Cosine similarity routing instead of learned linear weights:
scores[i] = cos(input, expertGate[i])
probs = softmax(scores / temperature)
selected = topK(probs, k=fib(3)=2)
PHI_TEMPERATURE ≈ 0.236 (adaptive via entropy)ψ⁸ ≈ 0.0131ψ⁹ ≈ 0.0081(Math.random() - PSI) * PHIContinuous mapping to vector space:
Threshold: CSL_THRESHOLDS.MINIMUM ≈ 0.500
Five modes: Kleene K3, Łukasiewicz (bounded sum), Gödel, Product, CSL-continuous
CSL NOT achieves 100% semantic negation success vs 32% for probabilistic NOT. CSL routing is 5× faster than LLM classification (0.1s vs 0.59s), 43% cheaper.
(a NOT b) = a - (a·b)bsection5-csl-geometric/engine/csl-engine.jssection5-csl-geometric/engine/hdc-operations.jssection5-csl-geometric/engine/moe-csl-router.jssection5-csl-geometric/modules/ternary-logic.jssection5-csl-geometric/docs/csl-mathematical-proofs.mdsrc/vector-space-ops.js