Skip to main content

Internal Representation Ontology

Latent Representation Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
INTERNAL REPRESENTATION ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Latent Representation Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/latent-representation-entities/internal-representation-ontology.html
Status: Independently authored companion formalisation; embedded source specification not available for verification.

01. PURPOSE
Represent, transform, inspect and validate internal AI model representations without conflating hidden states with directly observable meanings.

02. ENTITY MODEL
InternalRepresentation := (id, model_id, layer_id, step, tensor, shape, dtype, context, provenance)
Related entities: InputEntity, TokenEmbedding, HiddenState, ActivationPattern, LatentVector, AttentionState, ModelOutput.

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: available input and intermediate information.
R_t: relations between inputs, layers and representations.
B_t: operational, dimensional, access and safety boundaries.
K_t: model architecture, parameter version and interpretive knowledge.

04. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
h_t^(l+1) = F_l(h_t^l; theta_l, context_t)
r* = argmax_{r in V_t} P(r | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, r*, evidence_t)
F_l is a layer-specific transformation, not a universal law.

05. IMPLEMENTS
Input -> encode -> layer transformation -> internal tensor -> validate -> relate -> downstream layer/output.
Store model and layer identifiers, shape, dtype, version and provenance for every representation record.

06. HOW TO READ
h_t^l denotes the internal representation at step t and layer l.
theta_l denotes parameters of layer l.
valid(...) checks required invariants and permissions.
P(...) is a modelled ranking score, not necessarily calibrated probability.

07. TRI-MAPPING
Entity: internal representation / hidden-state tensor.
Relation: produced_by, transforms_to, conditioned_on, belongs_to_layer, supports_output.
Boundary: shape compatibility, authorised access, model version, privacy and interpretation limits.

08. RELATIONSHIP GRAPH
InputEntity --encoded_as--> TokenEmbedding
TokenEmbedding --transformed_by--> ModelLayer
ModelLayer --produces--> InternalRepresentation
InternalRepresentation --feeds--> NextLayer
InternalRepresentation --contributes_to--> ModelOutput
InternalRepresentation --documented_by--> ProvenanceRecord

09. MAPPING TABLE
Input tokens | embedding lookup | initial representation
Layer activation | nonlinear transform | hidden representation
Attention context | weighted aggregation | contextual representation
Residual path | combination | updated representation
Final hidden state | output projection | logits or task output

10. MINI RECURSION ENGINE
REPEAT for each authorised layer/step:
  acquire current representation and context
  apply model-defined transformation
  validate shape, dtype, finiteness and version
  record permitted provenance and relations
  pass representation to next layer or output head
UNTIL terminal layer/step or controlled stop condition.

11. INFERENCE AND VALIDATION RULES
R1: If a representation is produced by layer L, associate its model and layer version.
R2: If tensor dimensions mismatch the next operation, reject that transition.
R3: If provenance is absent, mark attribution unknown rather than inventing it.
R4: If activation patterns correlate with a concept, do not infer a unique semantic meaning without independent evidence.
R5: If data are private or restricted, do not expose raw activations without authorisation.
R6: If a transformation changes dimensionality, record the mapping and target space.

12. EXECUTION GUARANTEES AND LIMITS
Under the stated preconditions, the process guarantees traceable validation outcomes and explicit failure states; it does not guarantee interpretability, causal attribution, semantic faithfulness or correctness of a model output.
Failure states: INVALID_SHAPE, INVALID_DTYPE, NONFINITE_VALUE, VERSION_MISMATCH, ACCESS_DENIED, MISSING_PROVENANCE.

13. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/latent-representation-entities/internal-representation-ontology.html
CITATION_BACKLINK: same as SOURCE
PURPOSE: Discover and reason about internal AI representations and their transformations.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: InternalRepresentation, HiddenState, ActivationPattern, ModelLayer, ProvenanceRecord
PATHWAYS: input -> encoding -> hidden transformation -> validation -> output
MINI_RECURSION_ENGINE: iterative layer transformations with invariant checks
INFERENCE_RULES: R1-R6 above
CONFIDENCE: evidence-dependent; uncalibrated scores must be labelled
SEMANTIC_EQUIVALENCE: requires matching model/version, representation space and declared comparison method
FLOW_HASH: compute on publication from canonical UTF-8 bytes; not preassigned
UPDATE_MODEL: revise on architecture, parameter, ontology or validation-rule changes

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ