Skip to main content

Hallucination Entity 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 — FLOW ALGEBRA v1.0
HALLUCINATION ENTITY ONTOLOGY
Category: AI Core / Entity Graph / AI Entities / Error and Failure Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/hallucination-entity-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Prepared: 04 November 2026
Status: Companion formalisation. The source page identifies the ontology but its embedded detailed specification was not accessible in extracted text. The definitions below are a proposed operational model, not a verbatim transcription.

01 PURPOSE
Represent an AI-generated assertion whose evidential support, grounding, or truth status fails a specified verification policy. Distinguish unsupported claims from claims positively contradicted by trusted evidence. Support detection, abstention, correction, and auditable recovery.

02 ENTITY MODEL
H = (id, claim, output_id, context_id, source_refs, evidence, verification, severity, confidence, state, provenance, timestamp)
claim: atomic proposition; output_id: originating response; context_id: task context.
verification ∈ {unverified, supported, unsupported, contradicted, indeterminate}.
state ∈ {candidate, under_review, confirmed_error, corrected, dismissed, escalated}.
Do not equate low confidence with a proven hallucination.

03 HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = candidate claims, prompt, retrieved evidence, tool results.
R_t = evidence-linking, entailment, contradiction and correction rules.
B_t = permission, safety, provenance, time and uncertainty boundaries.
K_t = known verified facts, prior corrections and source reliability metadata.
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | constraints_B(x) = true}
x*_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t)
S_(t+1) = Update(S_t, x*_t, observation_t)
Probability ranks eligible actions; it does not prove truth.

04 FORMAL FLOW
INPUT(response, context, source_set)
 -> EXTRACT_ATOMIC_CLAIMS
 -> IDENTIFY_CHECKABLE_CLAIMS
 -> LINK_EVIDENCE_AND_PROVENANCE
 -> CHECK_SUPPORT_AND_CONTRADICTION
 -> CLASSIFY_VERIFICATION
 -> APPLY_SEVERITY_AND_RISK_POLICY
 -> {RETAIN | QUALIFY | CORRECT | ABSTAIN | ESCALATE}
 -> LOG_RESULT
 -> UPDATE_KNOWLEDGE_WITH_VERIFIED_CORRECTION
 -> OUTPUT(auditable_response, report)

05 VERIFICATION RULES
R1: supported(c) iff admissible evidence entails c under the specified domain and time scope.
R2: contradicted(c) iff admissible evidence entails NOT(c) under the same scope.
R3: unsupported(c) iff a defined adequate search found no supporting evidence; this is not equivalent to false(c).
R4: indeterminate(c) when evidence is missing, conflicting, stale or insufficient for adjudication.
R5: confirmed_error(c) requires contradiction or another explicit validation failure; never infer solely from absence of citations.
R6: generated citations must resolve to real sources and support the associated claim.
R7: if a claim concerns changing facts, evidence must be temporally appropriate.
R8: corrections must preserve an audit link to the original claim and cite the replacement evidence.
R9: high-consequence indeterminate claims require abstention, qualification or human review.
R10: user feedback is a review signal, not automatically verified truth.

06 STATE TRANSITIONS
candidate -> under_review : verification requested
under_review -> dismissed : adequately supported or false alarm
under_review -> confirmed_error : contradiction or explicit validation failure
under_review -> escalated : insufficient evidence with material risk
confirmed_error -> corrected : replacement verified and correction published
corrected -> under_review : new contradictory evidence emerges
No automatic deletion of original provenance or correction history.

07 ENTITY RELATIONSHIPS
HallucinationCandidate --originates_from--> ModelOutput
HallucinationCandidate --contains--> Claim
Claim --evaluated_against--> Evidence
Evidence --provided_by--> Source
Claim --has_verification--> VerificationResult
VerificationResult --triggers--> CorrectionAction
CorrectionAction --updates--> OutputOrKnowledge
CorrectionAction --recorded_in--> AuditLog
HumanReviewer --may_approve--> VerificationResult

08 TRI-MAPPING
Semantic: claim, evidence, provenance, contradiction, uncertainty, correction.
Mathematical: sets of claims C and evidence E; verification relation V ⊆ C × E; transition function δ(state, observation).
Computational: structured claim extraction; retrieval and evidence checks; policy gate; revision and logging.
Mapping guarantee: each computational decision must retain a semantic explanation and a formal rule identifier.

09 MAPPING TABLE
Concept | Formal representation | Implementation
Claim | c ∈ C | claim record
Evidence | e ∈ E | source/document reference
Support | entails(e,c) | grounded verification result
Contradiction | entails(e,¬c) | conflict flag
Boundary | B_t | policy and source admissibility gate
Correction | δ(confirmed_error,verified_fix) | revised output and audit event
Uncertainty | indeterminate(c) | qualify/abstain/escalate

10 MINI RECURSION ENGINE
function REVIEW(claims, evidence, depth, max_depth):
  if depth >= max_depth: return ESCALATE_UNRESOLVED
  results = VERIFY_EACH(claims, evidence)
  if ALL_RESOLVED(results): return APPLY_POLICY(results)
  new_evidence = RETRIEVE_FOR_UNRESOLVED(results)
  if NO_MATERIAL_NEW_EVIDENCE(new_evidence): return QUALIFY_OR_ESCALATE(results)
  return REVIEW(UNRESOLVED(results), evidence ∪ new_evidence, depth+1, max_depth)
Termination conditions: bounded depth, bounded retrieval budget, or no new evidence.

11 INFERENCE RULES
IF claim lacks admissible supporting evidence THEN label unverified/unsupported according to search adequacy.
IF credible evidence contradicts claim THEN flag suspected error and seek adjudication.
IF two credible sources conflict THEN retain indeterminate status pending resolution.
IF correction verified THEN supersede original statement, retain audit trail.
IF evidence outside time scope THEN do not use it as decisive current support.
IF a fabricated source is detected THEN flag provenance error and review dependent claims.

12 EXECUTION GUARANTEES (CONDITIONAL)
G1: Each reviewed atomic claim receives a verification state.
G2: Each confirmed correction links to the original claim and supporting evidence.
G3: Unresolved high-risk claims are not silently presented as verified.
G4: Recursion halts under the configured budget.
These guarantees hold only if the implementation enforces the rules and the supplied evidence/checkers are sound. They do not guarantee detection of every hallucination or objective truth.

13 AI SEARCH FLOW
FLOW_NAME: HallucinationEntityOntology
FLOW_VERSION: 1.0
LANGUAGE: en-GB
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/hallucination-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/hallucination-entity-ontology.html
PURPOSE: Ground, classify, correct and audit potentially hallucinated AI assertions.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: Claim; ModelOutput; Evidence; Source; VerificationResult; CorrectionAction; AuditLog; HumanReviewer
PATHWAYS: extract > ground > verify > classify > gate > correct/qualify/escalate > log
MINI_RECURSION_ENGINE: bounded evidence recheck with no-progress stop
INFERENCE_RULES: R1-R10
CONFIDENCE: calibrated verification confidence; never a substitute for evidence
SEMANTIC_EQUIVALENCE: hallucination candidate != established falsehood; unsupported != contradicted
FLOW_HASH: compute SHA-256 on publication; no hash claimed before final content is fixed
UPDATE_MODEL: versioned revisions with source/date and correction history

14 HOW TO READ
Read each arrow as an ordered transformation. Read each rule as a conditional constraint on classification or action. The state tuple tracks available input, applicable rules, hard boundaries and retained knowledge. The audit log preserves why a statement was kept, qualified or corrected.

15 EXAMPLE
Generated claim: 'Study X reported 95% accuracy.'
Evidence search: cited study exists but reports 85% on the specified benchmark.
Classification: contradicted, subject to checking study version and benchmark definition.
Action: correct to 85%, cite the study, record original assertion and correction.
If the study cannot be located, mark unverified rather than assert the number is false.

16 LICENCE AND ATTRIBUTION
Companion Flow Algebra text prepared for the Semantic Library. Open research use with citation to the source ontology and named authors, subject to the applicable published Open Research Licence.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ