Skip to main content

Recursive Structure 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 Structure Ontology — Kireth Semantic Library
Version: 1.0 | Date: 2026-10-14 | Locale: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/recursive-mathematical-entities/recursive-structure-ontology.html
Source alignment: pending direct page verification; formalisation based on established mathematics.
Authors: Mark Higgins — Sky (Recursive AI)

1. PURPOSE
Represent recursively defined mathematical structures through typed constructors, base objects, recursive composition, well-foundedness and computable inference.

2. TYPES
RecursiveStructure : Entity
CarrierSet : Set[Entity]
Constructor : Function[Tuple[Entity,...],Entity]
BaseConstructor : Constructor
RecursiveConstructor : Constructor
Substructure : Relation[Entity,Entity]
Depth : Function[Entity,NaturalNumber]
Size : Function[Entity,NaturalNumber]
InductiveRule : Rule
WellFoundedOrder : Relation[Entity,Entity]
FixedPoint : Entity

3. DECLARATIONS
structure S = (Carrier, Base, Constructors, Substructure, Invariants)
Base ⊆ Carrier
Constructors = {c_i : Carrier^arity(i) -> Carrier}
Substructure(x,y) means x is an immediate constituent of y.
Finite inductive structures are the least constructor-closed set containing Base.

4. RELATIONSHIPS
IS_A(RecursiveStructure, MathematicalEntity)
HAS_BASE_CASE(RecursiveStructure, BaseConstructor)
HAS_RECURSIVE_CASE(RecursiveStructure, RecursiveConstructor)
HAS_SUBSTRUCTURE(RecursiveStructure, Substructure)
SATISFIES(RecursiveStructure, Invariant)
GENERATED_BY(RecursiveStructure, Constructor)

5. EXECUTABLE FLOW
flow "RecursiveStructure" v1.0
  input: base_objects, constructors, candidate_object
  require: constructors_are_typed
  carrier := least_fixed_point(lambda X: base_objects union apply(constructors,X))
  member := derivable(candidate_object, base_objects, constructors)
  output: {member, derivation_tree, structural_depth, invariant_results}
  note: least_fixed_point is mathematical semantics; finite computation requires a terminating membership procedure or bounded exploration.
end

6. FORMAL RULES
BASE: b ∈ Base => b ∈ S
CONSTRUCT: (x1 ∈ S ∧ ... ∧ xn ∈ S) => c(x1,...,xn) ∈ S
STRUCTURAL_INDUCTION: [∀b∈Base P(b)] ∧ [∀c,∀x_i∈S ((∧P(x_i)) => P(c(x_i)))] => ∀x∈S P(x)
STRUCTURAL_RECURSION: f(b)=g_b; f(c(x1,...,xn))=h_c(x1,...,xn,f(x1),...,f(xn))
DEPTH: depth(b)=0; depth(c(x1,...,xn))=1+max_i depth(x_i)
SIZE: size(b)=1; size(c(x1,...,xn))=1+sum_i size(x_i)
TERMINATION: each recursive call descends under a well-founded proper-substructure order.
FIXED_POINT: F(X)=Base ∪ {c(x1,...,xn): each xi∈X}; S=μF for monotone F.

7. VALIDATION
V01: Each constructor's arguments and result conform to declared types.
V02: Base constructors are explicitly declared.
V03: Every finite generated object has a finite constructor derivation.
V04: A recursive evaluator terminates only if calls strictly decrease a well-founded measure.
V05: Depth and size formulas apply to finite tree-shaped constructor terms; shared graphs require separate counting semantics.
V06: Cyclic or coinductive structures are not automatically members of the least inductive fixed point.
V07: Invariants must hold for base objects and be preserved by every constructor.
V08: Empty constructor families and empty bases may yield an empty least fixed point.

8. WORKED EXAMPLES
Example A — Natural numbers:
Base: Zero ∈ Nat
Constructor: n∈Nat => Succ(n)∈Nat
size(Succ(Succ(Zero)))=3; depth=2.

Example B — Binary trees:
Base: Leaf ∈ Tree
Constructor: Left,Right∈Tree => Node(Left,Right)∈Tree
size(Node(Leaf,Leaf))=3; depth=1.

Example C — Lists:
Base: Nil ∈ List[A]
Constructor: a∈A, xs∈List[A] => Cons(a,xs)∈List[A]
length(Nil)=0; length(Cons(a,xs))=1+length(xs).

9. SEMANTIC_EQUIVALENCE
recursive_structure ≈ inductively_generated_structure when interpreted using the least constructor-closed carrier.
recursive_structure != arbitrary_cyclic_graph.
structural_recursion != unrestricted_self_reference.

10. CONFIDENCE
formal_mathematical_rules: 0.99
source_page_alignment: unverified
confidence_interpretation: Confidence is a modelling annotation, not a statistical probability of correctness.

11. FLOW_HASH
canonicalise: UTF-8, LF, stable field order, normalised whitespace
hash_algorithm: SHA-256
hash_value: COMPUTE_ON_FINAL_CANONICAL_CONTENT

12. UPDATE_MODEL
versioning: semantic_version
on_change: revalidate constructor signatures, induction proofs, examples and downstream dependencies
provenance: retain source URL, revision date, authors and source-alignment status

13. AI_CONSUMPTION
parse: typed_entities, relations, constructors, base_rules, recursive_rules
reason: membership, derivation, induction, invariants, depth, termination
reject: ill-typed constructions, unsupported induction, unproved termination claims
emit: structured result with derivation provenance and validation status

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