As continuous vector representations in large language models grow more powerful, do we still need a deterministic symbolic coordinate system? This article introduces a cognition layer reverse-engineered from the symbolic paradigm of the Yijing (I Ching), then migrated to a trinary nine-dimensional axiom system — a full space of 3^9 = 19,683 gua, 5,002 equivalence classes, a five-domain semantic bridge, and a 19,683-entry human gua canon, ultimately packaged as a cognition layer callable by LLMs and Agents.
1. Why a Symbolic Cognition Layer?
Cognition in current LLMs rests on continuous vector spaces. It is powerful, but it has three structural weaknesses:
- Not locatable — a situation has no determinate coordinate in vector space; similarity relies on implicit distance and is hard to audit.
- Not recomputable — the same sentence may land in different neighborhoods on two encodings; the reasoning path is not reproducible.
- Blurry generalization boundaries — "drawing inferences from one instance" depends on internal association, with no explicit neighborhood structure to support transfer.
Symbolic systems have the opposite profile: locatable, computable, auditable — but traditional symbolic AI is too rigid and lacks a continuous similarity measure.
The Trinary Nine-Dimensional 19683 Cognitive System takes the best of both: deterministic symbols provide a coordinate skeleton, and Euclidean distance provides a continuous neighborhood, enabling both localization and generalization at the same time.
2. The Axiomatic Skeleton
The system reverse-learns the symbolic modeling paradigm of the 64 hexagrams in the Yijing (binary six-yao, inversion/reversal/mutual/changing operators, gua equivalence classes, image-meaning mapping), but does not copy the binary rules. Instead, it migrates and locks a trinary nine-dimensional axiom system:
- Three yao states: yang (+1) = manifest, outward, generative; zhong (0, neutral) = mediating, coupling, potential equilibrium; yin (-1) = latent, inward, convergent.
- Nine-dimensional gua: G = [g₁, g₂, …, g₉], with g₁ the top yao and g₉ the bottom yao; each dimension ∈ {-1, 0, +1}.
- Full space: 3^9 = 19,683 gua.
-
Five operators:
- Inversion F_C: per-yao duality, F_C(+1) = -1, F_C(0) = 0;
- Reversal F_Z: sequence flip;
- Inversion-reversal F_CZ: reversal first, then inversion;
- Mutual-kernel F_H: inner projection, outputting a 5-dimensional central consecutive yao vector;
- Changing-yao F_B: F_B(+1) = 0, F_B(-1) = 0, F_B(0) = +1, supporting 1–9 yao moving simultaneously.
- Equivalence classes: {G, F_C(G), F_Z(G), F_CZ(G)}; after merging across the full space, 5,002 independent equivalence groups remain.
- Spatial distance: Euclidean distance D(G_A, G_B) = √Σ(g_Ai − g_Bi)², used for Top-N neighborhood retrieval.
Once locked, the axioms cannot be modified. Humanistic gua texts and image commentaries are textual creation and may not alter the underlying mathematics.
3. The Four-Layer Cognitive Engine
3.1 Coordinate Service: From Natural Language to 19,683-Gua Localization
Given a natural-language situation description, the system maps it to a target 9-dimensional vector, retrieves the Top-N nearest gua by Euclidean distance over all 19,683 states, and attaches the full set of inversion / reversal / mutual / changing-yao deductions. This layer answers "where am I now."
3.2 Five-Domain Semantic Bridge: Same Coordinate, Same Situation Across Domains
The system builds five semantic domains — essence-function-change, Luoshu nine-palace, Xiao Liu Ren, healing, and the human gua canon — all sharing the same 19,683 coordinates. The core hypothesis is that gua with the same index denote the same situation across domains. Sampled mechanical consistency is 12/12.
This means a situation located in the essence-function-change domain can directly find its corresponding healing direction in the healing domain, its corresponding time-position judgment in Xiao Liu Ren, and its corresponding deep interpretation in the human gua canon.
3.3 Neighborhood Generalization: From Localization to Transfer
After a known situation is localized, the system uses the deep gua-canon insights of its nearest neighbors to accomplish knowledge transfer. The 19,683-gua space is not a set of discrete islands but a continuous manifold connected by Euclidean distance — adjacent gua share similar structures, and their texts and interpretations form a transferable experience pool.
3.4 LLM Hybridization and the Agent Tool Layer
Symbols provide an auditable skeleton; the large model supplies semantic resolution and human-language interpretation. The system is packaged as an Agent-callable tool registry (encode / search / bridge / decide). During reasoning, the LLM can explicitly invoke the cognition layer for localization, cross-domain bridging, and neighborhood generalization, rather than relying entirely on implicit vectors.
4. The Human Gua Canon: From Symbols Back to Human Language
The cognition layer itself is a mother structure and mother language, but symbolic coordinates must be translatable into humanity's existing cognitive language to be useful. The system ships a 19,683-entry human gua canon, each entry containing a gua name, gua text, vernacular interpretation, and action guidance.
Interpretations are not written arbitrarily — they "grow out" of the gua's image-meaning: first the yao-state composition and operator structure derive an image-meaning skeleton, then the LLM translates it into human-readable language. This guarantees traceability between symbol and interpretation, preventing the canon from degenerating into free textual creation.
5. Open-Source Ecosystem
| Repository | Role |
|---|---|
| sanjiu-core | Axioms, operators, equivalence classes, full-space generation |
| sanjiu-ecosystem | Semantic bridge, generalization, LLM hybridization, Agent tools |
| sanjiu-nine | 19,683-gua cognitive space and poetry classification |
| sanjiu-apk-builder | One-click builder for trinary nine-dimensional poetry-classification APKs |
| Zenodo paper | Formal English publication, DOI: 10.5281/zenodo.23437930 |
Project homepage: https://q1z2q3-debug.github.io/sanjiu-19683/
6. Closing Thoughts
The Trinary Nine-Dimensional 19683 Cognitive System is not meant to replace large models. It adds, on top of the LLM, a symbolic coordinate layer that is locatable, generalizable, and auditable. It turns three questions — "where am I," "who is adjacent to me," "where can I transfer experience from" — from implicit vector association into explicit coordinate computation.
19,683 gua positions, 5,002 equivalence groups, five-domain co-judgment, a 19,683-entry canon — this is a cognitive space still growing. Contributions are welcome.
Author: RUNZEAI · Trinary Nine-Dimensional 19683 Cognitive System · Open source MIT / CC-BY-4.0
Top comments (0)