Skip to main content

Program Ontology

Programming Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
SEMANTIC LIBRARY — PROGRAM ONTOLOGY
FLOW ALGEBRA v1.0 | Programming Entities

AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/programming-entities/program-ontology.html
SOURCE PAGE: Program Ontology; revised 03 August 2026.
STATUS: Constructed Flow Algebra interpretation. The full page specification was not exposed in accessible webpage text; this is not a verbatim transcription.

PURPOSE
Represent a computer program as a structured, executable entity with instructions, inputs, dependencies, runtime state, outputs and verifiable execution constraints.

ENTITY MODEL
Program := (identifier, version, language, code, entry_point, dependencies, permissions, contract)
ProgramInstance := (program, environment, inputs, runtime_state, trace, outputs, status)
Instruction := (operation, operands, preconditions, effects)
Environment := (runtime, resources, interfaces, permissions)
ExecutionTrace := ordered sequence of validated state transitions.

HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current program instance, inputs and execution state.
R_t: syntax, semantics, dependency, control-flow and transition relations.
B_t: resource, permission, type, safety and termination boundaries.
K_t: verified program knowledge, contracts, observations and provenance.

FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t, K_t)}
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)
If V_t is empty, return a typed error rather than invent an executable transition.
The argmax is a reasoning/selection abstraction, not a claim that ordinary programs use probabilistic execution.

ENTITY RELATIONSHIPS
Program --contains--> Instruction
Program --declares--> Dependency
Program --written_in--> ProgrammingLanguage
Program --defines--> EntryPoint
Program --requires--> ExecutionEnvironment
ProgramInstance --instantiates--> Program
ProgramInstance --consumes--> Input
ProgramInstance --produces--> Output
ProgramInstance --generates--> ExecutionTrace
Instruction --transitions--> RuntimeState
Program --governed_by--> Contract

EXECUTION PATHWAY
1. Resolve program identity, version and integrity.
2. Parse or load code using the declared language/runtime.
3. Resolve compatible dependencies and required interfaces.
4. Validate inputs, preconditions, permissions and resource bounds.
5. Initialise runtime state and locate the entry point.
6. Select the next permitted instruction or control-flow transition.
7. Execute the transition and record observable effects.
8. Validate invariants and handle exceptions explicitly.
9. Repeat until completion, controlled suspension or failure.
10. Return outputs, final state, status and provenance.

INFERENCE RULES
IF dependency missing THEN state = blocked_dependency.
IF input violates contract THEN state = rejected_input.
IF permission absent THEN transition = denied.
IF preconditions hold AND operation semantics defined THEN transition = eligible.
IF postcondition fails THEN state = failed_validation.
IF execution reaches a terminal state THEN return result and trace.
IF a cycle lacks a proven termination measure THEN do not assert termination.

MINI RECURSION ENGINE
resolve(program, visited):
  if program in visited: identify cycle and apply explicit cycle policy
  verify identity and integrity
  for each dependency: resolve(dependency, visited + program)
  validate contracts and runtime compatibility
  return dependency-validated program

STEP(state):
  candidates = expand(state, relations)
  permitted = filter(candidates, boundaries)
  if permitted empty: return explicit failure or completion
  next = select(permitted, declared execution semantics)
  return update(state, next)

BOUNDARIES AND GUARANTEES
- Deterministic semantics must remain deterministic; scoring must not silently change behaviour.
- Memory safety, access permissions and resource limits are enforced where specified.
- External effects require declared capabilities and error handling.
- Concurrency may produce multiple valid traces unless ordering is constrained.
- Correctness is conditional on valid specifications, implementation and environment.
- Termination is guaranteed only when a finite bound or decreasing well-founded measure is established.
- Provenance and observations are kept separate from inferred claims.

TRI-MAPPING
Ontology: Program, Instruction, Runtime, Dependency, Contract.
Flow: validate -> resolve -> initialise -> execute -> verify -> return.
Evidence: source code, package metadata, runtime logs, tests, formal proofs.

CITATION
Mark Anthony Higgins and Sky Recursive AI, "Program Ontology", Kireth Research Semantic Library.
Source URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/programming-entities/program-ontology.html
This derived mapping should cite the source ontology and be distinguished from its original text.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ