Boolean programs
Forward and backward chaining over discrete facts and rules for tasks that require explicit deductions.
Research note / TL—001
Working thesis · Public implementationTensor Logic studies how facts, relations, constraints, and learned representations can be expressed through tensor equations—so parts of a reasoning process can be composed, scored, and tested outside free-form language generation.
Working thesis / 01
01Language models are powerful systems for prediction and synthesis. Yet when a task depends on named relations, multi-step composition, or hard constraints, the structure supporting an answer may remain implicit in generated text.
02Tensor Logic treats tensors as facts and learned relations, and equations as programs over them. The aim is not to replace language models, but to give selected parts of an agent system a representation that can be inspected and evaluated directly.
03Within MokenLogic, this makes Tensor Logic a candidate reasoning substrate between durable memory and model inference: memory preserves structured experience; tensor operations compose relevant relations; the language model interprets and communicates the result.
Minimal formalism / 02
In the public implementation, a relation can be represented by a learned matrix. Candidate triples are scored through a bilinear operation.
founded(Alice, Acme)develops(Acme, Atlas)The same general system can operate in strict Boolean settings or continuous, learnable settings. The exact guarantees depend on the chosen mode and data, not on the name Tensor Logic alone.
Public implementation / 03
Forward and backward chaining over discrete facts and rules for tasks that require explicit deductions.
Learn entity embeddings and relation matrices, then rank candidate subjects or objects with relation-aware scores.
A gated multi-hop composer can learn useful relation paths from examples rather than requiring every path to be written by hand.
RESCAL factorization is used experimentally to surface latent relational structure in a knowledge base.
Technical boundaries / 04
Find context similar to a query.
Composition and constraints live outside retrieval.
Store named entities and edges.
Inference needs rules, traversal, or a learned scorer.
Predict and synthesize flexible language.
The supporting relation path may remain implicit.
Compose and score explicit relation operators.
Requires a structured domain, entities, and relations.
Tensor Logic is not an open-ended search engine or a general free-form question-answering system. Structured queries, registered entities, candidate sets, and trained or defined relations remain part of the contract.
Public evidence / 05
The repository reports filtered link-prediction results for TensorLogic RESCAL on FB15k-237: 14,541 entities, 237 relations, and roughly 310,000 triples.
These numbers are evidence for this implementation and benchmark protocol. They are not evidence that the same performance transfers to open-domain agent memory, free-form reasoning, or a production workload.
MokenLogic / Tensor Logic