AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH RESEARCH — AI SEMANTIC LIBRARY
RECURSIVE PROCESS 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/recursive-process-ontology.html
Integration: AI Core / Entity Graph / Abstract Concepts / Process Concepts
Status: Proposed formalisation; published page and grammar not independently verified.
1. CANONICAL DEFINITION
A recursive process is a process whose definition depends on an invocation of itself or a mutually dependent process definition. Each invocation has a context, input, state and result contract. A terminating recursive computation requires a base case and a justified path towards it. Productive ongoing recursion may instead have an explicit observation and resource contract.
Recursion is not synonymous with iteration, feedback, repetition, learning or self-improvement. Iteration can implement recursion without retaining a call stack; feedback alone does not establish recursive definition. Recursive refinement may improve a model, preserve it or degrade it. Convergence does not establish truth.
2. ENTITY MODEL
RecursiveProcess = (id, version, domain, codomain, context, base, body, dependencies, rank, combine, invariant, policy, evidence)
Invocation = (invocationId, definitionVersion, parentId, arguments, localState, depth, start, end, status, result, evidence)
Refinement = (priorVersion, evidenceDelta, candidateVersion, validation, decision)
Status ∈ {pending, running, completed, failed, cancelled, budget_exhausted, unknown}.
Validation ∈ {established, rejected, unknown, disputed, not_applicable}.
Definition identity is separate from invocation identity. A recursive definition graph may contain cycles; an ordinary finite invocation tree must not contain a parent ancestry cycle. Shared memoised results may be represented by a dependency DAG rather than duplicated calls.
3. CLASSIFICATION
Direct recursion: a definition invokes itself.
Mutual recursion: a cycle of two or more definitions.
Structural recursion: invocations operate on proper substructures.
Well-founded recursion: each recursive dependency decreases a rank in a well-founded order.
Tail recursion: the recursive result is returned without further pending computation.
Branching recursion: multiple subproblems are recursively evaluated and combined.
Memoised recursion: results are reused under a sound context-sensitive key.
Co-recursion: a potentially unbounded structure is produced through observable productive steps.
Recursive refinement: a versioned process applies a revision operator to its previous representation; classify separately from call recursion unless self-reference is established.
4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation. g ∘ f applies f before g. These operators are proposed local notation, not a verified executable grammar.
F_bind: Definition × Input × Context → Invocation
F_base: Invocation → {true,false,unknown}
F_seed: BaseInvocation → Result
F_split: NonBaseInvocation → OrderedCollection[Input]
F_rank: Invocation → WellFoundedDomain
F_guard: Invocation × Policy → Decision
F_call: Definition × Input × Context → Invocation
F_join: Invocation × Collection[Result] → Result
F_check: Result × Contract × Evidence → Validation
F_record: Invocation × Result × Validation → EvidenceRecord
F_revise: Version × EvidenceDelta → CandidateVersion
F_commit: CandidateVersion × AuthorisedValidation → Version
F_stop: ExecutionState × Budget × Policy → Decision
Unknown guards do not authorise execution. Failed subcalls propagate explicitly unless a declared recovery policy provides an alternative result.
5. COMPOSITE FLOWS
Input →[F_bind] Invocation →[F_base] BaseDecision
If true: Invocation →[F_seed] Result →[F_check] Validation.
If false: Invocation →[F_split] Children →[F_guard] ApprovedChildren →[F_call] ChildInvocations →[recursive evaluation] ChildResults →[F_join] Result →[F_check] Validation.
If unknown: suspend or return unknown according to policy.
For parallel child evaluation, require compatible resource allocations, isolation or synchronisation, and a deterministic merge order where the combination is order-sensitive. No partial result is silently promoted to a complete result.
Refinement flow: Version × EvidenceDelta →[F_revise] Candidate →[F_check] Validation →[F_commit, if authorised] NewVersion. Otherwise retain the previous version and record rejection or uncertainty.
6. MATHEMATICAL SEMANTICS
Let D be an input domain, Y a result domain, B:D→Bool a total base predicate, b:B-domain→Y a base function, S(x) a finite ordered collection of subproblems, and C a combining function.
R(x) = b(x) if B(x); otherwise C(x, [R(z) for z in S(x)]).
For termination, require a well-founded order ≺ on W and rank ρ:D→W such that ρ(z) ≺ ρ(x) for every recursive dependency z of non-base x. Assume finite branching and termination of local operations. Well-founded induction then establishes termination. A depth limit alone establishes bounded execution, not successful completion.
Example: R(0)=1; R(n)=nR(n−1) for nonnegative integers. Rank n decreases and R(4)=24. Negative integers are outside the contract.
Mutual recursion uses a rank over tagged pairs (definition,input), decreasing across every recursive edge, not just direct self-calls.
Fixed-point formulation: define Φ on candidate functions by Φ(f)(x)=b(x) for base inputs and C(x,[f(z)]) otherwise. A recursive solution satisfies R=Φ(R). Least fixed-point semantics may be used on a pointed complete partial order with Scott-continuous Φ; then lfp(Φ)=sup_n Φ^n(⊥). Without these assumptions, existence, uniqueness and computability are not guaranteed.
Refinement dynamics: v_(k+1)=T(v_k,e_k). For a fixed evidence context and contraction T on a nonempty complete metric space with constant q∈[0,1), a unique fixed point exists and d(v_k,v*)≤q^k d(v_0,v*). Changing evidence or policy invalidates this particular guarantee unless separately justified.
Residual d(v_(k+1),v_k)≤ε is a stopping heuristic, not proof of correctness. For a contraction, d(v_k,v*)≤d(v_k,v_(k+1))/(1−q).
Complexity: T(n)=aT(n/b)+g(n) is applicable only for suitable regular subproblem sizes and cost assumptions. Branching recursion may have exponential cost; memoisation may reduce repeated work but requires valid cache keys and sufficient storage.
Productivity: an infinite stream definition is acceptable when each requested finite prefix is obtainable in finite work under the stated assumptions. It need not terminate globally.
7. STRUCTURAL INVARIANTS
I01 Definition identifiers and invocation identifiers are distinct.
I02 Every invocation refers to a specific definition version and context.
I03 Recursive edges preserve input and output contracts.
I04 Base predicates and base results are explicitly defined for terminating recursion.
I05 A termination claim requires a valid well-founded argument or equivalent proof.
I06 Resource limits and cancellation are explicit and never imply successful completion.
I07 Child results are combined only under the declared merge contract.
I08 Memoisation keys include all dependencies relevant to result equivalence.
I09 Evidence and failed invocations remain traceable.
I10 Recursive revisions cannot bypass authorisation or mandatory constraints.
I11 Fixed-point or convergence claims record their mathematical assumptions.
I12 Missing evidence, repeated states and convergence are not proof of correctness.
8. RECURSIVE VALIDATION
Maintain a versioned graph G_k of definitions, invocation records, constraints and evidence. For each evidence delta, propose a candidate G', validate typing, dependency structure, rank or productivity obligations, resource policy and result contracts. Commit only if mandatory checks pass and authorisation exists. Preserve the previous version on failure. Record disputed evidence rather than erasing it.
Stop refinement on validated acceptance, explicit cancellation, budget exhaustion, unresolved evidence, or detected non-progress. Detect repeated canonical state hashes only after checking equality under the declared context; a repeated state may indicate oscillation or legitimate periodic service. Track evidence versions to avoid conflating changing contexts. A stable graph is not necessarily a correct graph.
9. EVIDENCE AND PROVENANCE
Record source identifier, definition version, invocation identifier, parent relationship, input hash, context, guard decision, timestamps, rank witness, resource consumption, output, validation method and uncertainty. Distinguish observed execution from simulated or predicted execution. A confidence score is not a probability unless calibrated. Preserve rejected revisions and record cache provenance. Sensitive arguments should be represented by authorised references or redacted digests where appropriate.
10. WORKED EXAMPLES
E01 Mathematics: factorial(4) decomposes to factorial(0), then combines 1,1,2,6,24. Negative input is rejected.
E02 Software: recursively traverse a finite tree; leaf is base, subtree size is rank. A cyclic graph requires a visited-set policy rather than assuming tree termination.
E03 Engineering: decompose an assembly into subassemblies and parts. Rank by finite acyclic bill-of-materials depth; detect circular dependencies before cost aggregation.
E04 AI reasoning: decompose a question into smaller subquestions, combine evidence-backed answers and retain unresolved branches. Depth exhaustion produces an incomplete result, not a fabricated conclusion.
E05 Numerical refinement: x_(k+1)=x_k/2+1 has fixed point 2; starting at 0 gives 1,1.5,1.75. Contraction q=0.5 guarantees convergence, not external model validity.
E06 Semantic library: propose ontology corrections from evidence, validate constraints, commit a new version only after approval. A rejected candidate does not overwrite the current graph.
E07 Stream processing: define natural-number stream by emit(n), then defer stream(n+1). Each finite prefix is productive; global termination is not required.
11. CROSS-ONTOLOGY INTEGRATION
Process Concept: superclass and execution contracts.
Operation / Action / Step: local recursive body and constituent operations.
Procedure / Method / Workflow: orchestration, dependencies and implementation.
Iteration: repeated application, including iterative implementations of recursion.
Cycle / Loop: repeated control paths, not necessarily self-referential definitions.
Feedback Process: evidence returned to subsequent process decisions.
Input / Output / Transformation Process: typed invocation interfaces and result combination.
State Transition / State Space / Valid State: execution state and admissibility.
Stability / Coherence / Consistency: scoped convergence and validation criteria.
Recursive Engineering Process / Workflow / Validation: domain-specific refinement and audit integration.
These mappings are proposed semantic links, not verified published identifiers.
12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01 factorial(0): expected base result 1.
T02 factorial(4): expected result 24 with decreasing ranks.
T03 factorial(−1): expected domain rejection.
T04 R(n)=R(n): expected termination proof rejection.
T05 mutually recursive definitions with decreasing tagged rank: expected acceptance of termination argument subject to local termination.
T06 depth budget exhausted before base: expected budget_exhausted, not completed.
T07 child failure without recovery policy: expected parent failure or explicit incomplete status.
T08 cache hit with changed context: expected recomputation unless equivalence is proven.
T09 x→x/2+1: expected contraction certificate under real metric and fixed context.
T10 x→1−x starting at 0: expected two-cycle detection, not convergence.
T11 invalid candidate ontology revision: expected prior version retained and rejection recorded.
T12 productive natural-number stream: expected finite requested prefix without global termination claim.
13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Recursive Process Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/recursive-process-ontology.html
Open Research Licence attribution follows the project convention; consult the publisher for authoritative terms. This is an original proposed formalisation, not a verified transcription of the public page. Published grammar compatibility, page content and exact licence terms have not been independently verified. Acceptance tests are proposed, not executed.
END OF SPECIFICATION