AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
Recursive Definition Ontology
Version: 1.0
Date: 2026-10-14
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/recursive-mathematical-entities/recursive-definition-ontology.html
Source alignment: Conceptual draft; source page not verified.
Authors: Mark Higgins — Sky (Recursive AI)
Project: Kireth Semantic Library | https://kirethresearch.org
1. ONTOLOGY IDENTITY
ontology_id: recursive_definition_ontology
parent: recursive_mathematical_entities
entity_type: RecursiveDefinition
purpose: Model mathematical objects specified by base cases and self-referential construction rules under explicit well-foundedness or fixed-point semantics.
2. TYPED ENTITIES
RecursiveDefinition: {identifier:str, domain:Type, codomain:Type, base_cases:list[BaseCase], recursive_rules:list[RecursiveRule], semantics:Semantics, provenance:str?}
BaseCase: {predicate:Predicate, value:E-xpression}
RecursiveRule: {guard:Predicate, expression:E-xpression, recursive_calls:list[Call]}
Call: {target:str, arguments:list[Expression]}
TerminationMeasure: {measure:Domain->WellFoundedSet, order:WellFoundedRelation}
InductiveObject: {constructors:list[Constructor], induction_principle:Rule}
FixedPointSpecification: {operator:Functional, fixed_point_kind:least|greatest|unique|unspecified}
EvaluationTrace: {input:Value, steps:list[Step], result:Value|undefined}
3. RELATIONSHIPS
RecursiveDefinition HAS_BASE_CASE BaseCase
RecursiveDefinition HAS_RECURSIVE_RULE RecursiveRule
RecursiveRule INVOKES RecursiveDefinition
RecursiveRule DECREASES_BY TerminationMeasure [when proved]
RecursiveDefinition DEFINES MathematicalEntity
RecursiveDefinition HAS_SEMANTICS Semantics
RecursiveDefinition EVALUATES_TO Value [when defined]
RecursiveDefinition MAY_HAVE_FIXED_POINT FixedPointSpecification
RecursiveDefinition DEPENDS_ON Domain
4. FORMAL SEMANTICS
Primitive recursion over natural numbers:
f(0, x) = g(x)
f(n+1, x) = h(n, x, f(n, x))
with g and h total on their specified domains implies f total.
Well-founded recursion:
f(x) = F(x, f restricted to predecessors of x)
where the predecessor relation is well-founded and F is well-typed.
Fixed-point recursion:
f = Phi(f)
A fixed point exists only under appropriate assumptions; uniqueness requires additional conditions.
Do not infer termination from the presence of a base case alone.
5. INFERENCE RULES
R1 BASE: If a base predicate matches input x, return its specified value.
R2 STEP: If a recursive rule matches x and all required recursive calls are defined, evaluate its expression.
R3 TERMINATION: If each recursive dependency strictly decreases a measure in a well-founded order, conclude termination for inputs in the proven domain.
R4 INDUCTION: For inductively generated domains, a base proof plus constructor-preserving step proofs establishes the property for all generated elements.
R5 EQUIVALENCE: Two definitions are extensionally equivalent only when outputs agree for all inputs in their common domain (and definedness agrees where relevant).
R6 CYCLE: A cyclic dependency without an established fixed-point interpretation or termination proof is not automatically valid.
R7 PARTIALITY: Nonterminating or undefined inputs must be represented explicitly; never silently assert a total function.
6. VALIDATION CONSTRAINTS
V1 Every definition declares domain and codomain.
V2 Every base and recursive expression type-checks against codomain.
V3 Rule guards and overlap behaviour are explicit; conflicting matching rules are rejected unless priority is defined.
V4 Recursive calls target a declared definition with correctly typed arguments.
V5 Termination claims include a justified decreasing measure or another valid proof.
V6 Inductive and coinductive semantics are distinguished.
V7 Undefined values and nontermination are not conflated with numerical zero.
V8 Cyclic graph references are not assumed to establish productive coinduction.
7. WORKED EXAMPLES
Example A: Factorial
fact(0) = 1
fact(n) = n * fact(n-1), n > 0
domain = natural_numbers; codomain = natural_numbers
termination_measure = n
fact(4) = 4*3*2*1 = 24
Example B: Fibonacci
fib(0)=0; fib(1)=1
fib(n)=fib(n-1)+fib(n-2), n>=2
fib(6)=8
Example C: Structural recursion on lists
length([])=0
length(head::tail)=1+length(tail)
measure = list length
Example D: Nontermination counterexample
f(n)=f(n) has no decreasing measure and does not define a terminating evaluator merely by being recursive.
8. SEMANTIC_EQUIVALENCE
aliases: [recursive specification, inductive definition (when inductive semantics apply), recurrence-based definition (for sequences)]
non_equivalences: [recursion != iteration; recursive definition != recursive algorithm; fixed-point existence != uniqueness; self-reference != guaranteed termination]
context: mathematics, logic, computer science, formal methods, semantic knowledge graphs
9. CONFIDENCE
mathematical_foundations: high
source_page_alignment: unverified
claims: tagged as theorem, definition, example, or conditional statement
10. FLOW_HASH
hash_method: SHA-256
canonicalisation: UTF-8, LF newlines, stable ordered fields, exclude hash value from hash input
FLOW_HASH: compute_on_publication
11. UPDATE_MODEL
version: 1.0
update_policy: append versioned changes; preserve stable identifiers; rerun type, rule, termination and example checks
source_review_required: true
12. AI_CONSUMPTION
parse_as: typed semantic flow
required_fields: [ontology_id, entity_type, domain, codomain, base_cases, recursive_rules, semantics]
reasoning: enforce guards, types, termination assumptions and definedness before deriving results
outputs: [validated_definition, dependency_graph, evaluation_trace, proof_obligations, confidence_tags]
safety: distinguish proved properties from conjectures and illustrative examples
END FLOW ALGEBRA