Reasoning as Data: Representation-Computation Unity and Its Implementation in a Domain-Algebraic Inference Engine
Organizations: Northeast Normal University
Abstract
Every existing knowledge system separates storage from computation. We show this separation is unnecessary and eliminate it. In a standard triple is_a(Apple, Company), domain context lives in the query or the programmer's mind. In a CDC four-tuple is_a(Apple, Company, @Business), domain becomes a structural field embedded in predicate arity. Any system respecting arity automatically performs domain-scoped inference without external rules. We call this representation-computation unity (RCU). From the four-tuple structure, three inference mechanisms emerge: domain-scoped closure, typed inheritance, and write-time falsification via cycle detection per domain fiber. We establish RCU formally via four theorems. RCU is implementable. We present a working symbolic engine (2400 lines Python+Prolog) resolving four engineering issues: rule-data separation, shared-fiber handling, read-only meta-layer design, and intersective convergence. A central result: CDC domain-constrained inference is distinct from Prolog with a domain argument. Two case studies validate the engine. ICD-11 classification (1247 entities, 3 axes) shows fibers resolve multiple inheritance. CBT clinical reasoning shows generalization to temporal reasoning with session turn as ordered domain index. Multi-constraint queries realize CSP arc-consistency with complexity O(m (N/K)^2), confirming the domain lattice's sparsity governs performance. When domain is structural, data computes itself.
Figures & tables
| Database operation | Inference operation |
|---|---|
| INSERT {c, r, d, c’} | Assert a domain-scoped fact |
| SELECT WHERE domain=d | Query within a world |
| DELETE {c, r, d, c’} | Retract a belief |
| JOIN on domain | Compute transitive inference |
| FOREIGN KEY to meta-fiber | Enforce type constraint |
| Dimension | SQL | RDF | LLM | RAG | Neuro-Sym | CDC |
|---|---|---|---|---|---|---|
| Context location | Application code | Query clause | Prompt | Retrieval filter | Bridge code | Predicate arity |
| Rule location | Separate code | SPARQL query | Implicit in weights | LLM forward pass | Symbolic KB | Meta-fiber data |
| Verification | External validator | External validator | Self-consistency | Separate checker | Symbolic layer | Write-time check |
| Reasoning chain | Derived | Derived | Ephemeral | Ephemeral | Partial | Native data |
| Domain change cost | Schema migration | Ontology realignment | Retraining | Re-embedding | Manual update | New fiber |
| S/C separation | Yes | Yes | Yes | Yes | Yes | No |
| Property | Prolog + domain argument | CDC engine |
|---|---|---|
| Write-time constraint | None | Fiber consistency check on INSERT |
| Inheritance rules | Hardcoded in clause files | Stored in @Meta@Logic, runtime-queryable |
| Typing function | Not representable | Four-tuples in meta-fiber, modifiable as data |
| Domain lattice | String atom, no ordering | First-class partial order, drives reindexing |
| Data format | Prolog syntax, interpreter-bound | JSON, language-agnostic |
| Substrate | Symbolic only | Symbolic / neural / vector (same interface) |
| Constraints applied | Candidates | Reduction |
|---|---|---|
| 0 (full fiber) | 1,247 | — |
| fever | 89 | 93% |
| + productive_cough | 23 | 74% |
| + bilateral_infiltrates | 7 | 70% |
| + positive_culture | 4 | 43% |
| Operation | N=1,247 |
|---|---|
| Single fiber query | < 5ms |
| Transitive closure (within fiber) | < 20ms |
| Write with validation | < 10ms |
| Typed reindexing (full lattice) | < 200ms |
| OWL CDC migration | < 30s |
| Cross-domain bridge query | < 15ms |
| Metric | Value |
|---|---|
| Therapy stages traced | 5 |
| Negative patterns | 11 |
| Positive changes | 8 |
| Evidence balance ratio | 3.0 (positive:negative) |
| Correct temporal ordering | 100% |
| False contradiction insertions rejected | 100% |
Symbolic Reasoning
Symbolic reasoning uses explicit symbols, rules, and constraints to derive, verify, and explain conclusions across logic, mathematics, and planning.
See all 72 papers