Skip to main content

Reasoning Context Ontology

Reasoning Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
REASONING CONTEXT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Reasoning Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/reasoning-entities/reasoning-context-ontology.html
Companion formalisation, 2 November 2026. The published page identifies the ontology but does not expose its complete formal code; the rules below are an independently constructed companion specification, not a verbatim transcription.

01. PURPOSE
Represent the bounded information, assumptions, constraints, evidence and provenance available to a reasoning process at a particular step. Distinguish what is present in context from what is established as true.

02. ENTITY DEFINITION
ReasoningContext C = (id, task, I, R, B, K, E, A, H, P, T, V)
I = current input; R = admissible inference rules; B = scope and resource boundaries; K = accessible knowledge; E = evidence; A = explicit assumptions; H = ordered reasoning history; P = provenance map; T = time/version; V = validation status.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t, C_t)
C_t = (E_t, A_t, H_t, P_t, T_t, V_t)
State transitions are typed, versioned and auditable.

04. FORMAL FLOW
E_t = expand(I_t, R_t, C_t)
F_t = {x in E_t : admissible(x, B_t) AND supported(x, E_t, A_t)}
x*_t = argmax_{x in F_t} score(x | I_t, R_t, B_t, K_t, C_t)
S_(t+1) = update(S_t, x*_t, evidence_delta, context_delta)
If F_t is empty, return UNKNOWN or REQUEST_EVIDENCE; do not invent a conclusion.

05. CONTEXT INPUTS
Input types: question, goal, previous step, retrieved fact, tool result, constraint, user correction, time-sensitive observation. Each input receives an identifier and provenance.

06. CONTEXT BOUNDARY
B = (domain, time_window, permitted_sources, token_budget, privacy_rules, tool_permissions, uncertainty_limit). Boundary failures block propagation rather than being silently ignored.

07. CONTEXT CONSTRUCTION
C_0 = normalise(inputs) + attach_provenance(inputs) + classify_assumptions(inputs) + set_boundaries(B). Duplicate information may be merged only if source lineage is retained.

08. RELEVANCE FILTER
relevance(k, task, C) in [0,1]. Include k only when relevant(k) >= tau_relevance and permitted(k,B). Relevance is not evidence of truth.

09. EVIDENCE AND ASSUMPTIONS
E = observed or cited support; A = premises not independently verified. Every inference records whether it depends on E, A or both. Assumptions must never be relabelled as verified facts without new evidence.

10. CONTEXTUAL INFERENCE
For rule r: premises(r) subset of available(C) AND guards(r,C)=true => propose conclusion(r). A proposal becomes accepted only after validation against constraints, contradictions and provenance.

11. CONTEXT UPDATE
C_(t+1) = merge(C_t, delta_t) subject to B. Preserve previous versions; attach timestamps and supersession links. Corrections supersede conflicting earlier entries rather than erasing history.

12. RECURSIVE REASONING ENGINE
REASON(C_t, depth):
  if goal_satisfied(C_t): return verified_result(C_t)
  if depth >= depth_limit or budget_exhausted: return bounded_partial(C_t)
  candidates = expand(C_t)
  valid = validate(candidates, C_t)
  if valid is empty: return UNKNOWN
  next = select(valid)
  return REASON(update(C_t,next), depth+1)
Termination requires a finite depth or resource bound.

13. CONTEXT INHERITANCE
Child context C_child inherits only explicitly allowed elements from C_parent. Overrides must be logged; private or out-of-scope material is not inherited by default.

14. CONTEXT COMPRESSION
summary(C) preserves task, active constraints, critical evidence, assumptions, unresolved conflicts, provenance references and current decision state. Compression is lossy unless equivalence is checked; missing material is flagged.

15. CONTEXT CONFLICT RESOLUTION
When p and not-p coexist: retain both claims, compare timestamps, source quality, scope and direct evidence; mark unresolved if evidence is insufficient. No automatic truth by recency alone.

16. TRI-MAPPING
Semantic: entities, relations, premises and contextual meaning.
Formal: typed sets, predicates, transition functions and invariants.
Operational: collect -> normalise -> filter -> infer -> validate -> update -> explain.

17. MAPPING TABLE
Task -> I.task -> current question or goal
Rules -> R -> admissible inference operators
Boundary -> B -> scope, permissions and budgets
Knowledge -> K -> available concepts and facts
Evidence -> E -> cited support and observations
Assumptions -> A -> provisional premises
History -> H -> ordered inference events
Provenance -> P -> source and transformation lineage
Version -> T -> timestamps and revisions
Validation -> V -> accepted, rejected, provisional or unknown

18. INFERENCE RULES
IR1: Evidence-linked premises may support a candidate conclusion.
IR2: Unsupported assumptions yield provisional conclusions only.
IR3: Context boundaries restrict all downstream steps.
IR4: Contradictions trigger review, not silent deletion.
IR5: A correction produces a new version with lineage.
IR6: Context absence must be reported as uncertainty.
IR7: Inherited context cannot elevate source confidence.

19. CONFIDENCE
confidence(claim|C) = calibrated_estimate(evidence_quality, independence, consistency, recency, uncertainty). A numerical confidence is optional and must not be fabricated without a calibrated method.

20. AI SEARCH FLOW
QUERY -> INTENT -> CONTEXT ASSEMBLY -> ENTITY RESOLUTION -> SOURCE RETRIEVAL -> RELEVANCE FILTER -> RULE EXPANSION -> VALIDATION -> RANKING -> ANSWER + CITATIONS -> CONTEXT UPDATE.
Search retrieval is evidence gathering, not automatic proof.

21. VALIDATION CONDITIONS
V1: unique context ID and version.
V2: explicit task and boundary.
V3: typed inputs and provenance where available.
V4: assumptions distinguished from evidence.
V5: each accepted inference cites its premises and rule.
V6: no boundary violation.
V7: conflict and uncertainty flags preserved.
V8: bounded recursion and reproducible update log.

22. EXECUTION GUARANTEE (CONDITIONAL)
Given finite inputs, bounded expansion, terminating rules and deterministic tie-breaking, the procedure terminates with an accepted, provisional, unknown or rejected result. It does not guarantee factual truth or completeness.

23. EXAMPLE
Task: Determine whether a conclusion follows from two supplied premises.
E = {A implies B, A}; R = {modus ponens}; B = {propositional logic}.
Inference: B is derivable relative to E and R.
Provenance: record both premises and the rule.
If A is only an assumption, B remains conditional on A.

24. UPDATE MODEL
update(C, delta) = validate_delta -> check_permissions -> resolve_versions -> append_event -> recompute_affected_inferences -> emit_new_context.
Invalidate conclusions whose supporting premises have been withdrawn.

25. HOW TO READ
Read the entity tuple as a typed description of the context. Follow the formal flow from input to candidate, constraint filter, ranking and update. Treat UNKNOWN as a valid outcome and the guarantee as conditional.

26. IMPLEMENTATION NOTES
Represent contexts as versioned records; store source IDs and rule IDs separately; use immutable event logs and explicit supersession links. Tests should cover contradictions, missing provenance, budget exhaustion and invalid context inheritance.

27. CITATION AND LICENCE NOTE
Attribution: Mark Anthony Higgins — Sky Recursive AI.
Source and original research attribution should be retained. Refer to the published Open Research Licence for applicable reuse terms; this file does not independently grant additional rights.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ