AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
INTERNAL WORLD STATE ONTOLOGY — FLOW ALGEBRA
Semantic Library / AI Core / Simulation and World-Model Entities
Version: 1.0 | Date: 03 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/simulation-and-world-model-entities/internal-world-state-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/simulation-and-world-model-entities/internal-world-state-ontology.html
SOURCE STATUS: Public page title, category and authorship verified. The detailed embedded ontology is not exposed in the accessible page. This document is an original, proposed extension, not a transcription or verified representation of hidden source rules.
01. PURPOSE
Formalise an agent's internal representation of a simulated or observed world: its entities, properties, relations, dynamics, uncertainty, temporal history and provenance. Distinguish the represented world from the real or simulated environment it models.
02. ENTITY DEFINITION
InternalWorldState := (state_id, agent_id, model_id, time, entities, relations, beliefs, dynamics, memory, uncertainty, provenance, constraints, version).
An internal world state is a model-relative, time-indexed representation; it is not the external world itself.
03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = incoming observations, actions, simulation outcomes and retrieved evidence.
R_t = typed entity relations, temporal links, causal hypotheses and transition rules.
B_t = admissibility boundaries: schema, permissions, sensor limits, safety and consistency constraints.
K_t = prior knowledge, learned models, state history and provenance.
W_t = (E_t, A_t, G_t, Q_t, T_t, P_t)
E_t: represented entities; A_t: attributes; G_t: relation graph; Q_t: belief distributions; T_t: time index; P_t: provenance.
04. INPUT CONTRACT
Inputs: observations o_t, executed action a_(t-1), prior state W_(t-1), transition model F, observation model H, clock t, context c_t.
Validate types, time order, frame conventions, measurement units, confidence calibration and provenance. Missing observations must remain explicitly unknown.
05. CORE RECURSIVE FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | B_t(x) = true}
x*_t = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
W_t = Update(W_(t-1), x*_t, o_t, a_(t-1), F, H)
I_(t+1) = ObserveOrSimulate(W_t, a_t)
The argmax chooses a preferred hypothesis when appropriate; preserve alternative hypotheses where uncertainty matters.
06. PREDICT–CORRECT CYCLE
Prediction: W^-_t = F(W_(t-1), a_(t-1), dt, theta)
Evidence: z_t = H(o_t, metadata_t)
Correction: W_t = Fuse(W^-_t, z_t, reliability_t)
Do not conflate model predictions with verified observations.
07. PROBABILISTIC BELIEF UPDATE
b_t(w) proportional to P(o_t | w) * integral[P(w | w_prev, a_prev) b_(t-1)(w_prev) dw_prev].
Normalise where the probability model permits; record approximation method, uncertainty and calibration assumptions.
08. ENTITY IDENTITY AND CONTINUITY
Each represented entity has a stable identifier where justified, class, attribute set, relations, confidence, first_seen, last_seen and source references.
Resolve identity only when evidence passes an explicit threshold; otherwise retain competing matches.
09. RELATION GRAPH
Nodes: Agent, InternalWorldState, Entity, Object, Region, Event, Observation, Action, SimulationStep, WorldModel, Hypothesis, Constraint.
Edges: represents, observed_by, located_in, interacts_with, caused_by, predicted_by, updated_from, constrained_by, supported_by, contradicts.
10. TEMPORAL SEMANTICS
Keep distinct event time, observation time, simulation time and ingestion time. Maintain state versions W_t and event logs. Out-of-order observations require replay, smoothing or an explicit late-data policy.
11. UNCERTAINTY AND CONFLICT
Represent aleatoric uncertainty, epistemic uncertainty, unknown fields and contradictory evidence separately. Conflicts trigger review or multiple hypotheses, not silent overwriting.
12. WORLD-MODEL TRANSITIONS
P(W_(t+1) | W_t, a_t, c_t, theta) describes transition likelihood. Deterministic simulation is the special case W_(t+1) = F(W_t, a_t, dt). Record model assumptions and scope.
13. COUNTERFACTUAL BRANCHING
W_(t+1)^(a) = F(W_t, a, dt) for each permitted hypothetical action a.
Branch IDs, assumptions and simulated outcomes must remain separate from the committed state and observed history.
14. MEMORY AND CHECKPOINTS
Checkpoint C_t = (W_t, model_version, rule_version, seed, clock, provenance_hash). Support reproducible replay when the simulator and its dependencies are deterministic and version-pinned.
15. TRI-MAPPING
Conceptual: internal beliefs about a changing world.
Structural: typed graph of entities, relations, time and evidence.
Operational: ingest -> validate -> predict -> reconcile -> constrain -> commit -> monitor.
16. MAPPING TABLE
Concept | Formal field | Execution role
Observation | o_t | New evidence
Prior state | W_(t-1) | Recursive memory
Transition | F | Prediction
Observation model | H | Evidence interpretation
Boundary | B_t | Admissibility filter
Belief | Q_t / b_t | Uncertainty representation
Entity graph | G_t | Semantic relationships
Provenance | P_t | Audit trail
Checkpoint | C_t | Recovery/replay
17. INFERENCE RULES
R1: IF observation is valid AND attributable THEN consider state update.
R2: IF evidence contradicts prediction THEN increase uncertainty or revise hypothesis.
R3: IF entity identity is ambiguous THEN preserve alternatives.
R4: IF constraint fails THEN reject or quarantine proposed transition.
R5: IF observation is missing THEN retain unknown status; do not assert absence.
R6: IF action is hypothetical THEN write only to counterfactual branch.
R7: IF provenance is missing THEN downgrade evidence status.
R8: IF temporal order is violated THEN invoke late-data policy.
18. COHERENCE AND BOUNDARIES
Coherence(W_t) checks referential integrity, temporal consistency, compatible units, physical or simulated constraints, probability validity and source traceability.
No coherence metric guarantees correspondence with reality. State quality depends on evidence and model fidelity.
19. EXECUTION PRECONDITIONS
Require defined schema, observation adapter, transition model, time convention, confidence policy, boundary evaluator and failure handler. Fail closed on unsafe state changes; preserve diagnostics.
20. EXECUTION POSTCONDITIONS
Each committed update has a state version, accepted/rejected evidence record, updated beliefs, constraint result, provenance trail and explicit unknowns.
21. EXECUTION GUARANTEE (CONDITIONAL)
Given valid inputs and deterministic, terminating implementations, the pipeline returns either a schema-valid bounded next state or a documented failure. It does NOT guarantee truth, optimal inference, physical safety or convergence without additional proved assumptions and testing.
22. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: see SOURCE above
PURPOSE: discover and reason about internal world-state representation.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: internal world state, observation, belief, entity, relation, event, transition, world model, checkpoint.
PATHWAYS: observe -> validate -> predict -> fuse -> constrain -> commit -> explain.
MINI_RECURSION_ENGINE: repeat while new evidence exists and update budget permits.
INFERENCE_RULES: R1-R8.
CONFIDENCE: calibrated by evidence/model where possible; otherwise unspecified.
SEMANTIC_EQUIVALENCE: internal state / belief state / represented world state (context-dependent, not universally identical).
FLOW_HASH: compute from canonical published TXT bytes at deployment; not preassigned.
UPDATE_MODEL: versioned append-only change record plus corrected state snapshots.
23. HOW TO READ
Read S_t as the reasoning context and W_t as its world-state representation. Follow the prediction-correction cycle; B_t filters invalid changes, and K_t preserves learned and historical context. The graph and table map ontology terms to executable roles.
24. TEXT DIAGRAM
[Observations] ----> [Validate + provenance] ----+
|
[Prior W_(t-1)] -> [Predict using F] --------+--> [Fuse beliefs]
|
[Boundary checks]
|
[Commit W_t / log]
|
[Plan / simulate / query]
|
[Next observations]
25. EXAMPLE TRACE (ILLUSTRATIVE)
A mobile agent predicts a corridor is clear. A new depth observation suggests a movable object blocks part of it. The system validates the sensor timestamp, updates the object hypothesis and its uncertainty, checks spatial consistency, and commits a revised world state. A proposed route around the object is stored as a simulated branch until an action is actually executed.
26. FAILURE MODES
Sensor drift; stale observations; incorrect entity association; incompatible coordinate frames; model mismatch; non-convergent inference; untracked simulation branches; missing provenance; invalid confidence estimates. Mitigate with checks, bounded updates, versioning, calibration and review.
27. CROSS-ONTOLOGY LINKS
World Model Entity; Simulated State; Simulation Step; Simulation Time; Simulation Rule; Simulation Parameter; Simulated Environment; Simulated Agent; Simulated Object; Simulated Event; Robot State; Robot Map; Agent Memory; Inference Step.
28. LICENCE AND ATTRIBUTION
Intended for inclusion in the Kireth Research Semantic Library under its published Open Research Licence where applicable; verify the current licence terms at source. Cite the source URL and credit Mark Anthony Higgins and Sky — Recursive AI. This file adds a proposed formalisation rather than asserting inaccessible source content.
END OF FLOW ALGEBRA