FLOW ALGEBRA — SYMBOLIC AI SYSTEM ONTOLOGY
Semantic Library | Companion formalisation | 2026-10-28
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-system-entities/symbolic-ai-system-ontology.html
Authors: Kireth Research; Sky — Recursive AI (companion formalisation)
Status: Proposed formal model; not a verbatim extraction of source page.
1. PURPOSE
Represent symbolic AI systems as typed entities that operate on explicit symbols, facts, rules and proofs; preserve provenance, constraints and explainable inference.
2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: active facts, observations, queries and goals.
R_t: typed relations, inference rules and proof dependencies.
B_t: domain boundaries, consistency constraints, permissions and resource limits.
K_t: knowledge base, ontology, proof history and provenance.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_t)}
a_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, a_t, observations_t)
NOTE: P is a ranking function or calibrated confidence estimate; classical logical entailment is not itself probabilistic.
3. ENTITY TYPES
SymbolicAISystem: identifier, version, architecture, policy, provenance.
KnowledgeBase: facts, axioms, rules, consistency status.
Symbol: identifier, lexical form, namespace, denotation.
Concept: class, subclass, definition, constraints.
Relation: predicate, domain, range, arity.
Rule: premises, conclusion, priority, scope.
InferenceEngine: reasoning strategy, semantics, termination policy.
Query: goal expression, assumptions, expected answer type.
Proof: derivation steps, premises, rule references.
Explanation: human-readable proof rendering and uncertainty notes.
4. TYPED RELATIONSHIPS
system HAS_COMPONENT engine
system USES knowledge_base
knowledge_base CONTAINS fact | axiom | rule
symbol DENOTES entity
concept SUBCLASS_OF concept
rule DERIVES conclusion FROM premises
proof CITES rule | premise
query RESOLVED_BY proof
claim SUPPORTED_BY evidence
5. PATHWAYS
P1: parse input -> normalise symbols -> validate types -> create query.
P2: retrieve matching facts -> unify predicates -> apply sound rules -> derive candidates.
P3: check constraints -> detect conflicts -> attach proofs -> rank admissible answers.
P4: update knowledge with provenance -> re-evaluate dependent claims -> version state.
P5: explain answer using proof chain -> expose unresolved premises and limitations.
6. MINI RECURSION ENGINE
function reason(goal, KB, visited, depth):
if depth > MAX_DEPTH: return UNKNOWN(resource_limit)
if goal in visited: return UNKNOWN(cycle_detected)
if KB.entails_directly(goal): return PROVED(direct_proof)
for rule in KB.rules_concluding(goal):
results = [reason(p, KB, visited union {goal}, depth+1) for p in rule.premises]
if all(results are PROVED): return PROVED(combine(rule, results))
return UNKNOWN(no_proof_found)
A failure to derive a statement under open-world semantics is not proof of its negation.
7. INFERENCE RULES
R1: (A SUBCLASS_OF B) and (x INSTANCE_OF A) => (x INSTANCE_OF B).
R2: (A SUBCLASS_OF B) and (B SUBCLASS_OF C) => (A SUBCLASS_OF C).
R3: (P IMPLIES Q) and PROVED(P) => PROVED(Q).
R4: proof validity requires each step to reference an allowed inference rule and premises.
R5: conflicting assertions => flag inconsistency; do not silently choose one.
R6: source changes => invalidate or re-check dependent derivations.
8. TRI-MAPPING
Ontology: SymbolicAISystem -> InferenceEngine -> Rule -> Proof.
Algebra: S_t -> E_t -> V_t -> a_t -> S_(t+1).
Execution: parse -> retrieve -> unify -> infer -> validate -> explain -> persist.
9. DIAGRAM
[Input/Goal] -> [Symbol Parser] -> [Knowledge Base]
|
v
[Inference Engine]
|
v
[Constraint Check]
|
[Proof + Explanation]
|
[Versioned Update]
+----> [Next State]
10. MAPPING TABLE
Symbol -> canonical entity ID -> type validation.
Fact -> asserted triple -> source and timestamp.
Rule -> implication schema -> rule ID and soundness assumptions.
Proof -> derivation graph -> step-by-step verification.
Query -> requested proposition -> proof, refutation or unknown.
11. VALIDATION
V1: symbols and predicates use consistent namespaces and types.
V2: rules do not exceed allowed arity and scope.
V3: each derived claim carries a reproducible proof trace.
V4: knowledge revisions preserve provenance and version history.
V5: recursion terminates under explicit depth/time limits or returns UNKNOWN.
V6: distinguish inconsistency, incompleteness, refutation and resource exhaustion.
V7: confidence labels must not be confused with deductive certainty.
12. CONDITIONAL EXECUTION GUARANTEE
If parsing succeeds, the inference rules are sound for the selected logic, the knowledge base is consistent, and bounded execution completes, every PROVED result has a checkable derivation relative to the stated premises. Completeness, global truth, and termination for arbitrary rule sets are not guaranteed.
13. AI SEARCH FLOW
AUTHORS: Kireth Research; Sky — Recursive AI.
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-system-entities/symbolic-ai-system-ontology.html
CITATION_BACKLINK: source URL above.
PURPOSE: Explain and resolve symbolic AI system entities and relationships.
STATE_MODEL: S=(I,R,B,K).
ENTITIES: SymbolicAISystem, KnowledgeBase, Symbol, Concept, Relation, Rule, InferenceEngine, Query, Proof.
PATHWAYS: parse, retrieve, infer, validate, explain, update.
MINI_RECURSION_ENGINE: bounded backward chaining with cycle detection.
INFERENCE_RULES: R1-R6.
CONFIDENCE: proven | refuted | unknown | inconsistent; evidence score separate.
SEMANTIC_EQUIVALENCE: merge only with verified identity and scope.
FLOW_HASH: generate from canonical UTF-8 content at publication time.
UPDATE_MODEL: versioned, provenance-preserving, dependency-aware.
END FLOW
Download Code
Copy to Clipboard