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.
Cognition in current LLMs rests on continuous vector spaces. It is powerful, but it has three structural weaknesses:
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.
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:
Once locked, the axioms cannot be modified. Humanistic gua texts and image commentaries are textual creation and may not alter the underlying mathematics.
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.”
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.
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.
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.
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.
| 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/
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