Skip to main content

Explanation Ontology

Explainability Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
SEMANTIC LIBRARY — EXPLANATION ONTOLOGY
FLOW ALGEBRA FORMALISATION v1.0
Date: 03 November 2026
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/explanation-ontology.html
Status: Extended, independently drafted formalisation. The publicly visible page identifies the ontology and authorship but does not expose the complete underlying specification. The rules below are proposed formal semantics, not a verbatim extraction.

01. PURPOSE
An Explanation Entity is a bounded, provenance-linked representation that communicates why an AI system produced a specified output or decision. Distinguish a faithful account of actual computation from a plausible post-hoc rationale. An explanation is not evidence of faithfulness merely because it is coherent.

02. CORE STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current input: query, target decision, model trace, context, evidence.
R_t = typed relations: supports, derives-from, contradicts, attributes-to, depends-on.
B_t = boundaries: privacy, scope, audience, evidence quality, access rights, safety.
K_t = retained knowledge: model documentation, verified sources, evaluation history.
Extended explanation state X_t = (S_t, E_t, C_t, U_t, P_t, V_t), where E is explanation graph, C confidence metadata, U uncertainty, P provenance and V validation status.

03. ENTITY DEFINITION
Explanation = (id, explanandum, audience, method, claims, evidence, dependencies, limitations, provenance, timestamp, validation_status).
Explanandum = exact output, decision, action or prediction being explained.
Method in {intrinsic, attribution, example-based, counterfactual, causal, rule-based, post-hoc}.

04. TYPED ENTITY GRAPH
Nodes: Explanation, Explanandum, Claim, Evidence, Model, Input, Feature, InferenceStep, Source, Audience, Constraint, Uncertainty, Validation.
Edges: explains, cites, supports, contradicts, depends_on, generated_by, evaluated_by, limited_by, intended_for.
Each edge has (source_id, relation_type, target_id, provenance, validity_interval).

05. RECURSIVE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {e in E_t | respects_boundary(e, B_t) AND traceable(e, K_t)}
e*_t = argmax_{e in V_t} P(e | I_t, R_t, B_t, K_t), only when probability estimates are defined and calibrated.
I_(t+1) = update(I_t, e*_t, feedback_t)
If V_t is empty, return an explicit evidence-limited or abstention state rather than invent an explanation.

06. EXPLANATION GENERATION FLOW
Identify target -> collect authorised evidence -> construct candidate explanation graph -> check logical consistency -> validate support -> assess faithfulness -> adapt to audience -> publish with limitations -> accept feedback.

07. INPUT CONTRACT
Required: target_id, target_output, model_or_system_id, intended_audience, permitted_evidence.
Optional: execution_trace, feature_attributions, counterfactual_samples, source_documents, timestamps, calibration_data.
Reject missing target identity or unverifiable provenance when the request requires a factual account of a specific run.

08. OUTPUT CONTRACT
Output = (explanation_id, target_id, claims[], supporting_evidence[], method, confidence_metadata, limitations[], validation_status, provenance, generated_at).
Confidence metadata is optional; an uncalibrated score must not be labelled as a probability.

09. CLAIM SUPPORT
support(c) = {e | supports(e,c) AND valid(e) AND permitted(e)}.
Claim c is publishable as verified only if support(c) is non-empty and no unresolved material contradiction remains.
A claim without adequate support may be labelled hypothesis or omitted.

10. PROVENANCE
Each claim references its evidence IDs, extraction method, origin and timestamp. Retain source version and model version where available. Do not infer unseen internal reasoning traces.

11. FAITHFULNESS
Faithfulness concerns whether the explanation reflects the actual causal or computational basis of the output. Plausibility and human satisfaction are separate metrics. Evaluate using interventions, trace alignment or controlled tests where feasible.

12. FEATURE ATTRIBUTION
Attribution vector a = (a_1,...,a_n) with method, baseline and input version recorded. Attribution is method-dependent; magnitude alone does not establish causal influence.

13. COUNTERFACTUAL EXPLANATION
For original input x and output f(x), seek x' satisfying desired output condition with minimal permitted change:
x* = argmin_x' d(x,x') subject to f(x') in Target AND valid_constraints(x').
Record feasibility, feature immutability, model version and uncertainty. Counterfactual changes are not automatically real-world causal recommendations.

14. CAUSAL EXPLANATION
Use a specified causal graph G and structural assumptions. Distinguish observation P(Y|X) from intervention P(Y|do(X)). Causal claims require justified identification assumptions.

15. RULE-BASED EXPLANATION
If rule antecedents A_1...A_n hold and rule r is active, derive conclusion C with proof path. Record exceptions, precedence and rule version.

16. REASONING TRACE BOUNDARY
An exposed chain or generated rationale may be a summary rather than an exact internal process. Never assert access to hidden model computation unless an authorised execution trace exists.

17. TRI-MAPPING
Semantic: entity meanings, claim relations, explanatory intent.
Mathematical: functions, graphs, probabilities, optimisation, constraints.
Operational: collection, validation, rendering, logging, feedback.
Mapping consistency requires semantic claims to correspond to defined mathematical quantities and observed operational artefacts.

18. MAPPING TABLE
Explanation -> explanation record -> publishable narrative/graph.
Evidence -> source-backed claim support -> citation and verification.
InferenceStep -> derivation edge -> reproducible rule trace.
Boundary -> constraint predicate -> filter/redaction.
Confidence -> calibrated assessment where available -> qualified uncertainty statement.
Feedback -> update signal -> review/revision.

19. INFERENCE RULES
R1: VerifiedEvidence(e) AND Supports(e,c) -> CandidateSupportedClaim(c).
R2: CandidateSupportedClaim(c) AND NoMaterialContradiction(c) -> VerifiedClaim(c).
R3: Contradicts(e,c) -> ReviewRequired(c).
R4: MissingProvenance(c) -> Unverified(c).
R5: OutsideBoundary(c) -> ExcludeOrRedact(c).
R6: LowFaithfulness(explanation) -> LabelPostHocOrReject(explanation).
R7: MissingCriticalEvidence(target) -> AbstainOrRequestEvidence(target).

20. CONFIDENCE AND UNCERTAINTY
Track source uncertainty, model uncertainty, attribution instability, sampling uncertainty and causal-identification uncertainty separately. Do not multiply confidence scores without justified dependence assumptions.

21. VALIDATION TESTS
Check: target alignment, evidence coverage, contradiction handling, faithfulness, stability under harmless perturbation, audience comprehension, privacy and reproducibility.

22. EXECUTION GUARANTEE — CONDITIONAL
Given valid inputs, available evidence, terminating graph traversal and satisfied boundaries, the procedure returns either a validated explanation, a qualified partial explanation or an explicit abstention. It does not guarantee that every model decision is explainable or that a generated explanation is causally faithful.

23. SAFETY AND PRIVACY
Minimise sensitive inputs, redact protected material, preserve source permissions, prevent unsupported certainty, and avoid revealing confidential system information.

24. RECURSIVE FEEDBACK
Feedback_t = (corrections, new_evidence, validation_failures, audience_questions).
K_(t+1) = reconcile(K_t, Feedback_t) with provenance and version history.
Revalidate dependent claims whenever evidence or model version changes.

25. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/explanation-ontology.html
CITATION_BACKLINK: same as SOURCE
PURPOSE: discover, validate and explain the Explanation Ontology entity and its formal relations.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: Explanation, Claim, Evidence, Explanandum, Model, InferenceStep, Boundary, Validation.
PATHWAYS: target -> evidence -> claims -> graph -> checks -> explanation -> feedback.
MINI_RECURSION_ENGINE: expand -> filter -> select/abstain -> update.
INFERENCE_RULES: R1-R7 above.
CONFIDENCE: report only justified, qualified measures.
SEMANTIC_EQUIVALENCE: explanation, explanatory account, interpretability artefact (context dependent; not universally identical).
FLOW_HASH: compute from canonical file bytes at publication; not pre-assigned.
UPDATE_MODEL: versioned review on evidence, policy or model change.

26. TEXT DIAGRAM
[Target output]
      |
      v
[Authorised evidence] --> [Provenance checks]
      |                        |
      v                        v
[Candidate claim graph] --> [Boundary filter]
      |                        |
      +------------+-----------+
                   v
          [Faithfulness checks]
                   |
             +-----+-----+
             |           |
           Pass         Fail
             |           |
             v           v
       [Explanation]  [Qualify/abstain]
             |
             v
       [Feedback/update]

27. WORKED EXAMPLE
Target: classifier assigns label A.
Evidence: model output and authorised feature attribution.
Candidate: 'Features f1 and f2 were influential under attribution method M.'
Validation: record M, baseline, run ID and sensitivity test.
Boundary: do not claim f1 caused the real-world event merely because M attributes prediction weight to f1.
Output: qualified, provenance-linked explanation.

28. IMPLEMENTATION NOTES
Represent entities as stable IDs; type-check graph edges; store source/version metadata; separate computed metrics from narrative claims; fail closed on missing permissions; allow export as static HTML or TXT.

29. HOW TO READ
Read S as the contextual state; expand as relation traversal; V as admissible candidates; argmax as optional selection under calibrated probability; update as evidence-aware revision. The flow is a formal specification and not a claim of verified deployment.

30. LICENCE AND ATTRIBUTION
Research formalisation prepared for the Semantic Library. Preserve author/source attribution and apply the licence published by the rights holder; no licence terms are inferred from this file.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ