Skip to main content

Reasoning Error Ontology

Error and Failure Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 November 2026
Audio Overview
SEMANTIC LIBRARY — REASONING ERROR ONTOLOGY
FLOW ALGEBRA v1.0 | AI Core / Entity Graph / Error and Failure Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/reasoning-error-ontology.html
Generated: 2026-11-04
Status: Companion formalisation. The webpage's expanded specification was not exposed in accessible page text; definitions below are an independently constructed model, not a transcription.

1. PURPOSE
Represent, detect, classify, trace and resolve errors in AI reasoning while retaining evidence, provenance and human oversight. A reasoning error is a demonstrable or suspected defect in a premise, inference rule, derivation, constraint application or conclusion. An incorrect answer alone does not establish which reasoning step failed.

2. ENTITY DEFINITION
REASONING_ERROR = (error_id, run_id, step_id, category, evidence, severity, confidence, status, provenance, timestamp)
category ∈ {invalid_inference, unsupported_premise, contradiction, missing_constraint, circular_dependency, context_misuse, calculation_error, uncertain_other}
status ∈ {suspected, confirmed, disputed, corrected, unresolved, escalated}
All IDs must be stable within the recorded run; evidence may be empty for suspected errors but not for confirmed errors.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current reasoning inputs, intermediate claims, candidate error observations
R_t: inference and verification relations
B_t: epistemic, operational, safety and authority boundaries
K_t: grounded knowledge, provenance, correction history
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | valid(x, B_t, K_t)}
x*_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t), where scores are available and calibrated
I_(t+1) = update(I_t, x*_t, feedback_t)
If V_t is empty, do not choose an answer: abstain, request evidence or escalate.

4. FORMAL FLOW
FLOW ReasoningErrorDetection:
INPUT: reasoning_trace T, claims C, rules R, constraints B, evidence K
PRECONDITION: trace identifiers and provenance can be resolved
STEP 1: normalise claims and links into a directed reasoning graph G
STEP 2: test each derivation against its declared premises and rule
STEP 3: test claims for contradictions and violated constraints
STEP 4: identify unsupported or circular paths
STEP 5: create error candidates with linked evidence and confidence
STEP 6: independently verify candidates where possible
STEP 7: classify confirmed, disputed or unresolved cases
STEP 8: choose correction, abstention or human escalation
STEP 9: record before/after graph and append audit event
OUTPUT: error register, corrected or qualified result, audit trail
POSTCONDITION: every confirmed error links to supporting evidence

5. INFERENCE RULES
R1: premises_valid(P) ∧ rule_sound(r) ∧ applies(r,P,c) ⇒ derivation_supported(c)
R2: ¬applies(r,P,c) ⇒ candidate_error(invalid_inference,c)
R3: claimed(c) ∧ ¬supported_by(c,K) ⇒ candidate_error(unsupported_premise,c)
R4: entails(K,c) ∧ entails(K,¬c) ⇒ candidate_error(contradiction,c)
R5: violates(c,B) ⇒ candidate_error(missing_constraint,c)
R6: cyclic_support(c,G) ∧ ¬external_grounding(c) ⇒ candidate_error(circular_dependency,c)
R7: verified(error,evidence) ⇒ status(error)=confirmed
R8: correction_verified(c_new,K,B) ⇒ status(error)=corrected
R9: insufficient_evidence(error) ⇒ status(error)=unresolved; do not assert certainty
R10: high_impact(error) ∧ unresolved(error) ⇒ escalate_to_human(error)
These rules define candidate flags, not automatic proof of an error in all contexts.

6. ENTITY RELATIONSHIPS
ReasoningError --occurs_in--> ReasoningRun
ReasoningError --located_at--> ReasoningStep
ReasoningError --affects--> Claim / Conclusion
ReasoningError --violates--> InferenceRule / Boundary
ReasoningError --supported_by--> Evidence
ReasoningError --remediated_by--> Correction
ReasoningError --reviewed_by--> Evaluator / HumanReviewer
ReasoningError --recorded_in--> ErrorRegister / AuditEvent

7. STATE TRANSITIONS
unobserved -> suspected : anomaly detected
suspected -> confirmed : verification succeeds
suspected -> disputed : counterevidence or reviewer disagreement
suspected -> unresolved : verification inconclusive
confirmed -> corrected : repair independently validated
confirmed -> escalated : repair unavailable or impact exceeds authority
unresolved -> confirmed : new evidence establishes defect
unresolved -> disputed : evidence conflicts
corrected -> suspected : regression found (new event linked to original)
No state transition deletes provenance or prior audit entries.

8. TRI-MAPPING
Semantic: claim, premise, inference, contradiction, error, correction
Structural: typed nodes, directed edges, constraints, evidence references
Operational: detect -> verify -> classify -> correct/escalate -> audit
A semantic claim must resolve to structural identifiers before operational changes.

9. MAPPING TABLE
Semantic concept | Structural representation | Operational test
Premise | Claim node | provenance and support check
Inference | Rule-labelled edge | applicability check
Boundary | Constraint record | violation check
Contradiction | Incompatible claim pair | consistency check
Error | Typed error node | independent verification
Correction | Replacement derivation | regression and evidence test
Human review | Review event | approval and authority check

10. MINI RECURSION ENGINE
function inspect(node, visited, depth):
  if depth > MAX_DEPTH: return unresolved("depth_limit")
  if node in visited: return candidate("cycle", node)
  visited' = visited ∪ {node}
  for premise in parents(node):
    inspect(premise, visited', depth+1)
  check_rule(node)
  check_evidence(node)
  check_boundaries(node)
  return aggregate_findings(node)
Termination requires finite graph traversal, a depth bound and bounded verification retries.

11. EXECUTION GUARANTEES (CONDITIONAL)
G1: With stable identifiers and an append-only log, recorded errors remain traceable.
G2: With finite graph and traversal limits, inspection terminates.
G3: With valid evidence links, each confirmed error has inspectable provenance.
G4: With independent post-correction tests, a corrected status means specified checks passed.
NON-GUARANTEES: no claim of complete error detection, perfect factual truth, calibrated probabilities without validation, or guaranteed safe outcomes.

12. AI SEARCH FLOW
FLOW_ID: SEMLIB.AI.ERROR.REASONING_ERROR.v1
ENTITY: Reasoning Error Ontology
INTENT: identify and explain failures of AI reasoning
ALIASES: reasoning failure; inference defect; logical error; unsupported conclusion
INPUTS: claim, reasoning trace, rules, evidence, constraints
PATHWAYS: detection > verification > classification > remediation > audit
BOUNDARIES: evidence required for confirmation; preserve human authority; avoid unsupported certainty
OUTPUTS: error type, affected claim, supporting evidence, correction status
SEMANTIC_EQUIVALENCE: reasoning_error != prediction_error; reasoning_error != model_error; overlap possible
CONFIDENCE: record confidence and method; unknown if not assessed
UPDATE_MODEL: append corrections with timestamps and version links
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/reasoning-error-ontology.html
FLOW_HASH: generate SHA-256 over canonical published file bytes at deployment; not precomputed here

13. EXAMPLE
Premises: All certified tools are approved. Tool A is certified.
Conclusion: Tool A is approved.
If the second premise lacks evidence, mark unsupported_premise as suspected; do not label the syllogistic inference invalid. Verify certification, then either confirm the conclusion or retract/qualify it.

14. IMPLEMENTATION AND READING NOTES
Read from entity definition to transition logic, then follow tri-mapping to operational checks. Keep factual error, inference invalidity and uncertainty distinct. Use machine-checkable schemas and independent tests in implementations. This TXT defines a formal specification pattern; it is not executable software without an interpreter and external validators.

LICENCE NOTE
Refer to the current Open Research Licence on the source site for authoritative reuse terms. Citation requested: Mark Anthony Higgins and Sky — Recursive AI; Semantic Library; source URL above.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ