UOR Bounded Recursion

IRI
https://uor.foundation/recursion/
Prefix
recursion:
Space
kernel
Comment
Self-referential computations with well-founded descent measures guaranteeing termination.

This is a kernel-space namespace in the Define stage of the PRISM pipeline. It provides the immutable algebraic substrate — ring structure, schema vocabulary, and operation algebra.

Learn more: Pipeline Overview

Class hierarchy
Class hierarchy for UOR Bounded Recursion namespace BoundedRecursi DescentMeasure BaseCase RecursiveCase RecursiveStep RecursionTrace StructuralRecu

Imports

Classes

NameSubclass OfDisjoint WithComment
BoundedRecursionThingA self-referential computation parameterized by a descent measure. Each recursive step strictly decreases the measure; the computation terminates when the base case predicate is satisfied.
DescentMeasureThingA well-founded function from computation state to xsd:nonNegativeInteger. Strictly decreases on every recursive step.
BaseCaseMatchArmThe match arm selected when the descent measure reaches zero or the base predicate is satisfied. Produces a direct result without further recursion.
RecursiveCaseMatchArmThe match arm selected when the descent measure is positive. Applies a decomposition step, decreases the measure, and invokes the recursion.
RecursiveStepThingA single step in a bounded recursion: the decomposition applied before the recursive invocation. Must strictly decrease the DescentMeasure.
RecursionTraceComputationTraceA computation trace recording the sequence of recursive steps, measure values, and the base case result. The trace length is bounded by the initial measure value.
StructuralRecursionBoundedRecursionA bounded recursion where the descent measure is the structural size of the input type (site count, constraint count, or operad nesting depth).

Properties

NameKindFunctionalDomainRangeComment
measureObjecttrueBoundedRecursionDescentMeasureThe descent measure guaranteeing termination.
baseCaseObjecttrueBoundedRecursionBaseCaseThe base case match arm.
recursiveCaseObjecttrueBoundedRecursionRecursiveCaseThe recursive case match arm.
stepDecompositionObjecttrueRecursiveStepTransformThe transform applied to decompose the input before recursion.
stepMeasurePreObjecttrueRecursiveStepDescentMeasureThe measure value before this step.
stepMeasurePostObjecttrueRecursiveStepDescentMeasureThe measure value after this step.
basePredicateObjecttrueBoundedRecursionPredicateThe predicate that identifies the base case.
recursionBodyObjecttrueBoundedRecursionComputationDatumThe computation applied at each recursive step (may reference itself via its content address).
initialMeasureDatatypetrueBoundedRecursionnonNegativeIntegerThe measure value at the start of recursion. Bounds the maximum recursion depth.
measureValueDatatypetrueDescentMeasurenonNegativeIntegerThe current value of the descent measure.