AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
RECURRENCE ONTOLOGY
Kireth Semantic Library — Computational Mathematical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/computational-mathematical-entities/recurrence-ontology.html
Version: 1.0 | Date: 2026-10-14 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Status: Proposed mathematical formalisation; source-page wording not independently verified.
1. PURPOSE
Represent recurrence relations as typed, verifiable mathematical entities specifying how terms or states depend on preceding terms, with explicit domains, initial conditions, well-founded dependencies, evaluation rules and proof obligations.
2. TYPED ENTITIES
RecurrenceRelation: (index_set, state_space, dependency_offsets, update_function, initial_conditions, domain_constraints).
Sequence: function a: I -> S, with I a discrete ordered index set and S a state space.
Index: element n in I.
Order: non-negative integer k denoting the number of preceding terms used, when finite.
InitialCondition: mapping from base indices to values in S.
UpdateFunction: typed map F: I x S^k -> S for a k-step recurrence.
DependencyGraph: directed edges from prerequisite indices to dependent indices.
ClosedForm: independently specified expression a(n) claimed equivalent to recurrence output.
CharacteristicPolynomial: polynomial associated with a linear constant-coefficient recurrence.
TerminationCriterion: finite horizon or well-founded base-case condition.
3. CANONICAL MATHEMATICAL FORMS
First-order recurrence: a(n+1) = F(n, a(n)), for n >= n0.
k-th order recurrence: a(n) = F(n, a(n-1), ..., a(n-k)), for n >= n0+k.
Linear homogeneous recurrence: a(n) = sum_{j=1}^k c_j a(n-j).
Linear nonhomogeneous recurrence: a(n) = sum_{j=1}^k c_j a(n-j) + g(n).
Fibonacci example: a(0)=0; a(1)=1; a(n)=a(n-1)+a(n-2) for n>=2.
Algorithmic recurrence example: T(n)=2T(floor(n/2))+n for n>=2, T(1)=1.
4. RELATIONSHIPS
RecurrenceRelation --DEFINES--> Sequence
RecurrenceRelation --USES--> UpdateFunction
RecurrenceRelation --REQUIRES--> InitialCondition
RecurrenceRelation --DEPENDS_ON--> PriorTerm
RecurrenceRelation --HAS_ORDER--> Order
RecurrenceRelation --HAS_DOMAIN--> IndexSet
RecurrenceRelation --MAY_HAVE--> ClosedForm
RecurrenceRelation --MAY_BE_CLASSIFIED_AS--> Linear | Nonlinear | Homogeneous | Nonhomogeneous
RecurrenceRelation --MAY_MODEL--> AlgorithmRuntime | DynamicalSystem | CombinatorialCount
ClosedForm --MUST_SATISFY--> RecurrenceRelation
5. INVARIANTS AND VALIDATION
V1: All indices referenced by an update are within the declared index set.
V2: The update function accepts the declared number and types of arguments.
V3: Base values cover every index needed before recursive evaluation begins.
V4: For forward evaluation, every dependency has a strictly smaller well-founded rank than its dependent index.
V5: A finite-order recurrence with a total update function and complete initial values uniquely determines its forward sequence.
V6: Any asserted closed form must match base values and satisfy the recurrence for all indices in its declared domain.
V7: Complexity recurrences must state input-size domain, base cases and rounding rules where applicable.
V8: Convergence is not inferred solely from the presence of a recurrence relation.
6. EXECUTABLE INFERENCE FLOWS
flow ValidateRecurrence(R):
require typed(R.index_set, R.state_space, R.update_function)
check dependency_offsets and index bounds
check initial_conditions sufficient for base evaluation
check dependencies well_founded for forward computation
return VALID or diagnostics
flow EvaluateRecurrence(R, target_index):
require ValidateRecurrence(R) == VALID
memo := initial_conditions
for n in dependency_order_up_to(target_index):
if n not in memo:
args := [memo[d] for d in dependencies(n)]
memo[n] := update_function(n, args)
return memo[target_index]
flow VerifyClosedForm(R, C):
require domain(C) covers domain(R)
verify C agrees with every initial condition
verify symbolic_or_proven_equivalence(C(n), F(n, C(n-1), ..., C(n-k)))
return PROVED if a sound proof is supplied, else UNVERIFIED
flow ClassifyRecurrence(R):
inspect algebraic dependence on prior terms
label LINEAR only when update is affine in prior-term variables
label HOMOGENEOUS_LINEAR only when additive forcing term is zero
return classification with justification
7. INFERENCE RULES
R1 [Forward evaluation]: Known required preceding terms + total F => next term computable.
R2 [Uniqueness]: Complete base cases + deterministic F + well-founded forward dependencies => unique forward sequence.
R3 [Closed-form verification]: Base agreement + inductive recurrence agreement => closed-form equivalence over the induction domain.
R4 [Fixed point]: If a(n+1)=F(a(n)) and a(n)->L with F continuous at L, then F(L)=L.
R5 [Linear recurrence]: Constant-coefficient homogeneous recurrence permits characteristic-polynomial analysis over an appropriate field.
R6 [Complexity]: A recurrence for runtime requires explicit asymptotic assumptions before applying a theorem such as the Master theorem.
8. SEMANTIC DISTINCTIONS
Recurrence relation != recursive algorithm: one is a mathematical specification; the other is an evaluation procedure.
Recurrence relation != closed-form formula: a closed form may represent the same sequence without prior-term references.
Recurrence relation != differential equation: discrete-index updates differ from continuous-domain derivatives.
Iteration != recurrence: iteration is an execution pattern; a recurrence defines dependency among indexed values.
Recurrence order != computational complexity order.
9. CONFIDENCE AND PROVENANCE
CONFIDENCE: MATHEMATICAL_STANDARD for canonical definitions and explicitly stated rules; PROPOSED for ontology-specific schema and flow syntax.
PROVENANCE: Source URL is an ontology target identifier, not a claim of verified page text.
SEMANTIC_EQUIVALENCE: Only assert when domain, base conditions, update semantics and resulting terms coincide.
10. FLOW_HASH AND UPDATE_MODEL
FLOW_HASH: SHA-256 of canonical UTF-8 content after normalising line endings to LF and excluding any embedded FLOW_HASH value; calculate on publication, do not fabricate.
UPDATE_MODEL: Increment version when entity types, inference rules, mathematical assumptions or validation semantics change; preserve change log and provenance.
11. AI_CONSUMPTION
Machine-readable fields: ontology_id, label, source_url, types, symbols, axioms, relationships, rules, constraints, validation, provenance, confidence, version, flow_hash.
Execution policy: Check type and domain validity before computation; distinguish computed examples from universal proofs; flag unsupported convergence or complexity claims.
END FLOW ALGEBRA