Skip to main content

Semantic Rule 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 RULE ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Semantic AI Entities
Version: 1.0 | 05 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/semantic-ai-entities/semantic-rule-entity-ontology.html
Licence: Refer to the source project's published Open Research Licence; attribution and citation required.

STATUS AND SCOPE
Original interpretative formalisation of the Semantic Rule Entity concept. The webpage identifies the ontology and its authors but does not expose its full embedded specification in the retrieved page text. Consequently, this document is not a verbatim transcription or a verified implementation of hidden rules.

1. PURPOSE
Represent a semantic rule as an identifiable, versioned, typed and auditable relation between conditions and consequences. Support rule selection, evaluation, explanation, provenance and safe recursion over an entity graph.

2. CANONICAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current entities, asserted facts, query and evaluation context.
R_t: semantic relationships and admissible inference/transition rules.
B_t: scope, permissions, validity periods, type constraints, budgets and termination limits.
K_t: provenance, ontology schema, rule versions, confidence and prior accepted derivations.

SemanticRule = (rule_id, version, antecedent, consequent, scope, priority, validity, provenance, status)
RuleEvaluation = (rule_id, bindings, supporting_facts, decision, confidence, timestamp)
Decision in {applicable, inapplicable, unknown, blocked, conflicted}.

3. ENTITY DEFINITIONS
SemanticEntity: a graph node with stable identifier and type.
SemanticRelationship: a typed, directed or symmetric link between entities.
SemanticRule: a conditional statement mapping a matched pattern to an admissible conclusion or action proposal.
Antecedent: the predicates and constraints required for rule activation.
Consequent: an asserted relation, derived fact, classification or proposed transition.
Binding: a consistent assignment of graph entities to rule variables.
Evidence: provenance-bearing facts supporting a binding.
Boundary: conditions restricting evaluation or execution.
Conflict: incompatible conclusions or competing actions under the same context.
Explanation: ordered references to rules, bindings and evidence.

4. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
A_t = {r in R_t | antecedent(r) matches V_t and permitted(r, B_t)}
r* = argmax_{r in A_t} P(r | I_t, R_t, B_t, K_t)
D_t = evaluate(r*, V_t, K_t)
I_{t+1} = update(I_t, D_t) only if D_t is validated and accepted.

Here P is a selection/ranking function, not a calibrated probability unless separately established. If A_t is empty, no argmax is taken: return no-applicable-rule. A rule is not automatically true merely because it ranks highest.

5. TYPED SEMANTIC RULE SCHEMA
rule_id: immutable canonical identifier
version: immutable revision identifier
antecedent: finite set of typed predicates
consequent: typed derivation or action proposal
scope: graph/domain/context constraints
priority: explicit deterministic conflict-resolution order
validity: effective interval and optional expiry
provenance: source, author and evidence links
status: draft | active | deprecated | revoked
confidence: optional evidence-weighted estimate, never a substitute for logical validity

6. INFERENCE RULES
R1 — Type admissibility: a rule may bind only entities satisfying its variable types.
R2 — Antecedent satisfaction: all required premises must be supported before a positive derivation.
R3 — Open-world caution: absence of evidence is not evidence of negation unless closed-world scope is declared.
R4 — Boundary precedence: permissions, scope and safety constraints override priority and ranking.
R5 — Provenance preservation: each derived assertion records the originating rule, version and supporting facts.
R6 — Conflict handling: incompatible conclusions remain flagged until an explicit resolution policy is applied.
R7 — Non-monotonic revision: conclusions depending on withdrawn premises must be re-evaluated.
R8 — Cycle detection: repeated (rule, bindings, state fingerprint) evaluations are deduplicated.
R9 — Action separation: a proposed external action requires independent authorisation before execution.
R10 — Uncertainty: unknown predicates propagate an unknown decision rather than a fabricated conclusion.

7. TRI-MAPPING
ENTITY MAPPING: SemanticRule -> antecedent entities -> consequent entities.
RELATIONSHIP MAPPING: matches -> supports -> derives -> contradicts -> supersedes.
EXECUTION MAPPING: retrieve -> bind -> validate -> evaluate -> resolve -> commit -> explain.

8. RECURSIVE RESOLUTION ENGINE
Input: S_0, target query q, maximum depth d_max, evaluation budget n_max.
Set frontier = relevant facts and rules for q; visited = empty; derivations = empty.
For each bounded iteration:
  a. Expand frontier by typed semantic relationships.
  b. Match antecedents and construct candidate bindings.
  c. Reject invalid, unauthorised, expired or duplicate candidates.
  d. Evaluate admissible candidates against supporting evidence.
  e. Resolve or record conflicts; do not silently discard contradictions.
  f. Add accepted, provenance-linked derivations to a new frontier.
  g. Stop at fixed point, resolved query, depth limit or budget limit.
Return conclusions, unresolved cases, evidence trace and stop reason.

9. FLOW DIAGRAM
[Query + Graph + Rule Set]
           |
           v
[Typed Candidate Expansion]
           |
           v
[Boundary + Validity Filter] --blocked--> [Record Reason]
           |
           v
[Antecedent Matching]
           |
           v
[Evidence Evaluation] --unknown--> [Unresolved]
           |
           v
[Conflict Resolution] --conflict--> [Escalate / Record]
           |
           v
[Accepted Derivation + Provenance]
           |
           v
[Graph State Update] --> [Bounded Recursive Re-evaluation]

10. RELATIONSHIP MAPPING TABLE
SemanticRule | hasAntecedent | SemanticPredicate | required condition
SemanticRule | hasConsequent | SemanticAssertion | possible conclusion
SemanticRule | appliesWithin | SemanticScope | context boundary
SemanticRule | supportedBy | Evidence | provenance linkage
RuleEvaluation | bindsEntity | SemanticEntity | variable assignment
RuleEvaluation | produces | Derivation | evaluated output
Derivation | derivedFrom | SemanticRule | rule trace
SemanticRule | conflictsWith | SemanticRule | competing conclusions
SemanticRule | supersedes | SemanticRule | version governance

11. EXECUTION GUARANTEE — CONDITIONAL
If the input graph and rule set are finite, matching is decidable, recursion is depth/budget bounded, and each iteration either adds a new deduplicated state or stops, the engine terminates within the configured limits. This guarantees bounded termination, not completeness, correctness of source facts, consistency of arbitrary rules, or external action success. Logical soundness depends on the validity of the chosen inference calculus and implementation.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/semantic-ai-entities/semantic-rule-entity-ontology.html
CITATION_BACKLINK: source URL above
PURPOSE: discover, classify, validate and explain semantic rule entities.
STATE_MODEL: S_t = (I_t, R_t, B_t, K_t)
ENTITIES: SemanticRule, Antecedent, Consequent, Binding, Evidence, Boundary, Derivation.
PATHWAYS: Query -> Rule -> Predicate -> Evidence -> Derivation -> Explanation.
MINI_RECURSION_ENGINE: bounded expansion with cycle detection and fixed-point exit.
INFERENCE_RULES: R1-R10 above.
CONFIDENCE: evidence-aware ranking; distinguish uncertainty from proof.
SEMANTIC_EQUIVALENCE: normalise aliases only when type, scope and meaning are preserved.
FLOW_HASH: compute from canonicalised document bytes during publication; not preassigned.
UPDATE_MODEL: version rule sets; invalidate dependent derivations on rule changes.

13. IMPLEMENTATION NOTES
Store identifiers as canonical URIs where possible. Keep rule definitions distinct from evaluation records. Version rules immutably; log each application and rejection. Never execute side-effecting actions solely because a semantic rule matches. Tests should include empty matches, unknown facts, conflicts, expired rules, permission denials, cyclic rules and withdrawn evidence.

14. CITATION
Higgins, Mark Anthony, and Sky — Recursive AI. “Semantic Rule Entity Ontology.” Kireth Research, revised 01 August 2026. URL above. This Flow Algebra TXT is an original interpretative companion dated 05 November 2026.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ