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
ITERATION 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/iteration-ontology-2.html
Integration: AI Core / Entity Graph / Abstract Concepts / Process Concepts
Status: Proposed formalisation; published page and grammar not independently verified.
1. CANONICAL DEFINITION
Iteration is repeated application of a specified operation or family of operations to successive states, subject to a continuation policy. Each occurrence has an index, input state, output state and execution context. Iteration may be finite or indefinite, deterministic or stochastic. Repetition alone does not imply improvement, convergence, recursion or successful completion. Recursion describes self-reference or self-invocation; iteration describes repeated progression. A recursive definition can often be implemented iteratively, but the concepts are not identical.
2. ENTITY MODEL
IterationDefinition = (id, version, stateDomain, initialisation, updateRule, continuationGuard, terminationPolicy, constraints, objective, context)
IterationRun = (runId, definitionId, definitionVersion, initialState, currentIndex, currentState, history, resourceBudget, status, evidence)
IterationStep = (runId, index, input, ruleVersion, parameters, output, validation, timestamp, provenance)
TerminationRecord = (runId, finalIndex, finalState, reason, objectiveAssessment, evidence)
Execution status: planned, running, suspended, completed, failed, cancelled, budget_exhausted.
Assessment status: established, rejected, unknown, disputed, not_applicable.
Execution completion and objective attainment are independent attributes. Unknown observations must not be silently treated as false or zero.
3. CLASSIFICATION
Fixed-count: a predetermined number of updates.
Conditional: continuation depends on a guard evaluated against current state.
Convergent: a specified limit is established under stated assumptions.
Periodic: states recur with a positive period.
Divergent: a specified divergence criterion is established.
Adaptive: update parameters change according to evidence or feedback.
Stochastic: transitions are governed by probability kernels.
Nested: an outer iteration invokes one or more inner runs.
Parallel: updates operate on compatible partitions with explicit synchronisation.
Online: updates incorporate arriving observations.
These classes are not mutually exclusive. Classification must identify the relevant state representation, metric and horizon.
4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation. g ∘ f applies f before g. The following operators are proposed local notation, not verified executable grammar.
F_init: Definition × Input → State
F_guard: State × Context × Budget → Decision
F_update: State × Parameters × Context → CandidateState
F_validate: CandidateState × Constraints × Evidence → Assessment
F_commit: State × CandidateState × AcceptedAssessment → State
F_measure: State × Objective → MetricVector
F_feedback: History × MetricVector → Parameters
F_record: Step × Evidence → HistoryDelta
F_stop: State × History × Policy → TerminationDecision
F_finish: Run × TerminationDecision → TerminationRecord
F_merge: CompatiblePartitionResults × MergePolicy → CandidateState
Operators may be partial; an undefined operation returns an explicit error or unknown assessment rather than an invented state. Commit requires applicable authorisation and mandatory constraints to be satisfied.
5. COMPOSITE FLOWS
Initialisation: Input →[F_init] x₀.
Single update: xₖ →[F_guard] decision; if continue, xₖ →[F_update] candidate →[F_validate] assessment →[F_commit] xₖ₊₁.
Record the attempted step, including rejected candidates. A rejected update does not increment the committed-state index; attempt identifiers remain distinct.
Adaptive flow: History →[F_feedback] θₖ; (xₖ, θₖ) →[F_update] candidate.
Fixed-count flow: Tⁿ = T ∘ ... ∘ T (n applications); T⁰ = identity on its domain.
Conditional flow: evaluate the guard before each update; unknown guard results suspend or follow an explicitly authorised uncertainty policy.
Parallel flow: evaluate independent updates against a common snapshot, then merge under declared conflict rules. Do not assume sequential and parallel semantics are equivalent.
Nested flow: each inner run has its own identifier, index, budget and termination record. Propagate failures according to the outer policy.
6. MATHEMATICAL SEMANTICS
Deterministic recurrence: xₖ₊₁ = Tₖ(xₖ), k ≥ 0. For a stationary update T, xₖ = Tᵏ(x₀).
Fixed point: T(x*) = x*. A fixed point need not attract neighbouring states.
Convergence in metric space (X,d): lim[k→∞] d(xₖ,x*) = 0.
Contraction certificate: if X is nonempty and complete, T maps X into X, and d(Tx,Ty) ≤ q d(x,y) for all x,y in X with 0 ≤ q < 1, then T has a unique fixed point and iterates converge to it.
Error bound: d(xₖ,x*) ≤ qᵏ d(x₀,x*). A posteriori bound: d(xₖ,x*) ≤ d(xₖ,xₖ₊₁)/(1−q). These bounds require the contraction assumptions; small successive differences alone do not certify convergence.
Residual: rₖ = d(T(xₖ),xₖ), for stationary T. A residual threshold is a stopping rule, not automatically an error bound.
Periodicity: xₖ₊ₚ = xₖ for all k beyond some index, with p > 0. A repeated full state in an autonomous deterministic system implies subsequent repetition. For adaptive systems include parameters and relevant memory in the full state.
Optimisation: xₖ₊₁ = xₖ − αₖ∇J(xₖ) is one possible update for differentiable objectives. Convergence requires additional assumptions on J, step sizes and domain. Objective decrease does not prove global optimality.
Stochastic iteration: P(Xₖ₊₁ ∈ A | Xₖ=x) = Kₖ(x,A) under a Markov model. Each kernel is a probability measure over admissible outcomes. Distinguish almost-sure convergence, convergence in probability and convergence in distribution.
Resource accounting: total cost Cₙ = Σ[k=0..n−1] cₖ for additive costs. Shared resources and overlapping time require separate accounting rules.
7. STRUCTURAL INVARIANTS
I01 Each run references a versioned definition.
I02 Initial state belongs to the declared domain or is explicitly rejected.
I03 Every committed step has a unique run/index pair.
I04 Output of a committed step supplies the next input unless a recorded reset occurs.
I05 Mandatory constraints are evaluated before commit.
I06 Attempted and committed steps remain distinguishable.
I07 Termination reason is explicit and separate from success.
I08 Unknown evidence is not converted to a positive validation result.
I09 Metrics declare units, direction, tolerance and context.
I10 Parallel merges preserve dependencies and detect conflicts.
I11 Convergence claims identify assumptions and supporting evidence.
I12 Historical states and rule versions remain traceable after refinement.
8. RECURSIVE VALIDATION
Let Gₙ be the versioned knowledge graph and ΔEₙ new evidence. Propose a candidate G' = U(Gₙ, ΔEₙ), evaluate type integrity, temporal ordering, provenance and domain constraints, then commit Gₙ₊₁ only when acceptance policy permits. Otherwise retain Gₙ and record the rejection. Refinement of the update rule creates a new version; it does not rewrite prior execution history.
Stop refinement on an established objective, explicit iteration limit, exhausted resource budget, unresolved conflict, detected cycle or authorised cancellation. Compare canonical full-state representations to detect cycles; approximate equality is a warning rather than proof of periodicity. A fixed point of the refinement operator establishes only stability under that operator, not factual truth or completeness.
9. EVIDENCE AND PROVENANCE
Record source identifiers, run and step IDs, valid time, observation time, rule version, parameters, units, uncertainty, validation method and assessor. Separate observed executions from simulated or inferred trajectories. Preserve random seeds where appropriate, whilst noting that reproducibility can depend on software and hardware. Confidence scores are not probabilities unless calibrated. Missing observations and censored runs must be marked explicitly.
10. WORKED EXAMPLES
A. Mathematics: T(x)=x/2, x₀=8 gives 8,4,2,1. On the real line T is a contraction with q=0.5 and fixed point 0.
B. Software: a loop with three increments starting at zero ends at 3; a zero-count run returns the initial state without an update.
C. Engineering: a controller adjusts a setpoint within permitted bounds. Each adjustment is validated; a rejected adjustment is recorded without changing the committed setpoint.
D. Numerical analysis: T(x)=−x starting at 1 yields 1,−1,1. The sequence has period two, not convergence.
E. AI learning: successive parameter updates reduce a training loss; independent validation is required before claiming improved generalisation.
F. Workflow: a document review repeats until mandatory findings are resolved or the review budget is exhausted. Exhaustion does not imply approval.
G. Semantic library: successive evidence updates refine an entity graph. Duplicate evidence is deduplicated, conflicting claims retain provenance, and a stable graph is not automatically a true graph.
11. CROSS-ONTOLOGY INTEGRATION
Process Concept: iteration is a process composition pattern.
Operation: supplies typed update transformations.
Step: represents individual iteration occurrences.
Workflow Concept: coordinates guards, branches and parallel execution.
Input/Output Concept: connects successive states and external observations.
Transformation Process: specifies the changes effected by updates.
State Concept and State Transition: represent trajectories and committed changes.
Stable State and Equilibrium State: classify fixed points and stability separately.
Convergence, Feedback and Recursive Engineering: proposed mappings for limit assessment, parameter adaptation and recursive refinement; canonical identifiers require verification.
12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01 Zero iterations: return x₀ with no committed updates.
T02 Three increments from zero: final state 3 and three committed steps.
T03 Guard initially false: terminate before update.
T04 Unknown guard: suspend unless an authorised policy resolves it.
T05 Out-of-domain candidate: reject and retain committed state.
T06 T(x)=x/2: identify contraction under the real-line metric.
T07 T(x)=−x, x₀=1: detect period two; do not claim convergence.
T08 Budget exhausted before objective: report exhaustion separately from success.
T09 Conflicting parallel writes: reject merge or apply declared conflict policy.
T10 Adaptive rule change: preserve previous rule versions in history.
T11 Missing observation: retain unknown assessment.
T12 Fixed knowledge graph with unresolved evidence: do not infer truth from convergence.
13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Iteration Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/iteration-ontology-2.html
Original proposed formalisation, not a verified transcription. Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. Published grammar, live source and exact licence terms have not been independently verified. Acceptance tests are specifications, not executed test results.
END OF SPECIFICATION