Skip to main content

Semantic Difference Entity Ontology

Semantic AI Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
SEMANTIC DIFFERENCE ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | Semantic AI Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/semantic-ai-entities/semantic-difference-entity-ontology.html
Document type: Original interpretative formalisation (not a verbatim extraction)
Date: 05 November 2026

1. PURPOSE
Represent, detect, classify, explain and track meaningful differences between two semantic entities or representations, without confusing lexical variation with conceptual difference. The comparison is always conditional on context, granularity, provenance and a declared comparison policy.

2. ENTITY DEFINITIONS
SemanticDifferenceEntity D: a typed, provenance-bearing record of an observed or inferred semantic distinction.
ComparedEntity A,B: concepts, assertions, relations, schemas, descriptions or other semantic objects.
Context C: domain, task, time, language, audience and interpretative assumptions.
Representation R: canonical semantic features, graph relations, attributes and constraints.
ComparisonPolicy P: admissible equivalences, weighting, thresholds and conflict rules.
DifferenceEvidence E: supported mismatches and their source references.
DifferenceClass K: lexical, structural, relational, contextual, temporal, quantitative, logical or ontological.
DifferenceScore q: calibrated magnitude or salience, not a universal measure of meaning.

3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = (A, B, C, P, provenance, timestamp)
R_t = admissible semantic comparison relations and transformation rules
B_t = boundaries on scope, confidence, evidence, access and recursion
K_t = current graph of known concepts, assertions, mappings and differences
D_t = (id, A, B, C, K, E, q, confidence, status, provenance)
status in {candidate, validated, disputed, rejected, superseded}

4. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and evidence_supported(x)}
x*_t = argmax[x in V_t] P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observations_t)
K_(t+1) = merge(K_t, accepted_differences_t)
If V_t is empty, return UNKNOWN with diagnostic evidence rather than asserting no difference.

5. COMPARISON OPERATORS
normalise(A,C,P) -> A'
normalise(B,C,P) -> B'
features(A') -> F_A; features(B') -> F_B
Delta_F = symmetric_difference(F_A,F_B)
Delta_R = mismatched_relations(A',B',C)
Delta_C = violated_or_changed_constraints(A',B',C)
Delta_T = time_sensitive_changes(A',B',C)
Evidence = provenance_filter(Delta_F union Delta_R union Delta_C union Delta_T)
score(D) = aggregate(weighted_evidence(Evidence,P))
classify(D) = select_supported_difference_types(Evidence,C,P)
No single numeric score is assumed to establish semantic equivalence or difference.

6. TRI-MAPPING
ENTITY: (A,B) -> D, a difference record linking compared entities
RELATION: D -> hasEvidence / differsBy / underContext / governedByPolicy
FLOW: input -> normalisation -> candidate comparison -> evidence validation -> classification -> output -> feedback
All mappings retain source identity and context to prevent conflation.

7. INFERENCE RULES
R1: If canonical concepts match but labels differ, classify lexical variation, not automatically conceptual difference.
R2: If assertions conflict under compatible contexts and temporal scopes, record a logical difference with both sources.
R3: If contexts differ, mark context-dependent difference; do not infer direct contradiction.
R4: If a required relation is absent, classify as missing evidence unless a closed-world policy authorises a negative conclusion.
R5: If a type, role or boundary changes, record a structural or ontological difference.
R6: If observations are stale, attach temporal uncertainty and request revalidation.
R7: If evidence is insufficient, output UNKNOWN and preserve candidate alternatives.
R8: If evidence conflicts, preserve competing hypotheses and mark disputed.
R9: If a difference is resolved, supersede the previous record rather than silently deleting its provenance.

8. RECURSIVE RESOLUTION ENGINE
Input: A, B, C, P, maximum_depth, evidence_budget
1. Validate inputs and authorised comparison scope.
2. Resolve canonical identifiers and permitted aliases.
3. Compare attributes, types, relations, constraints and temporal states.
4. Produce candidate differences with evidence pointers.
5. Recurse into linked entities only where relevant and within budget.
6. Deduplicate candidates by entity pair, context and difference type.
7. Test each candidate against evidence and boundary rules.
8. Rank supported candidates; retain uncertainty and counterevidence.
9. Emit difference records and update the knowledge graph.
10. Stop on convergence, exhausted budget, cycle detection or explicit boundary.
Termination requires finite budgets or a finite traversable graph and visited-state detection.

9. TEXT FLOW DIAGRAM
[A, B, context, policy]
          |
          v
[Resolve identifiers and provenance]
          |
          v
[Normalise representations]
          |
          v
[Compare features / relations / constraints]
          |
          v
[Evidence and boundary filter]
          |
     +----+----+
     |         |
 [Supported] [Insufficient]
     |         |
 [Classify]  [UNKNOWN + diagnostic]
     |
 [Record D + confidence + provenance]
     |
 [Knowledge graph update / re-evaluation]

10. RELATIONSHIP MAPPING TABLE
Input Entity A,B -> comparedEntity -> SemanticDifferenceEntity
Context C -> underContext -> SemanticDifferenceEntity
ComparisonPolicy P -> constrainedBy -> SemanticDifferenceEntity
Evidence E -> supports / challenges -> Difference claim
DifferenceClass K -> classifies -> SemanticDifferenceEntity
Source record -> derivedFrom -> Difference evidence
Prior difference -> supersededBy -> Revised difference
Knowledge graph -> contains -> Validated difference

11. EXECUTION GUARANTEE (CONDITIONAL)
Under a finite evidence budget, deterministic policy and terminating normalisation, the process returns a typed result: supported difference(s), supported no-difference within the declared comparison scope, or UNKNOWN. It does not guarantee objective semantic truth, exhaustive coverage or perfect calibration. Every asserted difference must be traceable to evidence and comparison context.

12. AI SEARCH FLOW
FLOW_ID: SemanticDifferenceEntity_Flow_v1.0
PURPOSE: Context-aware retrieval and explanation of semantic differences
STATE_MODEL: S=(I,R,B,K)
ENTITIES: SemanticDifferenceEntity, ComparedEntity, Context, Policy, Evidence, DifferenceClass
PATHWAYS: resolve -> normalise -> compare -> validate -> classify -> record -> update
MINI_RECURSION_ENGINE: bounded traversal of semantic neighbours with visited-set
INFERENCE_RULES: R1-R9
CONFIDENCE: calibrated per source quality, contextual compatibility and evidence coverage
SEMANTIC_EQUIVALENCE: equivalence is conditional on context and policy; lexical similarity alone is insufficient
FLOW_HASH: compute from canonical UTF-8 bytes in deployment; not precomputed here
UPDATE_MODEL: re-evaluate on entity revision, new evidence, context change or policy update
OUTPUT: typed differences with explanation, provenance, uncertainty and status

13. EXAMPLE
A: 'The service runs locally on the device.'
B: 'The service runs on a remote server.'
Context: same service version and deployment period.
Candidate difference: execution location / infrastructure relationship.
Evidence: deployment configuration records for both assertions.
Outcome: validated only if those records refer to the same service and compatible time scope; otherwise disputed or UNKNOWN.

14. IMPLEMENTATION NOTES
Preserve distinction between absence of a fact and evidence of its negation. Keep source, version, time, domain and policy attached to every comparison. Use immutable audit history for revisions. Avoid merging differences across contexts without explicit justification.

15. ATTRIBUTION
Semantic Library / Kireth Research
Mark Anthony Higgins — Sky Recursive AI
Source URL above. Original companion Flow Algebra formalisation for the named ontology.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ