Skip to main content

Multi-Hop Reasoning Entity Ontology

Reasoning Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
MULTI-HOP REASONING ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Reasoning Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/reasoning-entities/multi-hop-reasoning-entity-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Companion formalisation, version 1.0 | 2 November 2026
NOTE: The public page names the ontology but does not expose the full underlying code. This is an independently constructed companion formalisation, not a verbatim extraction or an execution guarantee.

01. PURPOSE
Represent and validate a multi-hop reasoning process that links evidence, entities, relations, and intermediate conclusions across two or more justified inference steps.

02. ENTITY DEFINITION
MultiHopReasoningEntity M = (id, question, start, goal, G, H, C, P, V, provenance)
G=(N,E) is a typed evidence/knowledge graph; H is a sequence of hops; C is the active constraint set; P is the path set; V is the verification state.

03. STATE MODEL
S_t=(I_t,R_t,B_t,K_t)
I_t = current question, frontier, intermediate results and observations
R_t = inference rules and admissible edge semantics
B_t = scope, permissions, hop limits, evidence thresholds and safety boundaries
K_t = available graph facts, source metadata, confidence and unresolved contradictions

04. INPUTS
INPUT(question, graph, starting_entities, target_condition, rule_set, boundaries, evidence_sources)
Every factual edge must carry a source reference or be marked as an assumption/derived claim.

05. FORMAL FLOW
E_t = expand(I_t,R_t)
V_t = {x in E_t | satisfies(x,B_t) AND supported(x,K_t)}
x* = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t)
I_(t+1) = update(I_t,x*)
Stop at verified goal, exhausted frontier, conflict, or resource boundary.
The ranking expression is a selection rule, not a claim that the probabilities are calibrated.

06. HOP DEFINITION
h_i=(subject_i,predicate_i,object_i,rule_i,evidence_i,confidence_i)
connect(h_i,h_(i+1)) requires object_i to match or validly map to subject_(i+1), or an explicit bridging rule.
A hop cannot turn correlation into causation without causal evidence.

07. PATH COMPOSITION
P=(h_1,...,h_n), n>=2
Valid(P) = AND_i Valid(h_i) AND AND_i Compatible(h_i,h_(i+1))
Conclusion(P) = compose(h_1,...,h_n) only if composition rules are licensed by R.

08. RELATION SEMANTICS
Typed relations include is_a, part_of, located_in, derived_from, implies, supports, contradicts, precedes and causes.
Transitivity is relation-specific: is_a may be transitive under suitable semantics; related_to and causes must not be composed indiscriminately.

09. FRONTIER EXPANSION
F_0 = starting_entities
F_(t+1) = admissible_neighbours(F_t,G,R,B) minus visited_states
Maintain a visited set keyed by (entity, relevant_context, rule_state) to prevent unproductive cycles.

10. INFERENCE RULES
R1: IF supported(A,r,B) AND licensed_transitive(r) AND supported(B,r,C) THEN derive(A,r,C).
R2: IF A implies B AND B implies C under compatible premises THEN A implies C.
R3: IF evidence contradicts an intermediate premise THEN mark dependent conclusions disputed.
R4: IF a required bridge is absent THEN label the path incomplete; do not infer the bridge.
R5: IF the goal is satisfied by a verified path THEN return conclusion plus complete evidence trail.

11. CONFIDENCE
Per-hop confidence c_i is recorded with provenance and calibration status.
Path confidence cannot be obtained by multiplying c_i unless independence and probabilistic interpretation are justified.
Use conservative aggregation or an explicitly defined calibrated model; preserve uncertainty.

12. RECURSIVE ENGINE
REASON(state,depth):
  if goal_verified(state): return verified_result
  if depth>=max_hops or frontier_empty(state): return unresolved_result
  candidates = filter(expand(state), boundaries, provenance)
  for candidate in rank(candidates):
    result = REASON(update(state,candidate),depth+1)
    if result is verified: return result
  return unresolved_result
This is a conceptual operational description; runtime implementation requires explicit algorithms and data structures.

13. TRI-MAPPING
Entity mapping: question concepts -> graph nodes and typed relations
Process mapping: search frontier -> candidate hop -> verification -> next frontier
Evidence mapping: each hop -> source -> claim -> confidence -> final justification

14. MAPPING TABLE
Question       | query/target condition | reasoning goal
Knowledge node | graph entity           | intermediate concept
Knowledge edge | typed relationship     | permitted inference link
Reasoning hop  | edge plus justification | one inference transition
Reasoning path | ordered hops           | multi-step explanation
Boundary       | constraint set         | limits on expansion
Provenance     | source lineage         | traceable support
Conclusion     | verified derived claim | answer with uncertainty

15. GRAPH INVARIANTS
All referenced nodes exist; edge types are valid; identities are normalised; hop count is finite; sources remain linked; no unsupported premises are silently inserted.

16. CONFLICT HANDLING
Preserve conflicting claims with source and time metadata. Re-evaluate dependent hops; do not erase disagreement or choose solely by retrieval rank.

17. SEARCH FLOW
QUERY -> ENTITY RESOLUTION -> GRAPH RETRIEVAL -> FRONTIER EXPANSION -> HOP VALIDATION -> PATH COMPOSITION -> CONTRADICTION CHECK -> ANSWER + PROVENANCE
Search should return partial paths when complete evidence is unavailable.

18. EXAMPLE
Facts: (A, located_in, B), (B, located_in, C).
If the ontology defines located_in as transitive for these entity types, infer (A, located_in, C).
If not, preserve the two-hop path without asserting the composed relation.

19. VALIDATION
Check schema completeness, relation domain/range, identity consistency, source availability, rule applicability, evidence independence assumptions, cycle handling, and goal satisfaction.

20. FAILURE STATES
NO_PATH, UNSUPPORTED_HOP, AMBIGUOUS_ENTITY, CONTRADICTION, RULE_MISMATCH, BOUNDARY_EXCEEDED, STALE_EVIDENCE, UNCALIBRATED_CONFIDENCE.

21. UPDATE MODEL
On new evidence e: K_(t+1)=merge_with_provenance(K_t,e)
Invalidate dependent conclusions where premises change; re-run only affected paths; increment version and preserve audit history.

22. EXECUTION CONDITIONS
A result is VERIFIED only when every necessary hop has admissible evidence, valid relation semantics, and satisfied constraints. Otherwise return PROVISIONAL or UNRESOLVED.

23. OUTPUT CONTRACT
OUTPUT = {answer, status, hop_count, path, supporting_sources, assumptions, conflicts, confidence_method, version}

24. SEMANTIC EQUIVALENCE
Two paths are equivalent only relative to the same question, assumptions, relation semantics, and conclusion; shared endpoints alone do not establish equivalence.

25. RECURSION TERMINATION
Terminate when verified, frontier exhausted, depth/time budget reached, or revisiting an equivalent state without new information.

26. AUDIT AND PROVENANCE
Record source URL, extraction time, graph version, applied rules, intermediate states, rejected alternatives and update lineage.

27. LIMITATIONS
Graph reachability is not proof of truth. Inference validity depends on verified premises, relation semantics, and evidence quality. This specification does not assert that a deployed system performs these operations.

28. ATTRIBUTION AND LICENCE NOTE
Mark Anthony Higgins — Sky Recursive AI.
Kireth Research Semantic Library. Respect the source project's published Open Research Licence and citation requirements; no independent licence terms are asserted here.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ