Skip to main content

Algorithm Ontology

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

AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/algorithm-entities/algorithm-ontology-3.html
SOURCE STATUS: The public page identifies the Algorithm Ontology and its authors, but the complete embedded formal specification was not exposed in the retrieved page. This document is an original, constructed Flow Algebra mapping, not a verbatim transcription.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/algorithm-entities/algorithm-ontology-3.html
PURPOSE: Represent algorithms as bounded, executable transformations of inputs into outputs under explicit rules, state transitions, correctness constraints and resource limits.

1. ENTITY DEFINITION
Algorithm A = (ID, Inputs, Outputs, Steps, Preconditions, Postconditions, State, Resources, Termination).
An algorithm is a finite specification of operations; execution may terminate, fail, or remain incomplete according to its defined conditions.

2. HST STATE MODEL
S_t = (I_t, R, B, K)
I_t = input, execution state, program counter, intermediate results and observations at time t.
R = transition rules, instruction semantics, control flow and dependency relations.
B = type constraints, access permissions, resource budgets, invariants and termination limits.
K = known algorithms, data structures, specifications, proofs and runtime facts.

3. CORE FLOW ALGEBRA
E_t = expand(I_t, R)
V_t = {x in E_t | satisfies(x, B)}
a_t = argmax_{x in V_t} P(x | I_t, R, B, K) [optional policy for selecting among valid transitions]
I_{t+1} = update(I_t, a_t)
If V_t is empty: transition to BLOCKED or FAILURE with reason.
For deterministic algorithms, the next transition is selected by the prescribed rule, not by probabilistic ranking.

4. ENTITY RELATIONSHIPS
Algorithm --accepts--> Input
Algorithm --produces--> Output
Algorithm --contains--> Operation
Operation --depends_on--> Operation
Algorithm --uses--> DataStructure
Algorithm --runs_on--> ExecutionEnvironment
Algorithm --constrained_by--> ResourceBudget
Algorithm --validated_by--> TestOrProof
Algorithm --has_state--> ExecutionState
ExecutionState --transitions_to--> ExecutionState

5. EXECUTION PATHWAY
RECEIVE input -> VALIDATE preconditions -> INITIALISE state -> SELECT enabled operation -> EXECUTE operation -> CHECK invariant -> UPDATE state -> CHECK termination -> RETURN output or continue.
Invalid input -> REJECT with typed error.
Exceeded budget -> HALT with resource-limit status.
Violation of invariant -> FAIL with diagnostic evidence.

6. INFERENCE RULES
R1: IF preconditions hold AND a permitted transition exists THEN the transition is eligible.
R2: IF an operation's dependencies are unsatisfied THEN it cannot execute yet.
R3: IF an invariant fails THEN the current execution is not valid under the specification.
R4: IF termination predicate holds AND postconditions hold THEN execution succeeds.
R5: IF termination predicate holds AND postconditions fail THEN execution fails verification.
R6: IF a budget is exhausted before termination THEN status = RESOURCE_LIMIT, not SUCCESS.
R7: IF no eligible transition exists before termination THEN status = BLOCKED.

7. MINI RECURSION ENGINE
function FLOW(state, depth):
  if terminated(state): return verify_output(state)
  if depth >= depth_limit: return RESOURCE_LIMIT
  candidates = expand(state, rules)
  valid = filter(candidates, boundaries)
  if valid is empty: return BLOCKED
  next = select_by_algorithm_semantics(valid)
  return FLOW(update(state, next), depth + 1)
NOTE: This is a readable operational illustration of the formal mapping; recursion is bounded by an explicit limit.

8. CORRECTNESS AND COMPLEXITY
Partial correctness: precondition AND termination imply postcondition.
Total correctness: partial correctness plus proven termination.
Time complexity T(n) and space complexity M(n) depend on algorithm, input model and machine assumptions.
No claim of universal termination or optimality is made.

9. SEMANTIC EQUIVALENCE
Two implementations A and B are equivalent relative to a specification when, for all permitted inputs, they produce observationally equivalent outputs and permitted side effects. Equal names or similar code do not establish equivalence.

10. CONFIDENCE AND PROVENANCE
Formal rules: proposed ontology mapping; not independently verified against hidden source code.
Execution results: require tests, proofs or observed traces.
Provenance: preserve input identifiers, algorithm version, environment, parameters, timestamps and validation outcomes.

11. UPDATE MODEL
On specification change: revise R, B and K; revalidate invariants, tests and proofs; increment version; record changes and provenance.

12. EXECUTION GUARANTEE AND BOUNDARIES
Guarantee is conditional: if the algorithm is well-defined, preconditions hold, resources suffice, and the termination and correctness properties are established, the implementation may be certified relative to those assumptions. The Flow Algebra representation alone does not guarantee successful execution.

OPEN RESEARCH NOTICE
Open research use with citation to the named authors and source URL, subject to the published Kireth Research licence.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ