Skip to main content

Recursive Mathematical Entity Ontology

Recursive Mathematical Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 14 October 2026
Audio Overview
FLOW ALGEBRA
Recursive Mathematical Entity Ontology
Kireth Semantic Library | AI Core > Entity Graph > Mathematical Entities > Recursive Mathematical Entities
Version: 1.0 | Date: 2026-10-14 | Locale: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/recursive-mathematical-entities/recursive-mathematical-entity-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Source status: page content not retrieved; independent formalisation of the named ontology, pending source alignment.

1. ONTOLOGY IDENTITY
ontology_id: kireth:recursive-mathematical-entity
preferred_label: Recursive Mathematical Entity Ontology
entity_class: MathematicalEntity
parent_class: RecursiveMathematicalEntities
scope: Mathematical objects specified wholly or partly by reference to previously defined instances, smaller arguments, or self-referential equations.

2. TYPED ENTITIES
RecursiveEntity: {id: IRI, kind: enum[sequence,function,structure,relation,process,fixed_point], domain: Type, codomain: Type?, definition: -Expression, semantics: Semantics}
BaseCase: {input: Value, output: Value, justification: String}
RecursiveRule: {guard: Predicate, predecessors: List[Expression], output_expression: -Expression}
RecursionMeasure: {function: Domain -> WellFoundedOrder, order: Relation}
EvaluationState: {argument: Value, depth: NaturalNumber, result: Value?, status: enum[pending,resolved,undefined,divergent]}
DependencyEdge: {from: EvaluationState, to: EvaluationState, relation: enum[depends_on,expands_to]}
FixedPoint: {operator: Function, candidate: Value, equality_test: Predicate}
ProofObligation: {property: Predicate, assumptions: List[Predicate], status: enum[unproved,proved,refuted,unknown]}

3. RELATIONSHIPS
RecursiveEntity --HAS_BASE_CASE--> BaseCase
RecursiveEntity --HAS_RECURSIVE_RULE--> RecursiveRule
RecursiveRule --DEPENDS_ON--> RecursiveEntity
RecursiveRule --GENERATES--> EvaluationState
EvaluationState --DEPENDS_ON--> EvaluationState
RecursiveEntity --HAS_TERMINATION_MEASURE--> RecursionMeasure
RecursiveEntity --HAS_PROOF_OBLIGATION--> ProofObligation
FixedPoint --SATISFIES--> RecursiveEntity
RecursiveEntity --SEMANTICALLY_RELATED_TO--> RecursiveSequence | RecursiveFunction | RecursiveStructure | InductiveDefinition | FixedPoint

4. FORMAL SEMANTICS
A primitive recursive-style definition over natural numbers may have:
  f(0) = b
  f(n+1) = G(n, f(n))
where b is a defined base value and G is a total operation on the relevant domain.
A more general well-founded recursion is:
  f(x) = H(x, f restricted to {y : y < x})
where < is a well-founded relation and H is defined for the required inputs.
Self-referential equations such as x = T(x) specify fixed points, but existence and uniqueness require separate conditions.
Not every recursive specification terminates or defines a unique total function.

5. FLOW OPERATIONS
flow DEFINE(entity, base_cases, rules, semantics):
  REQUIRE well_typed(entity, base_cases, rules)
  RETURN RecursiveEntity(entity, base_cases, rules, semantics)

flow EXPAND(entity, argument, visited, budget):
  REQUIRE budget >= 0
  IF base_case_matches(entity, argument): RETURN base_case_value(entity, argument)
  IF budget == 0: RETURN unresolved("evaluation budget exhausted")
  IF (entity.id, argument) IN visited: RETURN unresolved("cycle detected; apply specified fixed-point semantics if available")
  rule = select_applicable_rule(entity, argument)
  IF rule is missing OR ambiguous: RETURN undefined("no unique applicable rule")
  dependencies = instantiate_predecessors(rule, argument)
  values = [EXPAND(entity, d, visited UNION {(entity.id, argument)}, budget-1) FOR d IN dependencies]
  IF any unresolved(values): RETURN unresolved("dependency not resolved")
  RETURN evaluate(rule.output_expression, values)

flow VERIFY_TERMINATION(entity):
  IF well_founded_measure_exists(entity) AND every_recursive_call_strictly_decreases_measure(entity): RETURN proved
  RETURN unknown  # failure to prove is not proof of divergence

flow VERIFY_FIXED_POINT(T, x):
  RETURN equal(T(x), x) UNDER declared equality semantics

6. INFERENCE RULES
R1 Base: base_case_matches(x) => evaluation(x) = base_value(x).
R2 Step: applicable_rule(x) AND all_dependencies_resolved(x) => evaluation(x) = evaluate_rule(x).
R3 Well-founded termination: every dependency decreases a measure in a well-founded order AND all base cases defined => recursive evaluation terminates for inputs in the proved domain.
R4 Structural induction: base constructors satisfy P AND each constructor preserves P assuming P for recursive components => P holds for every finitely generated structure.
R5 Uniqueness: well-founded recursive definition with deterministic, total rule evaluation => unique recursively defined value on the specified domain.
R6 Fixed point: T(x)=x => x is a fixed point of T; no uniqueness inference without additional premises.
R7 Semantic equivalence: two definitions are equivalent only if their domains, observable outputs, and applicable semantics agree for all inputs in scope.

7. VALIDATION CONSTRAINTS
V1 All symbols, arguments, outputs and operations are type-consistent.
V2 Base cases and recursive rules are explicitly recorded.
V3 Guards must be mutually exclusive or have a declared precedence / nondeterministic semantics.
V4 Recursive dependencies must be well founded for any claim of total termination.
V5 Cyclic definitions must declare fixed-point, coinductive, partial or other interpretation.
V6 A bounded evaluation timeout is not evidence of mathematical divergence.
V7 Proof status must distinguish proved, refuted and unknown.
V8 Confidence metadata must not be mistaken for formal proof.
V9 Recursive evaluation should retain provenance and evaluation budget.

8. WORKED EXAMPLES
Example A: factorial
  f(0)=1; f(n)=n*f(n-1) for n>0.
  f(4)=4*3*2*1=24.
  termination_measure(n)=n, strictly decreasing on natural-number recursive calls.

Example B: Fibonacci sequence
  F(0)=0; F(1)=1; F(n)=F(n-1)+F(n-2) for n>=2.
  F(5)=5.
  repeated dependencies may be memoised without changing the defined values.

Example C: recursive binary tree size
  size(Empty)=0.
  size(Node(left,right))=1+size(left)+size(right).
  termination follows from strictly smaller finite subtrees.

Example D: ambiguous self-reference
  x=x.
  Every x satisfies this equation; it does not define a unique value.

9. SEMANTIC EQUIVALENCE
canonical_concept: recursive mathematical entity
aliases: [recursively defined mathematical object, recursive mathematical structure]
related_but_distinct: [inductive definition, recurrence relation, recursive algorithm, fixed-point equation, coinductive object]
equivalence_test: compare typed domain, constructors/base cases, rules, observable values, termination and fixed-point interpretation.

10. CONFIDENCE
formal_rules_confidence: high for standard mathematical claims with stated assumptions
source_alignment_confidence: unverified
confidence_policy: attach confidence to provenance/interpretation; do not replace proof with numerical confidence.

11. FLOW_HASH
canonicalisation: UTF-8; Unicode NFC; normalise whitespace; stable ordering of typed declarations; preserve mathematical symbol meaning.
FLOW_HASH: SHA-256(canonicalised ontology payload excluding FLOW_HASH field)
FLOW_HASH_VALUE: COMPUTE_ON_PUBLICATION

12. UPDATE_MODEL
version: 1.0
update_strategy: semantic versioning; preserve previous versions and migration mappings.
update_triggers: source-page alignment; new formal rules; corrected examples; revised constraints.
provenance: source URL + publication timestamp + author credit + verification status.

13. AI_CONSUMPTION
format: plain-text typed Flow Algebra
parse_order: identity -> entities -> relationships -> semantics -> operations -> inference -> validation -> examples -> provenance.
reasoning_policy: check preconditions before inference; distinguish total from partial recursion; report unknown proof obligations; avoid assuming convergence or uniqueness.
retrieval_keys: [recursive mathematical entity, recursion, base case, recurrence, well-founded relation, fixed point, structural induction, termination]
output_contract: {entity_id, definition, assumptions, derived_result, proof_status, provenance, confidence, flow_hash}

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ