Skip to main content

Procedure 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 — PROCEDURE 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/procedure-ontology.html
SOURCE PAGE DATE: 11 October 2025; revised 03 August 2026
STATUS: Constructed ontology-topic mapping; not a transcription of inaccessible embedded specifications.
CITATION: Higgins, Mark Anthony; Sky Recursive AI. Procedure Ontology, Kireth Research.

PURPOSE
Represent a programming procedure as a named, callable sequence of operations with inputs, local state, control flow, observable effects, and completion conditions.

STATE_MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = invocation input, arguments, and current execution context
R_t = procedure rules, ordered operations, and control-flow transitions
B_t = execution boundaries: types, permissions, resources, invariants, time limits
K_t = available knowledge: signatures, dependencies, environment, prior validated results

ENTITIES
Procedure, Signature, Parameter, Argument, Invocation, Caller, CallStackFrame,
LocalVariable, Statement, Operation, ControlFlowEdge, Condition, Loop,
ReturnValue, SideEffect, Exception, Resource, Dependency, Precondition,
Postcondition, Invariant, ExecutionTrace, Outcome.

RELATIONSHIPS
Procedure HAS_SIGNATURE Signature
Signature DECLARES Parameter
Invocation BINDS Argument TO Parameter
Caller INVOKES Procedure
Invocation CREATES CallStackFrame
Procedure CONTAINS Statement
Statement PRECEDES Statement
Condition SELECTS ControlFlowEdge
Procedure DEPENDS_ON Dependency
Operation MAY_MODIFY Resource
Invocation PRODUCES Outcome
ExecutionTrace RECORDS Operation

FLOW_ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_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*, outcome_t)

For deterministic procedure execution, selection is constrained by the actual
program semantics: x_t* is the uniquely enabled next step where one exists.
The probability expression is a reasoning/ranking abstraction, not a substitute
for language-defined control-flow semantics.

EXECUTION_PATHWAY
1. Resolve procedure identity and signature.
2. Check argument arity, types, and preconditions.
3. Bind arguments and initialise local execution state.
4. Evaluate the next enabled statement or control-flow branch.
5. Apply authorised effects and record trace evidence.
6. Repeat until return, exception, cancellation, or termination limit.
7. Validate postconditions and return an outcome to the caller.

INFERENCE_RULES
IF arguments violate signature THEN reject invocation.
IF precondition is false THEN do not execute the procedure body.
IF a branch guard is true THEN follow its defined control-flow edge.
IF an exception is raised THEN follow applicable exception-handling semantics.
IF an operation requests a prohibited effect THEN block that operation.
IF a postcondition fails THEN report a contract violation.
IF termination is not established THEN do not assert guaranteed completion.

MINI_RECURSION_ENGINE
For invocation p(a):
  validate(p, a)
  initialise frame f
  while f is active and budget remains:
    resolve enabled transition under R and B
    execute transition; update f and trace
    if nested call: recursively invoke with a distinct frame
  return result, exception, or bounded-execution status

EXECUTION_GUARANTEES
Safety is conditional on validated inputs, enforcement of boundaries, and
correct implementation of operational semantics. Termination requires a
proven decreasing measure, a finite execution bound, or another valid proof.
Side-effect freedom, determinism, and idempotence must not be assumed.

SEMANTIC_EQUIVALENCE
Two procedure descriptions are equivalent only relative to declared observable
behaviour, permitted inputs, effects, error handling, and termination semantics.

UPDATE_MODEL
Revise entity mappings when the source ontology or language-specific procedure
semantics change; preserve source attribution and revision history.

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