Skip to main content

Termination Ontology

Process Concepts
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 December 2026
Audio Overview
KIRETH RESEARCH — AI SEMANTIC LIBRARY
TERMINATION ONTOLOGY — STANDARD FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8 | Date: 2026-12-04
Authors: Mark Anthony Higgins — Sky Recursive AI
Licence: Open Research Licence (project attribution; exact terms unverified)
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/termination-ontology.html
Integration: AI Core / Entity Graph / Abstract Concepts / Process Concepts
Status: Proposed formalisation; published page and grammar not independently verified.

1. CANONICAL DEFINITION
Termination is the ending of a specified execution instance within a declared scope. It is distinct from successful completion, temporary suspension, convergence, cancellation requests and the destruction of an entity. A terminated instance cannot execute further ordinary steps under the same execution identity. Restart creates a new instance linked to its predecessor. Cleanup may be included in the execution scope or represented as a separate process; this choice must be explicit.
Termination may be observed, inferred or proved for a model. A proof about a model is not an observation of a real execution. An absence of observations is not evidence of cessation.

2. ENTITY MODEL
TerminationRecord := (id, executionId, definitionVersion, scope, context, trigger, reason, finalState, requestedAt, effectiveAt, recordedAt, outcome, evidence, status, proofRef, version)
Execution := (id, definition, initialState, transitionRelation, terminalSet, environment, resourceBudget)
TerminationPolicy := (stopGuard, priority, cancellationProtocol, cleanupPolicy, deadline, budget, authority)
Outcome := completed | failed | cancelled | timedOut | budgetExhausted | other
Status := established | rejected | unknown | disputed | notApplicable
A stop request and an effective stop are separate events. An outcome describes why or how execution ended, not whether the intended objective was achieved. Objective satisfaction is an independent assessment. Time fields carry clock identity and uncertainty. Missing fields remain unknown rather than being filled with defaults.

3. CLASSIFICATION
Normal: execution reaches a designated terminal state through ordinary transitions.
Exceptional: an error causes execution to cease under an exception policy.
Conditional: an explicit predicate triggers a stopping protocol.
External: an authorised external intervention requests cessation.
Bounded: a time, iteration or resource budget limits execution, subject to enforcement assumptions.
Recursive: all required recursive invocations return or otherwise terminate.
Composite: a declared join or shutdown policy establishes termination of the scoped components.
Probabilistic: termination is characterised by a distribution over stopping times.
Nontermination: execution admits an infinite continuation under the stated model; distinguish possible from inevitable nontermination.
Suspension: execution pauses but remains resumable; not termination.

4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation from X to Y. g ∘ f applies f before g. These are proposed local operators, not a verified executable grammar.
F_scope: Execution × Context → ScopedExecution
F_guard: State × TerminationPolicy → GuardAssessment
F_request: ScopedExecution × AuthorisedTrigger → StopRequest
F_stop: ScopedExecution × StopRequest → StopResult
F_observe: ScopedExecution × Evidence → TerminationAssessment
F_prove: Model × Assumptions × Certificate → ProofAssessment
F_classify: TerminationAssessment × Policy → OutcomeAssessment
F_goal: FinalState × Objective → ObjectiveAssessment
F_cleanup: StopResult × CleanupPolicy → CleanupAssessment
F_validate: CandidateRecord × Constraints → ValidationResult
F_commit: ValidatedRecord × GraphVersion → GraphVersion
F_stop may return pending, rejected, failed or effective; requesting a stop is not a guarantee that it occurs. F_commit requires authorisation and version checks.

5. COMPOSITE FLOWS
Observed termination:
Execution →[F_scope] ScopedExecution →[F_observe] Assessment →[F_classify] Outcome →[F_validate] ValidatedRecord →[F_commit] GraphVersion
Controlled termination:
(State, Policy) →[F_guard] GuardAssessment; if established and authorised, F_request then F_stop then F_observe. Evaluate cleanup separately unless included in scope.
Proof flow: (Model, Assumptions, Certificate) →[F_prove] ProofAssessment. Store the theorem and its assumptions separately from actual termination records.
Parallel composition: a join-all policy requires every required child to terminate. A race policy may return after one child finishes but does not establish cessation of remaining children. Cancellation propagation requires acknowledgement or independent evidence. Sequential composition terminates only when the selected execution path reaches its terminal condition; a failed first step may prevent later steps from starting.

6. MATHEMATICAL SEMANTICS
Let S be the state space, T ⊆ S the terminal set, R ⊆ S × S the transition relation, and s0 the initial state. For a discrete execution s0,s1,... define τ = inf{n ≥ 0 : sn ∈ T}, with inf ∅ = ∞. Finite τ establishes terminal-state reachability along that trace, provided T represents actual cessation. Terminal states have no ordinary outgoing execution transitions; mathematical absorbing self-loops may represent bookkeeping rather than execution.
May-termination: there exists an admissible execution with finite τ.
Must-termination: every maximal admissible execution reaches T in finite time. Deadlock outside T is not successful termination and must be classified explicitly. Fairness assumptions restrict admissible schedules only when declared.
Ranking certificate: a map V:S→W into a well-founded ordered set W, strictly decreasing on every reachable nonterminal transition, excludes infinite transition sequences. To establish must-termination also exclude nonterminal deadlocks and account for blocking operations. For V in nonnegative integers decreasing by at least one, the number of transitions is at most V(s0), assuming the certificate covers all transitions.
Recursive termination: every recursive call decreases a well-founded measure and each invocation performs finitely many terminating local operations and calls. A base case alone is insufficient.
Probabilistic termination: P(τ<∞)=1 defines almost-sure termination; E[τ]=Σ(n≥0)P(τ>n) for nonnegative integer τ. Almost-sure termination does not imply finite expected duration or a deterministic bound.
Continuous time: τ=inf{t≥0:x(t)∈T}. Attainment must be established; approaching a boundary asymptotically is not necessarily reaching it. For dx/dt=-x with x(0)=1, x(t)>0 at every finite t, although x(t)→0. A tolerance-based stopping set changes the criterion and must be declared.
Convergence: lim x_n=x* does not imply finite termination. A residual threshold, iteration budget and numerical uncertainty policy can define a practical stop rule without proving correctness.
General algorithm termination is undecidable; bounded analysis, sound sufficient certificates and restricted models are valid alternatives. Failure to find a certificate does not prove nontermination.

7. STRUCTURAL INVARIANTS
I01 Every termination assertion identifies a specific execution and scope.
I02 Stop requests are distinct from effective cessation.
I03 Termination is independent of objective satisfaction.
I04 Suspension does not imply termination.
I05 Terminal-state semantics and permitted bookkeeping transitions are explicit.
I06 Proofs retain model version, assumptions and quantifier scope.
I07 Unknown evidence cannot be converted into a positive termination assertion.
I08 Child termination does not imply parent termination without a composition policy.
I09 Time comparisons require compatible clocks and uncertainty handling.
I10 Resource bounds require enforcement and account for blocking or cleanup.
I11 Restart uses a new execution identity; historical records remain traceable.
I12 Recursive updates preserve provenance and do not bypass safety or authority constraints.

8. RECURSIVE VALIDATION
Let G_k be a versioned graph of execution, evidence and termination records. Given evidence delta Δ_k, construct candidate C_k=Update(G_k,Δ_k). Validate scope, event ordering, terminal semantics, proof assumptions and conflicts. Commit only if authorised and consistent with the applicable policy; otherwise retain the prior graph and record the unresolved issue.
G_(k+1)=Commit(C_k) if validation passes; otherwise G_k.
Stop refinement when no material change remains, a review is required, or a declared budget is reached. Detect repeated graph signatures and oscillating classifications. A fixed point G*=Update(G*,Δ) under unchanged evidence is not a proof that its claims are true. Distinguish termination of validation from termination of the execution being validated.

9. EVIDENCE AND PROVENANCE
Record execution identifiers, model and policy versions, source identifiers, event timestamps, clock uncertainty, observed terminal events, acknowledgement, cleanup status, proof certificate, assumptions and reviewer. Preserve conflicting observations and distinguish direct observations from inference. A heartbeat timeout may indicate communication loss rather than cessation. Confidence scores are not probabilities unless calibrated. Evidence must be scoped to the relevant execution and cannot be transferred automatically to another instance.

10. WORKED EXAMPLES
A. Countdown: n→n-1 for n>0, terminal n=0. V(n)=n proves at most n initial transitions for nonnegative integer n.
B. Recursive tree traversal: finite acyclic tree, each call visits a proper subtree. Finite branching and terminating local work establish termination; cyclic references require additional handling.
C. Numerical solver: x_(k+1)=x_k/2, x0=1. Exact zero is never reached in finite mathematical steps. A tolerance x≤0.01 is first reached at k=7; this is approximate termination, not exact equality.
D. Workflow: two required parallel jobs finish at times 3 and 5. Join-all completion cannot occur before time 5, and may occur later if coordination is required.
E. Engineering shutdown: a stop command is issued, but stored energy remains. Record command receipt, operational cessation and verified safe state separately; cessation does not establish safety.
F. Stochastic process: independent trials stop at first success with probability p in (0,1]. P(τ>n)=(1-p)^n and E[τ]=1/p when τ counts trials. No finite deterministic bound exists for p<1.
G. Semantic refinement: a graph update produces no new assertions. The refinement may stop under a fixed-point policy, but missing evidence or incorrect premises can remain.

11. CROSS-ONTOLOGY INTEGRATION
Process Concept: defines the execution whose cessation is assessed.
Activity, Action Concept, Operation: provide scoped execution and terminal events.
Procedure, Method, Workflow Concept, Step, Stage, Phase: provide sequencing, joins, gates and completion criteria.
Input Concept, Output Concept, Transformation Process: distinguish output production from cessation.
Iteration, Cycle, Loop Concept: define repetition and stopping guards.
Feedback Process, Recursive Process: define feedback-driven and self-referential execution.
State Concept, State Space Concept, State Transition Concept: provide terminal sets and transition relations.
Valid State, Invalid State, Desired State: distinguish admissibility and goal satisfaction from termination.
Recursive Engineering Validation: links proof and evidence checks to versioned knowledge refinement.
All mappings are proposed conceptual integration points, not verified published identifiers.

12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01 Countdown from 3: expect termination after three transitions.
T02 Initial state already terminal: expect τ=0.
T03 Stop request without acknowledgement or evidence: expect unknown or pending cessation.
T04 Paused resumable execution: expect suspended, not terminated.
T05 Failed execution that ceases: expect terminated with failed outcome, not successful objective satisfaction.
T06 Join-all with one running required child: expect parent termination not established.
T07 Infinite self-loop outside T: expect a nontermination witness under the stated admissibility assumptions.
T08 Nonterminal deadlock: expect deadlock classification, not ordinary completion.
T09 Recursive call with unchanged ranking measure: expect proposed certificate rejected, not automatic proof of nontermination.
T10 Geometric trials with p=0.5: expect almost-sure termination, mean two trials and no deterministic finite bound.
T11 Asymptotic approach to exact zero: expect no finite exact-zero termination in the specified mathematical model.
T12 Conflicting cessation records or incompatible clocks: expect disputed or unknown assessment and preserved evidence.

13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Termination Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source identifier: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/termination-ontology.html
This is an original proposed formalisation, not a verified transcription of the source. Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. Published grammar compatibility, source content and exact licence terms have not been independently verified. Acceptance tests are proposed, not executed.
END OF SPECIFICATION
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ